1. Home
  2. Explore
  3. Engineering
  4. LeKiwi Mobile Robot Guide

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

LeKiwi Mobile Robot Guide

LeKiwi Mobile Robot: Comprehensive Study Notes

Robot Overview and Components

The LeKiwi is a mobile robot developed by SIG Robotics and the University of Illinois at Urbana-Champaign in collaboration with the LeRobot team. It consists of two main parts that can be distinguished by color in the standard configuration.

The Arm Assembly

The top portion of LeKiwi is the SO-ARM 100 or 101, a robotic arm with its own video guide. All principles and techniques applicable to the standalone SO-ARM also apply to the LeKiwi, making it useful to study the arm documentation first.

The Mobile Base

The mobile base is the key distinguishing feature — it allows movement in any direction and rotation in any direction. This transforms the arm from a static tool into a mobile manipulation platform capable of performing tasks across a spatial workspace.

Base components include:

  • Three omni wheels with independent motors

  • Three motors — the same servo motors used in the arm itself, simplifying control

  • Raspberry Pi (in the standard configuration) — the single-board computer that controls everything

  • Battery for untethered operation

The base adds approximately 300 to the cost of the arm. The wheels and motors are relatively expensive, though community options for cheaper or 3D-printable wheels are emerging.

Key takeaway: Unlike the original arm, LeKiwi has high component variability — users can be creative with different cameras, batteries, single-board computers, and mounting solutions.


3D Printing and Assembly

The mobile base is mostly 3D printed and uses the same motors as the arm. Printing all parts takes roughly a couple of days, though actual time depends on printer speed and part distribution strategy.

Part Customization

Some parts require adjustment for non-standard setups. Users with custom cameras or batteries need to print custom mounts. The bill of materials (BOM) on the repository lists several component variations — different wheels, batteries, and single-board computers are all possible.

Assembly Process

Assembly instructions are available in the original repository and take a couple of hours. Critical points to note:

  • Small parts required: Unlike the SO-ARM, LeKiwi needs extra screws and nuts that do not come with the motors

  • Initial testing: Even if planning to run on battery, first test the robot using a cable connection to a power supply and computer — this simplifies debugging


Teleoperation

Teleoperation refers to manual control of the robot. The default method uses the keyboard to control the mobile base and a leader arm (a separate arm physically manipulated by the user) to control the robot's arm.

Keyboard and Leader Arm Control

  • Keyboard controls mobile base movement in any direction and rotation

  • Leader arm controls the follower arm on the robot — every movement of the leader is mirrored by the robot's arm

  • This includes gripper control and joint-by-joint manipulation

  • This system is identical to controlling a standalone SO-ARM

Alternative Teleoperation Methods

The LeRobot library has been updated to allow easy integration of any teleoperation device. Community efforts have produced several alternatives:

  • Gamepads and controllers — very common integration

  • Android application — developed during a LeRobot hackathon, this app provides:

    • Remote robot control via on-screen joysticks

    • Real-time video stream from robot cameras

    • Control of both arm and mobile base

The leader arm remains the most convenient method for arm control, but better options exist for mobile base control than the keyboard. The Android app code is open source.

Camera-Only Teleoperation

Using Rerun, the robot streams camera feeds during teleoperation. Controlling the robot using only this camera view (without watching the physical robot) is a useful exercise:

  • It forces exploration of camera positioning (e.g., finding the best wrist camera angle)

  • It provides a realistic benchmark — if the human cannot control the robot using cameras alone, the trained policy will struggle even more

  • The policy will learn autonomously how to position cameras for optimal environmental views

Key insight: Camera-only teleoperation is not strictly necessary for data collection, but it is a strong heuristic for policy success. The policy will learn what the human explores.


Mobile Base Capabilities and Omni Wheel Kinematics

Movement Capabilities

