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

issue when calling exposeQuaternion() in several packages #83

Closed
pFernbach opened this issue Sep 3, 2019 · 2 comments
Closed

issue when calling exposeQuaternion() in several packages #83

pFernbach opened this issue Sep 3, 2019 · 2 comments

Comments

@pFernbach
Copy link

Not sure if it's a real issue or if I don't use it correctly, but I have two packages (namely pinocchio and curves) which call eigenpy::exposeQuaternion() in their c++ code for python API.
The issue is that the python Quaternion class only exist in the first package that I import, eg :

import pinocchio
import curves
pinocchio.Quaternion # ok
curves.Quaternion # do not exist
import curves
import pinocchio
pinocchio.Quaternion # do not exist
curves.Quaternion # OK

Is there a way to correctly manage this or should I always keep care of the import order ? It could lead to hard to catch error for future users of both packages.

@jcarpent
Copy link
Contributor

jcarpent commented Sep 3, 2019

Please see stack-of-tasks/pinocchio#817 for helps. It has solved the same issue than the one you had.
You then need to update pinocchio to get the latest release and the fix.

@pFernbach
Copy link
Author

Thanks, I'll make the same changes in curves then.

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