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

how to automatically restart the AMCL with the python code

asked 2022-11-28 07:30:27 -0500

akash12124234 gravatar image

I am trying to give a 2d_pose for the robot through initalpose topic. And I can see the robot is getting placed right on the position.

But it's not initializing the AMCL particles as it do on rviz with the green marker. I am trying various ways to give 2d pose for robot through python script and want to initialize AMCL on the pose.(Because the application needs giving a 2d pose for the robot from different locations)

Can someone help me with that.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-11-28 12:10:03 -0500

If you look at the rviz code, all its doing is calling the initialpose topic. Though it sets a particular set of covariances, perhaps that would be what you're looking for.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-11-28 07:30:27 -0500

Seen: 178 times

Last updated: Nov 28 '22