Writing C++ Publisher in ROS2
There are three ways to to write a C++ publisher in ROS2, namely: Old-school approach Object-oriented (member-function) approach Local function (lambda) approach Below is an example of each approach to write a C++ node publishing “Hello World”. The code is taken from here: https://github.com/ros2/examples/tree/foxy/rclcpp/topics/minimal_publisher
