Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and nim65s committed Aug 19, 2024
1 parent 3d6a7be commit 1a59d53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bindings/python/tasks/task-actuation-equality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion include/tsid/bindings/python/tasks/expose-tasks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ inline void exposeTasks() {
exposeTaskAMEquality();
exposeTaskTwoFramesEquality();
exposeTaskActuationEquality();

}

} // namespace python
Expand Down
16 changes: 7 additions & 9 deletions include/tsid/bindings/python/tasks/task-actuation-equality.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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__
#endif // ifndef __tsid_python_task_actuation_equality_hpp__

0 comments on commit 1a59d53

Please sign in to comment.