The mobile base offers holonomic (omnidirectional) movement:

  • Forward and backward movement — like any remote control car

  • Rotation in place

  • Sideways movement — left and right, which standard wheeled robots cannot do

  • Combined movement — any direction and rotation simultaneously:

    • Moving forward and right simultaneously produces diagonal movement

    • Combining rotation with sideways movement produces rotation around a point in front of or behind the robot

These capabilities give LeKiwi very high maneuverability in constrained environments.

How Omni Wheels Work

An omni wheel is a standard wheel with rollers mounted around its circumference. These rollers spin freely with minimal friction perpendicular to the wheel's main direction.

Each wheel can produce velocity with two components:

  1. Main wheel direction — generated by the motor attached to the wheel (orange vector)

  2. Roller sliding direction — orthogonal to the main direction, obtained "for free" from the rollers (green vector)

These two components sum to produce the total velocity of the wheel center. By combining rotation speed across all three wheels, the robot can move in any direction with any rotation.

Forward and Inverse Kinematics Derivation

The kinematics relate robot velocities (linear vxv_xvx​, vyv_yvy​ and angular ω\omegaω) to wheel rotation speeds (ω7\omega_7ω7​, ω8\omega_8ω8​, ω9\omega_9ω9​ for the three wheels).

Coordinate System

  • x-axis: forward direction

  • y-axis: orthogonal to x, positive to the left

  • Positive rotation: counterclockwise

  • Wheel position angle (α\alphaα): angle between the x-axis and the line from robot center to the wheel mounting point

Deriving Wheel Velocity from Robot Motion

For a wheel at angle α\alphaα:

  1. Pure forward motion (velocity vxv_xvx​): $$ v_w = v_x \cdot \sin(\alpha) $$

  2. Pure sideways motion (velocity vyv_yvy​): $$ v_w = v_y \cdot \cos(\alpha) $$

  3. Pure rotation (angular velocity ω\omegaω, robot radius RRR): $$ v_w = \omega \cdot R $$ In this case, the entire wheel velocity comes from the main wheel rotation — the roller component is zero because the velocity is tangential to the robot circle.

  4. General motion (all components simultaneously):

    • Sum all three components

    • The total required wheel velocity is the sum of the three formulas above

Converting to Motor Angular Velocities

To convert wheel center linear velocity to motor angular velocity, divide by the wheel radius rwr_wrw​:

ωwheel=vwrw\omega_{wheel} = \frac{v_w}{r_w}ωwheel​=rw​vw​​

Matrix Form — Inverse Kinematics

The inverse kinematics (mapping robot velocities to wheel speeds) can be written in matrix form. Using motor numbers 7, 8, and 9 (the first six are reserved for arm motors):

[ω7ω8ω9]=A[vxvyω]\begin{bmatrix} \omega_7 \\ \omega_8 \\ \omega_9 \end{bmatrix} = A \begin{bmatrix} v_x \\ v_y \\ \omega \end{bmatrix}​ω7​ω8​ω9​​​=A​vx​vy​ω​​

Where AAA is a 3×33 \times 33×3 matrix containing the sin⁡\sinsin and cos⁡\coscos terms from the derivation above.

Forward Kinematics

To recover robot velocities from wheel speeds (forward kinematics), invert matrix AAA:

[vxvyω]=A−1[ω7ω8ω9]\begin{bmatrix} v_x \\ v_y \\ \omega \end{bmatrix} = A^{-1} \begin{bmatrix} \omega_7 \\ \omega_8 \\ \omega_9 \end{bmatrix}​vx​vy​ω​​=A−1​ω7​ω8​ω9​​​

The inversion can be done analytically (deriving explicit formulas) or numerically (using NumPy in the LeRobot library).

Specific Solution for LeKiwi

