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

Add support for velocity/effort mode via ROS bridge #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zal-jlange
Copy link

This PR allows users to use a position, velocity, or effort mode via ROS bridge with kacanopen.

The available modes are: "profile_position_mode", "profile_velocity_mode", and "effort_mode"
Thus, instead of

device.set_entry("modes_of_operation", device.get_constant("profile_position_mode"));

you can also write

device.set_entry("modes_of_operation", device.get_constant("profile_velocity_mode"));

or

device.set_entry("modes_of_operation", device.get_constant("torque_mode"));

While this PR does not include mode changes on-the-fly, users could write their ROS bridge to stop the motor and re-initialize it in a different mode.

If you have any more questions or need any help, feel free to contact me :)

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

Successfully merging this pull request may close these issues.

1 participant