Skip to content
Snippets Groups Projects
Commit 4d726e47 authored by jcarpent's avatar jcarpent
Browse files

[Python] Expose setter method for inertia

parent 0f8b13c1
No related branches found
No related tags found
No related merge requests found
......@@ -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>() )
......
......@@ -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_; }
......
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