@@ -459,7 +459,7 @@ def set_difficulty(self, difficulty):
459
459
print ("difficulty 3 for Round 2" )
460
460
self .spec .timestep_limit = self .time_limit
461
461
462
- def __init__ (self , visualize = True , integrator_accuracy = 5e-5 , difficulty = 3 , seed = 0 , report = None ):
462
+ def __init__ (self , visualize = True , integrator_accuracy = 5e-5 , difficulty = 3 , seed = None , report = None ):
463
463
if difficulty not in [0 , 1 , 2 , 3 ]:
464
464
raise ValueError ("difficulty level should be in [0, 1, 2, 3]." )
465
465
self .model_paths = {}
@@ -491,7 +491,7 @@ def __init__(self, visualize=True, integrator_accuracy=5e-5, difficulty=3, seed=
491
491
492
492
# create target velocity field
493
493
from envs .target import VTgtField
494
- self .vtgt = VTgtField (visualize = visualize , version = self .difficulty , dt = self .osim_model .stepsize )
494
+ self .vtgt = VTgtField (visualize = visualize , version = self .difficulty , dt = self .osim_model .stepsize , seed = seed )
495
495
self .obs_vtgt_space = self .vtgt .vtgt_space
496
496
497
497
def reset (self , project = True , seed = None , init_pose = None , obs_as_dict = True ):
0 commit comments