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

Revision history [back]

The rviz Global Options | Fixed Frame is set to base_link or the equivalent for your robot? If you set it to map and then don't see the robot properly then there needs to be something that publishes a transform between map and base_link. You can 'cheat' and get the position from /gazebo/model_states and then publish it as a transform. The more realistic thing to do is implement odometry and have that publish the transform from there, though it will deviate from gazebo absolute position after a while (just as it would in real life).

The rviz Global Options | Fixed Frame is set to base_link or the equivalent for your robot? If you set it to map and then don't see the robot properly then there needs to be something that publishes a transform between map and base_link.

You can 'cheat' and get the position from /gazebo/model_states and then publish it as a transform. The more realistic thing to do is implement odometry and have that publish the transform from there, though it will deviate from gazebo absolute position after a while (just as it would in real life).