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
pinocchio
Commits
cdadf1a1
Verified
Commit
cdadf1a1
authored
Dec 17, 2019
by
Justin Carpentier
Browse files
spatial/motion: add isEqual method to MotionZeroTpl
parent
24dc9245
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/spatial/motion-zero.hpp
View file @
cdadf1a1
...
...
@@ -57,7 +57,14 @@ namespace pinocchio
template
<
typename
D2
>
static
bool
isEqual_impl
(
const
MotionDense
<
D2
>
&
other
)
{
return
other
.
linear
().
isZero
()
&&
other
.
angular
().
isZero
();
}
{
return
other
.
linear
().
isZero
(
0
)
&&
other
.
angular
().
isZero
(
0
);
}
static
bool
isEqual_impl
(
const
MotionZeroTpl
&
)
{
return
true
;
}
template
<
typename
D2
>
static
void
addTo
(
const
MotionBase
<
D2
>
&
)
{}
...
...
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