Skip to content

pollen-robotics/reachy_mini_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk pinned short_description tags
Reachy Mini Debug & CI Toolbox
🔧
red
blue
static
false
Debug and CI validation toolbox for Reachy Mini
reachy_mini
reachy_mini_python_app
debug
testing
ci

Reachy Mini Debug & CI Toolbox

A comprehensive web-based debugging and CI validation tool for Reachy Mini.

Features

Robot Status

  • Real-time head pose display (roll, pitch, yaw)
  • Detailed motor positions for all 9 motors
  • Connection status indicator

Movement Control

  • Head position control with sliders (roll, pitch, yaw)
  • Antenna position control
  • Quick actions: Go to Zero, Wake Up, Go to Sleep
  • Adjustable movement duration

Camera

  • Live camera stream (MJPEG)
  • Capture and save images
  • Download captured images
  • List and manage saved captures

Audio Recording

  • Record audio from the robot's microphone
  • List saved recordings with metadata
  • Play recordings through the robot's speaker
  • Download recordings as WAV files

Rotation Validation Test

Automated test for validating head rotation accuracy:

  1. Moves head to zero position and captures image
  2. Rolls head by specified angle
  3. Captures second image
  4. Computes rotation between images using ORB feature matching
  5. Compares expected vs actual rotation
  6. Returns PASS/FAIL with detailed metrics

Installation

pip install -e .

Usage

As a Reachy Mini App (daemon on)

The app registers as a Reachy Mini app and can be launched via the daemon:

reachy-mini app run reachy_mini_toolbox

Direct Launch

python -m reachy_mini_toolbox.main

Then open http://localhost:8042 in your browser.

API Endpoints

Status

  • GET /api/status - Get robot status and head pose
  • GET /api/motor_status - Get detailed motor positions

Movement

  • POST /api/move_head - Move head to specified orientation
  • POST /api/move_antennas - Move antennas to specified positions
  • POST /api/go_to_zero - Move to neutral position
  • POST /api/wake_up - Execute wake up behavior
  • POST /api/go_to_sleep - Execute sleep behavior

Camera

  • GET /api/camera/stream - MJPEG camera stream
  • GET /api/camera/capture - Capture single frame as base64
  • POST /api/camera/save - Save current frame to file
  • GET /api/camera/list - List saved captures
  • GET /api/camera/download/{filename} - Download capture
  • DELETE /api/camera/delete/{filename} - Delete capture

Audio

  • POST /api/audio/start_recording - Start recording
  • POST /api/audio/stop_recording - Stop and save recording
  • GET /api/audio/list - List recordings
  • GET /api/audio/download/{filename} - Download recording
  • POST /api/audio/play/{filename} - Play recording on robot
  • DELETE /api/audio/delete/{filename} - Delete recording

Validation Tests

  • POST /api/test/rotation_validation - Run rotation validation test
  • GET /api/test/last_rotation_result - Get last test result

File Storage

  • Recordings: /tmp/reachy_mini_toolbox/recordings/
  • Captures: /tmp/reachy_mini_toolbox/captures/

Dependencies

  • reachy-mini
  • opencv-python
  • soundfile
  • scipy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published