Replies: 1 comment 1 reply
-
Hi @sholybest, The C++ implementation would certainly improve a bit the computation time, but not substantially. The solver, dynamics, costs, etc are already written in C++. You are indeed using C++ code for most of the job, except formulating the problem (not resolving it). You must consider a few aspects to improve computation:
Additionally, we're working on a much more efficient solver. However, you'll need to be patient as this won't be released now. Best, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you to the development team for providing this wonderful library and to everyone reading this message.
I'm going to use the Box-FDDP solver for real-time quadruped MPC simulation.
My desktop CPU is Intel i5-6600k.
When I run the example code "quadrupedal_walking_ubound.py", solver.solve() takes about 0.2 seconds. Although my hardware is not a good one, this is too slow for real-time implementation. So I would like to make a C++ version of the same problem.
But as I know, crocoddyl is compiled from C++ and the python code calls C++ functions when solving the problem.
I think the only additional overload comes from calling the C++ function. If the function is a heavy one, which does many calcuations, then the overload from calling might not have a big effect..
Is there any dramatic change in performance when the solver is transferred into C++?
And is there any reference materials for converting the code to C++?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions