Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

73 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PetHero 🐾

Autonomous cat-care robot β€” Hugging Face Desk Hero Hackathon, Berlin 2026

Camera sees cat β†’ AI classifies food β†’ backend enforces rules β†’ robot arm acts β†’ app monitors live.


Demo


Architecture

 πŸ“· Robot Camera
      β”‚  JPEG frames (UDP :5007)
      β–Ό
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚         FastAPI Backend             β”‚
 β”‚                                     β”‚
 β”‚  video_bridge ──► /ws/feed ──► πŸ“±  β”‚
 β”‚                                     β”‚
 β”‚  POST /enforce                      β”‚
 β”‚    β”œβ”€ Which cat? (pet_id / vision)  β”‚
 β”‚    β”œβ”€ Food allowed? (rules)         β”‚
 β”‚    β”œβ”€ Fed recently? (interval)      β”‚
 β”‚    └─ βœ… {"cmd":"feed"} ──UDP──►   β”‚
 β”‚         ❌ {"cmd":"protect"} ──►   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                    β”‚ WebSocket
                    β–Ό
              πŸ“± iOS App
         live feed Β· config Β· controls

 πŸ€– Robot Arm ◄──UDP :5006── Backend

Stack

Vision ResNet18 (food classification)
Backend FastAPI Β· Railway Β· SQLite
Transport UDP (robot commands + video) Β· WebSocket (app)
App Expo Β· React Native Β· iOS
Safety Rule-based enforcement β€” no LLM in the critical path

Run

# Backend
cd backend && pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8000

# App
cd app && npm install && npx expo run:ios

# Robot
cd scripts/pick_place
python step3_candy_vision.py && python step4_pick_place.py

Local wifi demo guide β†’ backend/docs/LOCAL-SETUP.md

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages