Commit Graph

131 Commits

Author SHA1 Message Date
erwincoumans
ce26271923
Merge pull request #3930 from ffontaine/master
Extras/VHACD/inc/vhacdMutex.h: fix musl build
2021-09-20 14:38:30 -07:00
Aaron Franke
ad74cfe6c8
Update Bullet URL in copyright statements 2021-09-13 09:06:14 -05:00
Erwin Coumans
68424feb2d don't use empty frame for pose in sdf files
use hint for clang that if (0) is intentional
2021-08-30 19:40:20 +00:00
Fabrice Fontaine
dd37b97e79 Extras/VHACD/inc/vhacdMutex.h: fix musl build
Fix the following build failure on musl (which does not provide
PTHREAD_MUTEX_RECURSIVE_NP):

In file included from /tmp/instance-5/output-1/build/bullet-3.09/src/LinearMath/btScalar.h:289,
                 from /tmp/instance-5/output-1/build/bullet-3.09/src/LinearMath/btVector3.h:19,
                 from /tmp/instance-5/output-1/build/bullet-3.09/src/LinearMath/btConvexHullComputer.h:18,
                 from /tmp/instance-5/output-1/build/bullet-3.09/Extras/VHACD/src/VHACD.cpp:28:
/tmp/instance-5/output-1/build/bullet-3.09/Extras/BulletRobotics/../../Extras/VHACD/inc/vhacdMutex.h: In constructor 'VHACD::Mutex::Mutex()':
/tmp/instance-5/output-1/build/bullet-3.09/Extras/BulletRobotics/../../Extras/VHACD/inc/vhacdMutex.h:97:54: error: 'PTHREAD_MUTEX_RECURSIVE_NP' was not declared in this scope; did you mean 'PTHREAD_MUTEX_RECURSIVE'?
   97 |   VHACD_VERIFY(pthread_mutexattr_settype(&mutexAttr, PTHREAD_MUTEX_RECURSIVE_NP) == 0);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/79cd2024b3dfc8d3e896cdacf67fb891df81ca6e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-08-07 17:17:41 +02:00
Erwin Coumans
92fb2db0a3 fix some msan (memory sanitizer) issues 2021-05-12 20:14:15 +00:00
Alexander Turkin
f26e858154 added default ON values for cmake OPTIONS to fix linker errors on ci builds 2021-04-14 13:42:43 +03:00
Alexander Turkin
f04768ecc4 Merge branch 'master' into cmake-option-per-extra 2021-04-14 13:41:19 +03:00
erwin coumans
5832166f53 Merge branch 'master' of github.com:erwincoumans/bullet3 into master 2021-03-04 10:31:16 -08:00
erwin coumans
201f3dd7d8 cmake: move stable pd files from BulletRoboticsGUI to BulletRobotics. 2021-03-04 09:55:35 -08:00
Erwin Coumans
b619763569 Merge remote-tracking branch 'bp/master' 2021-03-04 09:38:13 -08:00
vabr-g
390eeb111b
Fix stack overflow in parsing URDF files in Bullet
When reading response from the Bullet server after a "load URDF" command, the client code allocated and zeroed buffers for the data chunks with a "+1" to account for the terminating zero. This was when the buffer pointer was interpreted as a `char *`, so it meant "+ 1 byte".

When reading those buffers, however, the associated pointer was a `void *`, so reading `sizeof(void*)` (8 on my machine) bytes at a time. Therefore it was reading up to 7 bytes past the allocated (and zeroed) memory.

The change fixes that by changing the "+ 1" to "+ sizeof(void*)". At one place it also extends the zeroing to the final buffer position (missing "+ 1" in the original).
2021-03-02 11:55:19 +01: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
Alexander Turkin
7aff26b80d one cmake option per one extra package 2021-02-22 07:30:16 +03:00
erwincoumans
53bc9fe222
Update obj2sdf.cpp 2021-02-08 07:55:04 -08:00
erwincoumans
e850c15754
Create LICENSE.txt 2021-02-08 07:53:36 -08:00
erwincoumans
671668f6c8
Update DNA_rigidbody.h 2021-02-08 07:52:54 -08:00
erwincoumans
b259d04ba9
Create LICENSE.txt 2021-02-08 07:50:39 -08:00
erwincoumans
9673ff28cf
Create LICENSE.txt 2021-02-08 07:49:56 -08:00
erwincoumans
a101dfeaa0
Create LICENSE.txt 2021-02-08 07:49:13 -08:00
erwincoumans
7155d05d67
Create LICENSE.txt 2021-02-08 07:48:31 -08:00
Gleb Mazovetskiy
6442613ba6 CMake: Use Threads instead of pthread directly
On some systems, such as Android, threads are not provided via
`-lpthread`.

CMake comes with a built-in module for finding the correct threads
library.

