Skip to content
Snippets Groups Projects
Commit bf5d3915 authored by Maximilien Naveau's avatar Maximilien Naveau
Browse files

[code format]

parent ee7e1711
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment