Ask Your Question

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


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


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

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


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

Seen: 557 times

Last updated: Sep 12 '12