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

Support for prismatic joints #181

Open
traversaro opened this issue Nov 7, 2019 · 1 comment
Open

Support for prismatic joints #181

traversaro opened this issue Nov 7, 2019 · 1 comment

Comments

@traversaro
Copy link
Member

traversaro commented Nov 7, 2019

Summary

Both YARP motor control interfaces and iDynTree support models that contain prismatic joints.
All the blocks that wrap iDynTree in the wb-toolbox should already work fine with prismatic joints. However, all the blocks that wrap YARP motor control interface hardcode the assumption that the joints are revolute. See for example what is happening when you:

In all these cases and the degree/radians conversion are always applied.
In the case of prismatic joints, YARP motor control interface already use meters-based units (meter, meter/s, meter/s^2), so no conversion is actually necessary, and so no conversion should be done.

Motivation

It would be nice to be able to use robot model that contain prismatic joints.

Additional context

WB-Toolbox block should call the yarp::dev::IAxisInfo::getJointType method to know the type of the joint, and apply the degrees/radians conversions only if the joint type is revolute.

cc @CarlottaSartore @nunoguedelha @fjandrad

@diegoferigo
Copy link
Member

The changes to get this done are minimal, and it is a valuable addition 👍 Probably also the documentation in the masks of the blocks needs to be updated accordingly.

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

2 participants