Use it to fix the linking issue on Android and possibly other systems.
2021-01-20 02:16:51 +00: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
stolk
1c64add35e Do not return a dangling pointer! 2020-04-01 10:59:16 -07:00
Erwin Coumans
0b6457d318 fix cmake/premake builds 2020-03-22 11:58:39 -07:00
Erwin Coumans
663c7ddc54 more TCP remote fixes 2020-03-20 21:12:45 -07:00
Erwin Coumans
9c53c52847 fix BulletRoboticsGUI target 2020-03-17 00:06:12 -07:00
Erwin Coumans
fde6cffecc create BulletRoboticsGUI CMake target, pybullet links against it
fix BulletRobotics header install
2020-03-16 23:15:18 -07:00
Erwin Coumans
f0528db5e9 embed V-HACD directly into Pybullet to make it easier to use:
pip3 install pybulle
import pybullet as p
p.connect(p.DIRECT)
p.vhacd("teddy.obj", "teddy_large_newout.obj", "newlog.txt", depth=2,resolution=1000000)
2020-03-16 00:38:52 -07:00
Erwin Coumans
623bd27bac VHACD -> use Bullet/src/LinearMath instead of a copy of those files 2020-03-15 22:54:01 -07:00
Chuyuan Fu
1efe8209ac fix obj2sdf mergeMaterial 2020-01-30 19:58:21 -08:00
Chuyuan Fu
e76ebe86d9 fix index for obj2sdf 2020-01-30 19:25:04 -08:00
Aaron Franke
133fd3a73c
Fix "seperate" typos 2019-10-31 08:29:09 -04:00
Erwin Coumans
5a9b862ef5 bump up to Bullet version 2.89 and update serialization structures 2019-10-30 10:32:14 -07:00
Erwin Coumans
3f3175e314 disable Extras BulletRobotics by default in cmake 2019-10-28 10:07:22 -07:00
Chuyuan Fu
10108cd3ea update obj loader 2019-08-13 16:53:51 -07:00
Erwin Coumans
51fba6f78d export btHeightfieldTerrainShape to PyBullet. Note that tinyrenderer doesn't support rendering it (it would be too slow on CPU)
fix rare getKeyboardEvents threading issue
change texture color to default plane.urdf blue
2019-07-29 20:23:38 -07:00
Erwin Coumans
31688ffb34 fix in multi-endeffector IK, calculate jacobian uses dofs without base, fix premake build of some projects 2019-07-11 22:22:35 -07:00
Steven
de16c23209 commit the ABA comparison test between the RBDL and Bullet, and use the option BULLET_BUILD_RBDL_COMPARE_TEST to control if build it.
it is disabled by default.
2019-07-02 15:35:33 +08:00
Erwin Coumans
ef9570c315 add yapf style and apply yapf to format all Python files
This recreates pull request #2192
2019-04-27 07:31:15 -07:00
Erwin Coumans
0409478152 use certain methods from std namespace 2019-03-23 12:45:59 -07:00
erwincoumans
f90fe7ceac
Merge pull request #2047 from erwincoumans/master
Add humanoid stable PD control, preliminary optional PhysX 4.0 backend for Pybullet, various fixes
2019-01-23 10:16:06 -08:00
erwincoumans
ae8e83988b Add preliminary PhysX 4.0 backend for PyBullet
Add inverse dynamics / mass matrix code from DeepMimic, thanks to Xue Bin (Jason) Peng
Add example how to use stable PD control for humanoid with spherical joints (see humanoidMotionCapture.py)
Fix related to TinyRenderer object transforms not updating when using collision filtering
2019-01-22 21:08:37 -08:00
Maximilien Naveau
4e1e3ecb56 Update the installation of the bullet_robotics package
- Create a pc for the bulletRobotics extras package.
- Install all necessary includes in include/bullet_robotics.
- The .pc add directly the bullet_robotics folder as include directory (TODO, move the bullet robotics in the src folder).
2019-01-17 13:55:10 +01:00
erwincoumans
8e8c3fb315 few fixes in inverse dynamics 2018-12-19 20:15:30 -08:00
Erwin Coumans
882252f8c0 move global from btMultiBody into dynamicsWorld.getSolverInfo 2018-11-05 10:50:03 -08:00
erwincoumans
c80e2816ad PyBullet: Use fileIOPlugin in processRestoreStateCommand
PyBullet: Report debug information in case of failure in restoreState.
2018-10-29 12:08:34 -07:00
erwincoumans
126537bd93 pybullet: fix issue with loadBullet command 2018-10-28 19:51:01 -07:00
erwincoumans
dba239fe8d First pass of load files through an interface (to allow loading from memory, zip file etc). So instead of posix fopen/fread, using CommonFileIOInterface.
A fileIO plugin can override custom file IO operations. As a small test, load files from a zipfile in memory.
Default fileIO implementation is in examples/Utils/b3BulletDefaultFileIO.h
Affects URDF, SDF, MJCF, Wavefront OBJ, STL, DAE, images.
2018-10-08 21:27:08 -07:00
erwincoumans
ab8f16961e Code-style consistency improvement:
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
2018-09-23 14:17:31 -07:00
Erwin Coumans
2cab56d6ef prepare build system(s) for collisionFilterPlugin 2018-07-27 15:48:24 +02:00