lerobot-soarm100标定报错:ConnectionError: Read failed due to communication error on port /dev/ttyACM0

(testagent) jzzz@DESKTOP-8MIQOKD:~/lerobot$ python lerobot/scripts/control_robot.py   --robot.type=so101   --robot.cameras='{}'   --control.type=calibrate   --control.arms='["main_follower"]'
INFO 2025-05-18 20:51:13 ol_robot.py:408 {'control': {'arms': ['main_follower']},
 'robot': {'calibration_dir': '.cache/calibration/so101',
           'cameras': {},
           'follower_arms': {'main': {'mock': False,
                                      'motors': {'elbow_flex': [3, 'sts3215'],
                                                 'gripper': [6, 'sts3215'],
                                                 'shoulder_lift': [2,
                                                                   'sts3215'],
                                                 'shoulder_pan': [1, 'sts3215'],
                                                 'wrist_flex': [4, 'sts3215'],
                                                 'wrist_roll': [5, 'sts3215']},
                                      'port': '/dev/ttyACM0'}},
           'gripper_open_degree': None,
           'leader_arms': {'main': {'mock': False,
                                    'motors': {'elbow_flex': [3, 'sts3215'],
                                               'gripper': [6, 'sts3215'],
                                               'shoulder_lift': [2, 'sts3215'],
                                               'shoulder_pan': [1, 'sts3215'],
                                               'wrist_flex': [4, 'sts3215'],
                                               'wrist_roll': [5, 'sts3215']},
                                    'port': '/dev/ttyACM0'}},
           'max_relative_target': None,
           'mock': False}}
