Ask Your Question
0

clearing all markers / view in RVIZ remotely

asked 2013-01-28 22:53:00 -0600

Markus Achtelik gravatar image

Hi,

I'm drawing a lot of markers in rviz to visualize the outcome of an algorithm. As I'm often interrupting/killing it, it's infeasible to keep track of what has been drawn in order to delete it later. Is there any possibility to send something like "wipe" or "clear" to rviz to clear all markers? Currently, I'm sending a message with many markers with action=DELETE but that seems a bit brute force. Is there any better option?

Thanks a lot!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-29 04:25:29 -0600

joq gravatar image

If you are setting markers fairly frequently, perhaps you could set an appropriate lifetime in the Marker message.

Then, rviz would erase them after you kill your node.

edit flag offensive delete link more

Comments

Thanks, that could be a workaround. I Just have to think about something when I get a coffee and the algorithm finished in the meantime... ;) It seems there is no other solution (yet)?

Markus Achtelik gravatar imageMarkus Achtelik ( 2013-01-30 04:26:40 -0600 )edit
1

The usual solution is to re-use the marker.ns and marker.id values of the obsolete markers, which automatically deletes them as a side-effect.

joq gravatar imagejoq ( 2013-01-30 04:31:40 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-01-28 22:53:00 -0600

Seen: 4,853 times

Last updated: Jan 29 '13