Closed WangZP10969 closed 2 years ago
This is possible in another version of fcl located here: https://github.com/humanoid-path-planner/hpp-fcl. You simply need to set the distance threshold in the collision request here: https://github.com/humanoid-path-planner/hpp-fcl/blob/ea9afdc2ee5771826a12a769a108368cd0c57212/include/hpp/fcl/collision_data.h#L221. This does not imply extra computation cost compared to collision checking.
I am using fcl for collision detection, using the direct return bool type as the result of the collision But the default collision method requires object contact to return true. I need to return true when the distance is less than a certain threshold.
I have considered two methods,
Would you like to give me some suggestions for completing this function based on fcl?
Looking forward to your help