Calibration file not found '.cache/calibration/so101/main_follower.json'
Connecting main follower arm.
Connecting main leader arm.
Missing calibration file '.cache/calibration/so101/main_follower.json'
Traceback (most recent call last):
  File "/home/jzzz/lerobot/lerobot/scripts/control_robot.py", line 437, in <module>
    control_robot()
  File "/home/jzzz/lerobot/lerobot/configs/parser.py", line 227, in wrapper_inner
    response = fn(cfg, *args, **kwargs)
  File "/home/jzzz/lerobot/lerobot/scripts/control_robot.py", line 415, in control_robot
    calibrate(robot, cfg.control)
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/utils.py", line 42, in wrapper
    raise e
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/utils.py", line 38, in wrapper
    return func(robot, *args, **kwargs)
  File "/home/jzzz/lerobot/lerobot/scripts/control_robot.py", line 228, in calibrate
    robot.connect()
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/robots/manipulator.py", line 256, in connect
    self.activate_calibration()
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/robots/manipulator.py", line 331, in activate_calibration
    calibration = load_or_run_calibration_(name, arm, "follower")
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/robots/manipulator.py", line 321, in load_or_run_calibration_
    calibration = run_arm_manual_calibration(arm, self.robot_type, name, arm_type)
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/robots/feetech_calibration.py", line 443, in run_arm_manual_calibration
    if (arm.read("Torque_Enable") != TorqueMode.DISABLED.value).any():
  File "/home/jzzz/lerobot/lerobot/common/robot_devices/motors/feetech.py", line 751, in read
    raise ConnectionError(
ConnectionError: Read failed due to communication error on port /dev/ttyACM0 for group_key Torque_Enable_shoulder_pan_shoulder_lift_elbow_flex_wrist_flex_wrist_roll_gripper: [TxRxResult] Incorrect status packet!

可能原因一:线缆没接好,检查控制板和电机之间的接线

ConnectionError: Read failed due to communication error on port COM10 for group_key Present_Position_shoulder_pan_shoulder_lift_elbow_flex_wrist_flex_wrist_roll_gripper: [TxRxResult] There is no status packet! · Issue #560 · huggingface/lerobot · GitHub

可能原因二:feetech舵机的固件版本需要更新,找fd的调试软件里更新

FEETECH Debug Software: 飞特总线舵机调试软件

我的是1.9.8.3

找到自己的端口号。波特率最大然后开始,搜索,给每个舵机都升

每个舵机都检测更新一遍。

升级完后再执行lerobot下标定脚本,即可成功标定。

[INFO] Using python from: /home/abyss/AI/IsaacLab/_isaac_sim/python.sh [INFO][AppLauncher]: Using device: cuda:0 [INFO][AppLauncher]: Loading experience file: /home/abyss/AI/IsaacLab/apps/isaaclab.python.headless.kit Loading user config located at: '/home/abyss/AI/isaacsim5p0/kit/data/Kit/Isaac-Sim/5.0/user.config.json' [Info] [carb] Logging to file: /home/abyss/AI/isaacsim5p0/kit/logs/Kit/Isaac-Sim/5.0/kit_20250816_213823.log 2025-08-16T13:38:23Z [327ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX 2025-08-16T13:38:24Z [821ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. |---------------------------------------------------------------------------------------------| | Driver Version: 570.169 | Graphics API: Vulkan |=============================================================================================| | GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | | | | | | | Device-ID | UUID | | | | | | | Bus-ID | | |---------------------------------------------------------------------------------------------| | 0 | NVIDIA GeForce RTX 3070 Ti | Yes: 0 | | 8438 MB | 10de | 0 | | | | | | | 2482 | ec84974e.. | | | | | | | 1 | | |=============================================================================================| | OS: 24.04.2 LTS (Noble Numbat) ubuntu, Version: 24.04.2, Kernel: 6.14.0-24-generic | XServer Vendor: The X.Org Foundation, XServer Version: 12101011 (1.21.1.11) | Processor: 12th Gen Intel(R) Core(TM) i7-12700KF | Bare Metal Cores: 12 | Bare Metal Logical Cores: 24 | Available Cores: 20 |---------------------------------------------------------------------------------------------| | Total Memory (MB): 31902 | Free Memory: 25527 | Total Page/Swap (MB): 8191 | Free Page/Swap: 8112 |---------------------------------------------------------------------------------------------| 2025-08-16T13:38:27Z [4,286ms] [Warning] [gpu.foundation.plugin] CPU performance profile is set to powersave. This profile sets the CPU to the lowest frequency reducing performance. 2025-08-16T13:38:27Z [4,289ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. [INFO]: Parsing configuration from: SO_100.tasks.reach.reach_env_cfg:SoArm100ReachEnvCfg [INFO]: Parsing configuration from: SO_100.tasks.reach.agents.rsl_rl_ppo_cfg:ReachPPORunnerCfg [INFO] Logging experiment in directory: /home/abyss/AI/IsaacLab/logs/rsl_rl/so_arm100_reach Exact experiment name requested from command line: 2025-08-16_21-38-28 Setting seed: 42 [INFO]: Base environment: Environment device : cuda:0 Environment seed : 42 Physics step-size : 0.016666666666666666 Rendering step-size : 0.03333333333333333 Environment step-size : 0.03333333333333333 2025-08-16T13:38:28Z [5,498ms] [Warning] [isaaclab.sim.utils] Could not perform 'modify_rigid_body_properties' on any prims under: '/World/envs/env_0/Robot'. This might be because of the following reasons: (1) The desired attribute does not exist on any of the prims. (2) The desired attribute exists on an instanced prim. Discovered list of instanced prim paths: [] 2025-08-16T13:38:28Z [5,498ms] [Warning] [isaaclab.sim.utils] Could not perform 'modify_articulation_root_properties' on any prims under: '/World/envs/env_0/Robot'. This might be because of the following reasons: (1) The desired attribute does not exist on any of the prims. (2) The desired attribute exists on an instanced prim. Discovered list of instanced prim paths: [] [INFO]: Time taken for scene creation : 1.464816 seconds [INFO]: Scene manager: <class InteractiveScene> Number of environments: 4096 Environment spacing : 2.5 Source prim name : /World/envs/env_0 Global prim paths : [] Replicate physics : True [INFO]: Starting the simulation. This may take a few seconds. Please wait... [INFO]: Time taken for simulation start : 0.337638 seconds Error executing job with overrides: [] Traceback (most recent call last): File "/home/abyss/AI/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 101, in hydra_main func(env_cfg, agent_cfg, *args, **kwargs) File "/home/abyss/AI/isaac_so_arm101/scripts/rsl_rl/train.py", line 137, in main env = gym.make(args_cli.task, cfg=env_cfg, render_mode="rgb_array" if args_cli.video else None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/abyss/AI/IsaacLab/_isaac_sim/kit/python/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 734, in make env = env_creator(**env_spec_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/envs/manager_based_rl_env.py", line 82, in __init__ super().__init__(cfg=cfg) File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/envs/manager_based_env.py", line 166, in __init__ self.sim.reset() File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/sim/simulation_context.py", line 597, in reset self.render() File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/sim/simulation_context.py", line 660, in render raise exception_to_raise File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/assets/asset_base.py", line 317, in _initialize_callback self._initialize_impl() File "/home/abyss/AI/IsaacLab/source/isaaclab/isaaclab/assets/articulation/articulation.py", line 1460, in _initialize_impl raise RuntimeError( RuntimeError: Failed to find an articulation when resolving '/World/envs/env_0/Robot'. Please ensure that the prim has 'USD ArticulationRootAPI' applied. Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. 2025-08-16T13:38:30Z [7,288ms] [Warning] [omni.physx.plugin] USD stage detach not called, holding a loose ptr to a stage! 2025-08-16T13:38:30Z [7,523ms] [Warning] [carb] Recursive unloadAllPlugins() detected! There was an error running python
08-17
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值