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

[Question] When to use hardware_interface::HW_IF_EFFORT and when to use hardware_interface::HW_IF_TORQUE? #1811

Open
firesurfer opened this issue Oct 25, 2024 · 2 comments

Comments

@firesurfer
Copy link
Contributor

I have seen in all controllers / hardware interfaces that support some kind of torque control only the hardware_interface::HW_IF_EFFORT so far and thought - okey that is what we are using for torques. I now stumbled upon hardware_interface::HW_IF_TORQUE.

I am wondering now: What is the right type to use for an actuator that supports reading/commanding torques?
Is there some kind of rule/standard when to use what ?

@bmagyar
Copy link
Member

bmagyar commented Oct 25, 2024 via email

@saikishor
Copy link
Member

saikishor commented Oct 25, 2024

Yes, it is to have meaningful interfaces in your components and controllers. We have an interface remapping feature in a PR: #1667 that can help you reuse the existing controllers with new interfaces by just remapping the interface. This PR is still under review.

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

No branches or pull requests

3 participants