Commit Graph
100 Commits
Author SHA1 Message Date
erwincoumans 3e873feac0 Merge pull request #1518 from erwincoumans/master
small refactor of LinkVisualShapesConverter / TinyRendererVisualShape…
2018-01-17 14:30:17 -08:00
erwincoumans 1661f25fd8 minor indentation fix 2018-01-17 13:11:02 -08:00
erwincoumans ccde28eb9f Merge branch 'master' of https://github.com/erwincoumans/bullet3 2018-01-17 13:07:05 -08:00
erwincoumans c781e98de4 add a little bit of documentation to the UrdfRenderingInterface 2018-01-17 13:06:44 -08:00
erwincoumans 3073d60845 Update tinyRendererPlugin.cpp 2018-01-17 12:53:00 -08:00
erwincoumans 585f858842 PyBullet: bump up API version due to move of tinyrenderer into a plugin 2018-01-17 12:51:19 -08:00
erwincoumans 012f4534fd Merge branch 'master' of https://github.com/erwincoumans/bullet3 2018-01-17 12:49:27 -08:00
erwincoumans 329a1f5a74 PyBullet: move TinyRenderer into a plugin, default statically loaded. You can also dynamically load a render plugin, as shown in renderPlugin.py example. premake has a way to compile the tinyRendererPlugin. 2018-01-17 12:48:48 -08:00
erwincoumans df89ce6f92 small refactor of LinkVisualShapesConverter / TinyRendererVisualShapeConverter, it allows to use it in a Python module and in a PyBullet plugin. 2018-01-16 17:58:19 -08:00
erwincoumans 023ec7ce9e Merge pull request #1515 from erwincoumans/master
apply a maximum velocity for the KUKA arm
2018-01-16 17:28:46 -08:00
erwincoumans 32d615565d Merge branch 'master' of https://github.com/erwincoumans/bullet3 2018-01-16 13:39:54 -08:00
erwincoumans 68c2253f82 reduce dependency: PhysicsServerCommandProcessor -> PhysicsCommandProcessorInterface 2018-01-16 13:39:37 -08:00
erwincoumans 603d674e74 Merge remote-tracking branch 'bp/master' 2018-01-16 10:20:37 -08:00
erwincoumans 173eec93fc Merge pull request #1513 from erwincoumans/master
fix wrong enum type
2018-01-16 10:20:14 -08:00
erwincoumans 055930817e apply a maximum velocity for the KUKA arm, otherwise motion can become very unrealistic 2018-01-16 10:17:57 -08:00
erwincoumans 19ecca396a Merge pull request #1512 from erwincoumans/master
Various  PyBullet fixes: slowdown of Roboschool ported Gym envs (reset), fix leaks, add more ported envs, thanks to Benjamin Ellenberger
2018-01-15 14:55:45 -08:00
erwincoumans 851ca5bfb3 Improve PyBullet ports of Roboschool envs: fix reset (it kept adding stadium objects, causing slowdown), now reset uses saveState/restoreState and reset becomes a few orders of magnitude faster.
Use python -m pybullet_envs.examples.testEnv --env AntBulletEnv-v0 --render=1 --steps 1000 --resetbenchmark=1

