adjust env registries in __init__

This commit is contained in:
Onur
2022-06-30 14:55:34 +02:00
parent 3273f455c5
commit f31d85451f
11 changed files with 29 additions and 65 deletions
+1 -2
View File
@@ -1,2 +1 @@
from .mp_wrapper import MPWrapper, HighCtxtMPWrapper
from .new_mp_wrapper import NewMPWrapper, NewHighCtxtMPWrapper
from .new_mp_wrapper import MPWrapper
@@ -3,7 +3,7 @@ from typing import Union, Tuple
import numpy as np
class NewMPWrapper(BlackBoxWrapper):
class MPWrapper(BlackBoxWrapper):
@property
def current_pos(self) -> Union[float, int, np.ndarray, Tuple]:
return self.env.sim.data.qpos[3:6].copy()
@@ -30,7 +30,7 @@ class NewMPWrapper(BlackBoxWrapper):
])
class NewHighCtxtMPWrapper(NewMPWrapper):
class NewHighCtxtMPWrapper(MPWrapper):
def get_context_mask(self):
return np.hstack([
[False] * (2 + int(not self.env.exclude_current_positions_from_observation)), # position