The recently added CompareFirstBodyName and CompareSecondBodyName functions in CollisionPairInfo return 0 when the given string compares equal to the first and second body names, respectively.
There are some places that expect to test for equality but are missing the test == 0.
For example, in StateCheckEndEffector::_CheckCollisionPair, the condition reads
Summary
The recently added
CompareFirstBodyName
andCompareSecondBodyName
functions inCollisionPairInfo
return0
when the given string compares equal to the first and second body names, respectively.There are some places that expect to test for equality but are missing the test
== 0
.For example, in
StateCheckEndEffector::_CheckCollisionPair
, the condition readswhile the original code reads