Skip to content

Commit

Permalink
Fix FCL contact test when calculate distance is false but contact thr…
Browse files Browse the repository at this point in the history
…eshold is greater than zero
  • Loading branch information
Levi-Armstrong committed Nov 6, 2023
1 parent 291f8be commit 13564bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tesseract_collision/fcl/src/fcl_discrete_managers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ IsContactAllowedFn FCLDiscreteBVHManager::getIsContactAllowedFn() const { return
void FCLDiscreteBVHManager::contactTest(ContactResultMap& collisions, const ContactRequest& request)
{
ContactTestData cdata(active_, collision_margin_data_, fn_, request, collisions);
if (collision_margin_data_.getMaxCollisionMargin() > 0 && request.calculate_distance)
if (collision_margin_data_.getMaxCollisionMargin() > 0)
{
// TODO: Should the order be flipped?
if (!static_manager_->empty())
Expand Down

0 comments on commit 13564bc

Please sign in to comment.