Commit Graph

2993 Commits

Author SHA1 Message Date
Ian Chen
d7f9d66207 apply joint forces patch
Signed-off-by: Ian Chen <ichen@openrobotics.org>
2024-02-23 23:47:20 +00:00
Erwin Coumans
6bb8d1123d Bump up pybullet version to 3.26
expose max_num_object_capacity and max_shape_capacity_in_bytes to override the graphics VBO buffer allocations. This allows to load larger triangle meshes in pybullet.

Example:
p.connect(p.GUI, options="--max_num_object_capacity=131072 --max_shape_capacity_in_bytes=1073741824")

Use MAX_NUM_PARTS_IN_BITS=4 by default, this allows to use 134 million triangles in each concave triangle mesh in PyBullet (instead of 2 Million)
2023-11-28 14:23:32 -08:00
Erwin Coumans
fcef2c81f2 expose max_num_object_capacity and max_shape_capacity_in_bytes to override the graphics VBO buffer allocations. This allows to load larger triangle meshes in pybullet.
Example:
p.connect(p.GUI, options="--max_num_object_capacity=131072 --max_shape_capacity_in_bytes=1073741824")

Use MAX_NUM_PARTS_IN_BITS=4 by default, this allows to use 134 million triangles in each concave triangle mesh in PyBullet (instead of 2 Million)
2023-11-28 14:21:33 -08:00
erwincoumans
e7193f8fdf Merge pull request #4462 from gazebo-forks/nkoenig/fix_joint_wrench
Fix joint force/torque sensor values
2023-05-04 06:09:50 -07:00
Nate Koenig
94e5b69379 Skip zeroAccSpatFrc for the constraint passes
Signed-off-by: Nate Koenig <nate@openrobotics.org>
2023-03-07 11:31:10 -08:00
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
2c204c49e5 Merge pull request #4284 from vitalybuka/master
Initialize vertexSource
2022-09-24 20:00:36 -07:00
erwincoumans
dad061fc13 Merge pull request #4295 from ShoYamanishi/improvement_lemke_leaving_variable
fix: improve the lexico-minimum finder in LemkeAlgorithm.
2022-09-02 10:17:14 -07:00
erwincoumans
daadfacfff Merge pull request #4309 from vitalybuka/box
Initialize 4th component of btVector3
2022-08-16 21:47:10 -07:00
Matt Bennice
ee0100abbf compare to SIMD_EPSILON. 2022-08-11 14:00:12 -07:00
Matt Bennice
555c0c6cd9 Remove the duplicated code outside of else 2022-08-11 11:55:50 -07:00
Matt Bennice
82b7fa6df0 Update parameters to be const. 2022-08-11 11:46:39 -07:00
Matt Bennice
c7a67d509e Update btSoftBody to handle close to degenerate triangles. 2022-08-11 11:09:08 -07:00
Vitaly Buka
acbeea543b Initialize 4th component of btVector3
It's used in btVector3::setMax
2022-07-22 11:08:39 -07:00
Sho Yamanishi
d19a418728 fix: improve the lexico-minimum finder in LemkeAlgorithm.
The following issues in btLemkeAlgorithm::findLexicographicMinimum() are addressed in this commit.

- The z_0 column located at A(*,2*dim), is used for lexico minimum test, which should not be used.
- If the check on the 1st column 'q' produces multiple minimums due to generacy,
  and if it contains z_0, the tie must be broken in favor of z_0 and return,
  which is not performed in the original.

- The 1st part to construct 'Rows' is unnecessary.
- The 2nd part has three nested loops with brute-force search, which is inefficient.

The improved version performs the lexico minimum test column-by-column
from the left-most column of (-B^{-1}q:B^{-1}).
If the test finds a single row, it returns it.
If the test finds multiple rows and if they contain z_0, it returns z_0.
Otherwise, it moves on to the next column.
Please see  2.2.2 "Pivot Step" of
    K. Murty, "Linear Complementarity, Linear and Nonlinear Programming" Heldermann Verlag, Berlin, 1998
for the algorithm details.

