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
46756995
Verified
Commit
46756995
authored
Dec 09, 2019
by
Justin Carpentier
Browse files
geometry: make object implicitly_convertible
parent
c96b9fb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/angle-axis.hpp
View file @
46756995
...
...
@@ -22,6 +22,7 @@ namespace eigenpy
struct
call
<
Eigen
::
AngleAxis
<
Scalar
>
>
{
typedef
Eigen
::
AngleAxis
<
Scalar
>
AngleAxis
;
static
inline
void
expose
()
{
AngleAxisVisitor
<
AngleAxis
>::
expose
();
...
...
@@ -46,6 +47,7 @@ namespace eigenpy
typedef
typename
AngleAxis
::
Matrix3
Matrix3
;
typedef
typename
Eigen
::
Quaternion
<
Scalar
,
0
>
Quaternion
;
typedef
Eigen
::
RotationBase
<
AngleAxis
,
3
>
RotationBase
;
public:
...
...
@@ -136,6 +138,9 @@ namespace eigenpy
"AngleAxis representation of a rotation.
\n\n
"
,
bp
::
no_init
)
.
def
(
AngleAxisVisitor
<
AngleAxis
>
());
// Cast to Eigen::RotationBase and vice-versa
bp
::
implicitly_convertible
<
AngleAxis
,
RotationBase
>
();
}
};
...
...
include/eigenpy/quaternion.hpp
View file @
46756995
...
...
@@ -263,9 +263,11 @@ namespace eigenpy
"'q*v' (rotating 'v' by 'q'), "
"'q==q', 'q!=q', 'q[0..3]'."
,
bp
::
no_init
)
.
def
(
QuaternionVisitor
<
Quaternion
>
())
;
.
def
(
QuaternionVisitor
<
Quaternion
>
());
// Cast to Eigen::QuaternionBase and vice-versa
bp
::
implicitly_convertible
<
Quaternion
,
QuaternionBase
>
();
bp
::
implicitly_convertible
<
QuaternionBase
,
Quaternion
>
();
}
};
...
...
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