fix(piper): bool calibration flag and robust can setup/test fallback

这个提交包含在:
Elvin
2026-03-06 16:56:25 +08:00
父节点 5975798aef
当前提交 300f5a386d
共有 7 个文件被更改,包括 107 次插入 和 53 次删除

查看文件

@ -29,7 +29,6 @@ from lerobot.utils.piper_sdk import (
get_piper_sdk,
milli_to_unit,
parse_piper_log_level,
should_require_piper_calibration,
unit_to_milli,
)
from lerobot.utils.utils import enter_pressed, move_cursor_up
@ -98,7 +97,7 @@ class PiperFollower(Robot):
should_auto_calibrate = (
not self.is_calibrated
and calibrate
and should_require_piper_calibration(self.config.calibration_mode)
and self.config.require_calibration
)
if should_auto_calibrate:
logger.info(
@ -125,7 +124,7 @@ class PiperFollower(Robot):
logger.info("%s connected.", self)
def _use_uncalibrated_passthrough(self) -> bool:
return not self.is_calibrated and not should_require_piper_calibration(self.config.calibration_mode)
return not self.is_calibrated and not self.config.require_calibration
@property
def is_calibrated(self) -> bool: