Fusion of Engineering, Control, Coding, Machine Learning, and Science

ROS2 Jazzy Tutorials from Scratch: Write First C++ Program in ROS2 Jazzy

In this tutorial, we explain how to write a first ROS2 Jazzy program in C++. We explain how to implement subscriber and publisher nodes in C++ from scratch. In particular, we explain

The figure given below illustrates the ROS2 communication structure that will be implemented in this tutorial. We implement two nodes: publisher and subscriber nodes. The publisher node publishes two messages over two topics. The first message is of a string data type. The second message is of a float data type. These two messages are sent over two different topics. On the other side, we implement a subscriber node. The subscriber node subscribes to these two communication topics, receives the messages and prints them in a terminal. This is a proof of principle for more complex and realistic ROS2 communication structures and graphs.

The YouTube tutorial is given below.

Exit mobile version