resetting pose in odom
Hi,
I am running a simulation with jackal. I am performing some tests where I ask the jackal to run a certain distance, stop and return to (0,0). When I try to set the pose of the jackal in the odometry frame to (0,0), using /set_pose, the pose does not get reset. For example, after the robot moves for a distance of 10m, the position is (10.503, -0.0001). I want to have the robot's odometry position to be (0,0) and starting counting is position again from (0,0).
In other words, I want to be able to erase the sensor data from the odometry source in ROS for each run, so that for every run it can start as it does at startup. Is that possible through some parameters?
Please help. Regards, rsmitha.
Suggestion: You could set the target pose in robots base frame instead odom, that is always relative to current position.