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
pinocchio
Commits
98335a94
Unverified
Commit
98335a94
authored
Apr 18, 2019
by
Justin Carpentier
Committed by
GitHub
Apr 18, 2019
Browse files
Merge pull request #779 from jmirabel/devel
Fix first order normalization of unit complex.
parents
2fbc086f
1111ec33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/liegroup/special-orthogonal.hpp
View file @
98335a94
...
...
@@ -156,8 +156,10 @@ namespace pinocchio
out
<<
cosOmega
*
ca
-
sinOmega
*
sa
,
sinOmega
*
ca
+
cosOmega
*
sa
;
const
Scalar
norm2
=
q
.
squaredNorm
();
out
*=
(
3
-
norm2
)
/
2
;
// First order approximation of the normalization of the quaternion
// First order approximation of the normalization of the unit complex
// See quaternion::firstOrderNormalize for equations.
const
Scalar
norm2
=
out
.
squaredNorm
();
out
*=
(
3
-
norm2
)
/
2
;
}
template
<
class
Config_t
,
class
Jacobian_t
>
...
...
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