diff --git a/lerobot/common/robot_devices/robots/configs.py b/lerobot/common/robot_devices/robots/configs.py index 5b665f9a..bfd9edf3 100644 --- a/lerobot/common/robot_devices/robots/configs.py +++ b/lerobot/common/robot_devices/robots/configs.py @@ -766,7 +766,7 @@ class RealmanDualRobotConfig(RobotConfig): left_port = 8080, right_ip = "192.168.3.19", right_port = 8080, - init_joint = {'joint': [-170, 90, 10, 90, 120, 0, 10, 170, 90, 10, -90, 120, 0, 10]}, + init_joint = {'joint': [15, 90, 10, 80, 110, 0, 10, -15, 90, 10, -80, 110, 0, 10]}, motors={ # name: (index, model) "left_joint_1": [1, "realman"], @@ -804,19 +804,19 @@ class RealmanDualRobotConfig(RobotConfig): height=480, use_depth=False ), - "front": IntelRealSenseCameraConfig( - serial_number="145422072751", - fps=30, - width=640, - height=480, - use_depth=False - ), - "high": IntelRealSenseCameraConfig( - serial_number="145422072193", - fps=30, - width=640, - height=480, - use_depth=False - ), + # "front": IntelRealSenseCameraConfig( + # serial_number="145422072751", + # fps=30, + # width=640, + # height=480, + # use_depth=False + # ), + # "high": IntelRealSenseCameraConfig( + # serial_number="145422072193", + # fps=30, + # width=640, + # height=480, + # use_depth=False + # ), } ) \ No newline at end of file diff --git a/lerobot/common/robot_devices/teleop/find_gamepad.py b/lerobot/common/robot_devices/teleop/find_gamepad.py index 771dab8b..71bf2c2e 100644 --- a/lerobot/common/robot_devices/teleop/find_gamepad.py +++ b/lerobot/common/robot_devices/teleop/find_gamepad.py @@ -2,14 +2,16 @@ import pygame def find_controller_index(): # 获取所有 pygame 控制器的设备路径 + pygame.init() pygame_joysticks = {} - for i in range(pygame.joystick.get_count()): - joystick = pygame.joystick.Joystick(i) - joystick.init() - pygame_joysticks[joystick.get_guid()] = { - 'index': i, - 'device_name': joystick.get_name() - } + if pygame.joystick.get_count(): + for i in range(pygame.joystick.get_count()): + joystick = pygame.joystick.Joystick(i) + joystick.init() + pygame_joysticks[joystick.get_guid()] = { + 'index': i, + 'device_name': joystick.get_name() + } return pygame_joysticks