Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-27 07:36:09

Test ROS 2 Communication

Test ROS 2 Communication

Open the first terminal:

source /opt/ros/humble/setup.bash
ros2 run demo_nodes_cpp talker

Open the second terminal:

source /opt/ros/humble/setup.bash
ros2 run demo_nodes_cpp listener

If 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.

On this page