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

How to change frequency of amcl_pose?

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

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
1

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

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

Comments

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 https://github.com/ros-planning/navig...

Carl D gravatar image Carl D  ( 2019-11-13 12:46:12 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-11-07 03:58:46 -0600

Seen: 819 times

Last updated: Nov 13 '19