autonomous-os/autonomous-os-hello-robot
0
Hello World Plugin
A minimal Autonomous OS plugin that pulses LEDs and speaks a greeting.
Quick Start
- Fork this repo
- Edit
main.pyto do something cool - Push to HuggingFace / GitHub / GitLab
- Install on your device: Settings > Plugins > paste URL > Install
Plugin Format
your-plugin/
plugin.json # name, version, description, entry point
main.py # your Python code
requirements.txt # pip dependencies
README.md # description + demo videoHAL API
Plugins control hardware via HAL's HTTP API (injected as HAL_URL env var, default http://localhost:5001):
import os, requests
HAL = os.environ.get("HAL_URL", "http://localhost:5001")
# LED
requests.post(f"{HAL}/led/effect", json={"effect": "rainbow"})
requests.post(f"{HAL}/led/effect", json={"effect": "pulse", "color": "blue"})
requests.post(f"{HAL}/led/off")
# Voice
requests.post(f"{HAL}/voice/speak", json={"text": "Hello!"})
# Servo (devices with motion capability)
requests.post(f"{HAL}/servo/move", json={"pan": 45, "tilt": 10})
# Camera (devices with vision capability)
resp = requests.get(f"{HAL}/camera/snapshot")Tips
- Keep
requirements.txtminimal — installs run on constrained devices - Use
HAL_URLenv var, don't hardcodelocalhost:5001 - Add a demo video/GIF to your README for discoverability
- Tag your HuggingFace Space with
autonomous-os-pluginfor discovery
