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")
This commit is contained in:
Erwin Coumans
2017-08-26 13:13:53 -07:00
parent b1426322ed
commit 51b7e1040f
14 changed files with 159 additions and 117 deletions

View File

@@ -0,0 +1,23 @@
from . import enjoy_TF_AntBulletEnv_v0_2017may
from . import enjoy_TF_HalfCheetahBulletEnv_v0_2017may
from . import enjoy_TF_AntBulletEnv_v0_2017may
from . import enjoy_TF_HopperBulletEnv_v0_2017may
from . import enjoy_TF_HumanoidBulletEnv_v0_2017may
from . import enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may
from . import enjoy_TF_InvertedPendulumBulletEnv_v0_2017may
from . import enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may
from . import enjoy_TF_Walker2DBulletEnv_v0_2017may
from . import enjoy_kuka_grasping
from . import enjoy_pybullet_cartpole
from . import enjoy_pybullet_racecar
from . import enjoy_pybullet_zed_racecar
from . import kukaGymEnvTest
from . import racecarGymEnvTest
from . import racecarZEDGymEnvTest
from . import simpleHumanoidGymEnvTest
from . import train_kuka_cam_grasping
from . import train_kuka_grasping
from . import train_pybullet_cartpole
from . import train_pybullet_racecar
from . import train_pybullet_zed_racecar