forked from tangger/lerobot
fix(record): no teleop needed when running with policy (#1284)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user