I often publish a Pose message to quickly and easily view things in rviz. And I would like a way to programatically (through a message) tell rviz to delete the pose from view.
The scenario is that I have a robot which grabs objects on a table. And I want to display the pose of the object in rviz. I do several runs with different objects and positions. So between runs I would like to clear the previous runs from view. This is easy to do with rviz markers, but not with regular Pose messages.
I have tried publishing with a 0 time stamp and empty frame_id with no luck in deleting the frame. I have observed tf frames becoming gray and disappearing, how is that done?
Can a new marker type be added to display axes?
You could publish an arrow marker, instead.
As suggested by the other answers, there is no way to do it exactly as you requested.
However, if you simply re-publish the pose with giant values, like xyz = 99999,99999,99999, it will effectively become invisible.
answered Apr 06 '11
This post is a wiki. Anyone with karma >750 is welcome to improve it.
I have observed tf frames becoming gray and disappearing, how is that done?
That's controlled by setting the "Frame Timeout" property for the TF Display inside RViz. I'm afraid that won't help you solve your problem.
Asked: Apr 05 '11
Seen: 86 times
Last updated: Nov 16 '11
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.