ros_controllers
ros_controllers copied to clipboard
Ability to reset odom in diff_drive_controller
While doing test runs in a real robot and in simulation, I would like to reset the environment to an initial state, once of which involves resetting odometry.
I tried stop and reload the velocity_controller in the controller_manager, but the object is still active in either in gazebo_ros_control (for sim) and node that implements the controller_manager interface (on real robot). Hence the odom does not reset.
Would it be possible to provide a service in diff_drive_controller so that states such as x_ and y_ are reset?
I think this would be useful. Thoughts?
@artivis @efernandez
On Tue, 20 Nov 2018, 13:09 aswinthomas <[email protected] wrote:
While doing test runs in a real robot and in simulation, I would like to reset the environment to an initial state, once of which involves resetting odometry.
I tried stop and reload of the velocity_controller, but the object is still active in either in gazebo (for sim) and node that implements the controller_manager interface (on real robot). Hence the odom does not reset.
Would it be possible to provide a service in diff_drive_controller so that states such as x_ and y_ are reset?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ros-controls/ros_controllers/issues/382, or mute the thread https://github.com/notifications/unsubscribe-auth/ADXH4f_0haypbxsL-usdLkcOF_wETwG5ks5uw_7_gaJpZM4YrEZg .
Any updates on this ?
This PR addresses this issue.