Some performance tests are done and non-negligible improvment was observed.
Please see https://github.com/ShoYamanishi/AppleNumericalComputing/tree/main/14_lcp for the test details.
2022-06-30 19:10:24 +02:00
Vitaly Buka
6626ed1a89 Initialize vertexSource
Default constructor of btVector3 does not initialize the object.
This fixes Memory Sanitizer reports.
2022-06-15 15:17:51 -07:00
erwincoumans
a1d96646c8 Merge pull request #4118 from dbartolini/fix-warning
Fix indentation
2022-05-26 23:12:33 -04:00
erwincoumans
466b76680b Merge pull request #4146 from petershh/patch-1
Add explicit int cast to avoid conversion warning
2022-05-26 23:10:40 -04:00
Erwin Coumans
4ca2de2fd7 Merge remote-tracking branch 'bp/master' 2022-05-20 12:32:22 -07:00
Erwin Coumans
7ba2965a22 bump up PyBullet to version 3.25 2022-05-20 12:21:34 -07:00
Erwin Coumans
56186db344 disable the early out, it has some issues.
see https://github.com/bulletphysics/bullet3/issues/4263
2022-05-20 12:18:37 -07:00
Rémi Verschelde
cc3f3cf7ca Fix -Wunused-but-set-variable in debug code 2022-05-16 16:07:29 +02:00
Erwin Coumans
ae4c1f8e72 bump up pybullet to 3.24 2022-04-25 18:33:59 -07:00
erwin coumans
9185f93174 manually copy data, to avoid possible memory leaks. 2022-04-25 18:31:07 -07:00
Erwin Coumans
9eb945b1e8 Merge remote-tracking branch 'bp/master' 2022-04-24 16:48:57 -07:00
Erwin Coumans
968b4356dc bump up pybullet version to 3.23 2022-04-24 16:48:28 -07:00
erwincoumans
617df44898 Merge pull request #4248 from CrosRoad95/patch-1
Allow delivered classes to access unscaled points
2022-04-23 15:52:39 -07:00
erwincoumans
0edcbd693a Merge pull request #4241 from erwincoumans/master
remove dependency on Examples from src folder.
2022-04-23 06:25:00 -07:00
Sebastian Jura
2a8d463fd3 Allow delivered classes to access unscaled points 2022-04-22 18:09:49 +02:00
Erwin Coumans
4f0673810c move loadDeformableState into CustomSoftBodyHelper, Bullet/src is not allowed to depend on Bullet/Examples 2022-04-18 21:17:21 -07:00
erwincoumans
cd771af26f Merge pull request #4228 from Teemperor/FixUninitRead
Fix uninitialized read in rpyFromMatrix
2022-04-14 21:55:52 -07:00
Szabolcs Dombi
aef1d3e27d fix missing getTransformB in btMinkowskiSumShape
- also keep original method with different casing for backward compatibility reasons
2022-04-14 17:10:40 +03:00
Raphael Isemann
772dcf57ff Fix uninitialized read in rpyFromMatrix
The computation of `rpy(1)` tries to take the sin of `rpy(0)` (which is only
initialized a line later).
2022-04-02 00:56:14 +02:00
Daniele Bartolini
66012fe215 Fix indentation 2022-03-28 21:57:41 +02:00
Erwin Coumans
d3b4c27db4 bump up version to 3.22 2022-03-25 19:59:28 -07:00
Erwin Coumans
5e8a4717b9 remove thread import, it is not needed and required C++11 2022-03-25 19:56:03 -07:00
Erwin Coumans
0070e0d52b fix compile error
bump up to pybullet 3.22
2022-03-25 19:49:53 -07:00
erwincoumans
5d75748c0d Merge pull request #4213 from bwrsandman/fix-uwp
UWP: Fix potentially uninitialized local pointer variable error
2022-03-25 19:29:36 -07:00
erwincoumans
b9117c780f Merge pull request #4212 from bwrsandman/patch-1
Fix compile on windows 64 bit arm architecture
2022-03-25 19:29:27 -07:00
erwincoumans
c07f6f66e8 Merge pull request #4211 from Roker2/fix_manifold_point_warning
BulletCollision: NarrowPhaseCollision: btManifoldPoint: Fix warning spam
2022-03-25 19:25:37 -07:00
Pawel
5e8343cffe Intermittent alignment issues fix
Not sure if this is omitted at purpose, but adding this like in most aligned classes/structs fixes some intermittent problems with alignment when reassigning transforms. There's also one `BT_DECLARE_ALIGNED_ALLOCATOR` missing in `btMatrix3x3.h` but with the fix above it doesn't seem to be necessary.
2022-03-24 10:39:51 +00:00
Sandy Carter
35264f81bb UWP: Fix potentially uninitialized local pointer variable error 2022-03-20 15:46:58 -04:00
Sandy
e4414c8023 Fix compile on windows 64 bit arm architecture
When building 64 bit arm with visual studio, btScalar will try to include SSE headers meant for x86 and x64 architectures.
This gives the following error in many source files:
```
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\emmintrin.h(20): fatal error C1189: #error:  This header is specific to X86 and X64 targets
```
2022-03-20 15:41:07 -04:00
Roker2
072439b8eb BulletCollision: NarrowPhaseCollision: btManifoldPoint: Fix warning spam
C:\Program Files (x86)\BULLET_PHYSICS\include\bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h: In constructor 'btManifoldPoint::btManifoldPoint(const btVector3&, const btVector3&, const btVector3&, btScalar)':
C:\Program Files (x86)\BULLET_PHYSICS\include\bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h:108:12: warning: 'btManifoldPoint::m_normalWorldOnB' will be initialized after [-Wreorder]
  btVector3 m_normalWorldOnB;
            ^~~~~~~~~~~~~~~~
2022-03-19 15:08:53 +03: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
2e4e25b330 Merge pull request #4190 from erwincoumans/master
fix build
2022-03-06 18:54:04 -08:00
erwincoumans
6b35174ea9 Merge pull request #4137 from duckdoom5/patch-1
Remove unused variable
2022-03-05 19:13:13 -08:00
Erwin Coumans
e262b2b7ee fix premake4 build 2022-03-05 18:41:55 -08:00
Erwin Coumans
90414a5074 Merge remote-tracking branch 'bp/master' into master 2022-03-05 14:02:18 -08:00