Test ROS 2 Communication
Test ROS 2 Communication
Open the first terminal:
source /opt/ros/humble/setup.bash
ros2 run demo_nodes_cpp talkerOpen the second terminal:
source /opt/ros/humble/setup.bash
ros2 run demo_nodes_cpp listenerIf the listener continuously prints messages like the following, ROS 2 communication is working correctly:
[listener]: I heard: [Hello World: ...]Press Ctrl+C to stop the talker and listener.

