Commit Graph
100 Commits
Author SHA1 Message Date
Erwin Coumans 9ca957387f Deformables: enable double sided rendering, reduced the number of debug lines in regular rendering. 2019-11-12 20:08:49 -08:00
Erwin Coumans b2732b16be Merge remote-tracking branch 'bp/master' 2019-10-30 10:32:58 -07: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 938ac51da7 return a value in a degenerate svd case
re-disable svd by default
2019-10-29 20:40:57 -07:00
Erwin Coumans 3a4159c793 fix slow full btMatrixX operator* (was not used) 2019-10-08 19:31:58 -07:00
Erwin Coumans 2caf4505f0 pybullet: suppress debug printf (obj texture coordinate out-of-range) 2019-10-03 09:25:54 -07:00
Erwin Coumans 9a6c6a3fb4 Merge remote-tracking branch 'bp/master' 2019-10-02 22:39:51 -07:00
Erwin Coumans 0549fd4ecc PyBullet eglPlugin:
use -1 as default egl render device
clear m_cachedVisualShapes at reset
2019-09-27 17:14:36 -07:00
Erwin Coumans 2e5455def1 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-09-25 09:10:44 -07:00
Erwin Coumans 677fe1a368 fix define SKIP_DEFORMABE_BODY -> SKIP_DEFORMABLE_BODY 2019-09-25 09:08:48 -07:00
Erwin Coumans 275a2aecb0 fix compile issues 2019-09-13 09:37:23 -07:00
Erwin Coumans 95a7488310 PyBullet: fix createMultiBodyBatch.py example 2019-09-13 07:38:00 -07:00
Erwin Coumans b86bf6c571 remove BlockSolver/* 2019-09-11 10:20:37 -07:00
Erwin Coumans 25c61a40b5 remove BlockSolver/* 2019-09-11 10:19:43 -07:00
Erwin Coumans dee463eaae Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-09-11 08:39:11 -07:00
Erwin Coumans 93810cb09a revert constraint solver changes to allow block solver, since it breaks the multithreaded solver.
(re-enable if/when we can redo those changes without breaking multithreading)
2019-09-11 08:39:05 -07:00
Erwin Coumans db9bc4f835 PyBullet: write body sync data to larger shared memory 2019-09-09 18:05:29 -07:00
Erwin Coumans 64ea8e9f27 PyBullet createMultiBody(Batch), return all body unique ids
PyBullet: fix crash: always check for existance m_multibodyWorld in ::render method
2019-09-09 16:41:25 -07:00
Erwin Coumans 5a3c60c709 PyBullet: Fix syncBodyInfo for over 512 bodies.
PyBullet: Fix issue related to recent change in drawDebugDrawerLines (soft body)
2019-09-09 14:56:26 -07:00
Erwin Coumans 648844e898 minor fixes, bump up pybullet to 2.5.5 2019-08-14 21:30:10 -07:00
Erwin Coumans f09cefabe8 Merge remote-tracking branch 'bp/master' 2019-08-14 21:14:56 -07:00
Erwin Coumans 88d1788ee5 PyBullet: allow to update an existing heightfield shape
Also, use flags = p.GEOM_CONCAVE_INTERNAL_EDGE to enable internal edge filtering for heightfield (disabled by default)
See https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/examples/heightfield.py
2019-08-14 21:06:10 -07:00
Erwin Coumans e0b642d730 pybullet: fix calculateInverseKinematics2 2019-08-11 17:02:16 -07:00
Erwin Coumans f9b232b153 pybullet: allow programmatic creation of heightfield. See https://github.com/erwincoumans/bullet3/tree/master/examples/pybullet/examples/heightfield.py
premake4: allow to build example browser without C++11, re-enable stable PD control plugin using --enable_stable_pd=True
2019-08-11 13:59:24 -07:00
Erwin Coumans f5ae8bd1af Merge remote-tracking branch 'bp/master' 2019-08-09 10:17:57 -07:00
Erwin Coumans 54111f7023 PyBullet: add support for internal edge filtering for height field terrains 2019-08-09 10:14:14 -07:00
Erwin Coumans 046e036519 pybullet: restore internal edge filtering (see internalEdge.py example) 2019-08-08 19:36:23 -07:00
erwincoumans 226819b839 premake add enable_stable_pd option, so Bullet can be compiled without C++11 (Visual Studio 2010 etc)
PyBullet: improve sleeping: if the base is static and all joints in the chain between this link and the base are fixed, then this link is static too (doesn't merge islands)
Fix PyBullet compilation of Visual Studion 2010
2019-08-07 21:57:05 -07:00
Erwin Coumans 098cde55fd sync graphics server at resetSimulation, load* and resetJointState 2019-08-06 10:56:21 -07:00
Erwin Coumans 6d844e5df1 pybullet: more detailed nested timings 2019-08-01 19:15:02 -07:00
Erwin Coumans 7263439c4b improved for inserting profile timings from Python, to analyzer performance of pybullet programs.
See examples/pybullet/examples/profileTiming.py for an example. Note that python and c++ is properly interleaved.
Open a timings with a name, close the timing without a name. Note that timings can be recursive, added/popped as a stack.
2019-08-01 19:12:16 -07:00
Erwin Coumans 397767cb60 Merge remote-tracking branch 'bp/master' 2019-07-31 17:54:29 -07:00
Erwin Coumans 10153b3b3a add texture support for cube, when using createCollisionShape(GEOM_BOX) 2019-07-31 14:49:49 -07:00
Erwin Coumans 38d56a42de Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-07-29 20:29:29 -07:00
Erwin Coumans d58a85fec4 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:29:07 -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 36f3adc03f copy/move heightfield files around (part of pybullet_data)
prepare for heightfield support in pybullet (first step, needs a bit more)
2019-07-25 13:01:26 -07:00
Erwin Coumans ebde9926a8 add example loading heightfield from image and csv, using assets from DeepLoco (thanks to Jason Peng) and
from this Blender tutorial https://www.beamng.com/threads/tutorial-adding-heightmap-roads-using-blender.16356/
2019-07-23 11:26:31 -07:00
Erwin Coumans 96b76dd107 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-07-23 08:51:34 -07:00
Erwin Coumans 7ead9cf8ba fix a memory leak in previous commit, in pybullet_resetJointStatesMultiDof 2019-07-22 09:07:19 -07:00
Erwin Coumans b2825724d4 only if SPD is enabled 2019-07-21 22:03:23 -07:00
Erwin Coumans 8f220c1b23 fix memory leak in previous commit 2019-07-21 21:48:51 -07:00
Erwin Coumans 602f736640 Merge remote-tracking branch 'bp/master' 2019-07-21 13:13:52 -07:00
Erwin Coumans 0cf6685041 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-07-21 13:13:25 -07:00
Erwin Coumans 39a4e8dcd9 Implement faster array versions of PyBullet: getJointStatesMultiDof, getLinkStates, setJointMotorControlMultiDofArray, resetJointStatesMultiDof,
Implement StablePD in C++ through setJointMotorControlMultiDofArray method for pybullet_envs.deep_mimic, see testHumanoid.py and examples/pybullet/examples/humanoidMotionCapture.py
Minor fix in ChromeTraceUtil in case startTime>endTime (why would it happen?)
2019-07-21 13:08:22 -07:00
Erwin Coumans dff277ad7b add laikago urdf with toes (for inverse kinematics, and control over stiffness/damping to model rubber) 2019-07-17 12:30:49 -07:00
Erwin Coumans 7a7f944e39 fix issue in previous commit (need to reserve instead of resize) 2019-07-10 20:52:45 -07:00
Erwin Coumans ee9575167d expose PyBullet.calculateInverseKinematics2 that allows to specify multiple IK end effector locations (not multiple orientations)
usage example:
jointPoses = p.calculateInverseKinematics2(bodyUniqueId, [endEffectorLinkIndices], [endEffectorTargetWorldPositions])
2019-07-10 17:21:18 -07:00
Erwin Coumans 9db6acd97d support changeVisualShape(rgbaColor) through GraphicsServer/Client
support getCameraInfo through GraphicsServer/Client
2019-07-02 09:48:34 -07:00
erwincoumans 9e28737b57 Merge pull request #2298 from erwincoumans/master
configureDebugVisualizer: expose lightPosition, shadowMapResolution (texture resolution) and shadowMapWorldSize
2019-06-19 11:48:25 -07:00
Erwin Coumans ed4515ae17 for the GraphicsServer, expose a sync transform interval: only synchronize the transform once the stepSimulation exceeds this time interval.
(for example, run the simulation at 1kHz but sync the graphics transforms to remove graphics server at 30Hz)
2019-06-19 09:45:29 -07:00
erwincoumans d762bc4e84 Merge pull request #2266 from devnexen/shader_example_build_fix
Fix shader example build / spotted by clang
2019-06-19 09:16:25 -07:00
Erwin Coumans c3b7f39aaf expose shadowMapResolution (texture resolution) and shadowMapWorldSize (size in meters in world space)
expose pybullet.ConfigureOpenGLVisualizerRequest(lightPosition=[x,y,z], shadowMapWorldSize=10.5, shadowMapResolution=16384)
See examples/pybullet/examples/configureDebugVisualizer.py for an example.
This reimplements https://github.com/bulletphysics/bullet3/pull/2295 but without creating a new command/status and explicitly referring to the debug visualizer
(since the 'getCameraImage' also has a lightPosition)
2019-06-19 09:01:16 -07:00
erwincoumans bc9c477edb Merge pull request #2296 from Steven89Liu/urdfparser
fix the issue of converting the double to single.
2019-06-19 07:21:50 -07:00
erwincoumans 0b9c0cebfb Merge pull request #2294 from erwincoumans/master
make pybullet.getMeshData work for softbody
2019-06-18 21:18:56 -07:00
Erwin Coumans 7e76ee0ad7 make pybullet.getMeshData work for softbody 2019-06-17 21:43:38 -07:00
Erwin Coumans 20d9ad5f24 Merge remote-tracking branch 'bp/master' 2019-06-17 20:37:34 -07:00
Erwin Coumans d888c50f15 avoid getting stuck in RemoteGUIHelper when graphics server isn't started first. 2019-06-17 18:30:39 -07:00
Erwin Coumans e286fbd9f2 fixes for RemoteGUIHelper 2019-06-15 10:30:48 -07:00
Erwin Coumans 708f66ac42 add RemoteGUIHelper to communicate between graphics client/server 2019-06-14 08:06:21 -07:00
erwincoumans dd23cadd73 Merge pull request #2291 from bulletphysics/revert-2221-c_api_refactor_build
Revert "C api refactor build"
2019-06-14 07:50:33 -07:00
erwincoumans e1326adff5 Revert "C api refactor build" 2019-06-14 07:49:24 -07:00
Erwin Coumans 95a79800ec Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-06-13 23:24:42 -07:00
Erwin Coumans 6160b52fd7 graphicsServer to workaround OpenGL issues on some servers. 2019-06-13 23:24:22 -07:00
Erwin Coumans dc9549b2b4 Merge remote-tracking branch 'bp/master' 2019-06-10 16:24:42 -07:00
erwincoumans 5ec8339b6f Merge pull request #2270 from jamoflaw/deadlock-on-exit
Destroy semaphore after join
2019-06-10 19:24:28 -04:00
erwincoumans 9457646737 Merge pull request #2279 from AndreaCatania/patch-3
Fix initialization order
2019-06-10 19:23:49 -04:00
Erwin Coumans 8c796a954c Merge remote-tracking branch 'bp/master' 2019-06-10 16:21:20 -07:00
erwincoumans 500264ca23 Merge pull request #2276 from erwincoumans/master
add toes to Mini Cheetah
2019-06-02 18:29:29 -04:00
erwincoumans d7c0c9c017 update ExampleBrowser InverseKinematics example to track 4 end effectors at once. 2019-06-01 19:43:27 -07:00
erwincoumans 36896db828 Merge remote-tracking branch 'bp/master' 2019-06-01 07:29:31 -07:00
erwincoumans dd8885bf32 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-06-01 07:29:09 -07:00
erwincoumans 78e1baede8 Merge pull request #2257 from mtheall/master
Return at least 1 from btGetNumHardwareThreads
2019-05-27 14:01:43 -07:00
Erwin Coumans 093986f1ee revert to previous leg style of Microtaur 2019-05-22 23:42:32 -04:00
Erwin Coumans e13df4ce48 add toe endeffectors for IK of Microtaur 2019-05-22 22:08:45 -04:00
Erwin Coumans d7e863e51a update microtaur URDF and example, to be compatible with minitaur_rainbow_dash 2019-05-22 10:59:20 -04:00
Erwin Coumans af5bfb4089 added Microtaur URDF file, with basic system identification
See https://www.youtube.com/watch?v=UmGnLgpEVTE
2019-05-21 22:33:16 -04:00
erwincoumans 2f0ee2870d Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-05-09 09:41:32 -07:00
Erwin Coumans 2b9bece2c8 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-05-08 12:03:46 -07:00
Erwin Coumans 577dd16299 fix test compilation 2019-05-08 12:03:23 -07:00
erwincoumans b40bb583b7 Merge pull request #2235 from RanTig/user-data-direct-fix
Fixes bug in getNumUserData in the physics direct client.
2019-05-06 16:30:22 -07:00
erwincoumans 2f3dfce2bf Merge pull request #2236 from AndreaCatania/patch-3
Multibody memory invalid writing
2019-05-06 15:37:10 -07:00
erwincoumans f4f5f70886 Merge pull request #2231 from fuchuyuan/master
set softbody start position and orientation in pybullet
2019-05-05 11:26:43 -07:00
erwincoumans 7f6c479ea6 Merge pull request #2232 from EmilNorden/master
fixed build on latest version of Clang
2019-05-05 11:25:51 -07:00
erwincoumans de2d22f76b Merge pull request #2226 from fuchuyuan/softBodyExp
Soft body exp
2019-05-02 17:09:08 -07:00
erwincoumans ba899b371d Make btMatrixX::printMatrix const 2019-05-02 16:18:29 -07:00
erwincoumans aec9968e28 Merge pull request #2218 from erwincoumans/master
apply Python formatting using yapf (thanks to @kngwyu)
2019-04-28 16:06:54 +02:00
erwincoumans a8d1c121fd allow Z as up-axis for raycast acceleration in btHeightfieldTerrainShape 2019-04-16 10:34:59 -07:00
erwincoumans bf0eb4703d Merge pull request #2200 from YungKC/patch-1
Fix render issue in server render mode (e.g., docker)
2019-04-16 06:31:58 -07:00
erwincoumans 2a9bfbdb1c Merge pull request #2204 from erwincoumans/master
add raycast accelerator for btHeightfieldTerrainShape, thanks to Marc…
2019-04-15 22:20:06 -07:00
erwincoumans a936e98300 Merge pull request #2205 from bulletphysics/revert-2062-heightfield_accelerator
Revert "Accelerated terrain raycast with "Bresenham" and chunks"
2019-04-15 22:19:53 -07:00
erwincoumans ee9b14299c Revert "Accelerated terrain raycast with "Bresenham" and chunks" 2019-04-15 22:19:40 -07:00
erwincoumans d9d37cc4ea Merge pull request #2062 from Zylann/heightfield_accelerator
Accelerated terrain raycast with "Bresenham" and chunks
2019-04-15 22:18:58 -07:00
erwincoumans f28fd91e4f add raycast accelerator for btHeightfieldTerrainShape, thanks to Marc Zylann, see https://github.com/bulletphysics/bullet3/pull/2062
it can be disabled by setting the flag cb.m_flags |= btTriangleRaycastCallback::kF_DisableHeightfieldAccelerator;
acceleration is disabled for z axis up.
add btHeightfieldTerrainShape example to example browser
2019-04-15 21:55:29 -07:00
erwincoumans a929e8f2e5 Merge pull request #2203 from erwincoumans/master
implement stablePD control version of testLaikago,  fix getCameraImage in VR,  only report solver analytics if enabled using setPhysicsEngineParameter
2019-04-15 08:52:03 -07:00
erwincoumans e97a7d77af only report solver analytics if enabled using setPhysicsEngineParameter(reportSolverAnalytics=1) 2019-04-14 18:20:20 -07:00
erwincoumans 219970c09e fix getCameraImage in VR server using renderer=pybullet.ER_BULLET_HARDWARE_OPENGL 2019-04-14 14:08:35 -07:00
erwincoumans 154c65ae4d Merge branch 'master' of https://github.com/erwincoumans/bullet3 2019-04-11 22:19:12 -07:00
erwincoumans 5ff52e47d9 report constraint solver analytics data, currently for each island the number of solver iterations used and remaining residual error. 2019-04-11 22:19:02 -07:00
erwincoumans c6a43e0a5b Merge pull request #2190 from JayFoxRox/pybullet-visibility
Reduce visibility of Bullet symbols in PyBullet
2019-04-09 12:22:21 -07:00