From 20510d8f68a1c5d3d263ce40c5f01432734feff8 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 18 Sep 2023 18:38:32 +0200 Subject: [PATCH] Ported MetaWorld wrapper to new mujoco binding --- fancy_gym/meta/base_metaworld_mp_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fancy_gym/meta/base_metaworld_mp_wrapper.py b/fancy_gym/meta/base_metaworld_mp_wrapper.py index 12338fd..03b78dc 100644 --- a/fancy_gym/meta/base_metaworld_mp_wrapper.py +++ b/fancy_gym/meta/base_metaworld_mp_wrapper.py @@ -59,7 +59,7 @@ class BaseMetaworldMPWrapper(RawInterfaceWrapper): @property 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]) @property