Skip to content

Commit 16b3685

Browse files
committed
geometry: patch bugs in Boost.Python
1 parent d0547e7 commit 16b3685

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/eigenpy/angle-axis.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ namespace eigenpy
5858
((bp::arg("self"),bp::arg("angle"),bp::arg("axis")),
5959
"Initialize from angle and axis."))
6060
.def(bp::init<Matrix3>
61-
((bp::arg("self"),bp::arg("rotationMatrix")),
61+
((bp::arg("self"),bp::arg("rotation matrix")),
6262
"Initialize from a rotation matrix"))
63-
.def(bp::init<Quaternion>(bp::arg("self"),bp::arg("quaternion"),"Initialize from a quaternion."))
64-
.def(bp::init<AngleAxis>(bp::arg("self"),bp::arg("copy"),"Copy constructor."))
63+
.def(bp::init<Quaternion>((bp::arg("self"),bp::arg("quaternion")),"Initialize from a quaternion."))
64+
.def(bp::init<AngleAxis>((bp::arg("self"),bp::arg("copy")),"Copy constructor."))
6565

6666
/* --- Properties --- */
6767
.add_property("axis",
@@ -77,11 +77,11 @@ namespace eigenpy
7777
bp::arg("self"),
7878
"Return the inverse rotation.")
7979
.def("fromRotationMatrix",&AngleAxis::template fromRotationMatrix<Matrix3>,
80-
(bp::arg("self"),bp::arg("rot")),
80+
(bp::arg("self"),bp::arg("rotation matrix")),
8181
"Sets *this from a 3x3 rotation matrix",
8282
bp::return_self<>())
8383
.def("toRotationMatrix",
84-
bp::arg("self"),
84+
// bp::arg("self"),
8585
&AngleAxis::toRotationMatrix,
8686
"Constructs and returns an equivalent 3x3 rotation matrix.")
8787
.def("matrix",&AngleAxis::matrix,

include/eigenpy/quaternion.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace eigenpy
118118
bp::arg("self"),
119119
"Returns an equivalent 3x3 rotation matrix. Similar to toRotationMatrix.")
120120
.def("toRotationMatrix",&Quaternion::toRotationMatrix,
121-
bp::arg("self"),
121+
// bp::arg("self"), // Bug in Boost.Python
122122
"Returns an equivalent 3x3 rotation matrix.")
123123

124124
.def("setFromTwoVectors",&setFromTwoVectors,((bp::arg("self"),bp::arg("a"),bp::arg("b"))),
@@ -157,7 +157,7 @@ namespace eigenpy
157157
bp::arg("self"),
158158
"Returns a vector expression of the imaginary part (x,y,z).")
159159
.def("angularDistance",
160-
(bp::arg("self"),bp::arg("other")),
160+
// (bp::arg("self"),bp::arg("other")), // Bug in Boost.Python
161161
&Quaternion::template angularDistance<Quaternion>,
162162
"Returns the angle (in radian) between two rotations.")
163163
.def("slerp",&slerp,bp::args("self","t","other"),

0 commit comments

Comments
 (0)