You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/11_use_lekiwi.md
+124-2
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@ Follow this [README](https://github.com/SIGRobotics-UIUC/LeKiwi). It contains th
23
23
24
24
Before assembling, you will first need to configure your motors. To this end, we provide a nice script, so let's first install LeRobot. After configuration, we will also guide you through assembly.
25
25
26
+
### Wired version
27
+
If you have the **wired** LeKiwi version you can skip the installation of the Raspberry Pi and setting up SSH. You can also run all commands directly on your PC for both the LeKiwi scripts and the leader arm scripts for teleoperating.
28
+
26
29
## B. Install software on Pi
27
30
Now we have to setup the remote PC that will run on the LeKiwi Robot. This is normally a Raspberry Pi, but can be any PC that can run on 5V and has enough usb ports (2 or more) for the cameras and motor control board.
28
31
@@ -246,6 +249,110 @@ class LeKiwiRobotConfig(RobotConfig):
246
249
}
247
250
)
248
251
252
+
teleop_keys: dict[str, str] = field(
253
+
default_factory=lambda: {
254
+
# Movement
255
+
"forward": "w",
256
+
"backward": "s",
257
+
"left": "a",
258
+
"right": "d",
259
+
"rotate_left": "z",
260
+
"rotate_right": "x",
261
+
# Speed control
262
+
"speed_up": "r",
263
+
"speed_down": "f",
264
+
# quit teleop
265
+
"quit": "q",
266
+
}
267
+
)
268
+
269
+
mock: bool=False
270
+
```
271
+
272
+
## Wired version
273
+
274
+
For the wired LeKiwi version your configured IP address should refer to your own laptop (127.0.0.1), because leader arm and LeKiwi are in this case connected to own laptop. Below and example configuration for this wired setup:
275
+
```python
276
+
@RobotConfig.register_subclass("lekiwi")
277
+
@dataclass
278
+
classLeKiwiRobotConfig(RobotConfig):
279
+
# `max_relative_target` limits the magnitude of the relative positional target vector for safety purposes.
280
+
# Set this to a positive scalar to have the same value for all motors, or a list that is the same length as
If you have the **wired** LeKiwi version please run all commands including this calibration command on your laptop.
384
+
275
385
### Calibrate leader arm
276
386
Then to calibrate the leader arm (which is attached to the laptop/pc). You will need to move the leader arm to these positions sequentially:
277
387
@@ -326,6 +436,9 @@ You should see on your laptop something like this: ```[INFO] Connected to remote
326
436
> [!TIP]
327
437
> If you use a different keyboard you can change the keys for each command in the [`LeKiwiRobotConfig`](../lerobot/common/robot_devices/robots/configs.py).
328
438
439
+
### Wired version
440
+
If you have the **wired** LeKiwi version please run all commands including both these teleoperation commands on your laptop.
441
+
329
442
## Troubleshoot communication
330
443
331
444
If you are having trouble connecting to the Mobile SO100, follow these steps to diagnose and resolve the issue.
@@ -364,6 +477,13 @@ Make sure the configuration file on both your laptop/pc and the Raspberry Pi is
364
477
# G. Record a dataset
365
478
Once you're familiar with teleoperation, you can record your first dataset with LeKiwi.
366
479
480
+
To start the program on LeKiwi, SSH into your Raspberry Pi, and run `conda activate lerobot` and this script:
481
+
```bash
482
+
python lerobot/scripts/control_robot.py \
483
+
--robot.type=lekiwi \
484
+
--control.type=remote_robot
485
+
```
486
+
367
487
If you want to use the Hugging Face hub features for uploading your dataset and you haven't previously done it, make sure you've logged in using a write-access token, which can be generated from the [Hugging Face settings](https://huggingface.co/settings/tokens):
Note: You can resume recording by adding `--control.resume=true`.
395
514
515
+
### Wired version
516
+
If you have the **wired** LeKiwi version please run all commands including both these record dataset commands on your laptop.
517
+
396
518
# H. Visualize a dataset
397
519
398
520
If you uploaded your dataset to the hub with `--control.push_to_hub=true`, you can [visualize your dataset online](https://huggingface.co/spaces/lerobot/visualize_dataset) by copy pasting your repo id given by:
0 commit comments