Ask Your Question

How to calculate localization error for a robot moving in a custom map using amcl and navigation stack?

asked 2017-11-13 16:36:14 -0500

nemesis gravatar image

I have a robot simulated in gazebo and rviz along with a map. I can use amcl to have it localized and move to a specific spot in the map.

But, how can I guage how accurate the localization is over the course of the robot's navigations? Is there a way to calculate that?

My robot has only camera and a laser rangefinder as sensors and nothing else. And when it reaches the goal it seems to be the exact position.

How do I figure out how well or poorly the localization did?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-14 09:19:22 -0500

If you're using gazebo, you can subscribe to the /gazebo/model_states topic and compare it to the output of amcl. You can use rqt_plot to visualize or write your own node to analyze the data.

One thing you will need to take into account is that the gazebo model position on the world may not match the position on the ROS system, since it depends how the model has been initialized, so you may have some x, y or theta offsets.

edit flag offensive delete link more


Thank you. I will try to implement this and check. Quick question - I haven't added an IMU to my simulated robot. I am wondering if there would still be any kind of localization error without an IMU? Since the robot seems to stop at the exact goal position always. Or is the latter not important?

nemesis gravatar image nemesis  ( 2017-11-20 17:09:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-11-13 16:36:14 -0500

Seen: 532 times

Last updated: Nov 14 '17