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
7b5650c5
Verified
Commit
7b5650c5
authored
Apr 01, 2021
by
Justin Carpentier
Browse files
core: add missing operator{==,!=} for GeometryData
parent
27242383
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/geometry.hpp
View file @
7b5650c5
...
...
@@ -360,6 +360,35 @@ namespace pinocchio
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
GeometryData
&
geomData
);
///
/// \brief Returns true if *this and other are equal.
///
bool
operator
==
(
const
GeometryData
&
other
)
const
{
return
oMg
==
other
.
oMg
&&
activeCollisionPairs
==
other
.
activeCollisionPairs
#ifdef PINOCCHIO_WITH_HPP_FCL
&&
distanceRequests
==
other
.
distanceRequests
&&
distanceResults
==
other
.
distanceResults
&&
collisionRequests
==
other
.
collisionRequests
&&
collisionResults
==
other
.
collisionResults
&&
radius
==
other
.
radius
&&
collisionPairIndex
==
other
.
collisionPairIndex
#endif
&&
innerObjects
==
other
.
innerObjects
&&
outerObjects
==
other
.
outerObjects
;
}
///
/// \brief Returns true if *this and other are not equal.
///
bool
operator
!=
(
const
GeometryData
&
other
)
const
{
return
!
(
*
this
==
other
);
}
};
// struct GeometryData
}
// namespace pinocchio
...
...
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