fix(record): no teleop needed when running with policy (#1284)

This commit is contained in:
Steven Palma
2025-06-13 12:41:30 +02:00
committed by GitHub
parent 5c87365cc1
commit f976935ba1
2 changed files with 1 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ class RecordConfig:
resume: bool = False
def __post_init__(self):
if bool(self.teleop) == bool(self.policy):
if self.teleop is not None and self.policy is not None:
raise ValueError("Choose either a policy or a teleoperator to control the robot")
# HACK: We parse again the cli args here to get the pretrained path if there was one.