# aceta-minophen/rudra architecture

> Architecture diagram of the GitHub repository aceta-minophen/rudra, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aceta-minophen/rudra
- Repository: https://github.com/aceta-minophen/rudra

## Overview

Rudra combines a voice-operated care assistant, camera-based monitoring, robot following and movement, and a caregiver companion app. The principal workflow is a resident speaking a wakeword and request; the voice assistant handles conversation and care tasks, while vision systems detect identity, activity, and mood for backend records. Caregivers review logs and control or monitor the robot through the app. README claims cover several unsampled app and vision capabilities; those are represented at subsystem level, and edges are limited to documented or excerpted relationships.

Main entry points: [`Voice Assistant/main3.py`](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/main3.py) (Voice assistant), [`Companion App/lib`](https://github.com/aceta-minophen/rudra/tree/main/Companion%20App/lib) (Companion monitoring app), [`Computer Vision/Human detection/face_recognition__.py`](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/face_recognition__.py) (Face and action detection), [`Voice Assistant/Hotword_Detection.py`](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/Hotword_Detection.py) (Wakeword detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_voice["Voice care assistant"]
  node_wakeword["Wakeword detection"]
  node_voiceassistant["Voice assistant<br/>[main3.py]"]
  node_dialogflow["Intent handling<br/>[main3.py]"]
  node_calendar["Calendar services<br/>[google_apis.py]"]
  node_meal["Meal suggestions"]
end

subgraph group_vision["Vision monitoring"]
  node_faceaction["Face and action detection"]
  node_objectdetection["Food-object detection"]
  node_emotion["Emotion recognition<br/>[comp_vis.py]"]
  node_peoplecount["People detection<br/>[numberofhumans.py]"]
  node_video["Live video streaming<br/>[comp_vis.py]"]
end

subgraph group_robot["Robot following"]
  node_following["Human following<br/>[hf.py]"]
  node_motion["Motor movement<br/>[ros.py]"]
end

subgraph group_care["Caregiver app"]
  node_app["Companion monitoring app"]
  node_remote["Remote control and calls"]
  node_calendarview["Reminders and calendar<br/>[calendar.dart]"]
  node_healthview["Health logs<br/>[health.dart]"]
  node_appvideo["App video feed<br/>[websockets.dart]"]
end

node_resident(("Resident"))
node_firebase[("Firebase records")]
node_camera["Camera frames"]
node_caregiver(("Family or caregiver"))

node_resident -->|"says wakeword"| node_wakeword
node_wakeword -->|"starts conversation"| node_voiceassistant
node_resident -->|"speaks request"| node_voiceassistant
node_voiceassistant -->|"detects intent"| node_dialogflow
node_voiceassistant -->|"uses calendar API"| node_calendar
node_voiceassistant -.->|"handles meal requests"| node_meal
node_voiceassistant -->|"reads care records"| node_firebase
node_faceaction -->|"calls detection"| node_objectdetection
node_camera -.->|"supplies frames"| node_faceaction
node_camera -.->|"supplies frames"| node_emotion
node_camera -.->|"supplies images"| node_peoplecount
node_camera -.->|"captures feed"| node_video
node_faceaction -->|"updates action state"| node_firebase
node_emotion -->|"updates mood"| node_firebase
node_caregiver -->|"monitors resident"| node_app
node_app -->|"shows health logs"| node_healthview
node_app -->|"shows reminders"| node_calendarview
node_app -->|"offers remote control"| node_remote
node_app -->|"shows live feed"| node_appvideo
node_app -.->|"reads care data"| node_firebase
node_caregiver -->|"controls robot"| node_remote
node_following -.->|"directs movement"| node_motion
node_voiceassistant -.->|"starts or stops"| node_following

click node_wakeword "https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/Hotword_Detection.py"
click node_voiceassistant "https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/main3.py"
click node_dialogflow "https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/main3.py"
click node_calendar "https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/google_apis.py"
click node_meal "https://github.com/aceta-minophen/rudra/tree/main/Voice%20Assistant/mealSuggestion"
click node_faceaction "https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/face_recognition__.py"
click node_objectdetection "https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/spoon_fork_detection.py"
click node_emotion "https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/final/comp_vis.py"
click node_peoplecount "https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/numberofhumans.py"
click node_video "https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/final/comp_vis.py"
click node_following "https://github.com/aceta-minophen/rudra/blob/main/Raspberry%20Pi/ROS/humanFollowing/hf.py"
click node_motion "https://github.com/aceta-minophen/rudra/blob/main/Raspberry%20Pi/ROS/ros.py"
click node_app "https://github.com/aceta-minophen/rudra/tree/main/Companion%20App/lib"
click node_remote "https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/remote-control.dart"
click node_calendarview "https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/calendar.dart"
click node_healthview "https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/health.dart"
click node_appvideo "https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/websockets.dart"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_wakeword,node_voiceassistant,node_dialogflow,node_calendar,node_meal toneBlue
class node_faceaction,node_objectdetection,node_emotion,node_peoplecount,node_video,node_firebase toneAmber
class node_following,node_motion toneMint
class node_app,node_remote,node_calendarview,node_healthview,node_appvideo toneRose
class node_resident,node_camera,node_caregiver toneIndigo
```

## Components

### Voice care assistant

- [Wakeword detection](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/Hotword_Detection.py): `Voice Assistant/Hotword_Detection.py`
- [Voice assistant](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/main3.py): `Voice Assistant/main3.py`
- [Intent handling](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/main3.py): `Voice Assistant/main3.py`
- [Calendar services](https://github.com/aceta-minophen/rudra/blob/main/Voice%20Assistant/google_apis.py): `Voice Assistant/google_apis.py`
- [Meal suggestions](https://github.com/aceta-minophen/rudra/tree/main/Voice%20Assistant/mealSuggestion): `Voice Assistant/mealSuggestion`

### Vision monitoring

- [Face and action detection](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/face_recognition__.py): `Computer Vision/Human detection/face_recognition__.py`
- [Food-object detection](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/spoon_fork_detection.py): `Computer Vision/Human detection/spoon_fork_detection.py`
- [Emotion recognition](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/final/comp_vis.py): `Computer Vision/final/comp_vis.py`
- [People detection](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/Human%20detection/numberofhumans.py): `Computer Vision/Human detection/numberofhumans.py`
- [Live video streaming](https://github.com/aceta-minophen/rudra/blob/main/Computer%20Vision/final/comp_vis.py): `Computer Vision/final/comp_vis.py`

### Robot following

- [Human following](https://github.com/aceta-minophen/rudra/blob/main/Raspberry%20Pi/ROS/humanFollowing/hf.py): `Raspberry Pi/ROS/humanFollowing/hf.py`
- [Motor movement](https://github.com/aceta-minophen/rudra/blob/main/Raspberry%20Pi/ROS/ros.py): `Raspberry Pi/ROS/ros.py`

### Caregiver app

- [Companion monitoring app](https://github.com/aceta-minophen/rudra/tree/main/Companion%20App/lib): `Companion App/lib`
- [Remote control and calls](https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/remote-control.dart): `Companion App/lib/remote-control.dart`
- [Reminders and calendar](https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/calendar.dart): `Companion App/lib/calendar.dart`
- [Health logs](https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/health.dart): `Companion App/lib/health.dart`
- [App video feed](https://github.com/aceta-minophen/rudra/blob/main/Companion%20App/lib/websockets.dart): `Companion App/lib/websockets.dart`

### Other components

- **Resident**
- **Firebase records**
- **Camera frames**
- **Family or caregiver**

## Connections

- Resident → Wakeword detection: says wakeword (evidence: `README.md`)
- Wakeword detection → Voice assistant: starts conversation (evidence: `README.md`)
- Resident → Voice assistant: speaks request (evidence: `README.md`)
- Voice assistant → Intent handling: detects intent (evidence: `Voice Assistant/main3.py`)
- Voice assistant → Calendar services: uses calendar API (evidence: `Voice Assistant/main3.py`)
- Voice assistant → Meal suggestions: handles meal requests
- Voice assistant → Firebase records: reads care records (evidence: `Voice Assistant/main3.py`)
- Face and action detection → Food-object detection: calls detection (evidence: `Computer Vision/Human detection/face_recognition__.py`)
- Camera frames → Face and action detection: supplies frames
- Camera frames → Emotion recognition: supplies frames
- Camera frames → People detection: supplies images
- Camera frames → Live video streaming: captures feed
- Face and action detection → Firebase records: updates action state (evidence: `Computer Vision/Human detection/face_recognition__.py`)
- Emotion recognition → Firebase records: updates mood (evidence: `Computer Vision/final/comp_vis.py`)
- Family or caregiver → Companion monitoring app: monitors resident (evidence: `README.md`)
- Companion monitoring app → Health logs: shows health logs (evidence: `README.md`)
- Companion monitoring app → Reminders and calendar: shows reminders (evidence: `README.md`)
- Companion monitoring app → Remote control and calls: offers remote control (evidence: `README.md`)
- Companion monitoring app → App video feed: shows live feed (evidence: `README.md`)
- Companion monitoring app → Firebase records: reads care data
- Family or caregiver → Remote control and calls: controls robot (evidence: `README.md`)
- Human following → Motor movement: directs movement
- Voice assistant → Human following: starts or stops
