#!/bin/bash # Launch Reachy Baby Yoda on the Pi. # Usage: ./start.sh [--debug] [--sim] set -e SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" cd "$SCRIPT_DIR" # Activate virtual environment if it exists if [ -d "venv" ]; then source venv/bin/activate elif [ -d ".venv" ]; then source .venv/bin/activate fi # Generate placeholder sounds if missing if [ ! -f "reachy_baby_yoda/sounds/coo_happy_1.wav" ]; then echo "Generating placeholder sounds..." python -m reachy_baby_yoda.sounds.generate_sounds fi # Run the app exec python -m reachy_baby_yoda "$@"