Ask Your Question
1

How to order (in front of, behind of) markers in RVIZ?

asked 2017-01-30 09:18:32 -0500

dieg0- gravatar image

updated 2017-02-02 08:44:46 -0500

Is it possible to tell RVIZ which markers (perhaps via namespaces) should appear on top?

I am displaying a map in the form of a graph, where the nodes are markers of the type POINTS and the edges are markers of the type LINE_LIST. I am also loading an image to RVIZ, and I would like to show the POINTS and LINE_LISTs on top of the image, however I haven’t found a way of doing this.

After some testing, it appears to me that using the 'points' member of visualization_msgs/Marker, which is used by markers of the types LINE_STRIP, LINE_LIST and POINTS, somehow prevents the markers from showing in front of the rest. If for example, I use CYLINDERs instead of POINTS, then they appear in front of the image. How could LINE_LISTs or Points be sent to the front? Or in general, how could one choose the order in which namespaces are displayed?

Thanks in Advance!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-05-29 13:57:55 -0500

One can achieve this by setting the marker.pose.position.z attribute.

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

2 followers

Stats

Asked: 2017-01-30 09:18:32 -0500

Seen: 301 times

Last updated: May 29