Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
16b36852
Verified
Commit
16b36852
authored
Dec 08, 2019
by
Justin Carpentier
Browse files
geometry: patch bugs in Boost.Python
parent
d0547e78
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/angle-axis.hpp
View file @
16b36852
...
...
@@ -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
(
"rotation
M
atrix"
)),
((
bp
::
arg
(
"self"
),
bp
::
arg
(
"rotation
m
atrix"
)),
"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
(
"rot
ation 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
,
...
...
include/eigenpy/quaternion.hpp
View file @
16b36852
...
...
@@ -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"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment