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
32c38cd3dc
remove 'disableVRCamera' to fix issue #2390
2019-09-24 13:42:45 -07:00
Erwin Coumans
74abd99192
fix asan int overflow in hash
2019-09-05 17:42:18 -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
Chuyuan Fu
4da456054c
Update PhysicsServerCommandProcessor and plugins to support render
2019-06-25 17:59:15 -07:00
mbennice
cf16c5c51f
Reduces wait in the gRPC plugin, fix state bug.
...
Updates the gRPC plugin to gather messages in its own thread, and
corrects the state details not being correctly added to shared memory.
2019-05-07 11:11:01 -07:00
Erwin Coumans
e6918b9cd4
fix CallData::CallStatus
2019-05-06 17:30:07 -07:00
Erwin Coumans
688df2c60b
fix exceeding shared memory usage, return of member of deleted class.
2019-05-06 17:13:42 -07:00
Erwin Coumans
72c6ed9abe
fix file caching issue
2019-04-25 07:04:22 -07:00
erwincoumans
1bac759a43
Update fileIOPlugin.cpp
...
fix check for (zip) file filename
2019-03-01 07:43:06 -08:00
erwincoumans
a9996088c8
Implement PyBullet.getCameraImage for PhysX backend.
...
PhysX backend, allow arbitrary plane normal, a few other fixes.
2019-02-24 14:09:42 -08:00
erwincoumans
71b1191947
texture caching and geometry caching (PhysX) for much faster loading of many same objects, helps benchmarking/comparison.
...
add command-line args for PhysX (numCores=..., solver=tgs, )
2019-02-21 19:24:18 -08:00
erwincoumans
a38093ad61
deal properly with resize/retina in eglPlugin/eglRendererVisualShapeConverter
2019-02-13 14:43:39 -08:00
Erwin Coumans
b257bd731b
PyBullet: allow createVisualShape to pass vertices, indices, normals and uv coordinates. This can be combined with changeVisualShape to set the texture.
2019-01-29 12:03:11 -08:00
erwincoumans
a6244d714e
more PyBullet PhysX preliminary work.
2019-01-25 10:14:54 -08:00
Erwin Coumans
7df6adb9f8
fix compilation, make travis CI happy
2019-01-23 19:58:19 -08:00
erwincoumans
43d3cdfa38
make Travis CI pass
2019-01-23 19:34:21 -08:00
erwincoumans
66f4b276ec
fix compile issue
2019-01-23 19:25:12 -08:00
erwincoumans
587500dc16
remove auto (no C++11)
2019-01-23 18:23:09 -08:00
erwincoumans
899e3274e8
fix more compile issues
2019-01-23 17:44:49 -08:00
erwincoumans
5da375b93c
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2019-01-23 17:35:55 -08:00
erwincoumans
e637b24237
remove Rand.* and <random> (no C++11)
2019-01-23 17:35:45 -08:00
Erwin Coumans
a174b42c02
fix compile issues
2019-01-23 16:33: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
Erwin Coumans
e3c03401c8
PyBullet: fixed a few more file leaks
2018-12-04 19:58:24 +01:00
erwincoumans
69321a9ee6
allow textured cube/sphere from URDF 'box' and 'sphere' visual primitive, when using
...
texUid = p.loadTexture("tex256.png")
p.changeVisualShape(cube ,-1, textureUniqueId = texUid)
See also https://github.com/bulletphysics/bullet3/issues/2012
2018-11-29 15:41:32 -08:00
erwincoumans
f9f8d0fbb0
example for fileIOPlugin.py loading SDF and its assets from a single zipfile,
...
also show how to disable file caching (used in the fileIOPlugin)
2018-11-17 14:11:01 -08:00
erwincoumans
49b098854e
PyBullet: avoid calling syncBodies for each DOF in pdControl.
...
Allow PD_CONTROL in setJointMotorControlArray.
2018-11-07 09:29:19 -08:00
erwincoumans
35790c36c2
fix renamed variable m_rootPath->m_pathPrefix
2018-10-29 10:56:55 -07:00
erwincoumans
078887c4d7
PyBullet fileIOPlugin: don't add equal fileIO interface twice (based on identical fileIOType and pathPrefix)
...
loadBullet goes through fileIOPlugin
2018-10-29 10:25:40 -07:00
erwincoumans
ee76873689
eglPlugin: remove visual shape for removeBody.
2018-10-28 21:08:57 -07:00
erwincoumans
a44df2b0a6
PyBullet: allow to pass vertices (for convex) and vertices+indices (for concave) to createCollisionShape
...
See createObstacleCourse.py for an example use. At the moment a limit of 1024 vertices and 1024 indices.
Will be lifted once we implement the streaming version (soon).
2018-10-26 10:18:51 -07:00
erwincoumans
ed49edc1af
PyBullet change API (since it was broken): pybullet_changeVisualShape with textureUniqueId ==-1 will clear the texture
...
b3InitUpdateVisualShape doesn't take textureUniqueId by default. new API b3UpdateVisualShapeTexture to change texture (-1 will clear texture)
PyBullet/BulletRobotics: allow to reset the textureUniqueId to -1, to clear a texture
PyBullet/BulletRobotics: save all texture handles
2018-10-20 15:56:56 -07:00
Erwin Coumans
9a9386b6a7
allow empty filename in CNS fileIO
2018-10-20 14:16:31 -07:00
erwincoumans
399ff55153
fix typo in previous commit
2018-10-16 19:02:12 -07:00
erwincoumans
8825b39f6c
fix potential memory leak in previous commit related to InMemoryFileIO class.
2018-10-16 18:31:17 -07:00
erwincoumans
b0a3b1b962
add missing header <string.h>
2018-10-14 15:12:53 -07:00
erwincoumans
b5e475aec3
enable planar reflection in MinitaurGymEnv
...
enable follow cam in other Gym locomotion environments
add testing assets for multi-material obj files -> sdf conversion.
Also use ER_NO_SEGMENTATION_MASK flag for TinyRenderer/EGL plugin renderer
2018-10-14 15:10:19 -07:00
erwincoumans
c1e20c448f
Implement InMemoryFile for memory caching for fileIO plugin.
...
Support SDF loading through fileIO plugin.
Replace strcspn by C code (not crossplatform)
Add flag for loadURDF to use color from MTL file (instead from URDF link material)
pybullet.URDF_USE_MATERIAL_COLORS_FROM_MTL and pybullet.URDF_USE_MATERIAL_TRANSPARANCY_FROM_MTL
2018-10-14 12:54:34 -07:00
erwincoumans
ad10da57c5
more initial work on fileIOPlugin
2018-10-11 17:00:17 -07:00
erwincoumans
a24c1436af
state 2 of FileIO plugin: adding/removing FileIO types, search through all registered FileIO types.
...
(not enabled by default yet)
Example:
fileIO = p.loadPlugin("fileIOPlugin")
print("fileIO=",fileIO)
p.executePluginCommand(fileIO,"e:/develop/bullet3/data/plane.zip", [p.AddFileIOAction,p.ZipFileIO])
p.executePluginCommand(fileIO,"e:/develop/bullet3/data/test2.zip", [p.AddFileIOAction,p.ZipFileIO])
planeId = p.loadURDF("plane.urdf")
duckId = p.loadURDF("duck_vhacd.urdf",[0,0,1])
2018-10-11 14:39:31 -07:00
erwincoumans
f792a5951a
move zipfFileIO into own header
...
route loadTextureFile from fileIO plugin
fix B3_ENABLE_FILEIO_PLUGIN logic
2018-10-11 10:58:14 -07:00
Erwin Coumans
74fca2418b
fix egl plugin build, with fileIO changes
2018-10-09 08:00:31 -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
2c13e70d1a
make projective textures work in DIRECT+eglPlugin (see examples/pybullet/examples/projective_texture.py)
2018-10-05 19:24:44 -07:00
erwincoumans
111ffc784d
Use 2560x2048 as default window/framebuffer size for eglPlugin.
2018-10-05 18:28:37 -07:00
erwincoumans
40d7e292f2
fix depth image for eglPlugin, also fix setRGBA color for eglPlugin.
2018-10-05 18:25:51 -07:00
bla
0f8b8388a6
eglPlugin, one more fix, remove graphics instances at resetAll
2018-10-02 08:13:51 -07:00
erwincoumans
da37f1d559
add glViewport after call to startRendering (some renderers call glViewport)
2018-10-02 07:49:13 -07:00
bla
7cd962467e
fix EGL issue related to glViewport in startRender method
2018-10-01 18:51:02 -07:00