fix some gym envs

This commit is contained in:
Erwin Coumans
2019-01-28 16:21:52 -08:00
parent c97d1041ed
commit 0818112ede
7 changed files with 65 additions and 48 deletions

View File

@@ -22,9 +22,9 @@ class XmlBasedRobot:
self.robot_body = None
high = np.ones([action_dim])
self.action_space = gym.spaces.Box(-high, high, dtype=np.float32)
self.action_space = gym.spaces.Box(-high, high)
high = np.inf * np.ones([obs_dim])
self.observation_space = gym.spaces.Box(-high, high, dtype=np.float32)
self.observation_space = gym.spaces.Box(-high, high)
#self.model_xml = model_xml
self.robot_name = robot_name