File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,16 @@ def _reset_internal_state(self):
116116 target_mat = self .env .sim .data .site_xmat [self .env .sim .model .site_name2id (site_name )]
117117 set_mocap_pose (self .env .sim , target_pos , target_mat , f"{ target_name_prefix } _eef_target" )
118118
119- def input2action (self , goal_update_mode = "desired " ) -> Dict [str , np .ndarray ]:
119+ def input2action (self , goal_update_mode = "target " ) -> Dict [str , np .ndarray ]:
120120 """
121121 Uses mocap body poses to determine action for robot. Obtain input_type
122122 (i.e. absolute actions or delta actions) and input_ref_frame (i.e. world frame, base frame or eef frame)
123123 from the controller itself.
124124
125125 """
126126 assert (
127- goal_update_mode == "desired "
128- ), "goal_update_mode must be 'desired ' for MJGUI: targets are based off the pose of the mocap body."
127+ goal_update_mode == "target "
128+ ), "goal_update_mode must be 'target ' for MJGUI: targets are based off the pose of the mocap body."
129129 # TODO: unify this logic to be independent from controller type.
130130 action : Dict [str , np .ndarray ] = {}
131131 gripper_dof = self .env .robots [0 ].gripper [self .active_end_effector ].dof
You can’t perform that action at this time.
0 commit comments