Commit Graph

2779 Commits

Author SHA1 Message Date
Erwin Coumans
fc2992b75a Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-22 20:41:45 -07:00
erwin coumans
46ea89a284 fixed base should set activation state to 'ISLAND_SLEEPING' 2021-04-22 20:20:08 -07:00
Erwin Coumans
83a5fe2d31 Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-21 22:14:38 -07:00
erwin coumans
e58e5bdf95 PyBullet:
expose pybullet.changeDynamics(sleepThreshold), default 0.05, for both useMaximalCoordinates=False and True
When the dot(vel,vel) < sleepThreshold for longer than 2 seconds (this timeout is hard coded) objects that have the ACTIVATION_STATE_ENABLE_SLEEPING enabled with be deactivated
Example:
p.changeDynamics(ob, -1, activationState=p.ACTIVATION_STATE_ENABLE_SLEEPING, sleepThreshold=0.05)
2021-04-20 11:29:27 -07:00
erwincoumans
049d13d190 Merge pull request #3324 from kjander0/bug/update_comment
Updating a misleading comment
2021-04-10 15:57:14 -07:00
erwincoumans
7ec009ec50 Merge pull request #3320 from AnyOldName3/patch-1
Use drawTriangle instead of drawing three lines
2021-04-05 16:21:35 -07:00
erwin coumans
8b8c1af6a4 Cleaned-up/fixed version of this Pull Request #3239, thanks to Wenlong Lu 2021-04-05 11:40:45 -07:00
Kieren
c810edf483 Updating a misleading comment 2021-03-25 21:00:27 +10:00
Chris Djali
6e2577ca59 Use drawTriangle instead of drawing three lines 2021-03-21 15:07:01 +00:00
erwin coumans
5cf8ee3360 Allow to compile pybullet using btDiscreteDynamicsWorld (no multibodies and no deformables), this allows to create Jacobian and Mass matrix (and A=J*M-1*J_transpose) with MLCP solvers
Add examples/pybullet/gym/pybullet_utils/readwriteurdf.py, this allows to read a URDF and write the URDF with more reasonable inertia tensors (based on mass and collision volumes)
2021-03-15 22:44:55 -07:00
erwincoumans
87e668f6b2 Merge pull request #3293 from glebm/heightfield-type
heightfield: Fix PHY_FLOAT data handling in double-precision mode
2021-03-11 17:10:38 -08:00
erwincoumans
2bd7fa7064 Merge pull request #3287 from glebm/heightfield-accel
heightfield: improve `processAllTriangles` performance
2021-03-11 17:10:20 -08:00
Gleb Mazovetskiy
89c76981fc heightfield: Better support for float/double data
Previously, the heightfield constructor always assumed `PHY_FLOAT` meant
`btScalar`, contrary to documentation and other usages of `PHY_FLOAT`.

Adds new constructors that distinguish between `float` and `double`.
The legacy constructor is still there for backwards compatibility.

This allows the client to use `float` or `double` regardless of
`BT_USE_DOUBLE_PRECISION`.
2021-03-03 14:25:55 +00:00
Gleb Mazovetskiy
8f5a00dd1e heightfield: Add range constructor and overlaps 2021-03-03 00:07:51 +00:00
Erwin Coumans
adcaa75777 enable v-hacd in cmake for BulletRobotics and pybullet build (use cmake -DENABLE_VHACD=OFF .. to disable)
cmake: enable stable PD plugin (-DDSTATIC_LINK_SPD_PLUGIN)
btMultibody, make some args const in mulMatrix
2021-03-01 14:03:48 -08:00
Gleb Mazovetskiy
bb838dbec0 heightfield up axis: Use Range
Reads a bit better than using individual min/max scalars.
2021-03-01 10:26:27 +00:00
Gleb Mazovetskiy
e7e28bebf8 heightfield processAllTriangles: Skip triangle processing if the triangle is out-of-AABB
Skips triangle processing if the triangle is out-of-AABB on the up axis.

This massively improves OpenMW performance on my test machine.

Co-authored-by: Andrew Shulaev <ash.drone@gmail.com>
2021-02-28 21:33:27 +00:00
Gleb Mazovetskiy
782f14caa1 heightfield processAllTriangles: Copy 1 less vertex
The 2 triangles of a heightfield quad share 2 vertices.

