From 7c3850451e4f9c1b85eedfaaea53e3603fa9b13e Mon Sep 17 00:00:00 2001 From: silencht Date: Wed, 14 May 2025 17:50:42 +0800 Subject: [PATCH] [fix] type bug. --- teleop/robot_control/robot_hand_unitree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleop/robot_control/robot_hand_unitree.py b/teleop/robot_control/robot_hand_unitree.py index 9142ea6..4787a59 100644 --- a/teleop/robot_control/robot_hand_unitree.py +++ b/teleop/robot_control/robot_hand_unitree.py @@ -339,9 +339,9 @@ class Gripper_Controller: start_time = time.time() # get dual hand skeletal point state from XR device with left_gripper_value_in.get_lock(): - left_gripper_value = left_gripper_value_in + left_gripper_value = left_gripper_value_in.value with right_gripper_value_in.get_lock(): - right_gripper_value = right_gripper_value_in + right_gripper_value = right_gripper_value_in.value if left_gripper_value != 0.0 or right_gripper_value != 0.0: # if hand data has been initialized. # Linear mapping from [0, THUMB_INDEX_DISTANCE_MAX] to gripper action range