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 withSafeDrive, the tool:
- Pre-movement check: Queries sensors for obstacles
- Real-time monitoring: Adjusts speed based on proximity
- Collision response: Reverses if bump sensor triggered
- Watchdog: Auto-stops after timeout
- E-stop: Immediate halt on hardware button press
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 aToolResult:
Common Errors
Usage Examples
Hide and Seek
Voice-Controlled Movement
Autonomous Patrol
Safety Monitor
TheSafetyMonitor 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