From 0781077bde226afdda48f9b133501b2e4b41b384 Mon Sep 17 00:00:00 2001 From: ottofabian Date: Tue, 14 Feb 2023 10:05:05 +0100 Subject: [PATCH] Update base_metaworld_mp_wrapper.py --- fancy_gym/meta/base_metaworld_mp_wrapper.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/fancy_gym/meta/base_metaworld_mp_wrapper.py b/fancy_gym/meta/base_metaworld_mp_wrapper.py index 4029e28..0f1a9a9 100644 --- a/fancy_gym/meta/base_metaworld_mp_wrapper.py +++ b/fancy_gym/meta/base_metaworld_mp_wrapper.py @@ -9,12 +9,9 @@ class BaseMetaworldMPWrapper(RawInterfaceWrapper): @property def current_pos(self) -> Union[float, int, np.ndarray]: r_close = self.env.data.get_joint_qpos("r_close") - # TODO check if this is correct - # return np.hstack([self.env.data.get_body_xpos('hand').flatten() / self.env.action_scale, r_close]) return np.hstack([self.env.data.mocap_pos.flatten() / self.env.action_scale, r_close]) @property def current_vel(self) -> Union[float, int, np.ndarray, Tuple]: - # TODO check if this is correct return np.zeros(4, ) # raise NotImplementedError("Velocity cannot be retrieved.")