Added environments: HumanoidFlagrunBulletEnv-v0, HumanoidFlagrunHarderBulletEnv-v0, StrikerBulletEnv-v0, ThrowerBulletEnv-v0, PusherBulletEnv-v0, ReacherBulletEnv-v0, CartPoleBulletEnv-v0 and register them to OpenAI Gym.
Allow numpy/humanoid_running.py to use abtch or non-batch update (setJointMotorControl2/setJointMotorControlArray)
2018-01-15 12:48:32 -08:00
erwincoumans 9ffb05eb3b fix double->float issue by cast, fixes issue #1510
fix possible out-of-bounds access in btMultiBody
2018-01-15 11:59:00 -08:00
erwincoumans 9d405fde67 PyBullet: free cached textures
PyBullet: bool PhysicsServerCommandProcessor::pickBody, disable collision filtering to allow picking of all objects
2018-01-15 08:36:08 -08:00
erwincoumans 387d3f16db PyBullet: fix memory leak in case connection to shared memory cannot be made
PyBullet: allow setJointMotorControl2 to use maxVelocity in combination with obsolete 'bodyIndex'
2018-01-15 08:33:19 -08:00
erwincoumans 3c770e56fb PyBullet/C-API: only free handle if we found it 2018-01-14 12:35:40 -08:00
erwincoumans 0919ce0f30 PyBullet: fix issue when picking an object while it is remove using PyBullet.removeBody 2018-01-14 11:01:57 -08:00
erwincoumans d83cf58731 Merge pull request #1509 from erwincoumans/master
Add humanoid_running.py using just numpy (no tensorflow, no gym) for testing
2018-01-13 18:14:52 -08:00
erwincoumans ed890f23e6 add implicit plane_implicit.urdf and use it in humanoid_running.py (numpy version) 2018-01-13 13:47:28 -08:00
erwincoumans e961800278 parse plane geom for URDF files (not just SDF) 2018-01-13 13:41:46 -08:00
erwincoumans 1b569c0701 Add humanoid_running.py using just numpy (no tensorflow, no gym) for testing 2018-01-13 13:39:57 -08:00
erwincoumans c7a4222b58 Merge pull request #1506 from erwincoumans/master
allow to use colors from MJCF file as option (default to random Googl…
2018-01-12 09:02:51 -08:00
Erwin Coumans 79051b7611 allow to use colors from MJCF file as option (default to random Google colors), use p.loadMJCF(filename, flags=p.URDF_MJCF_COLORS_FROM_FILE
fix quadruped.py example.
add PyBullet.isConnected() API, more friendly than PyBullet.getConnectionInfo()["connected"]
2018-01-11 21:04:08 -08:00
erwincoumans cdbd93e519 Merge pull request #1503 from erwincoumans/master
update MinitaurSetup.cpp/h to allow switching between different minit…
2018-01-10 12:22:01 -08:00
erwincoumans 22b4809891 leave m_useGlobalVelocities to false, until enabled, for backward compatibility
use URDF_GLOBAL_VELOCITIES_MB flag in PyBullet loadURDF.
fix robot_bases.py due to new fields in getJointInfo.
backward compabitibility: BulletMJCFImporter, keep creating btMultiSphereShape for MJCF capsules with fromto, instead of shifted btCapsuleShapeZ, unless if CUF_USE_IMPLICIT_CYLINDER is used.
2018-01-10 11:16:50 -08:00
erwincoumans c4b1b84687 Enable 'global absolute velocities' by default for btMultiBody. See 8.3.2B Proposed resolution Jakub Stepien PhD Thesis
https://drive.google.com/file/d/0Bz3vEa19XOYGNWdZWGpMdUdqVmZ5ZVBOaEh4ZnpNaUxxZFNV/view?usp=sharing
Fixes crashes due to rendering of softbody wireframe in the wrong thread (needs to be in 'debug' rendering section)
Use btCapsuleShapeZ instead of btMultiSphereShape when converting MJCF MuJoCo capsules using fromto
2018-01-09 22:47:56 -08:00
erwincoumans 616d3358bd update MinitaurSetup.cpp/h to allow switching between different minitaurs. add getToeForces, thanks to Avik (requires 8 toes!) 2018-01-09 17:38:51 -08:00
erwincoumans 8879ec38d6 Merge pull request #1501 from erwincoumans/master
expose backward compatibility APIs (implicit cylinder conversion, deterministic overlapping pairs)
2018-01-09 15:55:00 -08:00
erwincoumans 15a429f1bf premake build system fixes 2018-01-09 12:23:25 -08:00
erwincoumans e138e85bca allow to enable/disable implicit cylinder conversion through an API
p.loadURDF("r2d2.urdf", flags=p.URDF_USE_IMPLICIT_CYLINDER)
allow to enable/disable deterministicOverlappingPairs through an API
p.setPhysicsEngineParameter(deterministicOverlappingPairs = False)
2018-01-09 10:10:36 -08:00
erwincoumans bf6d805228 fix compile issues on Windows after recent softbody patch 2018-01-09 08:43:00 -08:00
erwincoumans e932583237 Merge pull request #1499 from wrosecrans/fix-nproc
Tidy up cmake build script
2018-01-09 07:42:12 -08:00
erwincoumans 7118470eb6 Merge pull request #1500 from YunfeiBai/master
Load softbody from obj file.
2018-01-09 07:40:20 -08:00
erwincoumans 6a74f63604 Merge pull request #1498 from erwincoumans/master
fix for python 2.x
2018-01-08 16:45:28 -08:00
erwincoumans 1e0d1c2b6d Merge pull request #1496 from erwincoumans/master
warning fix (param name different in header/cpp)
2018-01-08 13:23:44 -08:00
Erwin Coumans f39d83580b Merge remote-tracking branch 'bp/master' 2018-01-08 12:29:32 -08:00
Erwin Coumans e97b751781 further work on urdfEditor.py, fix some serialization issues 2018-01-08 12:25:56 -08:00
Erwin Coumans a85a4f387b more work on UrdfEditor.py 2018-01-06 15:00:20 -08:00
Erwin Coumans 9a9aa5e9e7 example of joint motor with friction 2018-01-06 13:43:07 -08:00
erwincoumans 380738308d Merge pull request #1495 from erwincoumans/master
tweak ImportMJCFSetup.cpp example MJCF humanoid a bit, clamp target p…
2018-01-04 15:18:30 -08:00
Erwin Coumans c59a3763e5 tweak ImportMJCFSetup.cpp example MJCF humanoid a bit, clamp target positions to be within joint limits to avoid solver problems (conflicting constraints)
add humanoid_manual_control.py PyBullet example which is similar to ImportMJCFSetup.cpp
2018-01-04 13:14:11 -08:00
erwincoumans 6237386c7c Merge pull request #1494 from erwincoumans/master
Start of a urdfEditor.py, limited support to extract a URDF from a Py…
2018-01-04 12:11:08 -08:00
Erwin Coumans 4743d2770a fix recently introduced crashing bug in MJCF reader
due to https://github.com/bulletphysics/bullet3/pull/1484 (Issue 1484)
2018-01-03 21:47:58 -08:00
Erwin Coumans 36c258fd3d fix PhysicsLoopBack 2018-01-03 21:38:09 -08:00
erwincoumans 577ee86012 Update README.md 2018-01-03 19:30:12 -08:00
Erwin Coumans 79d78a325a Start of a urdfEditor.py, limited support to extract a URDF from a PyBullet body.
Use btCylinderShapeZ for URDF cylinder, instead of converting it to a btConvexHullShape.
Implement PyBullet.getCollisionShapeData
Extend PyBullet.getDynamicsInfo / b3GetDynamicsInfo, remove flag (don't rely on API returning a fixed number of elements in a list!)
Extend PyBullet.getJointInfo: add parentIndex
2018-01-03 19:17:28 -08:00
erwincoumans dc50c0ff3b Merge pull request #1493 from jietan/pullRequest
Pull request
2018-01-02 19:45:14 -08:00
erwincoumans a1492f50fc Merge pull request #1492 from erwincoumans/master
implement pybullet.saveState command, for in-memory storage of state.
2017-12-31 19:19:35 -08:00
Erwin Coumans 35b44f8a85 implement pybullet.saveState command, for in-memory storage of state.
bump up pybullet API version (SHARED_MEMORY_MAGIC_NUMBER) to 201801010
2017-12-31 15:37:16 -08:00
erwincoumans 515aa9ee9b Merge pull request #1491 from erwincoumans/master
some progress in saving and restoring the state
2017-12-31 13:39:27 -08:00
Erwin Coumans 4c6df650d4 skip serialization of empty contact manifolds. 2017-12-31 11:28:22 -08:00
Erwin Coumans f104765c47 added some template to restore (syncMultiBody, syncContactManifolds) for single float and double precision, in 'pybullet.restoreState' 2017-12-31 11:19:29 -08:00
Erwin Coumans 20e00d11d8 further work on saveRestoreState.py 2017-12-30 21:57:42 -08:00
Erwin Coumans 9c55b61315 pybullet.createVisualShape: process sphere radius, box half extents, capsule+cylinder radius/length
fixes issue #1427, https://github.com/bulletphysics/bullet3/issues/1427
2017-12-30 17:42:13 -08:00
Erwin Coumans 4084c1cc71 also add serializeContactManifolds to btSoftMultiBodyDynamicsWorld.cpp and btDiscreteDynamicsWorld. 2017-12-30 14:20:20 -08:00
Erwin Coumans 0326fa93a8 made some progress in saving and restoring the state during the simulation, with identical results.
Option to de/serialize btPersistentContactManifolds and fix lossy conversion during btMultiBody de/serialization of base world transform
(serialize the quaternion, not the converted 3x3 matrix)
There are still several caches not taken into account, and btMultiBody links/constraints are not deserialized yet etc.
See examples\pybullet\examples\saveRestoreState.py for an example.
2017-12-30 14:19:13 -08:00
erwincoumans e3a85493e8 Merge pull request #1484 from rhaps0dy/MJCFImporter
Support for reading <inertial> elements from MJCF
2017-12-29 10:58:08 -08:00
erwincoumans 28803dc56f Merge pull request #1487 from erwincoumans/master
expose link index in segmentation mask (getCameraImage) when a flag is set. preparation for restoreState (not implemented yet), allow multiple options in connect call.
2017-12-29 10:55:15 -08:00
Erwin Coumans 29cfac096b compile fix in pybullet.c 2017-12-28 12:57:49 -08:00
Erwin Coumans 22e23d22d1 double/single precision compile fix 2017-12-28 12:55:47 -08:00
Erwin Coumans 5517cbc4e0 add segmask_linkindex.py example using p.getCameraImage(320,200,flags=p.ER_SEGMENTATION_MASK_OBJECT_AND_LINKINDEX)
to extract object unique id and link index from segmentation mask in getCameraImage
2017-12-28 12:37:07 -08:00
Erwin Coumans afd1066c50 pybullet.getCameraImage: preparation to expose link index in segmentation mask buffer 2017-12-28 10:18:35 -08:00
Erwin Coumans 78e4d9675e Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-12-28 10:15:46 -08:00
Erwin Coumans 97547eda0d preliminary work towards saveState/restoreState and saveRestoreState.py example (not implemented yet)
allow multiple options in connect, for example: p.connect(p.GUI, options="--width=640, --height=480")
2017-12-28 10:05:51 -08:00
Erwin Coumans d0561d81b0 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-12-26 07:59:07 -08:00
Erwin Coumans 799d030874 restore multibody world transform and joint angles/velocities from a .bullet file. 2017-12-22 14:45:36 -08:00
erwincoumans 60d2af8ed2 Merge pull request #1483 from erwincoumans/master
expose API to change the local inertia diagonal, pybullet.ChangeDynam…
2017-12-20 17:46:36 -08:00
erwincoumans 41f9bb89e5 expose API to change the local inertia diagonal, pybullet.ChangeDynamics(objectUid, linkIndex, localInertiaDiagonal=[xx,yy,zz]) 2017-12-20 16:56:31 -08:00
erwincoumans 6803c80f89 Merge pull request #1482 from erwincoumans/master
expose local inertia diagonal in PyBullet/C-API, render inertia boxes, updated minitaur with flex brackets
2017-12-20 16:09:01 -08:00
erwincoumans eb35cba740 expose local inertia diagonal in C-API, PyBullet, through the 'getDynamicsInfo'
render the inertia boxes in examples/pybullet/examples/quadruped.py and examples/pybullet/examples/reset_dynamic_info.py
fix an issue where the original margin (0.04) was used to compute the inertia, instead of latest margin
2017-12-20 14:54:32 -08:00
erwincoumans c0619ac924 Merge pull request #1475 from yurivict/master
Fixed GL/GLEW libraries on BSD (they weren't linked).
2017-12-14 11:38:25 -08:00
erwincoumans ef4d5e68cf Merge pull request #1476 from avikde/cmakelists_default_sse_off
Removed default ON for USE_MSVC_SSE (warning on recent 64 bit windows)
2017-12-14 11:30:27 -08:00
erwincoumans c5dd2fc466 Merge pull request #1479 from erwincoumans/master
fix in cone friction, test with Markdeep doc
2017-12-14 11:20:24 -08:00
erwincoumans 5ab6a0ad43 Fix issue with cone friction, we had to accumulate squared residual, not just residual.
This fixes issue 1473, thanks to Avik De for reporting the issue.
2017-12-14 10:51:43 -08:00
erwincoumans e0bb359804 report the camera target in the ExampleBrowser StatusBarMessage
(so the parameters reported are compatible with the resetDebugVisualizerCamera API)
2017-12-14 09:36:36 -08:00
erwincoumans 72eeacc9db Merge pull request #1478 from jietan/pullRequest
add system id for rainbow dash (second generation minitaur with TX2 i…
2017-12-13 17:42:26 -08:00
erwincoumans ec444fcad9 Merge pull request #1471 from ahundt/patch-1
FindPythonLibs.cmake add missing quotes
2017-12-07 19:57:37 -08:00
erwincoumans 1ce98eeac8 Merge pull request #1467 from erwincoumans/master
expose pybullet 'enableConeFriction
2017-12-01 14:34:30 -08:00
Erwin Coumans c556ad651d expose pybullet 'enableConeFriction' to switch between pyramid and cone friction model. 2017-12-01 10:07:07 -08:00
Erwin Coumans e1df1534f3 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-11-30 13:11:39 -08:00
erwincoumans aa82003174 Update btMultiBodyConstraintSolver.h 2017-11-29 10:53:29 -08:00
erwincoumans 5cada6a78d Merge pull request #1464 from erwincoumans/master
add pybullet unittests.py with travis support
2017-11-29 10:38:36 -08:00
erwincoumans e76804173a Merge pull request #1463 from erwincoumans/master
fixes related to torsional friction, due to recent cone friction update.
2017-11-28 21:18:57 -08:00
erwincoumans 8ff75e11cd fixes related to torsional friction, due to recent cone friction update. 2017-11-28 20:09:56 -08:00
Erwin Coumans b031ba0333 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-11-28 11:52:07 -08:00
erwincoumans 18e7c3088f Merge pull request #1461 from avikde/TwoJoint_example
added TwoJoint example
2017-11-27 11:05:06 -08:00
erwincoumans 25628820ef Merge pull request #1458 from jl/jl-const-masses
add const to masses for calculatePrincipalAxisTransform
2017-11-25 20:07:59 -08:00
erwincoumans 1c8d5cf964 Merge pull request #1456 from erwincoumans/master
pybullet: fix numpy compile issue on Windows, another fix
2017-11-24 19:24:15 -08:00
erwincoumans 2e247fb406 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-11-24 18:09:37 -08:00
erwincoumans c5f79fe979 pybullet testrender.py/testrender_np.py examples, improve matplotlib rendering performance (headless DIRECT and OpenGL/GUI) 2017-11-24 18:09:20 -08:00
erwincoumans b1c2bdc72a pybullet: fix numpy compile issue on Windows, another fix 2017-11-24 16:50:36 -08:00
erwincoumans d6fe45ca24 Merge pull request #1455 from erwincoumans/master
pybullet: fix Windows numpy build 82b51ac, bump up to version 1.7.2
2017-11-24 15:06:03 -08:00
erwincoumans d22b160a6d Merge pull request #1453 from erwincoumans/master
friction cone test
2017-11-23 18:15:32 -08:00
erwincoumans 9936a1cc92 friction cone test 2017-11-23 18:14:29 -08:00
erwincoumans bf88669925 Merge pull request #1452 from erwincoumans/master
Bullet bump up to version 2.88
2017-11-23 18:00:34 -08:00