for Robot Artificial Inteligence

How to Publish & Subscribe to a ROS2 topic

|

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