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

Visualize estimated and true turtlebot position in rviz

asked 2012-09-12 01:29:24 -0500

Poseidonius gravatar image

updated 2012-09-12 02:16:54 -0500

Hi,

I want to illustrate the displacement of the correct and estimated position in rviz. Hence, I started the turtlebot simulation runing in Gazebo with a small office environement. A map of the enviroment is avialble on the map server.

Now I am not able to visualize the correct position in the map. Does a topic exist that provides the correct robot position in a Gazebo model?

Best wishes

Poseidonius

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-12 04:07:42 -0500

Lorenz gravatar image

For getting the estimated pose you will have to run amcl that uses the simulated laser and the map to localize itself. Unfortunately, for the turtlebot there is no ground truth pose topic as for the pr2. I guess you will have to subscribe to gazebo's model_state topic and translate the pose of the turtlebot to a PoseStamped or Odometry message. In python such a node should be just a few lines of code though.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-09-12 01:29:24 -0500

Seen: 707 times

Last updated: Sep 12 '12