AlexK Low Cost Robot is a low-cost robotic arm that can be teleoperated using a similar arm. This repository contains
the Dora pipeline to manipulate the arms, the camera, and record/replay episodes with LeRobot.
This section explains how to record episodes for LeRobot using the AlexK Low Cost Robot.
Recording is the process of tele operating the robot and saving the episodes to a dataset. The dataset is used to train
the robot to perform tasks autonomously.
To record episodes with Dora, you have to configure the Dataflow record_mono_teleop_real.yml file to integrate the
arms and the camera. The graph file is located in the graphs folder.
Make sure to:
lcr-leader and lcr-follower in the record_mono_teleop_real.yml file.record_mono_teleop_real.yml file.record_mono_teleop_real.yml file, if needed.record_mono_teleop_real.yml file.record_mono_teleop_real.yml file for both arms if needed.LEADER_CONTROL and FOLLOWER_CONTROL environment variables in the record_mono_teleop_real.yml file ifYou can now start the Dora pipeline to record episodes for LeRobot:
cd dora
# If you are using a custom environment, you will have to activate it before running the command
source [your_custom_env_bin]/activate
# If you followed the installation instructions, you can run the following command
source venv/bin/activate # On Linux
source venv/Scripts/activate # On Windows bash
venv\Scripts\activate.bat # On Windows cmd
venv\Scripts\activate.ps1 # On Windows PowerShell
dora build ./examples/alexk-lcr/graphs/record_mono_teleop_real.yml # Only the first time, it will install all the requirements if needed
dora up
dora start ./examples/alexk-lcr/graphs/record_mono_teleop_real.yml
Then, you can tele operate the follower with the leader. A window will pop up showing the camera feed, and some text.
018fc3a8-3b76-70f5-84a2-22b84df24739), this is where theYou can now use our script to convert the logs to an understandable dataset:
cd dora
# If you are using a custom environment, you will have to activate it before running the command
source [your_custom_env_bin]/activate
# If you followed the installation instructions, you can run the following command
source venv/bin/activate # On Linux
source venv/Scripts/activate # On Windows bash
venv\Scripts\activate.bat # On Windows cmd
venv\Scripts\activate.ps1 # On Windows PowerShell
python ./datasets/build_dataset.py --record-path [path_to_recorded_logs] --dataset-name [dataset_name] --framerate [framerate]
Note: On default, the framerate is 30. If you have recorded with a different framerate, you will have to adjust it.
This library is licensed under the Apache License 2.0.