diff --git a/bindings/python/crocoddyl/core/solver-base.hpp b/bindings/python/crocoddyl/core/solver-base.hpp index 9c27a93706aa7ac1b6d8917c615b8cc94cf67300..0b4f3239a7df850641ea8d2b14f64f1ced9e9615 100644 --- a/bindings/python/crocoddyl/core/solver-base.hpp +++ b/bindings/python/crocoddyl/core/solver-base.hpp @@ -21,14 +21,14 @@ namespace bp = boost::python; class SolverAbstract_wrap : public SolverAbstract, public bp::wrapper<SolverAbstract> { public: - using SolverAbstract::is_feasible_; using SolverAbstract::cost_; + using SolverAbstract::is_feasible_; using SolverAbstract::iter_; using SolverAbstract::problem_; + using SolverAbstract::steplength_; using SolverAbstract::th_acceptstep_; using SolverAbstract::th_stop_; using SolverAbstract::ureg_; - using SolverAbstract::steplength_; using SolverAbstract::us_; using SolverAbstract::xreg_; using SolverAbstract::xs_; diff --git a/bindings/python/crocoddyl/core/solvers/ddp.hpp b/bindings/python/crocoddyl/core/solvers/ddp.hpp index 8e18ecd5f97bc865a7284554487c21ae4d4c5796..70778bc59f153206b5075aeeaa6cd1c14d15aeeb 100644 --- a/bindings/python/crocoddyl/core/solvers/ddp.hpp +++ b/bindings/python/crocoddyl/core/solvers/ddp.hpp @@ -96,7 +96,9 @@ void exposeSolverDDP() { .add_property("Qx", make_function(&SolverDDP::get_Qx, bp::return_value_policy<bp::copy_const_reference>()), "Qx") .add_property("Qu", make_function(&SolverDDP::get_Qu, bp::return_value_policy<bp::copy_const_reference>()), "Qu") .add_property("K", make_function(&SolverDDP::get_K, bp::return_value_policy<bp::copy_const_reference>()), "K") - .add_property("k", make_function(&SolverDDP::get_k, bp::return_value_policy<bp::copy_const_reference>()), "k"); + .add_property("k", make_function(&SolverDDP::get_k, bp::return_value_policy<bp::copy_const_reference>()), "k") + .add_property("gaps", make_function(&SolverDDP::get_gaps, bp::return_value_policy<bp::copy_const_reference>()), + "gaps"); } } // namespace python