Erwin Coumans
2caf4505f0
pybullet: suppress debug printf (obj texture coordinate out-of-range)
2019-10-03 09:25:54 -07:00
Xuchen Han
0b391798b7
hook deformable world into the physics server
2019-09-04 18:48:00 -07:00
erwincoumans
75df77611a
Merge pull request #2366 from fuchuyuan/tinyObjUpdate
...
update obj loader
2019-08-14 13:37:14 -07:00
Chuyuan Fu
10108cd3ea
update obj loader
2019-08-13 16:53:51 -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
erwincoumans
789769eac9
Update BulletMJCFImporter.cpp
...
add default for unhandled geoms
2019-07-31 09:18: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
Chuyuan Fu
4da456054c
Update PhysicsServerCommandProcessor and plugins to support render
2019-06-25 17:59:15 -07:00
Steven
b1444f34cf
fix the issue of converting the double to single.
2019-06-19 21:15:47 +08:00
Erwin Coumans
9d2a527d87
fix issue in MJCF importer due to previous commit
2019-05-30 16:13:03 -07:00
Erwin Coumans
63e13d32cb
remove unused var
2019-05-30 10:34:48 -07:00
Erwin Coumans
6b9b30786f
simplify previous commit do/while -> while
2019-05-30 10:30:08 -07:00
Erwin Coumans
411ac4fcc3
fix loadMJCF/BulletMJCFImporter to load from fileIO
2019-05-29 19:26:27 -07:00
erwincoumans
32e93d9f91
allow to PyBullet.changeDynamics for all links in maximal coordinate rigid bodies
...
change snake.py to use useMaximalCoordinate = True by default
2019-03-08 09:20:32 -08:00
erwincoumans
d07c86842c
fix regression in MJCF import for TinyRenderer
...
Fixes Issue 2119
https://github.com/bulletphysics/bullet3/issues/2119
2019-03-03 12:01:49 -08:00
erwincoumans
f51555d1ab
Merge pull request #2134 from erwincoumans/physx_clean
...
PhysX backend update
2019-02-28 22:49:43 -08:00
erwincoumans
2ae6404d1e
Update UrdfParser.cpp
...
update warning to be more verbose
2019-02-28 17:29:12 -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
Erwin Coumans
80ef56cfca
add missing header
2019-02-15 08:10:24 -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
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
erwincoumans
fb2baa81d6
only use the mutex if using BT_THREADSAFE
2018-12-22 11:35:56 -08:00
Erwin Coumans
e3c03401c8
PyBullet: fixed a few more file leaks
2018-12-04 19:58:24 +01:00
Erwin Coumans
d4db50f668
PyBullet: fix some file leaks.
2018-12-04 19:37:25 +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
17219f84c6
make setJointPosMultiDof and setJointVelMultiDof argument const.
...
add PyBullet.resetJointStateMultiDof / getJointStateMultiDof, for preliminary support for spherical and planar joints
2018-11-10 14:26:31 -08:00
erwincoumans
642c6a71d2
fix 2 potential data race conditions.
2018-11-08 14:41:22 -08:00
Erwin Coumans
8e82de1b00
add rudimentary MuJoCo mjcf xml to ROS URDF file, based on
...
pybullet_utils.urdfEditor
2018-10-31 11:02:19 -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
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
707bac9c3d
fix sphere sdf parsing
2018-10-22 16:01:58 -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
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
32b5c88d4b
close the fileIO for urdf loading
2018-10-09 20:45:17 -07:00
Erwin Coumans
5f954e2496
backward compatibility fix
2018-10-09 16:25:32 -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
8aff1fbd49
removed flags from loadURDF command. The flags are already available in m_data->m_flags in BulletUrdfImporter.cpp
2018-10-02 08:39:47 -07:00
mbennice
99dbedab6e
Update import
2018-09-27 12:49:39 -07:00
mbennice
7485999254
Clang Format Change
2018-09-27 10:00:39 -07:00
mbennice
30d4c4136a
Piping through the flag to parse sensors
2018-09-27 09:49:59 -07:00
mbennice
173cc2538f
Correct header update
...
Revert the header update change.
2018-09-26 16:38:59 -07:00
mbennice
f79b04357f
Update URDF Importer to process sensor elements.
...
Update the URDF Importer to add sensors as 0 mass 0 inertia elements
attached by a fixed joint. This way their states can be read as links.
2018-09-26 16:35:22 -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
erwincoumans
9553892770
PyBullet / BulletRobotics:
...
Implement collisionFilterPlugin, use setCollisionFilterPair to enable or disable collision detection between specific pairs of objects.
Also, expose setCollisionFilterGroupMask as PyBullet API and in urdf using the tag <collision group="1" mask="2"/>.
See examples/pybullet/examples/collisionFilter.py for an example.
PyBullet default: Lower the warmstarting factor, for maximal coordinates rigid bodies for more stable simulation.
Add btCollisionWorld::refreshBroadphaseProxy to easier recreate the broadphase proxy without adding/removing objects to the world.
2018-09-12 19:30:49 -07:00
erwincoumans
dc7feb9027
Merge remote-tracking branch 'bp/master'
2018-09-09 10:48:58 -07:00