Simulate kidnapped robot problem using amcl
Hi I am currently trying to similate the kidnapped robot problem in ROS using turtlebot3 and the ros amcl node. However whenever I move the robot using Gazebo, the particles redestribute according to some kind of distribution that I have not been able to find.
- I let the robot spawn in the world
- Drive it around to have the particles converge
- Use gazebo to pick up the robot and place it in a different room. This message is published as gazebo/set_model_state
- When this happends the particles are redistributed which I would like for them not to be. I want to visualise the problem of the kidnapped robot problem of having all particles converged in one location and moving it to a location where there are none.
- By the particles redistributing this is not possible for me as of now.
Any help is appriacted on how to resolve this. I assume it has something to do with the adaptive sampling of amcl so that as the weight of the particles decreases it redistributes more. However I have tried to remove that to the best of my ability and have had no success. So if that is the problem I am more than happy to recieve tips on what to comment out more preciesly in amcl.
Duplicate of #378041. Please close one of the two questions.