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

Odom frame disappears in rviz

asked 2014-07-14 17:12:49 -0600

2ROS0 gravatar image

updated 2014-07-16 09:47:53 -0600

Why does the /odom frame disappear in rviz? This happens to me when I set the fixed frame to be /odom.

Update: based on request for tf tree My tf tree was odom -> base_footprint -> base_link -> all_frames_on_robot

edit retag flag offensive close merge delete

Comments

1

I think, it means that there is no TF from odom frame to others. You can check once by 'rosrun tf view_frames' and see if this is true. Later you can create a valid TF tree and then check in RVIZ.

sai gravatar image sai  ( 2014-07-14 21:48:11 -0600 )edit

There is a tf that I have checked using view_frames. Also, the /odom frame shows when some other frame is selected as fixed frame. It's only when I select the /odom frame as fixed frame that it is seen for some time and then disappears.

2ROS0 gravatar image 2ROS0  ( 2014-07-15 12:16:41 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2014-07-16 09:31:10 -0600

Tom Moore gravatar image

updated 2014-07-16 09:31:29 -0600

Do you mean that it starts out as visible, and then fades away? That happens to me too. I think it happens if a frame doesn't have a parent frame. Do you have any parents for odom? Perhaps you can edit the original question and add the tf tree?

edit flag offensive delete link more

Comments

1

Yes, that's exactly what happens. That could be it, I don't have any parent for odom. I just don't see why that would happen, it's always useful to see the frame while debugging.

2ROS0 gravatar image 2ROS0  ( 2014-07-16 09:46:45 -0600 )edit

If you want, you can define a static transform using static_transform_publisher that gives a parent to odom. Just make the transform all zeros, and then make the new parent frame your fixed frame in rviz. It will disappear, but odom will remain. There may be a better way; I don't know offhand.

Tom Moore gravatar image Tom Moore  ( 2014-07-16 10:12:36 -0600 )edit

That's great, thanks!

2ROS0 gravatar image 2ROS0  ( 2014-07-16 10:32:30 -0600 )edit
1

answered 2019-11-19 21:20:23 -0600

Rufus gravatar image

Another possible reason for transforms to start out visible and then lose color and fade away is if your transforms have incorrect / old header.stamp fields.

edit flag offensive delete link more
0

answered 2015-09-22 06:30:41 -0600

"You can display the world frame by explicitly adding an "Axes" display type and specifying the world frame"


taken from:

  • ahendrix

http://answers.ros.org/question/16757...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-14 17:12:49 -0600

Seen: 2,039 times

Last updated: Nov 19 '19