clean up open_ai envs

This commit is contained in:
Onur
2022-07-06 17:12:38 +02:00
parent 2706af0b77
commit 4a3134d7be
9 changed files with 45 additions and 96 deletions
@@ -14,3 +14,13 @@ class MPWrapper(RawInterfaceWrapper):
@property
def current_pos(self) -> Union[float, int, np.ndarray]:
return self.sim.data.qpos[:2]
@property
def context_mask(self):
return np.concatenate([
[False] * 2, # cos of two links
[False] * 2, # sin of two links
[True] * 2, # goal position
[False] * 2, # angular velocity
[False] * 3, # goal distance
])