Skip to content

Commit

Permalink
[fix] fix type annotation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuzhe Qin committed Sep 17, 2024
1 parent a80caf5 commit 90ed3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dex_retargeting/seq_retarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def set_qpos(self, robot_qpos: np.ndarray):
target_qpos = robot_qpos[self.optimizer.idx_pin2target]
self.last_qpos = target_qpos

def get_qpos(self, fixed_qpos: np.ndarray | None = None):
def get_qpos(self, fixed_qpos: Optional[np.ndarray] = None):
robot_qpos = np.zeros(self.optimizer.robot.dof)
robot_qpos[self.optimizer.idx_pin2target] = self.last_qpos
if fixed_qpos is not None:
Expand Down

0 comments on commit 90ed3b3

Please sign in to comment.