Skip to content

Commit

Permalink
updated usage in control_sim_robot
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-aractingi committed Oct 18, 2024
1 parent 22df0b3 commit 0ef2397
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lerobot/scripts/control_sim_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,23 @@
Examples of usage:
- Unlimited teleoperation at highest frequency (~200 Hz is expected), to exit with CTRL+C:
```bash
python lerobot/scripts/control_robot.py teleoperate
# Remove the cameras from the robot definition. They are not used in 'teleoperate' anyway.
python lerobot/scripts/control_robot.py teleoperate --robot-overrides '~cameras'
```
- Unlimited teleoperation at a limited frequency of 30 Hz, to simulate data recording frequency:
- Unlimited teleoperation at a limited frequency of 30 Hz, to simulate data recording frequency.
You can modify this value depending on how fast your simulation can run:
```bash
python lerobot/scripts/control_robot.py teleoperate \
--fps 30
--fps 30 \
--robot-path lerobot/configs/robot/your_robot_config.yaml \
--sim-config lerobot/configs/env/your_sim_config.yaml
```
- Record one episode in order to test replay:
```bash
python lerobot/scripts/control_robot.py record \
python lerobot/scripts/control_sim_robot.py record \
--robot-path lerobot/configs/robot/your_robot_config.yaml \
--sim-config lerobot/configs/env/your_sim_config.yaml \
--fps 30 \
--root tmp/data \
--repo-id $USER/koch_test \
--repo-id $USER/robot_sim_test \
--num-episodes 1 \
--run-compute-stats 0
```
Expand All @@ -34,13 +31,14 @@
```bash
python lerobot/scripts/visualize_dataset.py \
--root tmp/data \
--repo-id $USER/koch_test \
--repo-id $USER/robot_sim_test \
--episode-index 0
```
- Replay this test episode:
```bash
python lerobot/scripts/control_robot.py replay \
python lerobot/scripts/control_sim_robot.py replay \
--sim-config lerobot/configs/env/your_sim_config.yaml \
--fps 30 \
--root tmp/data \
--repo-id $USER/koch_test \
Expand All @@ -50,10 +48,12 @@
- Record a full dataset in order to train a policy,
30 seconds of recording for each episode, and 10 seconds to reset the environment in between episodes:
```bash
python lerobot/scripts/control_robot.py record \
python lerobot/scripts/control_sim_robot.py record \
--robot-path lerobot/configs/robot/your_robot_config.yaml \
--sim-config lerobot/configs/env/your_sim_config.yaml \
--fps 30 \
--root data \
--repo-id $USER/koch_pick_place_lego \
--repo-id $USER/robot_sim_test \
--num-episodes 50 \
--episode-time-s 30 \
--reset-time-s 10
Expand Down

0 comments on commit 0ef2397

Please sign in to comment.