9405 Commits
Author SHA1 Message Date
erwincoumans 63c4d67e33 add pyproject.toml
see also https://packaging.python.org/en/latest/guides/modernize-setup-py-project/ and
https://github.com/pypa/pip/issues/6334
2025-10-21 19:13:14 -07:00
Erwin Coumans d1a4256b3a update CMake required version 2025-04-23 14:17:20 -07:00
Erwin Coumans 6c888f4abd update docker command/version, so pybullet wheels are compatible with numpy 2.0 and 1.0
(thanks to Antonin Raffin for the report)
2025-01-29 15:09:22 -08:00
Erwin Coumans bda00360fb add wheel creation script, usage
assume bullet3 is located in ~/dev/bullet3 and run this docker command from ~

sudo docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64

then in the docker
cd io/dev/bullet3
./wheel.sh

after exit of docker, the wheels are in ~/wheelhouse
and can be uploaded to pypi
2025-01-29 14:29:46 -08:00
Erwin Coumans 69783a8480 : 2025-01-29 14:28:32 -08:00
erwincoumans e9c461b0ac Merge pull request #4576 from lukebayes/patch-1
Add missing ".h" to file pointer
2024-04-09 16:35:53 -07:00
erwincoumans 43d336fcad Merge pull request #4585 from ConnorTingley/Floating-Body-Inverse-Dynamics
Fix calculateInverseDynamics losing one joint DOF for floating bodies
2024-04-09 16:30:33 -07:00
erwincoumans 5e89410409 Merge pull request #4583 from iche033/iche033/joint_force_torque
Fix joint force/torque feedback
2024-04-09 16:25:09 -07:00
ctingley 2c7918423d Quaternion to Euler correction 2024-02-27 07:17:48 -08:00
Ian Chen d7f9d66207 apply joint forces patch
Signed-off-by: Ian Chen <ichen@openrobotics.org>
2024-02-23 23:47:20 +00:00
Luke Bayes 335c18821f Update CMakeLists.txt
Quick patch to fix a build warning.

When building from source with CMake, this warning showed up:

```bash
CMake Warning (dev) at examples/ExampleBrowser/CMakeLists.txt:433 (ADD_EXECUTABLE):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run 
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.                     
                                                                           
  File:                                                                    
                                                                           
    examples/Benchmarks/TaruData.h

This warning is for project developers.  Use -Wno-dev to suppress it.      
```

Adding the .h to the reference mitigated this warning.
2024-02-18 22:16:04 -05: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 39b8de74df Merge pull request #4444 from littlemine/patch-1
fix child transforms of a compound
2023-05-04 06:10:06 -07: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
Xinlei Wang d9a4a7e703 fix child transforms of a compound 2023-04-11 22:21:21 +08: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
erwincoumans 0e59474e1c Merge pull request #4413 from aprilprojecteu/master
re-enable softbody/rigidbody contact report
2023-02-24 10:54:03 -08:00
erwincoumans c037d9ba27 Merge pull request #4382 from ManuCorrea/fix-points
Added fix for deleting debug points with life time.
2023-02-24 10:32:04 -08:00
Maarten Behn e323404ac3 ok it's working I guess 2022-12-27 20:28:50 +01:00
Maarten Behn 5c8dfe4b21 got the data tunnelt with getMeshData 2022-12-27 19:46:22 +01:00
Maarten Behn 54cdf39933 extending wrapper 2022-12-22 19:27:16 +01:00
Maarten Behn 2b4757f512 extend wrapper 2022-12-21 14:44:35 +01:00
Maarten Behn 9dd446609a Adding getTetraMeshData() 2022-12-19 15:31:21 +01:00
Johannes Brust 60512c7872 Fix bug due to missing swap
(cherry picked from commit 61d5bdb783)
2022-12-19 11:00:27 +01: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
yo 8549f00502 Added fix for deleting debug points with life time. 2022-12-13 18:39:21 +01:00
erwincoumans 2c204c49e5 Merge pull request #4284 from vitalybuka/master
Initialize vertexSource
3.25
2022-09-24 20:00:36 -07:00
erwincoumans 327336d80b Merge pull request #4314 from mahiuchun/core
Use OpenGL 3.3 core profile in eglCreateContext().
2022-09-24 19:59:02 -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
erwincoumans fd2fe1365a Merge pull request #4321 from crewmatt/master
Update btSoftBody to handle close to degenerate triangles.
2022-08-16 21:45:01 -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
Hill Ma dfdb6e2db9 Use OpenGL 3.3 core profile in eglCreateContext().
- Similar attributes are already used in GLFWOpenGLWindow.cpp.
- This could avoid setting environment variables when using old Mesa where OpenGL compatibility profile is limited to 3.1.
2022-08-07 11:46:02 -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
erwincoumans 19aa740d84 Merge pull request #4269 from erwincoumans/master
OpenAI Gym API change: add mode argument to render method
2022-05-20 12:35:28 -07: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
erwincoumans 2ad5f5a7d7 Merge pull request #4264 from akien-mga/fix-Wunused-but-set-variable
Fix `-Wunused-but-set-variable` in debug code
2022-05-20 12:14:30 -07:00
Erwin Coumans b9df2190f1 OpenAI Gym API change: add mode argument to render method 2022-05-20 11:16:19 -07:00
Rémi Verschelde cc3f3cf7ca Fix -Wunused-but-set-variable in debug code 2022-05-16 16:07:29 +02:00
erwincoumans 7dee3436e7 Merge pull request #4252 from erwincoumans/master
manually copy data, to avoid possible memory leaks.
Thanks to Jason Peng and Gilbert Feng for the report and reproduction case.
3.24
2022-04-25 19:39:24 -07:00