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

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
0

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

Question Tools

1 follower

Stats

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

Seen: 170 times

Last updated: Mar 15 '17