Update tutorial
This commit is contained in:
@@ -45,10 +45,12 @@ conda install -y -c conda-forge "opencv>=4.10.0"
|
|||||||
|
|
||||||
## Configure the motors
|
## Configure the motors
|
||||||
|
|
||||||
|
Run this script two times to find the ports (e.g. "/dev/tty.usbmodem58760432961") of your motor buses:
|
||||||
```bash
|
```bash
|
||||||
python lerobot/scripts/find_motors_bus_port.py
|
python lerobot/scripts/find_motors_bus_port.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then plug your first motor, corresponding to "shoulder_pan" and run this script to set its ID to 1 and set its present position and offset to ~2048 (useful for calibration).
|
||||||
```bash
|
```bash
|
||||||
python lerobot/scripts/configure_motor.py \
|
python lerobot/scripts/configure_motor.py \
|
||||||
--port /dev/tty.usbmodem58760432961 \
|
--port /dev/tty.usbmodem58760432961 \
|
||||||
@@ -58,15 +60,33 @@ python lerobot/scripts/configure_motor.py \
|
|||||||
--ID 1
|
--ID 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then unplug your motor and plug the second motor, corresponding to "shoulder lift", and set its ID to 2.
|
||||||
|
```bash
|
||||||
|
python lerobot/scripts/configure_motor.py \
|
||||||
|
--port /dev/tty.usbmodem58760432961 \
|
||||||
|
--brand feetech \
|
||||||
|
--model sts3215 \
|
||||||
|
--baudrate 1000000 \
|
||||||
|
--ID 2
|
||||||
|
```
|
||||||
|
|
||||||
|
Redo the process for all your motors until the gripper with ID 6. Do the same for the motors of the leader arm, starting for ID 1 up to 6.
|
||||||
|
|
||||||
## Assemble the arms
|
## Assemble the arms
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
## Calibrate
|
## Calibrate
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python lerobot/scripts/control_robot.py calibrate \
|
||||||
|
--robot-path lerobot/configs/robot/so100.yaml \
|
||||||
|
--robot-overrides '~cameras'
|
||||||
|
```
|
||||||
|
|
||||||
## Teleoperate
|
## Teleoperate
|
||||||
|
|
||||||
|
Without displaying the cameras:
|
||||||
```bash
|
```bash
|
||||||
python lerobot/scripts/control_robot.py teleoperate \
|
python lerobot/scripts/control_robot.py teleoperate \
|
||||||
--robot-path lerobot/configs/robot/so100.yaml \
|
--robot-path lerobot/configs/robot/so100.yaml \
|
||||||
@@ -74,6 +94,7 @@ python lerobot/scripts/control_robot.py teleoperate \
|
|||||||
--display-cameras 0
|
--display-cameras 0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With displaying the cameras:
|
||||||
```bash
|
```bash
|
||||||
python lerobot/scripts/control_robot.py teleoperate \
|
python lerobot/scripts/control_robot.py teleoperate \
|
||||||
--robot-path lerobot/configs/robot/so100.yaml
|
--robot-path lerobot/configs/robot/so100.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user