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
424595ce
Unverified
Commit
424595ce
authored
Jan 19, 2021
by
Gabriele Buondonno
Committed by
GitHub
Jan 19, 2021
Browse files
[test_geometry] Test constructor from vector (#1)
parent
61d25345
Pipeline
#12889
passed with stage
in 8 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_geometry.py
View file @
424595ce
...
...
@@ -18,6 +18,10 @@ q.normalize()
assert
(
isapprox
(
np
.
linalg
.
norm
(
q
.
coeffs
()),
q
.
norm
()))
assert
(
isapprox
(
np
.
linalg
.
norm
(
q
.
coeffs
()),
1
))
v
=
np
.
array
([
0.5
,
-
0.5
,
0.5
,
0.5
])
qv
=
Quaternion
(
v
)
assert
(
isapprox
(
qv
.
coeffs
(),
v
))
r
=
AngleAxis
(
q
)
q2
=
Quaternion
(
r
)
assert
(
q
==
q
)
...
...
Write
Preview
Markdown
is supported
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