-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enable implicit conversion and change KinDynComputations holder in the iDynTree bindings #1037
Conversation
Does: vec = iDynTree.VectorDynSize(7)
kindyn.setJointPos(vec) still work? |
yes, just tested |
Per Beyonce's Rule, you may add a test in https://github.com/robotology/idyntree/tree/master/bindings/python/tests if you want to make sure that this continue to work in the past.
fyi @gabrielenava |
How did you find out of the |
Things to do (not that you need to do it yourself @GiulioRomualdi, I just marking them down):
|
Based on #688, probably we can put the shared_ptr stuff in |
MATLAB binding generation still fails (see https://github.com/robotology/idyntree/actions/runs/3687003195/jobs/6240008478):
Based on https://github.com/search?q=repo%3Aswig%2Fswig%20SWIG_CheckImplicit&type=code, probably also implicitconv is also Python-only . |
e74239d
to
9be0778
Compare
Let's see if 9be0778 fixes the problem |
Testing a similar commit in https://github.com/robotology/idyntree/actions/runs/3687142976 . |
Actually we discovered that that option is not supported in MATLAB. |
Now the generation work: https://github.com/robotology/idyntree/actions/runs/3687142976/jobs/6240337040 (the CI fails as nothing has changed, so actually we do not need to run generation). |
As per the title, this PR changes the holder for KinDynComputations and enables the implicit conversion. The former allows the interoperability between iDynTree swig bindings and the blf pybind11 bindings. The latter simplifies calling methods that take as inputs vectors and/or matrices. For instance, now it is possible to call
as you can notice it is not necessary to explicitly create an
iDynTree::VectorDynSize
This latter modification should work also in Matlab and in theory, can simplify the implementation of the
idyntree high level wrappers