Commit Graph

9081 Commits

Author SHA1 Message Date
notrabs
b2fd9a492d Fix crash when btSoftBody collides with btBvhTriangleMeshShape inside a btCompoundShape
- The triBody->getCollisionShape() returns the btCompoundShape again, which does not implement the btConcaveShape interface required
- The crash happens when processAllTriangles is called below
2021-08-08 01:11:04 +02: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
e399944982 add simplified Laikago model for faster CPU rendering (getCameraImage in direct mode using TinyRenderer) 2021-08-03 13:26:39 -07:00
Antonin Raffin
13f3778c22 Fix SB3 comment 2021-07-29 15:24:46 +02:00
Antonin Raffin
2f8b44c702 Migrate to Stable-Baselines3 2021-07-29 15:21:49 +02:00
erwincoumans
0e124cb2f1
Merge pull request #3841 from erwincoumans/master
fix some msan (memory sanitizer) issues
2021-05-12 13:54:56 -07:00
erwincoumans
a435fb7a41
Merge pull request #3819 from cadop/bullet-client-subprocess-safety
Fix for bullet_client to be used from a class instance during multiprocessing
2021-05-12 13:54:00 -07:00
erwincoumans
3e0a211868
Merge pull request #3840 from fuchuyuan/fixmsan
initialize unused fields for deformable collision detection
2021-05-12 13:53:11 -07:00
Erwin Coumans
92fb2db0a3 fix some msan (memory sanitizer) issues 2021-05-12 20:14:15 +00:00
Chuyuan Fu
88112560a1 initialize unused fields for deformable collision detection 2021-05-11 22:13:42 -07:00
erwincoumans
ebe1916b90
Merge pull request #3834 from erwincoumans/master
bump up pybullet version (and c++ version) to 3.17/3.1.7
2021-05-07 11:04:02 -07:00
Erwin Coumans
092b7bc3d9 bump up pybullet version (and c++ version) to 3.17/3.1.7 2021-05-07 11:03:21 -07:00
erwincoumans
39d981bce6
Merge pull request #3832 from erwincoumans/master
expose roll angle, fix python 2.x compatibility
2021-05-07 10:40:43 -07:00
erwin coumans
adcf785a4a re-enable eGUIHelperSetRgbBackground 2021-05-07 09:07:40 -07:00
Erwin Coumans
cd76d605a9 more fixes for tsan 2021-05-07 15:37:56 +00:00
erwin coumans
f14911c998 fix a tsan test failure 2021-05-06 18:34:43 -07:00
erwin coumans
e952ac6f63 Add pybullet.configureDebugVisualizer(rgbBackground=[red,green,blue]) (each component a float in the range [0,1])
This is an alternative to passing options="--background_color_red=red --background_color_green=green --background_color_blue=blue" in the connect method.
2021-05-06 18:08:22 -07:00
erwin coumans
8e85dedaa9 PyUnicode_AsUTF8 breaks python 2.x compatibility 2021-05-06 10:19:15 -07:00
erwin coumans
e4ff5a45d4 Merge branch 'master' of github.com:erwincoumans/bullet3 into master 2021-04-28 12:13:44 -07:00
erwin coumans
b696ed7d7b enable roll angle in pybullet.computeViewMatrixFromYawPitchRoll / b3ComputeViewMatrixFromYawPitchRoll 2021-04-28 12:13:31 -07:00
cadop
ace34c4d08 check the process id before disconnecting 2021-04-27 19:33:37 -04:00
erwincoumans
00cd39dc50
Merge pull request #3799 from AndreaCatania/patch-5
Fixes assertion caused by a 0len vector normalization
2021-04-26 07:54:48 -07:00
Andrea Catania
c0efe069c5
Fixes assertion caused by a 0len vector normalization
fixes #3194
2021-04-26 11:04:39 +02:00
erwincoumans
c74d5e322f
Update README.md 2021-04-25 20:14:43 -07:00
erwincoumans
8aab71a86e
Merge pull request #3362 from erwincoumans/master
bump up pybullet version
2021-04-25 00:42:08 -07:00
Erwin Coumans
d70c3cfdc8 Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-25 00:41:28 -07:00
Erwin Coumans
18c62ed725 bump up pybullet version 2021-04-25 00:41:13 -07:00
erwincoumans
7f7238f630
Merge pull request #3361 from erwincoumans/master
@erwincoumans PyBullet: try to address activation/deactivation issue with fixed base multibody
2021-04-25 00:38:57 -07:00
erwin coumans
a142e8d174 Merge branch 'master' of github.com:erwincoumans/bullet3 into master 2021-04-24 23:53:04 -07:00
erwin coumans
3b2e46e7dd PyBullet: try to address activation/deactivation issue with fixed base multibody with links. 2021-04-24 23:52:53 -07:00
erwincoumans
e0b9bc6d7f
Merge pull request #3357 from erwincoumans/master
fixed base should set activation state to 'ISLAND_SLEEPING'
2021-04-22 21:29:43 -07:00
Erwin Coumans
1f6baad974 bump up pybullet version to 3.1.5 2021-04-22 20:42:20 -07:00
Erwin Coumans
85a03bf999 Merge remote-tracking branch 'bp/master' 2021-04-22 20:41:59 -07:00
Erwin Coumans
fc2992b75a Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-22 20:41:45 -07:00
erwin coumans
6cb72b5128 python38 in cmake batch file 2021-04-22 20:32:49 -07:00
erwin coumans
46ea89a284 fixed base should set activation state to 'ISLAND_SLEEPING' 2021-04-22 20:20:08 -07:00
erwincoumans
45d3ead747
Merge pull request #3356 from erwincoumans/master
LICENSE should have no txt extension
2021-04-22 16:46:07 -07:00
Erwin Coumans
184b7816d0 LICENSE should have no txt extension 2021-04-22 16:45:29 -07:00
erwincoumans
a7832e3a18
Merge pull request #3355 from erwincoumans/master
sync recent changes
2021-04-22 16:37:01 -07:00
erwincoumans
afb572166a
Merge pull request #3353 from crewmatt/master
Fix memory leak in BulletSoftBody.
2021-04-22 16:29:01 -07:00
Erwin Coumans
c915e82d49 Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-22 16:20:31 -07:00
Matt Bennice
225fa20944 Fix memory leak in BulletSoftBody. 2021-04-22 15:32:38 -07:00
Erwin Coumans
83a5fe2d31 Merge branch 'master' of github.com:erwincoumans/bullet3 2021-04-21 22:14:38 -07:00
erwincoumans
00dcc77885
Merge pull request #3352 from erwincoumans/master
getDynamicsInfo report local inertia diagonal for useMaxima… …
2021-04-20 20:22:38 -07:00
erwin coumans
a5761f2b10 pybullet: getDynamicsInfo report local inertia diagonal for useMaximalCoordinates 2021-04-20 20:20:55 -07:00
Erwin Coumans
9f91e6837a remove type annotations
bump up pybullet version
2021-04-20 15:50:12 -07:00
erwincoumans
5c2fa7009b
Merge pull request #3300 from al-tu/cmake-option-per-extra
one cmake option per one extra package
2021-04-20 14:57:02 -07:00
erwincoumans
201e7159d6
Merge pull request #3351 from erwincoumans/master
PyBullet: expose useMultiBody argument for loadMJCF command, expose sleeping threshold
2021-04-20 14:42:42 -07:00
erwincoumans
f774a102ee
Merge pull request #3350 from r-a-sattarov/master
examples/RobotSimulator/CMake: fixed warning (mis-matching arguments)
2021-04-20 13:45:04 -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