How to Publish & Subscribe to a ROS2 topic
26 Mar 2021 | ROS2
COMMANDS TO USE:
- ros2 topic list
- ros2 msg list
- ros2 msg show std_msgs/String
- ros2 topic pub /chatter std_msgs/String “data: Hello ROS Developers”
- ros2 topic echo /chatter
it is quite similar to ROS1
- ros2 topic pub
COMMANDS TO USE:
- ros2 topic list
- ros2 msg list
- ros2 msg show std_msgs/String
- ros2 topic pub /chatter std_msgs/String “data: Hello ROS Developers”
- ros2 topic echo /chatter
it is quite similar to ROS1
- ros2 topic pub
Comments