fix: ensure human-inloop schema fields are added for all teleop recordings

The previous condition gated on enable_collector_policy_id (defaults False),
so pure teleop recordings still missed the three complementary_info fields.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
这个提交包含在:
Elvinyk
2026-03-27 14:35:52 +08:00
父节点 88f2e56b08
当前提交 7e4e6701d7

查看文件

@ -353,7 +353,7 @@ def record(cfg: RecordConfig) -> LeRobotDataset:
use_videos=cfg.dataset.video,
),
)
if cfg.teleop is not None and cfg.enable_collector_policy_id:
if cfg.teleop is not None:
action_names = dataset_features[ACTION]["names"]
action_names = list(robot.action_features) if action_names is None else list(action_names)
_ensure_human_inloop_compatible_features(dataset_features, action_feature_names=action_names)