Adopt new interface structure

This commit is contained in:
Marcel
2021-07-23 13:32:20 +02:00
parent 0046ade102
commit 92e6a84d03
10 changed files with 7 additions and 30 deletions
+1 -5
View File
@@ -1,7 +1,7 @@
from typing import Union
import numpy as np
from mp_env_api.env_wrappers.mp_env_wrapper import MPEnvWrapper
from mp_env_api.interface_wrappers.mp_env_wrapper import MPEnvWrapper
class MPWrapper(MPEnvWrapper):
@@ -14,10 +14,6 @@ class MPWrapper(MPEnvWrapper):
def current_pos(self) -> Union[float, int, np.ndarray]:
return self.sim.data.qpos[:2]
@property
def goal_pos(self):
return self.goal
@property
def dt(self) -> Union[float, int]:
return self.env.dt