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
Humanoid Path Planner
hpp-pinocchio
Commits
e7cc5556
Commit
e7cc5556
authored
Nov 25, 2020
by
Florent Lamiraux
Browse files
[LiegroupElement] Add operators == and !=.
parent
363fdd2e
Pipeline
#12842
failed with stage
in 2 minutes and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
include/hpp/pinocchio/liegroup-element.hh
View file @
e7cc5556
...
...
@@ -85,6 +85,20 @@ namespace hpp {
assert
(
value_
.
size
()
==
space_
->
nq
());
}
/// Equality operator
template
<
typename
vector_type2
>
bool
operator
==
(
const
LiegroupElementConstBase
<
vector_type2
>&
other
)
{
return
((
*
space_
==
*
(
other
.
space_
))
&&
(
value_
==
other
.
value_
));
}
/// Equality operator
template
<
typename
vector_type2
>
bool
operator
!=
(
const
LiegroupElementConstBase
<
vector_type2
>&
other
)
{
return
((
*
space_
!=
*
(
other
.
space_
))
||
(
value_
!=
other
.
value_
));
}
protected:
template
<
typename
Derived
>
LiegroupElementConstBase
(
const
Eigen
::
EigenBase
<
Derived
>&
value
,
...
...
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