Commit Graph
6949 Commits
Author SHA1 Message Date
erwincoumans 4ff6befc6d avoid flickering in visualizer window, when doing pybullet.getCameraImage 2017-08-29 12:13:21 -07:00
erwincoumans bd39c7c657 Merge pull request #1282 from erwincoumans/master
fix in minitaur.py and add render function in minitaur_gym_env.py
2017-08-28 19:32:58 -07:00
Erwin Coumans 3b472e4b12 Merge remote-tracking branch 'bp/master' 2017-08-28 19:29:06 -07:00
Erwin Coumans 029b4debad fix in minitaur.py and add render function in minitaur_gym_env.py 2017-08-28 19:28:20 -07:00
erwincoumans 449c8afc11 Merge pull request #1280 from erwincoumans/master
pybullet a bit more refactoring, moving around files.
2017-08-27 21:58:19 -07:00
Erwin Coumans 04e7ebbe80 Merge remote-tracking branch 'bp/master' 2017-08-27 20:08:17 -07:00
Erwin Coumans 1900966805 small rename 2017-08-27 19:54:20 -07:00
Erwin Coumans 3f00c7bd49 small tweak in vr_kuka_setup.py example 2017-08-27 19:53:38 -07:00
Erwin Coumans c8cb0a5f42 add missing sphere_small.urdf, add vr_kuka_setup.py example. 2017-08-27 19:41:40 -07:00
Erwin Coumans 1569f3845c more fixes in pybullet_gym envs/data.
implement pybullet.setAdditionalSearchPath
2017-08-27 19:34:00 -07:00
Erwin Coumans d9faea8c1c add more URDF files to pybullet_data 2017-08-27 19:26:53 -07:00
Erwin Coumans 793904fc89 fix windows 64bit openvr/lib/win64/openvr_api.lib to find openvr64pi.dll (different name from 32bit version, to co-exist) 2017-08-27 18:30:12 -07:00
Erwin Coumans 659e869b86 pybullet a bit more refactoring, moving around files.
pybullet: move data to pybullet_data package, with getDataPath() method
2017-08-27 18:08:46 -07:00
erwincoumans 079035d253 Merge pull request #1279 from erwincoumans/master
more fixes in the pybullet gym environments
2017-08-26 15:19:38 -07:00
Erwin Coumans 97cb6df00c bump up pybullet version 2017-08-26 15:00:54 -07:00
Erwin Coumans e267f5c3d2 move pybullet.connect into the Gym environment.
If you like to enable rendering, call the env.render(mode="human") before calling the first env.reset
2017-08-26 14:58:48 -07:00
Erwin Coumans 51b7e1040f more fixes in the pybullet gym environments: use main instead of demo_run,
add missing main to some eaxmples.

pip install pybullet
train:
python -m pybullet_envs.examples.train_pybullet_cartpole

enjoy:
python -m pybullet_envs.examples.enjoy_pybullet_cartpole

enjoy pretrained environments:

python -m pybullet_envs.examples.enjoy_TF_AntBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_HalfCheetahBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_AntBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_HopperBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_HumanoidBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_InvertedPendulumBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may
python -m pybullet_envs.examples.enjoy_TF_Walker2DBulletEnv_v0_2017may

Run some gym environment test:
python -m pybullet_envs.examples.racecarGymEnvTest

Create/Import a specific Gym environment:

python
import pybullet_envs
env = gym.make("AntBulletEnv-v0")
env = gym.make("HalfCheetahBulletEnv-v0")
env = gym.make("HopperBulletEnv-v0")
env = gym.make("HumanoidBulletEnv-v0")
env = gym.make("Walker2DBulletEnv-v0")
env = gym.make("InvertedDoublePendulumBulletEnv-v0")
env = gym.make("InvertedPendulumBulletEnv-v0")
env = gym.make("MinitaurBulletEnv-v0")
env = gym.make("RacecarBulletEnv-v0")
env = gym.make("KukaBulletEnv-v0")
env = gym.make("CartPoleBulletEnv-v0")
2017-08-26 13:13:53 -07:00
Erwin Coumans b1426322ed add gif to pybullet data
add python files to .gitignore
pybullet bump up version to 1.2.5
2017-08-25 18:08:53 -07:00
erwincoumans dd9ecce79e Merge pull request #1274 from erwincoumans/master
all methods (except connect, obviously) have the physicsClientId argu…
2017-08-25 16:37:16 -07:00
Erwin Coumans bcc60224f0 all methods (except connect, obviously) have the physicsClientId argument, even if they don't use it. This makes it easier to create a wrapper API to store the physics client. This allows easier multi-threaded versions with multiple Bullet DIRECT instances (or SHARED_MEMORY, TCP, UDP etc).
See for example https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/gym/pybullet_envs/bullet/bullet_client.py and https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/gym/pybullet_envs/bullet/minitaur.py
2017-08-25 14:04:45 -07:00
erwincoumans be7ddfcc5c Merge pull request #1221 from Wugand/patch-1
Fix for memory leak at btCreateCompoundFromGimpactShape
2017-08-25 08:30:07 -07:00
erwincoumans 983da08da8 Merge pull request #1271 from erwincoumans/master
pybullet: remove 'data' from MANIFEST.in
2017-08-24 22:38:24 -07:00
Erwin Coumans 0d0caa7cbc Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-08-24 22:02:34 -07:00
Erwin Coumans 1fc148d5d0 fixes in racecarGymEnv: implement 'render' rgb image, fix in naming,
fix in observation bounds.
2017-08-24 22:01:45 -07:00
Erwin Coumans c7c3e76e56 Merge remote-tracking branch 'bp/master' 2017-08-24 21:42:32 -07:00
erwincoumans ee3bb1efc5 Merge pull request #1272 from jonathantompson/exit_0_fix
OpenGL window error handling updates
2017-08-24 15:44:38 -07:00
Jonathan Tompson 29acd99d25 changed exit(0) to exit(EXIT_FAILURE) for OpenGLWindow functions, and changed printf to fprintf(stderr for error string printing. 2017-08-24 15:18:43 -07:00
Erwin Coumans a975d094c3 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-08-24 13:33:58 -07:00
Erwin Coumans cb6914fa4c use better defauls values for minitaur 2017-08-24 13:33:45 -07:00
Erwin Coumans 16d9e2fb38 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-08-24 10:16:25 -07:00
erwincoumans a119a77bc7 Merge pull request #1270 from erwincoumans/master
pybullet fix leak for concave collision shapes.  Allow continuous control for MIT racecar gym environment
2017-08-24 10:09:04 -07:00
Erwin Coumans 5c5993edcb fix potential memory leaks for concave triangle meshes (<concave=true> or createCollisionShape with flags=1) 2017-08-24 09:16:11 -07:00
Erwin Coumans 577ddd4f55 remote 'data' from MANIFEST.in 2017-08-23 23:58:53 -07:00
Erwin Coumans f0c32b84c0 allow continuous control for MIT racecar gym environment, use differential drive version 2017-08-23 23:12:26 -07:00
Erwin Coumans 8a4f51baa4 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-08-23 21:45:05 -07:00
erwincoumans 83510f0652 Merge pull request #1268 from erwincoumans/master
update minitaur gym env, 	fix pybullet racecarGymEnv to use thread-safe pybullet
2017-08-23 18:41:56 -07:00
Erwin Coumans ff4270a517 fix pybullet racecarGymEnv to use thread-safe pybullet 2017-08-23 18:22:20 -07:00
Erwin Coumans 75231d63e8 use name MinitaurBulletEnv 2017-08-23 17:45:41 -07:00
Erwin Coumans 0851b45f39 update minitaur gym env 2017-08-23 17:41:34 -07:00
Erwin Coumans 8866840712 Clarify in naming that the environment uses MJCF xml files with Bullet, it doesn't use MuJoCo. 2017-08-23 15:03:57 -07:00
erwincoumans a9fb0033a4 Merge pull request #1265 from erwincoumans/master
refactor pybullet/gym to allow instantiating environments directly fr…
2017-08-23 10:07:36 -07:00
Erwin Coumans f19f28b5ed more fixes in pybullet/resources, moved enjoy/train/test in 'examples' folder. 2017-08-22 10:07:47 -07:00
Erwin Coumans 21ca6a90f0 more fixes for pybullet 2017-08-22 09:32:16 -07:00
Erwin Coumans dd4cc5f4ef add minitaur quadruped 2017-08-22 09:00:46 -07:00
Erwin Coumans e064d4b837 more fixes in pybullet_envs: fix path, add missing data resources 2017-08-22 08:59:39 -07:00
Erwin Coumans 21f9d1b816 refactor pybullet/gym to allow instantiating environments directly from a pybullet install:
work-in-progress (need to add missing data files, fix paths etc)

example:

pip install pybullet
pip install gym

python
import gym
import pybullet
import pybullet_envs
env = gym.make("HumanoidBulletEnv-v0")
2017-08-22 00:42:02 -07:00
Erwin Coumans 92d92e56aa Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-08-20 20:29:23 -07:00
erwincoumans bd28b212e1 Merge pull request #1263 from erwincoumans/master
improve the new pybullet gym environments, upgrade to OpenVR 1.0.9, add preliminary support for Mac OSX OpenVR
2017-08-20 20:28:08 -07:00
Erwin Coumans c06ea72a4c improve the new pybullet gym environments, follow camera, disable 2D GUI, disable rendering during loading (makes it faster)
disable vsync on Mac
fix setup.py file
2017-08-20 18:11:53 -07:00
Erwin Coumans c4112ec5cc Merge remote-tracking branch 'bp/master' 2017-08-19 16:16:56 -07:00