Rename old humanoid gym to simple humanoid gym.
This commit is contained in:
@@ -30,12 +30,12 @@ register(
|
||||
reward_threshold=5.0,
|
||||
)
|
||||
|
||||
# register(
|
||||
# id='HumanoidBulletEnv-v0',
|
||||
# entry_point='envs.bullet:HumanoidGymEnv',
|
||||
# timestep_limit=1000,
|
||||
# reward_threshold=5.0,
|
||||
# )
|
||||
register(
|
||||
id='SimpleHumanoidBulletEnv-v0',
|
||||
entry_point='envs.bullet:SimpleHumanoidGymEnv',
|
||||
timestep_limit=1000,
|
||||
reward_threshold=5.0,
|
||||
)
|
||||
|
||||
register(
|
||||
id='KukaBulletEnv-v0',
|
||||
|
||||
@@ -2,6 +2,6 @@ from envs.bullet.cartpole_bullet import CartPoleBulletEnv
|
||||
from envs.bullet.minitaur_bullet import MinitaurBulletEnv
|
||||
from envs.bullet.racecarGymEnv import RacecarGymEnv
|
||||
from envs.bullet.racecarZEDGymEnv import RacecarZEDGymEnv
|
||||
from envs.bullet.humanoidGymEnv import HumanoidGymEnv
|
||||
from envs.bullet.simpleHumanoidGymEnv import SimpleHumanoidGymEnv
|
||||
from envs.bullet.kukaGymEnv import KukaGymEnv
|
||||
from envs.bullet.kukaCamGymEnv import KukaCamGymEnv
|
||||
@@ -6,7 +6,7 @@ import time
|
||||
|
||||
|
||||
|
||||
class Humanoid:
|
||||
class SimpleHumanoid:
|
||||
|
||||
def __init__(self, urdfRootPath='', timeStep=0.01):
|
||||
self.urdfRootPath = urdfRootPath
|
||||
@@ -5,10 +5,10 @@ from gym.utils import seeding
|
||||
import numpy as np
|
||||
import time
|
||||
import pybullet as p
|
||||
from . import humanoid
|
||||
from . import simpleHumanoid
|
||||
import random
|
||||
|
||||
class HumanoidGymEnv(gym.Env):
|
||||
class SimpleHumanoidGymEnv(gym.Env):
|
||||
metadata = {
|
||||
'render.modes': ['human', 'rgb_array'],
|
||||
'video.frames_per_second' : 50
|
||||
@@ -57,7 +57,7 @@ class HumanoidGymEnv(gym.Env):
|
||||
ballz = 1
|
||||
|
||||
p.setGravity(0,0,-10)
|
||||
self._humanoid = humanoid.Humanoid(urdfRootPath=self._urdfRoot, timeStep=self._timeStep)
|
||||
self._humanoid = simpleHumanoid.SimpleHumanoid(urdfRootPath=self._urdfRoot, timeStep=self._timeStep)
|
||||
self._envStepCounter = 0
|
||||
p.stepSimulation()
|
||||
self._observation = self.getExtendedObservation()
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
from envs.bullet.humanoidGymEnv import HumanoidGymEnv
|
||||
from envs.bullet.simpleHumanoidGymEnv import SimpleHumanoidGymEnv
|
||||
print ("hello")
|
||||
environment = HumanoidGymEnv(renders=True)
|
||||
environment = SimpleHumanoidGymEnv(renders=True)
|
||||
|
||||
environment._p.setGravity(0,0,0)
|
||||
|
||||
Reference in New Issue
Block a user