diff --git a/src/python/inertia.hpp b/src/python/inertia.hpp index b3485d387aee16d208b8d3204cedffd525b0f109..02d38ad6c6773af5af93e3002d4acd638e0a1c96 100644 --- a/src/python/inertia.hpp +++ b/src/python/inertia.hpp @@ -83,6 +83,10 @@ namespace se3 .def("se3Action",&Inertia_fx::se3Action) .def("se3ActionInverse",&Inertia_fx::se3ActionInverse) + .def("setIdentity",&Inertia_fx::setIdentity) + .def("setZero",&Inertia_fx::setZero) + .def("setRandom",&Inertia_fx::setRandom) + .def("__str__",&InertiaPythonVisitor::toString) .def( bp::self + bp::self) .def( bp::self * bp::other<Motion_fx>() ) diff --git a/src/spatial/symmetric3.hpp b/src/spatial/symmetric3.hpp index 731d0bf81422f233307f68dd5c045bfeda35a20c..62e3af5df2c425b0a93ddddcc0dbe9b5215fa43f 100644 --- a/src/spatial/symmetric3.hpp +++ b/src/spatial/symmetric3.hpp @@ -73,7 +73,7 @@ namespace se3 } static Symmetric3Tpl Identity() { return Symmetric3Tpl(1, 0, 1, 0, 0, 1); } - void setIndentity() { data_ << 1, 0, 1, 0, 0, 1; } + void setIdentity() { data_ << 1, 0, 1, 0, 0, 1; } /* Requiered by Inertia::operator== */ bool operator== (const Symmetric3Tpl & S2 ) const { return data_ == S2.data_; }