mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-31 10:09:53 +00:00
Otherwise it generates warnings: #868
This commit is contained in:
@@ -46,7 +46,7 @@ class MujocoEnv(gym.Env):
|
|||||||
bounds = self.model.actuator_ctrlrange.copy()
|
bounds = self.model.actuator_ctrlrange.copy()
|
||||||
low = bounds[:, 0]
|
low = bounds[:, 0]
|
||||||
high = bounds[:, 1]
|
high = bounds[:, 1]
|
||||||
self.action_space = spaces.Box(low=low, high=high)
|
self.action_space = spaces.Box(low=low, high=high, dtype=np.float32)
|
||||||
|
|
||||||
high = np.inf*np.ones(self.obs_dim)
|
high = np.inf*np.ones(self.obs_dim)
|
||||||
low = -high
|
low = -high
|
||||||
|
Reference in New Issue
Block a user