Commit Graph

115 Commits

Author SHA1 Message Date
jingyuc
35f7a1a569 add new reduced deformable contact constraint class. able to call the reduced soft body's apply impulse function 2021-08-12 12:31:44 -04:00
Chuyuan Fu
f51e92000a initialize default value 2020-09-17 15:38:23 -07:00
Chuyuan Fu
7d8379bad4 add configurable parameters to urdf 2020-09-14 12:34:21 -07:00
Erwin Coumans
1452cae641 * add textured models of ball.vtk (obj/mtl) and torus (obj/mtl) and cloth.
1) allow to render deformables in 'getCameraImage', for TinyRenderer (tested OK) and EGL (untested)
2) allow to have textures for deformables. See deformable_ball.py, deformable_anchor.py and deformable_torus.py for examples
3) deformables: allow to request simulation mesh data (even if there is a render mesh) See deformable_anchor.py for an example usage
   data = p.getMeshData(clothId, -1, flags=p.MESH_DATA_SIMULATION_MESH)
4) fix deletion of deformables, thanks to Fychuyan, https://github.com/bulletphysics/bullet3/pull/3048
5) allow to enable and disable double-sided rendering, p.changeVisualShape(objectUid, linkIndex, flags=p.VISUAL_SHAPE_DOUBLE_SIDED)
6) fix GripperGraspExample, model not found
7) Fix deformable anchor not attaching to multibody with object unique id of 0
8) Fix issue with assignment of unique ids in TinyRenderer/EGL renderer (always use broadphase uid)
9) Avoid crash/issue of simulation with pinned vertices (mass 0) in btDeformableBackwardEulerObjective::applyExplicitForce
10) Store uv/normal in btSoftBody::RenderNode to allow textured meshes
11) (uncomment in btSoftBodyHelpers.cpp): dump vertices and indices in obj wavefront format, when loading a VTK file, for quicker creation of a (textured) surface mesh
12) allow interpolateRenderMesh also for old position-based soft bodies (not only the shiny new FEM deformables)
13) fix a few premake targets
14) update build_visual_studio_vr_pybullet_double_cmake.bat so it suits c:\python37 and installs locally
    for local install of Bullet, see also this example https://github.com/erwincoumans/hello_bullet_cmake
2020-09-12 01:03:04 -07:00
Chuyuan Fu
4bc8a4ca79 fix segfault when removing softbody 2020-08-31 10:50:23 -07:00
Chuyuan Fu
2d42dea27f turn off cache prev collision by default 2020-08-17 10:52:07 -07:00
Chuyuan Fu
07521869db format file
format

format
2020-08-12 10:46:26 -07:00
Chuyuan Fu
25aa0f5669 clean up code 2020-08-12 10:13:49 -07:00
Chuyuan Fu
b8fd4a1060 added caching barycenters for static constraints, with lots of debugging lines 2020-08-12 09:33:49 -07:00
Xuchen Han
e0b554787f Merge remote-tracking branch 'origin/master' into implicit-contact 2020-06-19 15:05:34 -07:00
Xuchen Han
b969f14d21 run clang format 2020-06-19 14:52:44 -07:00
Xuchen Han
395f8c6117 add implicit point contact for corotated linear elasticity objects 2020-06-19 14:49:58 -07:00
Xuchen Han
92f2f56b3d add mass damping into damping model 2020-06-18 16:43:53 -07:00
Xuchen Han
f23e745666 clang format PhysicsServerCommandProcessor and BulletSoftBody 2020-06-17 17:20:39 -07:00
Xuchen Han
9cfe16abb4 add corotated linear elasticity 2020-06-16 15:57:58 -07:00
erwincoumans
da50438c3c Merge pull request #2826 from xhan0619/grav-factor
Deformable gravity factor
2020-06-05 10:07:27 -07:00
Erwin Coumans
c09007e005 Merge branch 'master' of github.com:erwincoumans/bullet3 2020-06-04 00:00:44 -07:00
Erwin Coumans
e6a0206d47 Allow to remove soft body anchors, using pybullet.removeConstraint (untested).
Usage example:
anchors = []
anchors.append(p.createSoftBodyAnchor(clothId  ,0,-1,-1))
anchors.append(p.createSoftBodyAnchor(clothId ,3,boxId,-1, [0.5,-0.5,0]))
for a in anchors:
  p.removeConstraint(a)
