bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.45k stars 2.86k forks source link

Rigid Body penetrating Soft Body #4568

Open Hirak-Basumatary opened 8 months ago

Hirak-Basumatary commented 8 months ago

https://github.com/bulletphysics/bullet3/assets/124918259/b745ab77-68f7-4580-bfcd-3abfd0c52055

Can someone point out why this is happening ? The robot hand is a rigid body (URDF File) and the cylindrical object is a .vtk file (deformable object). The robotic hand is trying to grasp the cylindrical object. The .vtk file is generated by the following steps:

(i) .stl from solidworks (ii) .msh file from fTetWild (iii) .vtk file from GMSH

I have used the following arguments for loading the softbody

self.rigidId = p.loadSoftBody("Cylindrical_object_2_ascii.vtk", basePosition = [0,2,5], scale = 0.005, mass = 1, useNeoHookean = 1, NeoHookeanMu = 500, NeoHookeanLambda = 2000, NeoHookeanDamping = 10, useFaceContact = 1, useSelfCollision = 1, springElasticStiffness = 1000, springDampingStiffness = 10, springDampingAllDirections = 5, springBendingStiffness = 0.1, frictionCoeff = 1, collisionMargin = 0.001)

Hirak-Basumatary commented 8 months ago

@erwincoumans