Skip to main content

Robot Kit API

Complete API reference for the six core robot tools.

Tool Overview

drive

Omni-directional motor control with safety integration.

Parameters

Examples

Response

Backends

The drive tool supports multiple motor control backends:

Safety Integration

When wrapped with SafeDrive, the tool:
  1. Pre-movement check: Queries sensors for obstacles
  2. Real-time monitoring: Adjusts speed based on proximity
  3. Collision response: Reverses if bump sensor triggered
  4. Watchdog: Auto-stops after timeout
  5. E-stop: Immediate halt on hardware button press
Always use SafeDrive wrapper in production. Direct DriveTool bypasses safety checks.

look

Capture images and generate AI descriptions using vision models.

Parameters

Examples

Response

Vision Models

Supported models (via Ollama): Configure in robot.toml:

listen

Transcribe speech to text using Whisper.cpp.

Parameters

Examples

Response

Whisper Models

Recommendation: base for Pi 4/5 Configure in robot.toml:

speak

Text-to-speech using Piper TTS.

Parameters

Examples

Response

Piper Voices

Available voices: Download from Piper Voices

sense

Query sensors: LIDAR, motion (PIR), ultrasonic distance.

Parameters

Examples

Response

Sensor Types

Configure in robot.toml:

emote

Display LED expressions and play sound effects.

Parameters

Examples

Response

LED Patterns

8x8 LED matrix patterns (WS2812B):

Error Handling

All tools return a ToolResult:

Common Errors

Usage Examples

Hide and Seek

Voice-Controlled Movement

Autonomous Patrol

Safety Monitor

The SafetyMonitor runs as an independent task:

Safety Events

Troubleshooting

Drive not working

Camera not found

Ollama vision fails

Safety prevents movement

Next Steps

Setup Guide

Complete hardware and software setup

Overview

Architecture and features

Examples

Full example programs

Source Code

View robot kit source