ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is there a way to invalidate a Pose in rviz?

asked 2011-04-05 04:54:20 -0500

baxelrod gravatar image

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?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-04-05 16:14:31 -0500

joq gravatar image

You could publish an arrow marker, instead.

edit flag offensive delete link more


Or a triplet of arrows as your axis.
tfoote gravatar image tfoote  ( 2011-04-06 17:35:13 -0500 )edit

answered 2011-11-16 03:25:49 -0500

hersh gravatar image

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.

edit flag offensive delete link more

answered 2011-04-05 21:48:09 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 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.

edit flag offensive delete link more

Question Tools


Asked: 2011-04-05 04:54:20 -0500

Seen: 527 times

Last updated: Nov 16 '11