ros_controllers icon indicating copy to clipboard operation
ros_controllers copied to clipboard

Ability to reset odom in diff_drive_controller

Open aswinthomas opened this issue 6 years ago • 3 comments

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?

aswinthomas avatar Nov 20 '18 13:11 aswinthomas

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 .

bmagyar avatar Nov 20 '18 15:11 bmagyar

Any updates on this ?

fayyazpocker avatar Nov 19 '20 10:11 fayyazpocker

This PR addresses this issue.

alcantara09 avatar May 12 '21 13:05 alcantara09