Commit Graph

100 Commits

Author SHA1 Message Date
Johannes Brust
fa1d1fc8ee Add deformable contact forces info
- add contact information for collisions between rigid and soft bodies
- collisions between different soft bodies are not supported
- uses impulse acting on tetrahedral nodes for calculation of forces
- contact points are approximated by node positions
- multiple forces acting on identical nodes are accumulated

(cherry picked from commit 5795bd676f)
2022-12-19 10:59:29 +01:00
erwincoumans
4fbecfeddc Revert "Revert "Reduced Deformable Model"" 2022-03-07 16:35:07 -08:00
erwincoumans
3df6e1a721 Revert "Reduced Deformable Model" 2022-03-07 15:38:32 -08:00
erwincoumans
0ec6091efb Merge pull request #4170 from fuchuyuan/reconstruct
Reconstruct
2022-03-05 13:49:36 -08:00
erwincoumans
e32c0674e7 Merge pull request #4172 from fuchuyuan/contact
Provide Deformable-Deformable contact for request contact info
2022-03-05 13:48:47 -08:00
Chuyuan Kelly Fu
cf185a2d53 format files 2022-03-03 18:11:58 -08:00
Chuyuan Kelly Fu
c9fe6638f8 limit num contacts reported. Add distance to Deformable Deformable contact 2022-03-03 18:05:50 -08:00
Chuyuan Kelly Fu
a8cf6008b7 format commit 2022-03-03 12:03:06 -08:00
Chuyuan Kelly Fu
c014789db0 remove redundant functions 2022-03-03 12:03:06 -08:00
Chuyuan Kelly Fu
4b12767b60 add collision info 2022-03-03 12:03:06 -08:00
jingyuc
ca9d9b3ee6 Merge branch 'bulletphysics:master' into master 2022-02-28 14:30:10 -08:00
Chuyuan Kelly Fu
450c95d0b9 format files 2022-02-18 17:49:21 -08:00
Chuyuan Kelly Fu
fb3b306af1 load deformable deterministic setting 2022-02-18 17:47:54 -08:00
erwincoumans
22ef34bb69 Revert "Add deformable contact forces info" 2022-02-18 16:14:53 -08:00
erwincoumans
578523eab4 Merge branch 'master' into master 2021-12-06 12:38:25 -08:00
erwincoumans
ccafe333d1 Merge pull request #3979 from johbrust/deformableForces
Add deformable contact forces info
2021-11-13 22:32:43 -08:00
jingyuc
df661fde15 allow set gravity in deformable world. add transformTo for the reduced deformable object 2021-11-01 15:49:00 -04:00
jingyuc
3540400a9d Merge branch 'bulletphysics:master' into master 2021-10-28 01:39:07 -04:00
Rémi Verschelde
ba65e909bc SoftBody: Fix local variable shadowing warning 2021-09-29 15:40:59 +02:00
Johannes Brust
5795bd676f Add deformable contact forces info
- add contact information for collisions between rigid and soft bodies
- collisions between different soft bodies are not supported
- uses impulse acting on tetrahedral nodes for calculation of forces
- contact points are approximated by node positions
- multiple forces acting on identical nodes are accumulated
2021-09-28 22:39:31 +02:00
jingyuc
064fdc40bd Merge branch 'bulletphysics:master' into master 2021-09-16 16:09:55 -04:00
Aaron Franke
ad74cfe6c8 Update Bullet URL in copyright statements 2021-09-13 09:06:14 -05:00
jingyuc
e70fc6453b add support for initial rotation 2021-09-02 21:32:16 -04:00
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
jyc-n
bfa74dbacd initial translation WIP 2021-07-28 00:03:51 -04:00
jingyuc
6f3dd32f37 add new btReducedSoftBody and btReduceDeformableSolver class 2021-07-23 16:20:09 -04:00
jyc-n
87e20f450b save files. misc 2021-07-22 21:55:34 -04:00
jyc-n
c325da8b34 add new ReducedSoftBody class. move read files functions to btReducedSoftBodyHelpers 2021-07-22 11:43:26 -04:00
jingyuc
49d7bb0301 minor cleanup 2021-07-19 17:34:38 -04:00
jingyuc
4119d8812e add initial impulse 2021-07-18 00:52:13 -04:00
jingyuc
c24f2a72ef add internal force 2021-07-16 15:01:44 -04:00
jingyuc
4b6eaeed4c kinematic tested. specified delta_v as a cosine function. 2021-07-15 17:30:08 -04:00
jingyuc
d390360f9e clean up kinematic test setup 2021-07-14 20:01:50 -04:00
jingyuc
f1e86bf257 test modes kinematics 2021-07-14 16:00:28 -04: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
Xuchen Han
70a0ef65d8 fix bug in deformable replulsion force and adjust parameter in deformable self collision 2020-06-26 14:19:44 -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
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
d1d2dad2e6 do not apply deformable contact impulse to points and faces constrained in rigid/deformable solve 2020-05-20 17:56:20 -07:00
Xuchen Han
95287e458c support split impulse for deformable vs. rigid contact 2020-04-22 15:18:29 -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
5cb252dc4c treat the feature with the deepest penetration as static in deformable contact 2020-04-15 14:48:53 -07:00
Xuchen Han
1926eadb92 bug fix in CR solver and face contact 2020-04-11 15:02:26 -07:00