Skip to content

Commit

Permalink
More place to fix usage of comparison fn return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Puttichai committed Mar 8, 2024
1 parent 6826b58 commit 146603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/grasper/graspermodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ class GrasperModule : public ModuleBase
RAVELOG_VERBOSE(str(boost::format("contact %s\n")%report->__str__()));
for(int icollision = 0; icollision < report->nNumValidCollisions; ++icollision) {
const CollisionPairInfo& cpinfo = report->vCollisionInfos[icollision];
bool bFirstMatchesRobot = cpinfo.CompareFirstBodyName(probot->GetName());
bool bFirstMatchesRobot = cpinfo.CompareFirstBodyName(probot->GetName()) == 0;
for(const CONTACT& c : cpinfo.contacts) {
if( bFirstMatchesRobot ) {
grasp_params->contacts.emplace_back(c, (*itlink)->GetIndex());
Expand Down

0 comments on commit 146603b

Please sign in to comment.