Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motor Freely Moves when Zero Velocity is Sent #7

Open
David9696 opened this issue Jan 26, 2022 · 1 comment
Open

Motor Freely Moves when Zero Velocity is Sent #7

David9696 opened this issue Jan 26, 2022 · 1 comment

Comments

@David9696
Copy link

Hi,

Thanks for sharing this great project.

I tried to implement the sharing package with my own robot. It can be run without issue.

However, when I issued zero /joint0_velocity_controller/commands, the wheel would stop but the it is freely to rotate if I rotate it manually. Is this behavior expected? Could I make the wheel not moving or hold when zero /joint0_velocity_controller/commands is sent? Otherwise the robot would drift for a distance before it really stops.

Hope you could enlighten me.

Thanks.

@borongyuan
Copy link
Member

Hi,

Do you meet the same problem when using odrivetool? This is probably not a problem with the ROS driver. I can also rotate some motors manually when speed command is zero. But not totally free. If you try to turn it faster you should feel more resistance. You may need to tune the controller for more stiffness. Increase vel_integrator_gain should work. However this does not lock the position. True locking can only be achieved by position control.

We will support adding control parameters to the config file. So the ROS driver can update the params at runtime.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants