Ask Your Question

How to change frequency of amcl_pose?

asked 2019-11-07 03:58:46 -0500

parzival gravatar image

I'd like to use the robot's initial pose and current pose in the decision making and path planning of the robot. However, I noticed that the amcl_pose is being updated at a very low frequency (just 0.03).

Is there a way this frequency can be changed? Or is there any better way to get the current pose of the robot?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-13 04:29:50 -0500

Thazz gravatar image

You can not set rate/frequency of AMCL in Hz directly.

AMCL will update amcl_pose topic when position/orientation of robot changes for some value. So, if robot is not moving it will not publish any new messages to topic.

You can control how much the robot must move to publish new pose message with parameters update_min_d and update_min_a. You can read more about them on AMCL wiki page.

edit flag offensive delete link more


Let me add that the "better way to get the current pose" is to use TF to transform the robot's frame into the frame you need, such as is done here in costmap

Carl D gravatar image Carl D  ( 2019-11-13 12:46:12 -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: 2019-11-07 03:58:46 -0500

Seen: 465 times

Last updated: Nov 13 '19