Skip to content

zhuge189/emergency_call_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OM1-emergency_call_plugin

Runnable emergency call plug-in Based on OpenMind/OM1 (the world's first open source AI native robot operating system, hardware-independent, modular architecture), adaptation OM1 Perception → Memory → Planning → Action The four-layer architecture supports one-click Docker deployment, including a simulated test environment that can be run directly for verification. ✅ Plug-in featuresPlug-in features 🚨 Multi-modal triggering: voice keywords + fall detection (IMU) + physical buttons 📱 Level 3 response: Family notification → Telephone call → Emergency center contact动 🔒 Privacy protection: end-to-end encryption + automatic deletion within 72 hours 🧪 Built-in simulator: the entire process can be tested without a real robot 🐳 Docker Packaging: rapid deployment in 5 minutes

📦 Complete code structure emergency_call_plugin/ ├── Dockerfile # Deploy images with one click ├── requirements.txt # Dependency list ├── config.yaml # user profile ├── plugin.py # Plug-in main logic(OM1 Module API) ├── sensors/ │ ├── imu_simulator.py # IMU fall simulator │ └── voice_trigger.py # Voice keyword detection ├── comms/ │ ├── notifier.py # Push notification (SMS/email) │ └── emergency_caller.py # Phone Calls (Twilio Simulation) ├── utils/ │ ├── location.py # Location services (GPS+SLAM fusion) │ └── privacy_guard.py # Privacy protection module └── test/ └── test_emergency_flow.py # End-to-end test script

🚀 Quick start guide

Method 1: Run directly locally (recommended test)

bash:

1. Clone the plugin repository

git clone https://github.com/zhuge189/emergency_call_plugin

cd emergency_call_plugin

2. Install dependencies

pip install -r requirements.txt

3. Modify contact information in config.yaml

4. Run plugin

uv run python plugin.py

5. Enter TRIGGER_FALL in the terminal to simulate a fall event

Method 2: Docker one-click deployment

bash:

Build image

docker build -t om1-emergency-plugin .

Run the container (mount the configuration file)

docker run -it --rm \

-v $(pwd)/config.yaml:/app/config.yaml \

om1-emergency-plugin

Method 3: Integrate into OM1 main system

python:

Load plug-ins in the OM1 main program

from emergency_call_plugin.plugin import create_module

emergency_plugin = create_module("/path/to/config.yaml")

om1_runtime.register_module("emergency_call", emergency_plugin)

emergency_plugin.start()

About

Runnable emergency call plug-in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages