Closed edantec closed 4 years ago
Because we don't need to bind any shared pointer for any solver. The code that you mentioned (for the DDP solver) is indeed not needed.
Are you facing an issue with this?
I have a C++ function which returns a boost::shared_ptr<crocoddyl::SolverFDDP>
object, and I have Python bindings for this function. When trying to use this function in Python I encounter the error No to_python (by-value) converter found for C++ type: boost::shared_ptr<crocoddyl::SolverFDDP>
. I do not have this error when I change the type from SolverFDDP to SolverDDP in C++.
Are you changing the #include to fddp as well?
On September 27, 2020 1:30:13 PM GMT+02:00, edantec notifications@github.com wrote:
I have a C++ function which returns a
boost::shared_ptr<crocoddyl::SolverFDDP>
object, and I have Python bindings for this function. When trying to use this function in Python I encounter the errorNo to_python (by-value) converter found for C++ type: boost::shared_ptr<crocoddyl::SolverFDDP>
. I do not have this error when I change the type from SolverFDDP to SolverDDP in C++.-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/loco-3d/crocoddyl/issues/859#issuecomment-699622944
Yes, I included #include <crocoddyl/core/solvers/fddp.hpp>
but still the same error
Yes, I included
#include <crocoddyl/core/solvers/fddp.hpp>
but still the same error
I don't understand this comment. You get this message when you haven't register a converter. Check out the latest devel branch, it should be solved.
@edantec could you rebase on top of the current devel? #861 should have solved your issue.
solved by #861
When prototyping in Python, I noticed there is no python to C++ binding for a shared pointer of SolverFDDP object. There is one for
boost::shared_ptr<crocoddyl::SolverDDP>
though.