Co-authored-by: Andrew Shulaev <ash.drone@gmail.com>
2021-02-28 15:22:28 +00:00
Erwin Coumans
9e2c39f04f bump up version to 3.08 2020-12-22 17:27:11 -08:00
erwincoumans
b1f76960ff Merge pull request #3195 from WenlongLu/kinematic_fix
Disable velocity calculation in kinematic multibody mode by default
2020-12-16 17:42:30 -08:00
WenlongLu
62eb2f7788 Disable velocity calculation in kinematic multibody mode by default
We haven't implemented this for the multi body joints. To be consistent, let's disable it for the base as well, and let user to set the velocities.
2020-12-14 17:19:27 -08:00
David Carlier
3c7cdb498b profile, enable TLS for a handful of BSD platforms. 2020-12-04 09:17:06 +00:00
Erwin Coumans
e32fc59c88 bump up version to 3.07 2020-11-26 14:25:33 -08:00
WenlongLu
c377260d71 Restrict kinematic multibody use cases to only a full chain of kinematic joints. 2020-11-24 10:36:32 -08:00
WenlongLu
3ef0ce4890 fix the bug where forces are ignore at a static/kinematic link while one of its ancesters is not. 2020-11-19 15:58:28 -08:00
erwincoumans
2c38eea830 Merge pull request #3115 from niello/master
Compilation warning fixes
2020-11-17 16:29:22 -08:00
Erwin Coumans
d4d11c417a no btMultiBodyLink.cpp 2020-11-17 23:40:22 -08:00
Erwin Coumans
1c5d67f790 move code from btMultiBodyLink.cpp to btMultiBodyLinkCollider.h (and from btMultiBody.h to btMultiBody.h) 2020-11-17 23:37:45 -08:00
WenlongLu
56b42925d8 Support kinematic multibody joints/links 2020-11-11 22:14:07 -08:00
WenlongLu
622b44d136 fix crashes from accessing base collider when it is not available. 2020-11-10 20:32:26 -08:00
WenlongLu
1a4783a581 Support kinematic multibody base 2020-10-29 23:34:34 -07:00
Vladimir Orlov
35f489f697 Compilation warning fixes:
* new btSdfCollisionShapeInternalData() may not be allocated aligned 16
* Two cases of signed/unsigned mismatch
2020-10-19 20:59:36 +02:00
erwincoumans
b12da620ab Merge pull request #3082 from erwincoumans/master
@erwincoumans bump up PyBullet and Bullet version to 3.05 (in sync for this release)
2020-09-24 10:12:24 -07:00
Erwin Coumans
e454b90c5b bump up PyBullet and Bullet version to 3.05 (in sync for this release) 2020-09-24 10:11:37 -07:00
erwincoumans
0c563174fc Merge pull request #3037 from issakomi/cwe190-1
CWE-190 integer overflow in btConvexHullComputer
2020-09-22 12:58:43 -07:00
Erwin Coumans
2154aad0ca bump up Bullet to version 2.90 2020-09-21 18:09:08 -07:00
Erwin Coumans
d0dc96aa05 Merge remote-tracking branch 'bp/master' 2020-09-20 16:36:45 -07:00
Erwin Coumans
1bd82e7d81 allow rendering of (textured) heightfield in TinyRenderer and EGL.
Also update normals, if heightfield is updated.
2020-09-20 16:03:56 -07: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
Mihail Isakov
db0d6c9292 CWE-190 integer overflow in btConvexHullComputer 2020-09-06 04:02:30 +02:00
erwincoumans
ce81073ac3 Merge pull request #3020 from fuchuyuan/fixsegfault
Fixsegfault
2020-09-01 16:54:16 -07:00
erwincoumans
db9f989a66 Merge pull request #2938 from MomoDeve/patch-1
applied const modifiers to some RigidBody getters
2020-08-31 17:35:37 -07:00
DarkDefender
85a3cb0ed5 Add ability to get the original vertex index from the convex hull (#3018)
This makes it possible to know which input verticies were picked to
to define the hull.

With this information it is much easier to map certain features from the
input mesh/point cloud to the output convex hull.
2020-08-31 15:05:27 -07:00
Chuyuan Fu
4bc8a4ca79 fix segfault when removing softbody 2020-08-31 10:50:23 -07:00
erwincoumans
dda2075f2c Merge pull request #2984 from fuchuyuan/cachebarycenter
Cachebarycenter
2020-08-20 09:43:38 -07:00
Chuyuan Fu
2d42dea27f turn off cache prev collision by default 2020-08-17 10:52:07 -07:00
erwincoumans
0993c9a782 Merge pull request #2855 from asmaloney/fix-pointer-check
Fix parameter check in bFile::safeSwapPtr
2020-08-13 19:35:50 -07:00
Chuyuan Fu
07521869db format file
format

format
2020-08-12 10:46:26 -07:00