After substituting the actual α\alphaα values for the three wheels, the numerical matrix reveals important patterns:

  • Symmetry in front wheels: Two front wheels have opposite signs for forward motion (they must turn in opposite directions to both push the robot forward), with identical absolute values

  • Zero for rear wheel in x-direction: The back wheel is orthogonal to the x-axis — it never needs to rotate to move forward or backward because all x-direction velocity comes from roller sliding

  • Symmetric rotation column/row: All three wheels contribute equally to rotation because the robot is symmetric about its center

Key takeaway: These sanity checks confirm the derivation is correct. The same logic can be applied to any wheel configuration — useful for custom robot designs with unconventional wheel placement.


Dataset Collection and Policy Training

Recording a Dataset

A dataset is a recording of teleoperation while completing a task. For a demonstration task — grabbing a Boba tea toy — approximately 60 episodes were collected across different locations, lighting conditions, and backgrounds.

Key dataset considerations:

  • Camera setup: Two cameras were used (no top-view camera in this example)

  • Remote operation: The operator sat in a different room, relying only on camera feeds

  • Control method: Keyboard for mobile base, leader arm for the arm

  • Data quantity: For arm-only tasks, 30–50 episodes often suffice. For mobile robots targeting robust generalization to new environments, more data is needed — 60 episodes was barely adequate

Training the Policy

A policy is a machine learning model that controls the robot autonomously. It receives camera signals and predicts the next action. The LeRobot library provides many pre-implemented policies.

DOT Policy

The DOT policy (developed by the video creator) is a small, simple policy with 14 million parameters. It was designed for arm-only tasks but was adapted for LeKiwi. Key concerns during adaptation:

  • Position vs. velocity prediction: The original policy predicts motor positions, but LeKiwi requires velocity predictions and different logic for aggregating predictions

  • Success was achieved despite these differences — DOT policy works with LeKiwi

Policy Rollout Results

Testing with 60 training episodes and default parameters:

  • Success rate in training locations: approximately 50%

  • Success rate in new locations: approximately 20–30% — lower generalization due to unfamiliar backgrounds

  • The robot can approach targets and adjust position sideways (not just forward/backward)

  • Limited rotation was observed, likely because the training dataset contained insufficient rotation examples

Key insight: A 50% success rate with only 60 episodes is promising. More diverse data and parameter tuning would likely yield significant improvement.


Performance Testing Across Hardware

Three different devices were tested for running policies:

  • Raspberry Pi — the onboard computer

  • MacBook (M1 processor) — no dedicated GPU, three generations old

  • Desktop computer (RTX 2080 Ti) — approximately 7–8 years old

Tested Policies

Policy

Parameters

Notes

DOT

14 million

Simple, lightweight

ACT

52 million

Medium complexity

Diffusion

200+ million

Large, computationally intensive

All policies used the same inputs: two 640×360 images, predicting 30 steps forward (approximately 1 second at 30 FPS). The exception was Diffusion, which predicted 32 steps due to parameter constraints.

Results: Predictions Per Second (n_action_steps = 1)

Device

DOT

ACT

Diffusion

Raspberry Pi

~1

<1

~0

Mac M1

~20

~15

Slow

2080 Ti

~30

~30

~1

  • Raspberry Pi is very slow for all policies

  • Mac M1 is good enough for real-time control with DOT and ACT

  • 2080 Ti achieves near real-time performance for DOT and ACT

  • Diffusion policy is too slow on all tested hardware with frame-by-frame prediction

Optimization: Action Chunking

Setting n_action_steps = 10 (predict multiple actions at once, then step through them) improves performance:

Device

DOT

ACT

Diffusion

Raspberry Pi

Improved, still slow

Improved, still slow

Still slow

Mac M1

Good

Very fast, usable

Not usable

2080 Ti

Real-time

Real-time

Still slow, shaky

DOT benefits less from this optimization because it uses multiple past observations, limiting speed gains. On Raspberry Pi, DOT and ACT perform similarly.

