ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This problem is solved by doing exactly what it told you: "Please create a subscriber to the marker"

When you do rosrun using_markers basic_shapes, this node publishes to topic /visualization_markers. You can verify that markers are being published by running rostopic echo /visualisation_markers in another terminal.

To visualise the marker in rviz, you have to do few additional things in rviz:

  1. Add display of Marker (this subscribes to the marker topic)
  2. Change the Fixed frame to my_frame (this is specified in line 47 of basic_shapes node)

gif illustrating above points