Skip to content
GitLab
Menu
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
d9e2f78f
Unverified
Commit
d9e2f78f
authored
May 19, 2021
by
Justin Carpentier
Committed by
GitHub
May 19, 2021
Browse files
Merge pull request #233 from jcarpent/devel
Fix quaternion static Identity constructor
parents
b55c10dd
30bd0c65
Pipeline
#14611
passed with stage
in 13 minutes and 15 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
include/eigenpy/quaternion.hpp
View file @
d9e2f78f
...
...
@@ -234,8 +234,9 @@ namespace eigenpy
"Returns the quaternion which transforms a into b through a rotation."
,
bp
::
return_value_policy
<
bp
::
manage_new_object
>
())
.
staticmethod
(
"FromTwoVectors"
)
.
def
(
"Identity"
,
&
Quaternion
::
Identity
,
"Returns a quaternion representing an identity rotation."
)
.
def
(
"Identity"
,
&
Identity
,
"Returns a quaternion representing an identity rotation."
,
bp
::
return_value_policy
<
bp
::
manage_new_object
>
())
.
staticmethod
(
"Identity"
)
;
}
...
...
@@ -254,6 +255,12 @@ namespace eigenpy
static
Quaternion
&
assign
(
Quaternion
&
self
,
const
OtherQuat
&
quat
)
{
return
self
=
quat
;
}
static
Quaternion
*
Identity
()
{
Quaternion
*
q
(
new
Quaternion
);
q
->
setIdentity
();
return
q
;
}
static
Quaternion
*
FromTwoVectors
(
const
Vector3
&
u
,
const
Vector3
&
v
)
{
Quaternion
*
q
(
new
Quaternion
);
q
->
setFromTwoVectors
(
u
,
v
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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