Verified Commit 16b36852 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

geometry: patch bugs in Boost.Python

parent d0547e78
......@@ -58,10 +58,10 @@ namespace eigenpy
((bp::arg("self"),bp::arg("angle"),bp::arg("axis")),
"Initialize from angle and axis."))
.def(bp::init<Matrix3>
((bp::arg("self"),bp::arg("rotationMatrix")),
((bp::arg("self"),bp::arg("rotation matrix")),
"Initialize from a rotation matrix"))
.def(bp::init<Quaternion>(bp::arg("self"),bp::arg("quaternion"),"Initialize from a quaternion."))
.def(bp::init<AngleAxis>(bp::arg("self"),bp::arg("copy"),"Copy constructor."))
.def(bp::init<Quaternion>((bp::arg("self"),bp::arg("quaternion")),"Initialize from a quaternion."))
.def(bp::init<AngleAxis>((bp::arg("self"),bp::arg("copy")),"Copy constructor."))
/* --- Properties --- */
.add_property("axis",
......@@ -77,11 +77,11 @@ namespace eigenpy
bp::arg("self"),
"Return the inverse rotation.")
.def("fromRotationMatrix",&AngleAxis::template fromRotationMatrix<Matrix3>,
(bp::arg("self"),bp::arg("rot")),
(bp::arg("self"),bp::arg("rotation matrix")),
"Sets *this from a 3x3 rotation matrix",
bp::return_self<>())
.def("toRotationMatrix",
bp::arg("self"),
// bp::arg("self"),
&AngleAxis::toRotationMatrix,
"Constructs and returns an equivalent 3x3 rotation matrix.")
.def("matrix",&AngleAxis::matrix,
......
......@@ -118,7 +118,7 @@ namespace eigenpy
bp::arg("self"),
"Returns an equivalent 3x3 rotation matrix. Similar to toRotationMatrix.")
.def("toRotationMatrix",&Quaternion::toRotationMatrix,
bp::arg("self"),
// bp::arg("self"), // Bug in Boost.Python
"Returns an equivalent 3x3 rotation matrix.")
.def("setFromTwoVectors",&setFromTwoVectors,((bp::arg("self"),bp::arg("a"),bp::arg("b"))),
......@@ -157,7 +157,7 @@ namespace eigenpy
bp::arg("self"),
"Returns a vector expression of the imaginary part (x,y,z).")
.def("angularDistance",
(bp::arg("self"),bp::arg("other")),
// (bp::arg("self"),bp::arg("other")), // Bug in Boost.Python
&Quaternion::template angularDistance<Quaternion>,
"Returns the angle (in radian) between two rotations.")
.def("slerp",&slerp,bp::args("self","t","other"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment