fixed seeding and tests

This commit is contained in:
Fabian
2022-07-12 15:43:46 +02:00
parent 0339361656
commit d64cb614fa
10 changed files with 36 additions and 34 deletions
@@ -7,7 +7,7 @@ import numpy as np
MAX_EPISODE_STEPS_HOPPERTHROW = 250
class ALRHopperThrowEnv(HopperEnv):
class HopperThrowEnv(HopperEnv):
"""
Initialization changes to normal Hopper:
- healthy_reward: 1.0 -> 0.0 -> 0.1
@@ -98,7 +98,7 @@ class ALRHopperThrowEnv(HopperEnv):
if __name__ == '__main__':
render_mode = "human" # "human" or "partial" or "final"
env = ALRHopperThrowEnv()
env = HopperThrowEnv()
obs = env.reset()
for i in range(2000):
@@ -8,7 +8,7 @@ import numpy as np
MAX_EPISODE_STEPS_HOPPERTHROWINBASKET = 250
class ALRHopperThrowInBasketEnv(HopperEnv):
class HopperThrowInBasketEnv(HopperEnv):
"""
Initialization changes to normal Hopper:
- healthy_reward: 1.0 -> 0.0
@@ -130,7 +130,7 @@ class ALRHopperThrowInBasketEnv(HopperEnv):
if __name__ == '__main__':
render_mode = "human" # "human" or "partial" or "final"
env = ALRHopperThrowInBasketEnv()
env = HopperThrowInBasketEnv()
obs = env.reset()
for i in range(2000):