Skip to content

robot.disconnect() not getting called in record script when exceptions are thrown. #2621

@adityabhas22

Description

@adityabhas22

System Info

- lerobot version: 0.4.3
- Platform: Linux-6.14.0-36-generic-x86_64-with-glibc2.39
- Python version: 3.10.19
- Huggingface Hub version: 0.35.3
- Datasets version: 4.1.1
- Numpy version: 2.2.6
- PyTorch version: 2.7.1+cu126
- Is PyTorch built with CUDA support?: True
- Cuda version: 12.6
- GPU model: NVIDIA GeForce RTX 4080 SUPER

Information

  • One of the scripts in the examples/ folder of LeRobot
  • My own task or dataset (give details below)

Reproduction

Run a lerobot-record command with so101 setup, and force quit/wait for an exception to occur.

Expected behavior

You will notice that the follower arms don't actually get disconnected and the motors remain in a fixed position which led to burning my motor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions