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

How to add a name to a Marker

asked 2013-08-14 04:12:34 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have searched extensively on all the tutorials but I cannot find out how to add a name to my Marker. I have a marker array and want to display different names on every marker in rviz. Does anyone have any idea how this can be done.

edit retag flag offensive close merge delete

Comments

I think I have to use interactive markers in order to add names to all markers. Is there any other way to do it because I dont want to make an interactive marker server and interactive marker file in order to just add names.

Cristian gravatar image Cristian  ( 2013-08-14 04:46:37 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-08-14 05:08:40 -0600

timster gravatar image

For each of your markers, you could publish another marker with type TEXT_VIEW_FACING at the same location as your original marker. As far as I know the TEXT_VIEW_FACING type displays the string in the marker.text field at the location specified in marker.pose.position.

Best Tim

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-14 04:12:34 -0600

Seen: 1,297 times

Last updated: Aug 14 '13