2020-06-04 00:00:19 -07:00
Xuchen Han
e89903a8ab support gravity factor for deformables 2020-05-26 16:48:50 -07:00
Xuchen Han
65978cb58b revert experimental changes to collision padding 2020-05-20 17:55:03 -07:00
Xuchen Han
15f3e144f6 Merge remote-tracking branch 'origin/master' into splitImpulseMulti 2020-05-11 15:55:32 -07:00
Xuchen Han
607ddc25b7 make deformable collision detection wider 2020-05-11 15:53:54 -07:00
Xuchen Han
cb1cd969a8 allow positive penetration to pose inactive constraints for more stability 2020-05-08 16:51:53 -07:00
Chuyuan Fu
80acb57119 fix softbody GetRigidTransform 2020-05-07 17:21:55 -07:00
Xuchen Han
eefec255cf Merge remote-tracking branch 'origin/master' into splitImpulse 2020-04-27 20:29:06 -07:00
erwincoumans
8618d60c7c Merge pull request #2756 from xhan0619/KKT
Add support for KKT solver.
2020-04-23 09:45:58 -07:00
Xuchen Han
bc8f99a640 use m_q for collision detection and m_x for resolving collision 2020-04-22 15:18:54 -07:00
Xuchen Han
78aebd44e2 Merge remote-tracking branch 'origin/master' into KKT 2020-04-20 19:35:46 -07:00
Xuchen Han
165427de01 refactor to support both CG+projection and KKT 2020-04-15 17:46:01 -07:00
Xuchen Han
ebc84b3b8d use x_n instead of x_{n+1} to calculate deformable penetration distance 2020-04-15 13:33:43 -07:00
Xuchen Han
ed3b697320 fix rayTest crash for btSoftBody 2020-04-14 17:13:00 -07:00
Xuchen Han
1926eadb92 bug fix in CR solver and face contact 2020-04-11 15:02:26 -07:00
Xuchen Han
6ef1a4acbc bug fix in CR multiply 2020-04-08 21:24:02 -07:00
Xuchen Han
460164c30e CG with projection + MGS working 2020-04-08 11:27:26 -07:00
Erwin Coumans
bd5fde778b fix uninitialized variables in btSoftBody: if you add new variables, always initialize them! 2020-04-06 20:33:29 -07:00
Xuchen Han
bbdca8a4e8 add support for reduced vectors and modified gram schmidt 2020-04-04 17:19:57 -07:00
Xuchen Han
6a1e3a5164 move deformable collision detect to after momentum solve; clean up code 2020-04-03 22:07:33 -07:00
erwincoumans
e2808eefd8 Merge pull request #2708 from xhan0619/msan
fix uninitialized variable in btSoftBody
2020-04-01 19:17:08 -07:00
Xuchen Han
86e048dddc fix uninitialized variable in btSoftBody: m_sst is not initialized at the time initializeFaceTree is called 2020-04-01 17:53:24 -07:00
Xuchen Han
80aa523825 Tune deformable collision parameters for more stable deformable vs. deformable contact 2020-04-01 17:46:37 -07:00
Xuchen Han
c785be51ce Initialize uninitialized variables in btSoftBody 2020-03-25 13:24:05 -07:00
erwincoumans
dd2f2e3128 Merge pull request #2682 from xhan0619/master
Add support for getPose for deformable objects and separate deformable vs. rigid face contact and deformable vs. multibody face contact for flexibility.
2020-03-22 18:44:18 -07:00
Xuchen Han
3cb18f87cc fix issue #2675: update dbvt volume immediately after face tree is initialized to prevent empty volumes 2020-03-20 12:34:38 -07:00
Xuchen Han
5d26efd988 formatting and minor bug fix 2020-03-19 12:29:00 -07:00
Xuchen Han
19ed1c952a separate face contact between deformable and rigid and multibodies 2020-03-18 17:58:46 -07:00
Xuchen Han
cab8b84a8f Support get body state for deformable objects so that it retrieves the best fit rigid transform 2020-03-18 17:11:20 -07:00
Xuchen Han
27d2cdaef0 Merge remote-tracking branch 'xuchen/master' into teleport 2020-03-15 19:29:06 -07:00
Xuchen Han
4b35af3830 change deformable teleport to absolute pose 2020-03-12 16:40:25 -07:00
Xuchen Han
cbf282fb2f Add support for teleporting deformables 2020-03-12 16:39:28 -07:00
Xuchen Han
7dfef92267 Add support for picking deformable with mouse 2020-03-09 11:19:08 -07:00