Commit Graph

336 Commits

Author SHA1 Message Date
ManifoldFR
6a9cd4615c fix typo 2020-09-29 12:02:35 +02:00
ManifoldFR
281e7df2ec UrdfParser: make axis warning print single line 2020-09-29 12:00:05 +02:00
Erwin Coumans
d0dc96aa05 Merge remote-tracking branch 'bp/master' 2020-09-20 16:36:45 -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
Chuyuan Fu
7d8379bad4 add configurable parameters to urdf 2020-09-14 12:34:21 -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
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
Erwin Coumans
fc2378dda7 enable multisampling and mipmapping
ignore file:// as well as model:// and package://
add newline as additional delimiter for COLLADA DAE loader
2020-09-07 15:26:11 -07:00
Peng Xu
fc676c02c9 Simplify logic for searching files in UrdfFindMeshFile and prioritize path without prefix. 2020-08-11 01:48:55 -07:00
erwincoumans
da50438c3c
Merge pull request #2826 from xhan0619/grav-factor
Deformable gravity factor
2020-06-05 10:07:27 -07:00
erwincoumans
eea724bc02
Merge pull request #2837 from erwincoumans/master
also allow reportHitNumber for single pybullet.rayTest, better mtl/urdf color selection
2020-06-01 17:18:24 -07:00
Erwin Coumans
84cb577622 Improve link color choice:
1) use URDF when available, unless URDF_USE_MATERIAL_COLORS_FROM_MTL and MTL color is available.
2) if URDF color is not specified, use MTL color if available
3) otherwise use white, unless URDF_GOOGLEY_UNDEFINED_COLORS flag is set (if set, semi-randomly pick one of the 4 Google colors)
2020-06-01 10:28:07 -07:00
Xuchen Han
8a189763df support configuring gravity factor from client 2020-05-26 16:51:45 -07:00
erwincoumans
5233b72160
Merge pull request #2800 from xhan0619/splitImpulseMulti
Stability improvements for deformable.
2020-05-21 09:47:33 -07:00
Chuyuan Fu
c87cda15b7 fix space 2020-05-15 14:21:06 -07:00
Chuyuan Fu
bad085554c set collision margin for implicit cynlinder 2020-05-15 14:19:23 -07:00
Xuchen Han
644fd5f311 add API for two different damping modes for mass spring 2020-05-11 16:42:17 -07:00
Erwin Coumans
8f380b3fd2 use white as default undefined color instead of the googley colors.
use loadURDF(..., flags = pybullet.URDF_GOOGLEY_UNDEFINED_COLORS) to get Googley colors when colors are undefined.
2020-05-08 10:44:39 -07:00
Xuchen Han
ae3526254d add API for setting repulsion stiffness 2020-04-27 17:42:45 -07:00
Erwin Coumans
e5b26fb323 fix tinyrenderer size of mjcf box (mjcf box size is half-sizes (half-extents) 2020-04-17 19:23:33 -07:00
Chuyuan Fu
f51c76f0c9 fix space 2020-04-01 21:34:12 -07:00
Chuyuan Fu
3829887ced twin torus 2020-04-01 21:27:48 -07:00
Chuyuan Fu
c2ea0293d8 fix mesh finding and notification 2020-04-01 20:48:09 -07:00
Chuyuan Fu
3c46e6a584 load deformable object from URDF files 2020-03-31 20:55:47 -07:00
erwincoumans
49960d18df
Update UrdfParser.cpp
fix cast
2020-02-21 16:49:05 -08:00
Erwin Coumans
e29ba9fe5c add option to merge fixed links in URDF file (improves performance, can handle URDF files with many fixed links)
add option to ignore visual and collision shapes in URDF file
2020-02-21 15:04:26 -08:00
Tigran Gasparian
68d3fb28e0 Adds support for loading user data from URDF files. 2020-01-17 11:55:42 +01:00
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