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

Map from configuration to tangent coordinates #1758

Closed
stephane-caron opened this issue Sep 30, 2022 · 1 comment
Closed

Map from configuration to tangent coordinates #1758

stephane-caron opened this issue Sep 30, 2022 · 1 comment

Comments

@stephane-caron
Copy link
Collaborator

stephane-caron commented Sep 30, 2022

For bounded joints (translations or bounded revolute joints), there is a one-to-one mapping between configuration and tangent coordinates. It would be convenient if Pinocchio computed it, as it would allow things like:

for i in range(model.nq):
    if is_interesting(model, i):
        velocity[model.configuration_to_tangent(i)] = ...

For an unbounded rotational joint (revolute, spherical, ...), this map could be either undefined, or map the joint's configuration coordinates to the joint's first tangent coordinate.

Edit: there is a more concrete example in #1756 (comment).

@jcarpent
Copy link
Contributor

This is not really ideal, as a configuration vector has not necessarily a 1-to-1 mapping between config coordinate and tangent coordinate. I think you are mixing stuff here.
The way Pinocchio operates on Manifold seems appropriate as many other software already use it.
Thinking twice, we should not try to hack it.
It would be better to have a clear discussion on the way you proceed, and to think how the current API may work on your problem.

@jcarpent jcarpent closed this as completed Oct 4, 2022
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