Jan Matas
d2d987a5ed
Create a new pointer in btCollisionShape instead of just using userPtr.
2018-02-08 13:49:36 +00:00
Jan Matas
82214eb99f
Implemented support for softbodies in OpenGL renderer
2018-02-08 13:31:40 +00:00
Erwin Coumans
be5e58772e
fix include
2018-02-06 11:52:45 -08:00
erwincoumans
19231434c2
gym env backward compatibility due to gym 0.9.6 breaking changes
2018-02-06 10:20:41 -08:00
erwincoumans
82fae36ab9
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2018-02-06 08:59:58 -08:00
erwincoumans
3fb26e4835
fix issue with plugin manager (store plugin uid instead of pointer)
2018-02-06 08:56:24 -08:00
Erwin Coumans
dcdec2236f
PyBullet/rendering: improve sorting of transparent objects
2018-02-05 23:48:39 -08:00
Sam Wenke
ad3c236bfd
pybullet support for gym.Env, including v0.9.x
2018-02-04 11:35:47 -05:00
erwincoumans
d4b834b9f0
fix #3
2018-02-04 11:35:47 -05:00
erwincoumans
9b9a0c5992
fix #2 for pthread/dl
2018-02-04 11:35:46 -05:00
erwincoumans
b15ac0c5f6
add pthread/DL to App_RobotSimulator_NoGUI for Linux (not Win32/Apple)
2018-02-04 11:35:46 -05:00
erwincoumans
433f8449f4
refactor b3RobotSimulatorClientAPI into a main part without GUI dependencies (no OpenGL, gwen, glew etc)
...
so that App_RobotSimulator_NoGUI can link against BulletRobotics and App_RobotSimulator links against BulletRobotics and some extra files.
2018-02-04 11:35:46 -05:00
erwincoumans
7f535367ef
Add new methods for b3RobotSimulatorClientAPI, thanks to John F. Canny for the contribution!
2018-02-04 11:35:46 -05:00
erwincoumans
b692ec87f7
fix #3
2018-02-02 20:22:53 -08:00
erwincoumans
f119cff516
fix #2 for pthread/dl
2018-02-02 19:38:39 -08:00
erwincoumans
64a505ec19
add pthread/DL to App_RobotSimulator_NoGUI for Linux (not Win32/Apple)
2018-02-02 19:12:02 -08:00
erwincoumans
df0305462d
refactor b3RobotSimulatorClientAPI into a main part without GUI dependencies (no OpenGL, gwen, glew etc)
...
so that App_RobotSimulator_NoGUI can link against BulletRobotics and App_RobotSimulator links against BulletRobotics and some extra files.
2018-02-02 18:33:29 -08:00
erwincoumans
b30401c1f7
Add new methods for b3RobotSimulatorClientAPI, thanks to John F. Canny for the contribution!
2018-02-02 16:19:53 -08:00
erwincoumans
a576fd38cd
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2018-01-31 22:17:39 -08:00
erwincoumans
13d67e8fc3
add bicycle resources and testBike.py script (use python -m pybullet_envs.examples.testBike after pip install pybullet)
...
center shadow around camera target
2018-01-31 22:17:15 -08:00
Erwin Coumans
e88dca3152
update autogenerated NativeMethods.cs from latest PhysicsClientC_Api.h
2018-01-31 09:07:31 -08:00
erwincoumans
40482e0925
fix urdfEditor.py
2018-01-29 19:19:34 -08:00
Erwin Coumans
5776f61a73
fix issue that prevents p/invoke c# generation from PhysicsClientC_API.h
2018-01-29 19:16:01 -08:00
Erwin Coumans
cb0e740422
fix error in __init__.py
2018-01-27 10:25:26 -08:00
Erwin Coumans
2b5be5ca8a
Merge remote-tracking branch 'bp/master'
2018-01-26 17:36:45 -08:00
erwincoumans
688d750d8a
Merge pull request #1531 from AndreaIncertiDelmonte/issue-1525
...
Override of the reset() public funciton in child classes
2018-01-26 13:10:47 -08:00
cedspam
3011cf1130
avoid errors in some ide docs system
...
there are some error linked to repeated import of this module in spyder, an env with the same id cannot be registered again
2018-01-26 09:29:39 +00:00
AndreaIncertiDelmonte
b908b147a6
Overwrite of the reset() public funciton in child classes
2018-01-26 10:09:14 +01:00
Erwin Coumans
bddbb3f9dd
TinyRenderer color pick: fix out-of-bounds issue
2018-01-25 16:02:47 -08:00
erwincoumans
0ce40b70c0
Merge pull request #1523 from kimhc6028/master
...
[fixed] gym_manipulator_envs typo
2018-01-25 13:36:42 -08:00
Erwin Coumans
c6fefb1018
remove useless gym env
2018-01-25 12:11:22 -08:00
Erwin Coumans
c4a046f16c
remove baselines dependency (not needed, since it is a random policy)
2018-01-25 07:34:00 -08:00
erwincoumans
5d45fd5ca5
PyBullet: register KukaDiverseObjectGrasping-v0 to Gym.
2018-01-24 18:27:03 -08:00
erwincoumans
4ea406c73c
PyBullet: improve examples/pybullet/gym/pybullet_envs/bullet/kuka_diverse_object_gym_env.py
...
(thanks to Deirdre Quillen for the environment)
Extend repeat, so gripper reaches the tray bottom.
Fix near plane so Z-Buffer is visible. Add sleep in return motion, in gui mode.
2018-01-24 18:21:59 -08:00
erwincoumans
72ec3effe6
Merge remote-tracking branch 'bp/master'
2018-01-24 18:11:33 -08:00
erwincoumans
1ec0543deb
add random urdf zipfile for KUKA grasping env, thanks to Deirdre Quillen
2018-01-24 18:10:55 -08:00
erwincoumans
583b23ea40
PyBullet Humanoid Flagrun Harder: disable collision on target red sphere
2018-01-24 18:02:24 -08:00
erwincoumans
aba4671358
Humanoid Flagrun Harder, PyBullet version (request from Danijar)
...
Fix duplicate ground in all Roboschool converted scenes.
Fix bug in all PyBullet-Roboschool converted Humanoid environments (action needs to be clipped to [-1,1] range)
2018-01-24 17:53:40 -08:00
Erwin Coumans
b8362fff94
PyBullet pybullet_envs: fix issue with Humanoid environments (excessive forces, due to lack of action clamping)
...
PyBullet pybullet_envs: use 1./60 sleep, add enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul.py
2018-01-24 16:02:19 -08:00
kimhc6028
0d07ae03b7
[fixed] gym_manipulator_envs typo
2018-01-23 18:22:53 +09:00
erwincoumans
a92423b6f7
minor clarification in UrdfRenderingInterface
2018-01-21 11:15:35 -08:00
Erwin Coumans
69007dcc61
fix MJCF loading (use self-collision)
2018-01-20 12:07:35 -08:00
deq2
e30f2624f9
Added kuka environment with multiple diverse objects. ( #1508 )
...
* Added new diverse object environment
2018-01-18 08:49:00 -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
Erwin Coumans
c6a350b807
BulletInverseDynaimcs: re-applied fix
...
PyBullet: increase humanoid training from 30 to 300M (need to figure out the right hyperparameters...)
2018-01-16 21:54:46 -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
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
055930817e
apply a maximum velocity for the KUKA arm, otherwise motion can become very unrealistic
2018-01-16 10:17:57 -08:00
Erwin Coumans
af43e6465d
fix wrong enum type
2018-01-15 15:13:11 -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
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
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
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
Erwin Coumans
164d3e62c3
remove testing getToeForces
2018-01-09 18:13:34 -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
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
YunfeiBai
de3b8bf3c9
Merge branch 'master' into master
2018-01-08 18:13:03 -08:00
yunfeibai
0e0d3da2b5
Add python binding and a pybullet example for loading softbody from obj.
2018-01-08 18:10:28 -08:00
Erwin Coumans
90c5d66e1b
fix for Python 2.x
2018-01-08 16:15:54 -08:00
Erwin Coumans
e97b751781
further work on urdfEditor.py, fix some serialization issues
2018-01-08 12:25:56 -08:00
yunfeibai
d3bc98e245
Add filename as an argument in the softbody loading function.
2018-01-07 19:56:46 -08:00
yunfeibai
d077bdec07
Change the API names for loading softbody.
2018-01-07 19:24:37 -08:00
yunfeibai
e3e9546960
Load the deformable object through obj file. Modify the demo for two way coupling between multibody and softbody.
2018-01-07 19:06:09 -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
Erwin Coumans
9523df2519
warning fix (param name different in header/cpp)
2018-01-04 15:48:59 -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
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
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
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
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
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
Erwin Coumans
29cfac096b
compile fix in pybullet.c
2017-12-28 12:57:49 -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
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
Adrià Garriga
cb2fcfd032
Skipping calculateLocalInertia is unnecessary
2017-12-23 17:56:47 +01:00
Adrià Garriga
4d70d54d19
Support for reading <inertial> elements from MJCF
2017-12-23 08:53:10 +01: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
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
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
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
Erwin Coumans
8c0913d96b
Merge remote-tracking branch 'bp/master'
2017-12-01 10:25:43 -08:00
Erwin Coumans
c556ad651d
expose pybullet 'enableConeFriction' to switch between pyramid and cone friction model.
2017-12-01 10:07:07 -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
Erwin Coumans
ec0a182a12
add pybullet unittests.py with travis support
2017-11-28 21:53:26 -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
Avik De
fd24219f36
Added note that license is same as bullet3
2017-11-27 09:50:18 -05:00
Avik De
29d72a9fee
Hopefully fixed compile on gcc/clang
2017-11-27 09:44:54 -05:00
Avik De
a6d527cca9
added including for cstring... strange that it compiled in VS without it
2017-11-26 21:39:42 -05:00
Avik De
863292fa3d
replaced C++11 code
2017-11-26 21:09:57 -05:00
Avik De
5a1c4b7946
added TwoJoint example
2017-11-26 20:38:50 -05:00
Erwin Coumans
6baf82d6d8
improve testrender/np to render faster/interactive on Mac with matplotlib
2017-11-24 18:57:16 -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
Erwin Coumans
82b51ac78d
pybullet: fix Windows numpy build
2017-11-24 14:33:24 -08:00
erwincoumans
9936a1cc92
friction cone test
2017-11-23 18:14:29 -08:00
erwincoumans
874d764051
add missing file in CMakeLists.txt
2017-11-23 09:32:31 -08:00
erwincoumans
29aa9cb789
Bullet bump up to version 2.88
...
add preliminary support to import btMultiBody from a .bullet file (will help save/restore state)
fix some Windows char/widechar issues
2017-11-22 18:12:02 -08:00
erwincoumans
76772fd301
reduce stack usage
2017-11-22 15:30:56 -08:00
erwincoumans
ab843b26f0
expose a maximum velocity due to the joint motor in position control.
...
see also pybullet/examples/motorMaxVelocity.py
this fixes issue 1444
2017-11-21 17:05:28 -08:00
Erwin Coumans
3e17f3387a
reduce MAX_SDF_BODIES to 512, it causes stack overflow failures in some internal tests
2017-11-20 11:05:31 -08:00
Erwin Coumans
88289c032e
fix canvas issues from previous commit
2017-11-18 17:20:21 -08:00
Erwin Coumans
c88132b80f
fix issue in pybullet_envs.agents
...
bump up to pybullet 1.6.9
2017-11-18 17:07:27 -08:00
erwincoumans
099a6f65f3
tweak zbuffer visualization, show targetpos in example browser
2017-11-18 15:18:46 -08:00
erwincoumans
81146a4090
pybullet: move RGB,depth, segmentation mask preview windows to the right
...
remove some dead code from PhysicsServerCommandProcessor.cpp
2017-11-18 13:21:20 -08:00
erwincoumans
b2a1eeb754
Merge remote-tracking branch 'bp/master'
2017-11-17 16:21:09 -08:00
erwincoumans
a9b59b4511
Finally refactored the PhysicsServerCommandProcessor::processCommand switch statements into over 50 separate functions.
...
Over time, some of those functions can be moved into separate plugins, similar to vrSyncPlugin (either statically/dynamically linked plugins or dynamically loaded at run-time)
2017-11-17 16:14:18 -08:00
erwincoumans
848be4710e
Merge pull request #1440 from erwincoumans/master
...
remove obsolete 'register' from BussIK
2017-11-17 14:13:16 -08:00
erwincoumans
e2d29d4048
also enable depth and segmentation mask preview window in example browser/pybullet
...
You can disable/enable all preview windows using:
p.configureDebugVisualizer(p.COV_ENABLE_RGB_BUFFER_PREVIEW,0/1)
p.configureDebugVisualizer(p.COV_ENABLE_DEPTH_BUFFER_PREVIEW,0/1)
p.configureDebugVisualizer(p.COV_ENABLE_SEGMENTATION_MASK_PREVIEW,0/1)
2017-11-17 13:33:27 -08:00
Erwin Coumans
e35b0c5643
remove obsolete 'register' from BussIK
2017-11-17 12:09:21 -08:00
erwincoumans
f31f552ee3
Merge pull request #1439 from mbreyer/bugfix-TinyRenderer
...
Fix wrong depth values returned by TinyRenderer
2017-11-17 09:39:55 -08:00
Michel Breyer
f7e593f8e9
Simplify the depth value transformations to reduce the number of operations
2017-11-17 15:15:11 +01:00
Michel Breyer
bb2ee12b86
Initialize TinyRenderer's depth buffer properly.
2017-11-17 14:59:24 +01:00
Michel Breyer
8257429964
Fix error discarding fragments in our_gl
2017-11-17 14:49:12 +01:00
Michel Breyer
5138fe2c55
Fix wrong depth values returned by TinyRenderer
2017-11-17 14:48:41 +01:00
Erwin Coumans
f483ccd8ef
remote org configs
2017-11-16 16:49:25 +00:00
Erwin Coumans
7b030426c1
add a temp copy of TF agents (until the API stops changing or configs.py are included)
2017-11-16 16:47:14 +00:00
erwincoumans
e982efc18a
fix in previous commit related to pybullet.c changeUserConstraint / pybullet_internalSetMatrix
2017-11-12 21:53:14 -08:00
erwincoumans
6be7e34dd6
pybullet vr_kuka_setup.py: add a gear joint, to keep the gripper centered,
...
vr_kuka_control.py: control all joints, use analogue button to close gripper
remove some debug warnings/prints
pybullet, avoid crash in changeUserConstraint if not passing a [list]
allow some gym environments (pybullet_pendulum and locomotors) to re-use an existing physics client connection.
2017-11-12 10:36:30 -08:00
erwincoumans
b5bf70cb80
fix potential memory leak when manually loading a texture (pybullet.loadTexture), due to URDF/SDF texture caching (manually loading textures are not cached)
2017-11-09 11:09:07 -08:00
Erwin Coumans
d570730b8e
fix pybullet and bump up version to 1.6.4
2017-11-07 21:11:16 -08:00
Erwin Coumans
344005a8f0
catch invalid mass/inertia instead of division by zero/nan. also, avoid indexing <0
2017-11-07 19:25:14 -08:00
erwincoumans
493d7bc94d
obj2sdf, add option to merge shapes with same materials, add support for transparent objects
...
tiny_obj_loader, load the "d" and "Tr" transparant tag
2017-11-04 19:17:20 -07:00
Erwin Coumans
5701b5b152
expose COV_ENABLE_Y_AXIS_UP to pybullet
...
increase MAX_SDF_BODIES from 512 to 1024 (botlab needs it)
2017-11-04 12:51:13 -07:00
Erwin Coumans
4798d66f19
fixes in kuka/racecar environment. kuka still doesn't train well, work-in-progress
2017-11-01 18:06:47 -07:00
Erwin Coumans
e4f58ddc33
fix typo, add train_ppo kuka task
2017-10-31 16:33:13 -07:00
Erwin Coumans
3709e68645
fix discrete versions of kuka grasping environment
...
should fix issue 1386
2017-10-31 16:14:20 -07:00
Erwin Coumans
33d32d7ab4
add continuous version of kuka cam gym env test
2017-10-31 16:10:02 -07:00
Erwin Coumans
4e2dfbe58e
add minitaur duck environment
...
see also https://www.youtube.com/watch?v=SLwUCMZdKLo and
evolution strategies (hardmaru):
https://twitter.com/hardmaru/status/925074585984237568
2017-10-31 16:05:52 -07:00
Erwin Coumans
55f5e52ecd
add continuous versions of kukaGymEnv, kukaCamGymEnv, racecarZEDGymEnv etc.
...
should be trainable with PPO or evolution strategies (ES) now
2017-10-31 15:50:34 -07:00
Erwin Coumans
32312e60a8
Merge remote-tracking branch 'bp/master'
2017-10-29 12:28:00 -07:00
d3x0r
8e75d4375b
Fix missing DWORD variable (lost in merge port)
2017-10-28 14:50:44 -07:00
d3x0r
88b49947b5
Composite of fixed code for mingw64(on windows) and general fixes for msvc.
...
1) (win32window) don't convert char to wide, use char direct to window.
2) (CMakeLists) Don't link one library as static CPPLIB and no others (mismatched allocations)
3) (macros) Fix Gwen macros for mingw64 on windows build. (changes are by compiler(msc_ver) not platform)
4) (FileUtils) sprintf_s reference by platform, not compiler (mingw64 support)
5) (b3OpenCLUtils) fix bad define name _MSVC_VER->_MSC_VER
6) (compoundCollision) remove unused variables, simplify operation.
7) (impulseconstraint) remove duplicated code block
2017-10-28 14:42:38 -07:00
Erwin Coumans
48f0f29812
add integrate.py example
2017-10-27 18:26:32 -07:00
erwincoumans
c042c8f9b6
premake pybullet, use enable_static_vr_plugin
...
add examples\pybullet\examples\vr_kitchen_setup_vrSyncPython.py (doesn't work well, need C++ sync and some optimizations)
2017-10-25 10:20:34 -07:00
erwincoumans
6a9300809d
premake4 add option --enable_static_vr_plugin to statically link the VR sync plugin
...
fix texture caching from previous commit (what happened there?)
2017-10-25 10:00:45 -07:00
Erwin Coumans
9385f36505
add cartpole_bullet, should fix issue 1403
2017-10-25 08:37:01 -07:00
erwincoumans
7524e37124
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-10-25 08:15:14 -07:00
erwincoumans
ed8de36ffa
pybullet: allow to replace existing text, to avoid flickering (remove/add)
...
allow texture caching (disable using the disable file caching)
2017-10-25 08:15:01 -07:00
erwincoumans
c1ba04a580
Merge pull request #1404 from erwincoumans/master
...
perform IK in local body-fixed frame , add jointFrictionDamping.py example
2017-10-25 00:52:16 +00:00
Erwin Coumans
7a1dbf2e59
allow IK on a floating base, see video:
...
add inverse_kinematics_husky_kuka.py example
fix spacing in inverse_dynamics.py
2017-10-25 00:32:47 -07:00
Erwin Coumans
41a1362bc5
perform IK in local body-fixed frame
...
For now, Jacobian, mass matrix and inverse dynamics return results in local coordinates of the tree.
2017-10-24 21:06:44 -07:00
Erwin Coumans
1998a62785
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-10-23 12:25:34 -07:00
Erwin Coumans
ca7d599838
add jointFrictionDamping.py example
...
modify testrender.py to add shadow for tiny renderer
2017-10-23 12:25:04 -07:00
Jonathan Tompson
cbc2732cbd
Also added fix for Direct.
2017-10-22 16:07:00 -07:00
Jonathan Tompson
03b2cfe991
Added gear info to getConstraintInfo return.
...
Fixed bug in GEAR constraint update.
2017-10-22 15:01:13 -07:00
erwincoumans
c149840264
Merge pull request #1396 from erwincoumans/master
...
API changes in TensorFlow Agents
2017-10-20 20:46:56 -07:00
Erwin Coumans
d18bfec1a9
API changes in TensorFlow Agents
...
See 164f620326 (diff-82bda908f176861c20aadc1d017c2527)
2017-10-20 20:32:49 -07:00
erwincoumans
28ea41bfe6
Merge pull request #1393 from YunfeiBai/master
...
Expose IK solver options: DLS and SDLS.
2017-10-20 13:22:56 -07:00
yunfeibai
b67bccc575
Add inverse kinematics example for pole, which has a prismatic joint.
2017-10-19 14:30:37 -07:00
yunfeibai
dda1b05f4a
Expose IK solver options including DLS and SDLS.
2017-10-19 14:00:53 -07:00
erwincoumans
723c206d0f
Merge pull request #1390 from erwincoumans/master
...
fix the pybullet.changeDynamics linear/angular damping
2017-10-18 19:48:35 -07:00
Erwin Coumans
c178c101a8
fix the pybullet.changeDynamics linear/angular damping
...
expose pybullet.getConstraintState
2017-10-18 19:15:35 -07:00
Julien Schueller
9a9054728f
Windows case sentitive fs build fix
2017-10-15 02:05:01 +02:00
Julien Schueller
764d4a01de
Windows case sentitive fs build fix
2017-10-14 18:01:44 +02:00
Erwin Coumans
8750d49082
fix blocking plot.show() never terminating properly
2017-10-13 14:51:06 -07:00
erwincoumans
cb23e6c102
Fix pybullet.calculateInverseDynamics in the case where #dof != #joints (fixed joints). We still don't handle spherical joints in pybullet (even though the underlying inverse dynamics and forward dynamics support it)
...
Also, add a inverse_dynamics.py example, with URDF files. Thanks to Michiel Lutter for the report and repro case!
This fixes issue #1379 https://github.com/bulletphysics/bullet3/issues/1379
2017-10-13 14:19:25 -07:00
Erwin Coumans
10527e12eb
fix Mac OSX build, openvr 32bit/64bit was not selected, library out-of-date
2017-10-11 17:20:26 -07:00
Erwin Coumans
f2c64fdf40
bump up openvr to 1.0.10 for Linux and Mac
2017-10-10 22:25:36 -07:00
erwincoumans
254fd330f8
bump up ThirdPartyLibs/openvr to latest 1.0.10 from https://github.com/ValveSoftware/openvr
...
(Windows only, Linux/Mac will follow in next commit)
2017-10-10 22:13:04 -07:00
erwincoumans
de44e4811a
fix pybullet.addUserDebugText borders around letters
...
bump up pybullet version
In a few pybullet examples, first connect to SHARED_MEMORY, if not connected use GUI mode
2017-10-10 22:11:32 -07:00
erwincoumans
c155e105a5
unlock thread at exitPhysics
...
pybullet: don't crash in inverse kinematic if #dofs don't match due to free base
C-API: don't crash if status/statusHandle = 0
2017-10-10 11:10:42 -07:00
erwincoumans
e5d4c73c40
fix very rare threading issue, let main thread compute the UID for user debug items
...
add collision model to cartpole.urdf
2017-10-09 22:40:53 -07:00
erwincoumans
6b4f69f733
Merge remote-tracking branch 'bp/master'
2017-10-09 21:09:23 -07:00
yunfeibai
55b60e90f7
Modify inverse kinematics to also support robot model with fixed joint.
2017-10-09 18:28:52 -07:00
Erwin Coumans
d48e2a20af
fix a string check issue
2017-10-09 12:28:39 -07:00
Erwin Coumans
91e08ec986
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-10-09 12:28:07 -07:00
erwincoumans
7c7b9735c4
Merge pull request #1373 from jonathantompson/save_world_fix
...
quick update to SAVE_WORLD for JOINT_GEAR.
2017-10-09 11:38:15 -07:00
erwincoumans
49a2771522
Implement the pybullet/Python equivalent of vr_kuka_setup_vrSyncPlugin.py
...
In vr_kuka_setup_vrSyncPython.py, the vr controller is synced in Python, introducing a small lag
Invr_kuka_setup_vrSyncPlugin.py, the vr controller is synced in C++ at the same frequency as the physics time step (240 Hz by default)
2017-10-09 10:52:25 -07:00
Jonathan Tompson
2dee1638f4
quick update to SAVE_WORLD for JOINT_GEAR.
2017-10-09 10:48:03 -07:00
Erwin Coumans
91d164d886
remove obsolete CartPoleBulletEnv
2017-10-09 09:44:54 -07:00
erwincoumans
7d7f5ee7d4
Merge pull request #1371 from jonathantompson/userConstraintResultArgs_fix
...
Fixed setting of m_userConstraintResultArgs.
2017-10-08 22:56:56 -07:00
Jonathan Tompson
a57c7e7fcf
Fixed setting of m_userConstraintResultArgs (not sure how it ever worked for anyone). It was filling up the userConstraintData with stale memory.
2017-10-08 21:31:29 -07:00
erwincoumans
2f2f070ab5
allow changeVisualShape (rgbaColor, specularColor and texture) for maximal coordinates rigid body (btRigidBody)
...
Make the examples\pybullet\examples\createVisualShape.py a bit more interesting
2017-10-08 11:34:42 -07:00
erwincoumans
b2edd81ef6
touch up createVisualShape.py example
2017-10-07 19:00:44 -07:00
erwincoumans
3826dddc83
fix asset paths, createVisualShape.py and duck.obj
2017-10-07 18:52:22 -07:00