Ask Your Question
1

rviz disagrees with gazebo visuals?

asked 2012-11-21 12:34:25 -0600

jamuraa gravatar image

I've been modelling a new robot in URDF, and I tweaked the URDF using the urdf_tutorial package's xacrodisplay.launch to verify the model. I recently started using meshes to get a better visual look, and I have run into an issue where the visuals between the rviz from xacrodisplay and gazebo are different. If I line up the mesh checking by rotations / translations in rviz, and then switch to gazebo, it is all jacked up. See the images below for comparison (this is just after I tried to "fix" it in gazebo). I'm trying to figure out why the representations would be different when working from the same URDF file (available for inspection here).

Rviz

Gazebo

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-10 08:55:19 -0600

dbworth gravatar image

This bug still seems to exist in Fuerte as of Jan 2013.

See these posts:
https://kforge.ros.org/gazebo/trac/ticket/59
http://answers.ros.org/question/32849/visual-and-collision-geometry-misaligned-in-gazebo-10/

To get around this, keep all your visual rotations zero.
If the visual mesh needs to be rotated with respect to the joint reference frame, either modify the mesh to match your link frame (which is the best idea to keep your URDF simple), or add an extra dummy joint+link with the required rotation.

edit flag offensive delete link more

Comments

I don't think the other one is related, because if I try the URDF that he has there, it is as expected. That ticket from Gazebo is enlightening though. I have been working on groovy compiling and installed, which uses Gazebo 1.2, which I'm hoping this problem is solved in.

jamuraa gravatar imagejamuraa ( 2013-01-16 08:42:14 -0600 )edit

Yes, your original question should mention which versions you are using.

dbworth gravatar imagedbworth ( 2013-01-16 23:51:16 -0600 )edit

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: 2012-11-21 12:34:25 -0600

Seen: 244 times

Last updated: Jan 10 '13