Ported MetaWorld wrapper to new mujoco binding
This commit is contained in:
parent
592f09789d
commit
20510d8f68
@ -59,7 +59,7 @@ class BaseMetaworldMPWrapper(RawInterfaceWrapper):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def current_pos(self) -> Union[float, int, np.ndarray]:
|
def current_pos(self) -> Union[float, int, np.ndarray]:
|
||||||
r_close = self.env.data.get_joint_qpos('r_close')
|
r_close = self.env.data.joint('r_close').qpos
|
||||||
return np.hstack([self.env.data.mocap_pos.flatten() / self.env.action_scale, r_close])
|
return np.hstack([self.env.data.mocap_pos.flatten() / self.env.action_scale, r_close])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user