0
$\begingroup$

Rosanswers logo

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.


Originally posted by Cristian on ROS Answers with karma: 1 on 2013-08-14

Post score: 2


Original comments

Comment by Cristian on 2013-08-14:
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.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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


Originally posted by timster with karma: 396 on 2013-08-14

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.