Ask Your Question

sensor position amcl

asked 2017-03-15 09:25:35 -0500

link1609 gravatar image

Hey everyone,

how i can tell AMCL the position of my laserscanner? the sensor is not in the centre of the robot. so everytime the robot turns, the amcl loses the orientation.

Thank you very much! Link

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-15 10:32:49 -0500

Steven_Daniluk gravatar image

That information should be present in your TF tree, so you should not need to explicitly tell amcl what that transform is.

The LaserScan messages that amcl subscribes to should have a frame id in the header of each message. amcl will then transform the data in the scan message from the message frame id, to whatever frame is specified in the amcl parameter base_frame_id. The transform predicted by amcl (i.e. your pose in the global frame) will hence be relative to the base_frame_id.

So, make sure you are publishing transforms from your scanner frame id, to the base frame id, and that those transforms represent the appropriate offset of the physical scanner from the base frame (where the base frame origin should be the centre of rotation of your robot).

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: 2017-03-15 09:25:35 -0500

Seen: 119 times

Last updated: Mar 15 '17