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

AMCL false localization adjustments

asked 2014-02-06 03:25:02 -0500

Hansg91 gravatar image

Hey everyone,

I am testing out some navigation software I developed and I am using AMCL for the localization and wheel odometry for its input.

While I am testing I didn't want AMCL to adjust the robots position in the map, so I am publishing empty laserscans. The environment is just a large fabricated square map with no obstacles. From what I can tell, AMCL has no reason to adjust the robots position then, yet still it does. It will frequently jump around a little, from one spot over to the other.

As I mentioned, there are no objects or walls nearby and the laserscans are empty, what could then be causing this jump?

Best regards, Hans

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-06 19:54:08 -0500

fergs gravatar image

Even with empty laserscans, AMCL is still receiving odometry data from your robot, and therefore the particle filter will continue to update. The "jumps" are probably just that the particle cloud is spreading out. You can visualize the actual particle poses with RVIZ using the particlecloud topic, which should show exactly what is going on.

edit flag offensive delete link more

Comments

Thank you for your reply, it is indeed the particle filter spreading out and causing these jumps. I limited the particles to 1 and it barely occurs now. What would be the correct way to limit the localization to just use odometry? I didn't want to include lasescans yet.

Hansg91 gravatar image Hansg91  ( 2014-02-07 07:05:59 -0500 )edit

I think what you probably want to use is http://wiki.ros.org/fake_localization this has the same API as AMCL, it can be given an initial pose via RVIZ/parameters, but it just forwards the odometry.

fergs gravatar image fergs  ( 2014-02-07 09:55:55 -0500 )edit

Great! Didn't know that exists, sounds exactly what I am looking for :)

Hansg91 gravatar image Hansg91  ( 2014-02-07 21:07:35 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-02-06 03:25:02 -0500

Seen: 1,188 times

Last updated: Feb 06 '14