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

Revision history [back]

click to hide/show revision 1
initial version

I think I understand your problem now. RViz only displays the robot's view of the world, so you can't really set something directly. I also don't know why you would need that. I can think of some ways to achieve what you want. Bascially you need a transformation going from <some_frame> -> /base_link that equals the gazebo pose.

  • In your map, change the map offset so it fits the position. /map -> /base_footprint should now work with localization.
  • Use a fake_localization with the gazebo position.
  • Publish a custom tf /gazebo_pose -> /base_footprint