Ask Your Question
2

How to add a name to a Marker

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

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 947 times

Last updated: Aug 14 '13