Ask Your Question
1

Odom frame disappears in rviz

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

2ROS0 gravatar image

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

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 imagesai ( 2014-07-14 21:48:11 -0500 )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 image2ROS0 ( 2014-07-15 12:16:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

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

Tom Moore gravatar image

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

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 image2ROS0 ( 2014-07-16 09:46:45 -0500 )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 imageTom Moore ( 2014-07-16 10:12:36 -0500 )edit

That's great, thanks!

2ROS0 gravatar image2ROS0 ( 2014-07-16 10:32:30 -0500 )edit
0

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

"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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,020 times

Last updated: Sep 22 '15