Skip to content
Snippets Groups Projects
Commit f2c286d0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

pre-commit run -a

parent 5db8eeda
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@
namespace tsid {
namespace python {
void exposeTaskActuationEquality() {
TaskActuationEqualityPythonVisitor<tsid::tasks::TaskActuationEquality>::expose(
"TaskActuationEquality");
TaskActuationEqualityPythonVisitor<
tsid::tasks::TaskActuationEquality>::expose("TaskActuationEquality");
}
} // namespace python
} // namespace tsid
......@@ -53,7 +53,6 @@ inline void exposeTasks() {
exposeTaskAMEquality();
exposeTaskTwoFramesEquality();
exposeTaskActuationEquality();
}
} // namespace python
......
......@@ -68,7 +68,7 @@ struct TaskActuationEqualityPythonVisitor
.def("setReference", &TaskActuationEqualityPythonVisitor::setReference,
bp::arg("ref"))
.def("getReference", &TaskActuationEqualityPythonVisitor::getReference,
bp::return_value_policy<bp::copy_const_reference>())
bp::return_value_policy<bp::copy_const_reference>())
.def("setWeightVector",
&TaskActuationEqualityPythonVisitor::setWeightVector,
......@@ -123,23 +123,21 @@ struct TaskActuationEqualityPythonVisitor
static const Eigen::VectorXd &getmask(const TaskAucEq &self) {
return self.mask();
}
static void setmask(TaskAucEq &self, const Eigen::VectorXd mask) {
return self.mask(mask);
}
static void expose(const std::string& class_name) {
static void expose(const std::string &class_name) {
std::string doc = "TaskActuationEqualityPythonVisitor info.";
bp::class_<TaskAucEq>(class_name.c_str(), doc.c_str(), bp::no_init)
.def(TaskActuationEqualityPythonVisitor<TaskAucEq>());
bp::register_ptr_to_python<boost::shared_ptr<math::ConstraintBase> >();
bp::register_ptr_to_python<boost::shared_ptr<math::ConstraintBase>>();
}
};
} // namespace python
} // namespace tsid
} // namespace python
} // namespace tsid
#endif // ifndef __tsid_python_task_actuation_equality_hpp__
\ No newline at end of file
#endif // ifndef __tsid_python_task_actuation_equality_hpp__
\ No newline at end of file
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