Full robot 2-bus
Two arms, head, wheel base, 17 motors.
/dev/xle_arms: left arm IDs 1–6, right arm 7–12/dev/xle_head: head 1–2, wheels 3–5
From a blank SD card to a moving robot: 13 steps, about 3–4 hours.
If you can copy a command into a terminal, you can finish this page.
Jetson already on JetPack 6.2.1 and reachable over SSH? Start at step 3.
Every motor needs its ID, and both bus adapters must be plugged into the Jetson over USB. The Build Guide covers this.
Two arms, head, wheel base, 17 motors.
/dev/xle_arms: left arm IDs 1–6, right arm 7–12/dev/xle_head: head 1–2, wheels 3–5One arm plus the head on a desk.
Steps 1–9 are the same for both. Steps 10–12 say which one they apply to.
From step 3 on, run every command on the Jetson, in the project folder, with the environment active. Start each new terminal with these two lines:
$ source ~/.venvs/xlerobot-pro/bin/activate
$ cd ~/xlerobot-pro
Your prompt shows (xlerobot-pro) when the environment is active.
Work top to bottom, and fix any step that fails before moving on.
Prepare the computer
The software needs Ubuntu 22.04 / Python 3.10, and JetPack 7 ships a newer Ubuntu.
$ sudo apt update && sudo apt install nvidia-l4t-jetson-orin-nano-qspi-updater
A half-written firmware bricks the module.
Download jp62-r1-orin-nano-sd-card-image.zip (Jetson Linux 36.4.4) from NVIDIA's JetPack 6.2.1 page and write it to the card with Balena Etcher. Etcher runs on macOS and Windows, so you don't need an Ubuntu computer or SDK Manager.
It is on the underside of the Orin module, contacts facing up. If the card springs back out, it is not seated.
$ cat /etc/nv_tegra_release
That command prints R36, revision 4.4 or later, and the machine is on your Wi-Fi network.
UEFI Interactive Shell v2.2 — Shell> means no bootable card was found. Reseat the card, or confirm the firmware is 36.x.Error: could not make network connection is not a network fault. It also means no bootable card was found, and it goes away once one is present.Work from your laptop so the Jetson's USB ports stay free for the robot. The bus adapters and camera need three of them (five with the optional wrist cameras).
$ sudo apt install -y openssh-server
$ hostname -I
# note the first address it prints
$ ssh <user>@<jetson-ip>
Once SSH works, unplug the monitor and keyboard. A cable to your desk would stop the robot short or get pulled out.
You are logged into the Jetson from your laptop, and the monitor and keyboard are unplugged.
Install the software
Inside conda, the Jetson's PyTorch fails to import or silently loses the GPU. If conda activates in your shell, run conda deactivate first.
$ sudo apt install -y git python3.10-venv python3.10-dev
$ /usr/bin/python3.10 -m venv ~/.venvs/xlerobot-pro
$ source ~/.venvs/xlerobot-pro/bin/activate
$ pip install --upgrade pip
$ git clone https://github.com/Minko82/xlerobot-pro.git ~/xlerobot-pro
$ cd ~/xlerobot-pro
(xlerobot-pro).python --version prints 3.10.x.~/xlerobot-pro exists and contains pyproject.toml.Do this before installing the project. The standard PyPI torch has no GPU support on the Jetson, so install NVIDIA's JetPack 6 build first.
$ pip install torch torchvision \
--index-url https://pypi.jetson-ai-lab.io/jp6/cu126
$ python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
# want: 2.10.0 True · bad: anything ending in +cpu, or False
--index-url exactly as written.
If pip can reach PyPI during the install, it picks the CPU-only build. The old .dev address of the index no longer works.
The check prints a version with no +cpu suffix, followed by True.
False with a clean version number Torch is probably installed inside conda. Deactivate conda and rebuild the venv from step 3.+cpu in the version Pip reached PyPI. Uninstall torch and reinstall with --index-url only.Two installs: first the robot software, then the camera and arm-planning (vision and IK) software.
$ cd ~/xlerobot-pro
$ pip install -e ".[all]"
# equivalent to: make install
$ grep -v '^open3d' requirements/requirements-vision.txt > /tmp/req-vision.txt
$ pip install -r /tmp/req-vision.txt --no-cache-dir
Part 2 leaves out open3d on purpose: it has no Jetson build, and nothing on this page needs it. On a laptop, install the full file with pip install -r requirements/requirements-vision.txt.
On a 64 GB card, run pip cache purge afterwards. Never clear ~/.cache/huggingface/lerobot/ wholesale: it holds your calibrations.
Both installs finish without errors and python -c "import lerobot, xlerobot_pro" prints nothing at all. Silence is success.
Check the software before you involve any hardware. These tests need no motors or camera.
$ make smoke
$ python tests/vision_offline_suite.py
make smoke reports 7 passed.vision_offline_suite.py reports 49/49 passed, 0 failed.If anything failed, stop here and fix it.
requirements-vision.txt and re-run; you want all seven.ModuleNotFoundError: lerobot The venv is not active, or step 5 did not finish. Re-run source ~/.venvs/xlerobot-pro/bin/activate, then pip install -e ".[all]".pin, pink, or quadprog The vision install is incomplete. Confirm python3.10-dev is installed and re-run part 2 of step 5.Connect the robot
Plug both bus adapters directly into the Jetson, not through a hub, and power the motors.
$ sudo usermod -aG dialout $USER
# log out and back in: the group does not apply to your current shell
Linux names the two adapters /dev/ttyACM0 and /dev/ttyACM1 in an order that can change after a reboot or replug. A script gives them permanent names, /dev/xle_arms and /dev/xle_head, which every program in this project uses. If you have a 99-xlerobot.rules file from an older build, delete it first.
# see what it found first
$ python diagnostics/detect_buses.py
# happy with the result? write the rules (asks for sudo)
$ python diagnostics/detect_buses.py --write
$ sudo udevadm control --reload-rules && sudo udevadm trigger
# now unplug and replug BOTH adapters
$ ls -l /dev/xle_arms /dev/xle_head
ls -l /dev/xle_arms /dev/xle_head lists both symlinks, each pointing at a ttyACM device.
/dev/ttyACM* devices at all This is a USB problem, not a motor problem. Try a new cable first, then a different port, and only then suspect the adapter. Never put a bus adapter behind a hub.detect_buses.py finds no motors The adapters have logic power but the motors do not. See step 8.Before anything moves, check that all 17 motors answer.
$ python diagnostics/check_bus.py --motors arm
# right arm, IDs 7-12, on /dev/xle_arms
$ python diagnostics/check_bus.py --motors head
# head, IDs 1-2, on /dev/xle_head
Then scan each bus to list every motor on it. Run it once for /dev/xle_arms and once for /dev/xle_head:
$ python -c "from lerobot.motors.feetech import FeetechMotorsBus; \
print(FeetechMotorsBus.scan_port('/dev/xle_arms'))"
/dev/xle_arms lists IDs 1–12 with no gaps./dev/xle_head lists IDs 1–5 with no gaps.check_bus.py runs print positions rather than errors.1024 + Torque_Limit with current 0 The bus has logic power but no motor power. Check Present_Voltage: ~120–135 means 12 V (good), ~50 means the bus is on a 5 V rail. A 5 V USB bank will not drive these motors.Both arms go limp and will fall from a raised pose. Support them by hand before you start, and clear everything from underneath them.
$ python scripts/calibrate_xlerobot.py
The script asks for four things, in this order:
The result is saved to ~/.cache/huggingface/lerobot/calibration/robots/xlerobot_new_wiring/xlerobot.json.
Calibration can finish without errors and still be wrong. Open the file and check two things:
A known-good run, for comparison:
| Joint pair | Left span | Right span | Ratio |
|---|---|---|---|
shoulder_pan | 2715 | 2732 | 0.99 |
shoulder_lift | 2418 | 2433 | 0.99 |
elbow_flex | 2217 | 2197 | 0.99 |
wrist_flex | 2358 | 2335 | 0.99 |
gripper | 1526 | 1448 | 0.95 |
diagnostics/README.md.Make it move
Move the wheels first. It is the safest test: the arms are never commanded, so nothing can drop on your hand.
The default run drives forward a few centimetres. Keep a hand near the power switch.
# slow walk of a few centimetres: start here
$ python diagnostics/base_drive_check.py --vx 0.05 --seconds 2
# rotate in place instead
$ python diagnostics/base_drive_check.py --omega 15 --seconds 2
The script refuses anything over 0.15 m/s, over 45 deg/s of turning, or longer than 10 s. It prints FATAL and exits without moving.
Clear the area, keep your hands away from the arms, and keep a hand near the power switch. Even with the torque limits, an arm can hit hard enough to hurt.
This drives both arms, the head, and the base together. Use the _new_wiring script: the plain 5_xlerobot_teleop_xbox.py is for an older wiring and will not connect.
# confirm the controller is seen first
$ python examples/pygame_test.py
$ python examples/5_xlerobot_teleop_xbox_new_wiring.py
Check each motor with joint control first, then try end-effector control. Use the copies in examples/xlerobot_examples/: the files with the same names directly in examples/ use an older wiring and will not connect.
# joint-by-joint, no IK
$ python examples/xlerobot_examples/0_so100_keyboard_joint_control.py
# end-effector control
$ python examples/xlerobot_examples/1_so100_keyboard_ee_control.py
# both ask for a port. Full robot: /dev/xle_arms
# Benchtop rig: /dev/ttyACM0 (or press Enter for that default)
# then answer "n" to "recalibrate?": you already did that in step 9
On the full robot, that is the left arm. For both arms, use the Xbox teleop above. The First Reach Tutorial walks through the end-effector script.
$ v4l2-ctl --list-devices
$ python examples/9_dual_wrist_camera.py
# RealSense head camera
$ rs-enumerate-devices
disable_torque on a loaded arm; step Torque_Limit down over several seconds instead.rs-enumerate-devices.The camera finds a coloured cube, and the arm reaches for it, grasps it, lifts it, and lets go.
On the full robot it reads the left arm's shoulder as the head and aims at the wrong place. Run it on a single-bus rig, or set XLEROBOT_BUS_PORT to a bus that matches its motor map.
$ cd ~/xlerobot-pro
# on a single-bus rig, point it at that adapter
$ export XLEROBOT_BUS_PORT=/dev/ttyACM0
$ python examples/vision/grab_cube.py
What you should see:
ID 1 should tilt the head up and down, and ID 2 should pan it left and right. If they are swapped, the arm goes to the wrong place.
These move the arm without a camera. They use /dev/ttyACM0 and the default SO-101 IDs 1–6; edit the port at the top of the file to match your rig.
$ python examples/vision/scripted/so101_simple.py
$ python examples/vision/scripted/so101_reach_forward.py
# also: so101_pen_pickup, so101_pen_drop, so101_grab_cube,
# so101_grab_apple, so101_hang
The arm reaches the cube, closes the gripper on it, lifts it, and releases.
If the gripper misses by more than a couple of centimeters, check the assembly first. Then:
diagnostics/visualize_color_detect.py draws the detection on the last capture.diagnostics/check_vision_live.py compares the camera detection with the arm's coordinates, live.diagnostics/diagnose_fk_vs_vision.py: place the gripper on the target by hand, then compare.Maximum torque, acceleration, and speed are all set in src/xlerobot_pro/firmware_limits.py, and applied automatically when the robot connects.
| Bus | Torque limit | Acceleration | Power |
|---|---|---|---|
| Bus 1: arms | 450 | 40 | 12 V car outlet |
| Bus 2: head and wheels | 650 | 20 | USB-C outlet |
To change a limit, edit that file, never the demo scripts. Then check what the motors stored:
$ python diagnostics/verify_motor_limits.py
| Goal | Command |
|---|---|
| Confirm GPU PyTorch is live | python -c "import torch; print(torch.cuda.is_available())" prints True |
| Highest power mode (MAXN SUPER) | sudo nvpmodel -m 2 |
| Pin the GPU clocks | sudo jetson_clocks |
Fix open3d OpenMP errors | export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1 |
MAXN SUPER runs fine on the robot's battery. On the Orin Nano Super, mode 0 is 15 W and mode 1 (25 W) is the default.
examples/teleop_hand_and_arm.py --arm SO101. It builds on Unitree's TeleVuer and teleimager packages, and the headset is not in the parts list.lerobot-record while you teleoperate.lerobot-train on the Jetson, then run it with examples/policies/act_policy_control.py. The README lists the settings.