Skip to content
Snippets Groups Projects
Commit 5165077d authored by jcarpent's avatar jcarpent
Browse files

[Python] Add setIdentity and setRandom to SE3 python struct

parent ec04599c
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ namespace se3
.add_property("translation",&SE3PythonVisitor::getTranslation,&SE3PythonVisitor::setTranslation)
.add_property("homogeneous",&SE3_fx::toHomogeneousMatrix)
.add_property("action",&SE3_fx::toActionMatrix)
.def("setIdentity",&SE3PythonVisitor::setIdentity)
.def("setRandom",&SE3PythonVisitor::setRandom)
.def("inverse", &SE3_fx::inverse)
.def("act_point", &SE3PythonVisitor::act_point)
......@@ -101,6 +104,9 @@ namespace se3
static void setRotation( SE3_fx & self, const Matrix3_fx & R ) { self.rotation(R); }
static Vector3_fx getTranslation( const SE3_fx & self ) { return self.translation(); }
static void setTranslation( SE3_fx & self, const Vector3_fx & p ) { self.translation(p); }
static void setIdentity(SE3_fx & self) { self.setIdentity(); }
static void setRandom(SE3_fx & self) { self.setRandom(); }
static Vector3_fx act_point( const SE3_fx & self, const Vector3_fx & pt ) { return self.act(pt); }
static Vector3_fx actInv_point( const SE3_fx & self, const Vector3_fx & pt ) { return self.actInv(pt); }
......
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