add render_mode option to mp_wrapper
This commit is contained in:
parent
e035d9b621
commit
2c8335f632
@ -17,6 +17,7 @@ class MPWrapper(gym.Wrapper, ABC):
|
||||
post_traj_time: float = 0.,
|
||||
policy_type: str = None,
|
||||
weights_scale: float = 1.,
|
||||
render_mode: str = None,
|
||||
**mp_kwargs
|
||||
):
|
||||
super().__init__(env)
|
||||
@ -36,7 +37,7 @@ class MPWrapper(gym.Wrapper, ABC):
|
||||
self.policy = policy_class(env)
|
||||
|
||||
# rendering
|
||||
self.render_mode = None
|
||||
self.render_mode = render_mode
|
||||
self.render_kwargs = None
|
||||
|
||||
# TODO: not yet final
|
||||
|
Loading…
Reference in New Issue
Block a user