From bf5d39158d2f917cbc5fac5154cd37290eaa116d Mon Sep 17 00:00:00 2001 From: Maximilien Naveau <maximilien.naveau@tuebingen.mpg.de> Date: Thu, 26 Sep 2019 18:05:22 +0200 Subject: [PATCH] [code format] --- .../python/crocoddyl/core/numdiff/action.hpp | 9 ++++----- include/crocoddyl/core/numdiff/action.hpp | 20 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/bindings/python/crocoddyl/core/numdiff/action.hpp b/bindings/python/crocoddyl/core/numdiff/action.hpp index 9e0c6edf..9cbdc478 100644 --- a/bindings/python/crocoddyl/core/numdiff/action.hpp +++ b/bindings/python/crocoddyl/core/numdiff/action.hpp @@ -19,11 +19,10 @@ namespace bp = boost::python; void exposeActionNumDiff() { bp::class_<ActionModelNumDiff, bp::bases<ActionModelAbstract> >( "ActionModelNumDiff", "Abstract class for computing calcDiff by using numerical differentiation.\n\n", - bp::init<ActionModelAbstract&>( - bp::args(" self", " model"), - "Initialize the action model NumDiff.\n\n" - ":param model: action model where we compute the derivatives through NumDiff" - )[bp::with_custodian_and_ward<1, 2>()]) + bp::init<ActionModelAbstract&>(bp::args(" self", " model"), + "Initialize the action model NumDiff.\n\n" + ":param model: action model where we compute the derivatives through NumDiff") + [bp::with_custodian_and_ward<1, 2>()]) .def("calc", &ActionModelNumDiff::calc_wrap, ActionModel_calc_wraps(bp::args(" self", " data", " x", " u=None"), "Compute the next state and cost value.\n\n" diff --git a/include/crocoddyl/core/numdiff/action.hpp b/include/crocoddyl/core/numdiff/action.hpp index fcf7eabd..0497dcce 100644 --- a/include/crocoddyl/core/numdiff/action.hpp +++ b/include/crocoddyl/core/numdiff/action.hpp @@ -66,7 +66,7 @@ class ActionModelNumDiff : public ActionModelAbstract { */ void calc(const boost::shared_ptr<ActionDataAbstract>& data, const Eigen::Ref<const Eigen::VectorXd>& x, const Eigen::Ref<const Eigen::VectorXd>& u); - + /** * @brief @copydoc ActionDataAbstract::calcDiff() */ @@ -75,30 +75,30 @@ class ActionModelNumDiff : public ActionModelAbstract { /** * @brief Create a Data object from the given model. - * - * @return boost::shared_ptr<ActionDataAbstract> + * + * @return boost::shared_ptr<ActionDataAbstract> */ boost::shared_ptr<ActionDataAbstract> createData(); /** * @brief Get the model_ object - * - * @return ActionModelAbstract& + * + * @return ActionModelAbstract& */ ActionModelAbstract& get_model() const; /** * @brief Get the disturbance_ object - * - * @return const double& + * + * @return const double& */ const double& get_disturbance() const; /** * @brief Identify if the Gauss approximation is going to be used or not. - * - * @return true - * @return false + * + * @return true + * @return false */ bool get_with_gauss_approx(); -- GitLab