Practical Recommendations

  • Running directly on Raspberry Pi is too slow for real-time control

  • Jetson series (Nvidia) would likely perform much better but was not tested

  • Running over Wi-Fi to a MacBook or desktop works well — network latency is negligible

  • No powerful hardware on the robot itself is required for home experiments

Key takeaway: Diffusion policy needs a powerful GPU and likely parameter optimization. DOT and ACT are practical on modest hardware, especially with action chunking.


Custom Modifications and Experiments

The most valuable learning in robotics comes after completing the official guide — when users modify hardware, invent new devices, or write custom code. All modification STL files are shared in a GitHub repository.

Gripper Modifications

A custom symmetric gripper was used, different from the original SO-ARM gripper. It is transparent from the side, which is convenient for some tasks but has its own limitations.

Camera Mounts

Extensive experimentation with camera mounting:

  • Height and angle variations — multiple printed versions

  • Lens types — wide-angle vs. narrow-angle depending on task

  • Rotating front camera — originally fixed to the bottom platform, the modified version rotates with the arm, always pointing in the direction of the gripper

    • More informative, especially for picking objects from the floor

    • Limitation: cannot rotate far left or right, but the mobile base compensates by rotating

Extra Level for Top Camera

A top-view camera was added to the robot, mounted on an additional layer. Benefits:

  • Not position-limited — unlike a stationary overhead stand, the camera moves with the robot

  • Consistent camera perspective regardless of robot location

The current version is thin and shaky — needs a thicker reprint for stability.

Mecanum Wheel Experiment

Mecanum wheels also allow omnidirectional movement, but with 45° rollers (not 90°). They are typically used in a four-wheel configuration (two pairs with mirrored rollers).

The experiment attempted a three-wheel mecanum setup on LeKiwi:

  • Results were not smooth — kinematic derivations assume no slippage, which becomes problematic in non-standard configurations

  • Movement was not clean in all directions

Key takeaway: Three-wheel mecanum is not recommended for practical use, but makes an excellent learning exercise — users can derive the kinematics, implement them, and observe the real-world discrepancies caused by friction and slippage.

LLM-Based Control (MCP Server / AI Agent)

An MCP server and AI agent was developed to control the robot using large language models (LLMs). Claude performed best in experiments.

How It Works

  • Command-line interface allows chatting with the robot

  • The LLM can:

    • Request extra instructions

    • Request robot position and camera images

    • Analyze images to decide on actions

    • Send commands to the robot

Key Features

  • Zero-shot control — no task-specific training required

  • Transparent reasoning — the LLM shows its thinking process in the chat

  • Works directly on the Raspberry Pi (no heavy computation needed)

Demonstration

In a demonstration, the LLM successfully commanded the robot to grab a toy and lift it — using only camera images and natural language communication. The system currently controls the arm only; mobile base control was planned as a future update.

Key insight: This represents the opposite end of the control spectrum from trained policies — pure LLM reasoning without any task-specific data collection or training. Future work may explore combinations of these approaches.


Summary of Key Principles

Hardware flexibility: LeKiwi supports extensive customization — different cameras, grippers, batteries, single-board computers, and wheel types. Users should embrace modification as a learning opportunity.

Kinematics foundations: Understanding omni wheel kinematics — particularly the relationship between wheel angles, robot velocity components, and motor speeds — enables users to design custom wheel configurations.

Data diversity is critical: Mobile robot policies require more training data than arm-only tasks, especially for generalization to new environments. Sixty episodes is a minimum for simple tasks.

Hardware-performance tradeoff: Lightweight policies (DOT, ACT) run well on modest hardware with action chunking. Heavy policies (Diffusion) require GPUs. Over-Wi-Fi control to a separate computer is practical.

Multiple control paradigms: LeKiwi supports leader-arm teleoperation, gamepads, mobile apps, trained policies, and LLM-based control — each with distinct advantages for different use cases.

The learning is in the modification: The most valuable understanding comes from going beyond official instructions — changing hardware, writing custom code, and experimenting with unconventional configurations.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent