fancy_gym/alr_envs/open_ai/reacher_v2/mp_wrapper.py

18 lines
367 B
Python
Raw Normal View History

2021-07-01 14:55:14 +02:00
from typing import Union
from mp_env_api.env_wrappers.mp_env_wrapper import MPEnvWrapper
class MPWrapper(MPEnvWrapper):
@property
def start_pos(self):
raise ValueError("Start position is not available")
@property
def goal_pos(self):
return self.goal
@property
def dt(self) -> Union[float, int]:
return self.env.dt