-
Notifications
You must be signed in to change notification settings - Fork 417
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
Test failure on crocoddyl on macos: TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pinocchio::ModelTpl<double, 0, pinocchio::JointCollectionDefaultTpl>>
#2563
Comments
I don't understand this fix. boost::python::register_ptr_to_python<boost::shared_ptr<T>>() |
I agree with @jcarpent. For me, the solution should be registering the pointer, and should be done in Pinocchio to avoid doing this in each project. |
For std::shared_ptr, yes. For boost::shared_ptr, I would say that is legacy and should be avoided. |
I also agree :) This issue is documenting a regression, not proposing a fix that would revert a good commit. I think crocoddyl was missing something, but crocoddyl was working fine until v3.3.1. When pinocchio upgrade to v3.3.1 broke crocoddyl, this unveil that the pinocchio upgrade was in fact a breaking change, even if that was not expected. We'll fix that properly in crocoddyl, and close this issue, but if anybody else has a similar problem, they will easily find this as documentation: a hotfix is to revert that commit, and the proper fix is to expose correctly the shared pointers. edit: hum, yes, for std pointers, it would be even better to fix this in pinocchio instead of crocoddyl. |
Solved via #2566 |
Hi,
crocoddyl v2.1.0 was building fine on macos with pinocchio v3.3.0, but some tests are failing with pinocchio v3.3.1:
with eg.
Reverting 2e80bdc fixes that issue.
Ref. #2469 #2462
The text was updated successfully, but these errors were encountered: