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

gazebo and RViz are not synchronized?

asked 2011-05-28 10:25:20 -0500

roboren gravatar image

All,

I'm using pr2_teleop to move pr2 in gazebo simulator. The robot moves fine in gazabo, but the movement does not show up in RViz. Are these two not synchronized? Or these two serve different purposes?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-05-28 15:20:03 -0500

JonW gravatar image

Do you have a transform from the world or map frame to your robot? In the tutorial I looked at it appears that robot localisation is performed by the fake localisation package. When I tried it out it looks like the localisation package is not generating transforms from the world to the robot frame.

edit flag offensive delete link more

Comments

@JonW: How do I check if I have a transform from the world frame to my robot? (Sorry, I'm new to ROS) Which tutorial you're referring to? I'm looking at this one: http://www.ros.org/wiki/pr2_simulator/Tutorials/BasicPR2Controls. Fake localization pkg is used in the navigation demo, not in teleop.
roboren gravatar image roboren  ( 2011-05-29 07:10:02 -0500 )edit
After changing the 'Fixed Frame' to /odom_combined, they are sync.
roboren gravatar image roboren  ( 2011-05-29 07:15:01 -0500 )edit
sounds like you have fixed it - but if you want to examine your transform tree, just add the "TF" display to rviz.
JonW gravatar image JonW  ( 2011-05-29 12:03:46 -0500 )edit

Question Tools

Stats

Asked: 2011-05-28 10:25:20 -0500

Seen: 1,317 times

Last updated: May 28 '11