rdiankov / openrave

Open Robotics Automation Virtual Environment: An environment for testing, developing, and deploying robotics motion planning algorithms.
http://www.openrave.org
Other
687 stars 340 forks source link

Fixed dangling FCL cache #1323

Closed yoshikikanemoto closed 8 months ago

yoshikikanemoto commented 8 months ago

description

This PR fixes cache of FCLCollisionManagerInstance for self-collision checker wasn't cleared for previously grabbed bodies even when they were removed from the env.

This issue was not only causing memory leak, but also when the same address was assigned to new bodies, FCLCollisionManagerInstance for the removed bodies were assigned to the new bodies, resulted in false collision checking results.

Also added handling of dangling FCLCollisionManagerInstance just in case (I haven't seen it after this fix)

changes

test

@Puttichai

rdiankov commented 8 months ago

thanks~