In the steps below, we explain how to assemble the LeKiwi mobile robot.
Follow this README. It contains the bill of materials, with a link to source the parts, as well as the instructions to 3D print the parts. And advise if it’s your first time printing or if you don’t own a 3D printer.
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.
Now we have to set up 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.
For setting up the Raspberry Pi and its SD-card see: Setup PI. Here is explained how to download the Imager to install Raspberry Pi OS or Ubuntu.
After setting up your Pi, you should enable and set up SSH (Secure Shell Protocol) so you can log in to the Pi from your laptop without requiring a screen, keyboard, and mouse on the Pi. A great tutorial on how to do this can be found here. Logging into your Pi can be done in your Command Prompt (cmd) or, if you use VSCode you can use this extension.
On your Raspberry Pi install LeRobot using our Installation Guide
In addition to these instructions, you need to install the Feetech sdk on your Pi:
pip install -e ".[feetech]"If you already have installed LeRobot on your laptop/pc you can skip this step; otherwise, please follow along as we do the same steps we did on the Pi.
Follow our Installation Guide
Great :hugs:! You are now done installing LeRobot, and we can begin assembling the SO100/SO101 arms and the mobile base :robot:.
Every time you now want to use LeRobot, you can go to the ~/lerobot folder where we installed LeRobot and run one of the commands.
First, we will assemble the two SO100/SO101 arms. One to attach to the mobile base and one for teleoperation. Then we will assemble the mobile base. The instructions for assembling can be found on these two pages:
The instructions for configuring the motors can be found in the SO101 docs. Besides the ids for the arm motors, we also need to set the motor ids for the mobile base. These need to be in a specific order to work. Below an image of the motor ids and motor mounting positions for the mobile base. Note that we only use one Motor Control board on LeKiwi. This means the motor ids for the wheels are 7, 8 and 9.
If you are having trouble connecting to the Mobile SO100, follow these steps to diagnose and resolve the issue.
Make sure that the correct IP for the Pi is used in the commands or in your code. To check the Raspberry Pi’s IP address, run (on the Pi command line):
hostname -I
Try pinging the Raspberry Pi from your laptop:
ping <your_pi_ip_address>If the ping fails:
If you can’t SSH into the Pi, it might not be properly connected. Use:
ssh <your_pi_user_name>@<your_pi_ip_address>
If you get a connection error:
sudo raspi-config
Now we have to calibrate the leader arm and the follower arm. The wheel motors don’t have to be calibrated. The calibration process is very important because it allows a neural network trained on one robot to work on another.
Make sure the arm is connected to the Raspberry Pi and run this script or API example (on the Raspberry Pi via SSH) to launch calibration of the follower arm:
python -m lerobot.calibrate \
--robot.type=lekiwi \
--robot.port=/dev/ttyACM0 \ # <- The port of your robot
--robot.id=my_awesome_kiwi # <- Give the robot a unique nameWe unified the calibration method for most robots, thus, the calibration steps for this SO100 arm are the same as the steps for the Koch and SO101. First, we have to move the robot to the position where each joint is in the middle of its range, then we press Enter. Secondly, we move all joints through their full range of motion. A video of this same process for the SO101 as reference can be found here.
If you have the wired LeKiwi version, please run all commands on your laptop.
Then, to calibrate the leader arm (which is attached to the laptop/pc). Run the following command of API example on your laptop:
python -m lerobot.calibrate \
--teleop.type=so100_leader \
--teleop.port=/dev/tty.usbmodem58760431551 \ # <- The port of your robot
--teleop.id=my_awesome_leader_arm # <- Give the robot a unique nameIf you’re using a Mac, you might need to give Terminal permission to access your keyboard for teleoperation. Go to System Preferences > Security & Privacy > Input Monitoring and check the box for Terminal.
To teleoperate, SSH into your Raspberry Pi, and run conda activate lerobot and this command:
python -m lerobot.common.robots.lekiwi.lekiwi_host
Then on your laptop, also run conda activate lerobot and this command or API example:
python -m lerobot.teleoperate \
--robot.type=lekiwi \
--robot.port=/dev/tty.usbmodem58760431541 \
--robot.cameras="{}" \
--robot.id=my_lekiwi \
--teleop.type=so101_leader \
--teleop.port=/dev/tty.usbmodem58760431551 \
--teleop.id=my_blue_leader_armNOTE: To visualize the data, enable
--control.display_data=true. This streams the data usingrerun. For the--control.type=remote_robotyou will also need to set--control.viewer_ipand--control.viewer_port
You should see on your laptop something like this: [INFO] Connected to remote robot at tcp://172.17.133.91:5555 and video stream at tcp://172.17.133.91:5556. Now you can move the leader arm and use the keyboard (w,a,s,d) to drive forward, left, backwards, right. And use (z,x) to turn left or turn right. You can use (r,f) to increase and decrease the speed of the mobile robot. There are three speed modes, see the table below:
| Speed Mode | Linear Speed (m/s) | Rotation Speed (deg/s) |
|---|---|---|
| Fast | 0.4 | 90 |
| Medium | 0.25 | 60 |
| Slow | 0.1 | 30 |
| Key | Action |
|---|---|
| W | Move forward |
| A | Move left |
| S | Move backward |
| D | Move right |
| Z | Turn left |
| X | Turn right |
| R | Increase speed |
| F | Decrease speed |
If you use a different keyboard, you can change the keys for each command in the LeKiwiConfig.
If you have the wired LeKiwi version, please run all commands on your laptop.
Congrats 🎉, your robot is all set to learn a task on its own. Start training it by following this tutorial (you can skip the teleoperation part): Getting started with real-world robots
If you have any questions or need help, please reach out on Discord.