Commit Graph

8802 Commits

Author SHA1 Message Date
Erwin Coumans
9b81709669 premake: don't compile standalone-examples, they are not up-to-date 2020-10-07 08:42:32 -07:00
Erwin Coumans
bc51ac3f0f Support getCachedReturnData for PhysicsLoopBack
re-use existing code path for streaming plugin return data (work-in-progress)
2020-10-07 08:24:33 -07:00
Erwin Coumans
954ceff2ec Add an option for a plugin to report return data after calling executePluginCommand. Also add python binding.
Currently the return data has to fit in shared memory, 8MB (Linux, Windows) or 1MB (Apple)
Preparation for streaming is added (to allow unlimited return data, see CMD_CUSTOM_COMMAND_STREAM_RETURN_DATA)

New C-API: b3GetStatusPluginCommandReturnData
PyBullet reports return data if available, in pybullet_executePluginCommand

For the plugin developer:
plugin can provide additional return data for executePluginCommand in the b3PluginContext, during executePluginCommand.
Lifetime of this m_returnData pointer is minimum of next call to the next executePluginCommand or plugin termination.
2020-10-06 20:19:39 -07:00
Erwin Coumans
7a6c90409f Merge remote-tracking branch 'bp/master' into master 2020-10-06 13:56:06 -07:00
erwincoumans
afa4fb5450
Merge pull request #3097 from yxyang/patch-1
Add <inertia> for missing links in a1.urdf
2020-10-06 11:21:40 -07:00
Yuxiang Yang
82182e1ba7
Add <inertia> for missing links in a1.urdf
Currently a few collision frames in a1.urdf ("{FL/FR/RL/RR}_upper_shoulder") do not have <inertia> defined, and pybullet loads as if they have 1kg mass. This leads to inaccurate simulation results.
2020-10-06 00:28:24 -07:00
Erwin Coumans
6b91ecc0c5 allow to set changeDynamics(body, link, contactProcessingThreshold) for multibodies
(set to 0 if restitution is important)
2020-10-05 16:33:41 -07:00
erwincoumans
b12da620ab
Merge pull request #3082 from erwincoumans/master
@erwincoumans bump up PyBullet and Bullet version to 3.05 (in sync for this release)
2020-09-24 10:12:24 -07: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
Erwin Coumans
3d220888fa disable cone friction 2020-09-24 09:19:51 -07:00
erwincoumans
0c563174fc
Merge pull request #3037 from issakomi/cwe190-1
CWE-190 integer overflow in btConvexHullComputer
2020-09-22 12:58:43 -07:00
Erwin Coumans
2154aad0ca bump up Bullet to version 2.90 2020-09-21 18:09:08 -07:00
Erwin Coumans
8f20c2dcec bump up pybullet to 3.0.4 2020-09-21 17:46:03 -07:00
erwincoumans
438d21fa89
Merge pull request #3072 from erwincoumans/master
allow rendering of (textured) heightfield in TinyRenderer and EGL.
2020-09-21 17:45:10 -07:00
Erwin Coumans
cfd3c99f0e add spirit40 urdf file, compatible with
https://github.com/google-research/motion_imitation/pull/26
2020-09-21 17:44:07 -07:00
Erwin Coumans
e6c4305fa5 Merge branch 'master' of github.com:erwincoumans/bullet3 into master 2020-09-21 16:12:07 -07:00
Erwin Coumans
2e1b84487b Add a soccerball obj/urdf, hand-modeled in Blender, using guidance from https://www.youtube.com/watch?v=N93n6hPsqkI (but using texture mapping so the export to OBJ works in PyBullet) 2020-09-21 16:11:52 -07:00
Erwin Coumans
ad9ccec61e bump up pybullet again, 3.0.3 2020-09-20 16:39:32 -07:00
Erwin Coumans
d0dc96aa05 Merge remote-tracking branch 'bp/master' 2020-09-20 16:36:45 -07:00
Erwin Coumans
46a2823ebc bump up pybullet version 2020-09-20 16:34:50 -07:00
Erwin Coumans
1bd82e7d81 allow rendering of (textured) heightfield in TinyRenderer and EGL.
Also update normals, if heightfield is updated.
2020-09-20 16:03:56 -07:00
erwincoumans
ad931b8c39
Merge pull request #3071 from niello/patch-1
Fix for CMake 3.18.2 + VS2019
2020-09-19 11:57:48 -07:00
Vladimir Orlov
39363d200a
Fix for CMake 3.18.2 + VS2019 2020-09-19 17:27:37 +02:00
erwincoumans
7f4fdb16b3
Merge pull request #3061 from fuchuyuan/addAttributes
add configurable parameters to urdf
2020-09-18 16:59:43 -07:00
Chuyuan Fu
f51e92000a initialize default value 2020-09-17 15:38:23 -07:00
Erwin Coumans
4f8f28233c allow alternative deformable indexing (internal use/testing) 2020-09-17 03:15:44 -07:00
erwincoumans
5ce97ffdb1
Merge pull request #3066 from erwincoumans/master
allow alternative deformable indexing (internal use/testing)
2020-09-16 20:16:35 -07:00
erwincoumans
03ebf4e539
Merge pull request #3060 from r-a-sattarov/master
E2K: fixed build by MCST lcc compiler when using BUILD_EXTRAS=ON option
2020-09-16 12:18:22 -07:00
Chuyuan Fu
7d8379bad4 add configurable parameters to urdf 2020-09-14 12:34:21 -07:00
r-a-sattarov
73599ba199 E2K: fixed build by MCST lcc compiler when using BUILD_EXTRAS=ON option 2020-09-14 22:22:45 +03:00
erwincoumans
29304a53aa
Merge pull request #3058 from erwincoumans/master
bump up pybullet version, fix warning
2020-09-13 21:06:29 -07:00
Erwin Coumans
e9f486eebb narrow from double to float please 2020-09-13 18:32:52 -07:00
Erwin Coumans
391cf6bd94 Merge branch 'master' of github.com:erwincoumans/bullet3 2020-09-13 18:29:29 -07:00
Erwin Coumans
7125f32bc4 Merge branch 'master' of github.com:erwincoumans/bullet3 2020-09-13 16:52:43 -07:00
Erwin Coumans
3b563c73f4 bump up pybullet to 3.0.0 2020-09-13 16:52:29 -07:00
erwincoumans
d3dfe4aaa6
Merge pull request #3057 from erwincoumans/master
fixes in colors/cached textures for deformables
2020-09-13 16:50:10 -07:00
Erwin Coumans
0c2a54193c fixes in cached textures (pointer re-use) 2020-09-13 16:49:13 -07:00
Erwin Coumans
f9a96442d1 disable texture caching in some place, due to pointer re-use issue 2020-09-13 16:24:42 -07:00
Erwin Coumans
f8288e029e fix color for deformables, if texture is not specified 2020-09-13 16:07:42 -07:00
erwincoumans
87a22bc507
Merge pull request #3056 from erwincoumans/master
re-enable pybullet.getVisualShapeData for deformables
2020-09-13 15:21:43 -07:00
Erwin Coumans
9ae41971bc re-enable pybullet.getVisualShapeData for deformables
(was broken in previous commit)
2020-09-13 15:08:42 -07:00
Erwin Coumans
5d8c5c66d8 Merge branch 'master' of github.com:erwincoumans/bullet3 2020-09-12 21:14:03 -07:00
erwincoumans
c00b5926b5
Merge pull request #3051 from erwincoumans/master
allow rendering of textured deformables in 'getCameraImage' on CPU (TinyRenderer) and EGL and more improvements,
2020-09-12 20:58:20 -07:00
Erwin Coumans
bd1bd36bc6 allow to change texture for deformables 2020-09-12 20:12:46 -07:00
Erwin Coumans
d70cbd3ca2 bump up pybullet version to 2.9.8 2020-09-12 19:50:09 -07:00
Erwin Coumans
fcdfee2f12 deformable_torus.py: position camera better 2020-09-12 19:47:54 -07:00
Erwin Coumans
c58a54174e allow to set color of deformables for debug visualizer
don't render deformables for TinyRenderer/EGL if p.configureDebugVisualizer(p.COV_ENABLE_TINY_RENDERER,0)
Fix segmentation mask in tinyrenderer for deformables
2020-09-12 19:41:10 -07:00
Erwin Coumans
d104e4c2e1 Merge branch 'master' of github.com:erwincoumans/bullet3 into master 2020-09-12 18:16:02 -07:00
Erwin Coumans
e00691e132 more deformable rendering fixes, egl and tinyrenderer 2020-09-12 18:15:51 -07:00
Erwin Coumans
1452cae641 * add textured models of ball.vtk (obj/mtl) and torus (obj/mtl) and cloth.
1) allow to render deformables in 'getCameraImage', for TinyRenderer (tested OK) and EGL (untested)
2) allow to have textures for deformables. See deformable_ball.py, deformable_anchor.py and deformable_torus.py for examples
3) deformables: allow to request simulation mesh data (even if there is a render mesh) See deformable_anchor.py for an example usage
   data = p.getMeshData(clothId, -1, flags=p.MESH_DATA_SIMULATION_MESH)
4) fix deletion of deformables, thanks to Fychuyan, https://github.com/bulletphysics/bullet3/pull/3048
5) allow to enable and disable double-sided rendering, p.changeVisualShape(objectUid, linkIndex, flags=p.VISUAL_SHAPE_DOUBLE_SIDED)
6) fix GripperGraspExample, model not found
7) Fix deformable anchor not attaching to multibody with object unique id of 0
8) Fix issue with assignment of unique ids in TinyRenderer/EGL renderer (always use broadphase uid)
9) Avoid crash/issue of simulation with pinned vertices (mass 0) in btDeformableBackwardEulerObjective::applyExplicitForce
10) Store uv/normal in btSoftBody::RenderNode to allow textured meshes
11) (uncomment in btSoftBodyHelpers.cpp): dump vertices and indices in obj wavefront format, when loading a VTK file, for quicker creation of a (textured) surface mesh
12) allow interpolateRenderMesh also for old position-based soft bodies (not only the shiny new FEM deformables)
13) fix a few premake targets
14) update build_visual_studio_vr_pybullet_double_cmake.bat so it suits c:\python37 and installs locally
    for local install of Bullet, see also this example https://github.com/erwincoumans/hello_bullet_cmake
2020-09-12 01:03:04 -07:00