Groundplane in Gazebo vs. Rviz

asked 2017-01-18 18:03:30 -0500

I'm having some problems with how Gazebo and Rviz treat the simulated world our robot is running in. In Gazebo, our robot appears on the groundplane and moves and navigates successfully between goals either by teleop or program. It will programmatically recognize obstacles with the laser_plugin and some basic obstacle avoidance code I've written. I can even use gmapping to create a map of the simulated space. When I bring up that map in Rviz though, the robot is below the map and won't successfully proceed to an arbitrary goal picked out in Rviz w/ the "Set 2D Nav Goal" function.

When I load in another map(and world), say, the Willow Garage willow.yaml map, the robot shows up on the groundplane both in Rviz and in Gazebo.

The point where my map and or simulated robot intersect is at the Z-height of base_link. I know this should be telling me something, but I'm stuck as to what. I've attached pictures below of the situation. The robot model is a Gazebo-ized URDF, not SDF.

Gazebo simulation image description

edit retag flag offensive close merge delete