graspit-simulator / graspit

The GraspIt! simulator
http://graspit-simulator.github.io/
Other
180 stars 81 forks source link

mHand was referenced in the destructor of the hand object state #65

Closed jvarley closed 8 years ago

jvarley commented 8 years ago

If the hand is removed from the world before this class is destroyed, when you attempt to delete it, graspit segfaults, as it tries to use an invalid hand. The only reason it uses the hand is to get the world, in order to remove it's IVRoot. I just had it go through graspitCore rather than the hand

jvarley commented 8 years ago

Basically, there is no reason to require a valid mHand pointer in the destructor of a HandObjectState