ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You're not setting the id
field (see docs/api/visualization_msgs/Marker), so it will default to 0
and makes both your markers use the same id. RViz receives a message containing a marker with the same id, and interprets it as an 'update' to the same marker it saw before. Result: you see only a single marker.