How jcy9066/dabom_capstone works
Autonomous Patrol Bot connects a Raspberry Pi robot to a GPU-hosted control server. The main workflow carries camera, LiDAR, and encoder telemetry from the robot to the server; the dashboard displays status and video, while operators issue manual commands. The server also supports perception, map management, localization, and Nav2 dry-run navigation. The README documents several subsystem links whose implementation files were not sampled; those links cite the README rather than implying that unsampled source was inspected. Actual autonomous motor output is documented as blocked.
Main entry points: app.py FastAPI Server · robot_command_client.py Raspberry Pi · auth_service.py Account Auth · main.py Inference Runtime
Components 30
Server Control
- FastAPI Server
server/app.py - Account Auth
server/auth_service.py - MySQL Accounts
server/database.py - Email Verification
server/email_service.py - Encoder Odometry
server/encoder_ros_bridge.py - LiDAR Bridge
server/lidar_ros_bridge.py - Navigation API
server/navigation_map_api.py - Map Management
server/navigation_map_service.py
Web Dashboard
- Dashboard App
frontend/app.py - Video Feed
frontend/services/camera_service.py - Dashboard Controls
frontend/services/static
AI Perception
- Inference Runtime
perception/main.py - Pipeline Selection
perception/pipeline_factory.py - Frame Analysis
perception/frame_processor.py - CUDA Device
perception/device.py - Action Models
perception/models - Action Batching
perception/models/action_batch.py - Action Policy
perception/models/action_policy.py - Violence Heuristic
perception/models/violence_heuristic.py
ROS Navigation
- Mapping Localization
navigation/ros/patrol_navigation/launch - Nav2 Commands
navigation/ros/patrol_navigation/patrol_navigation/nav2_command_bridge.py - Dry-run Planner
navigation/dry_run_planner.py - ROS Map Bridge
navigation/ros/patrol_navigation/patrol_navigation/map_bridge.py
Robot Hardware
- Raspberry Pi
raspberry/robot_command_client.py - Motor Controller
raspberry/controllers/motor_controller.py - Pico W Firmware
- Speaker Stub
raspberry/controllers/speaker_controller.py
Other components
- Operator
- Robot Camera
- Robot LiDAR
Connections 33
- Operator → Dashboard App: opens dashboard
README.md - Dashboard App → FastAPI Server: uses control APIs
README.md - FastAPI Server → Account Auth: handles authentication
server/app.py - Account Auth → MySQL Accounts: reads and writes
server/auth_service.py - Account Auth → Email Verification: requests verification
server/auth_service.py - FastAPI Server → Video Feed: serves video feed
README.md - Robot Camera → Raspberry Pi: captures video
README.md - Raspberry Pi → FastAPI Server: uploads H.264
README.md - Operator → Dashboard Controls: selects controls
README.md - Dashboard Controls → FastAPI Server: sends commands
README.md - FastAPI Server → Inference Runtime: processes streams
server/app.py - Inference Runtime → Pipeline Selection: creates pipeline
perception/main.py - Pipeline Selection → CUDA Device: resolves device
perception/pipeline_factory.py - Inference Runtime → Frame Analysis: processes frames
perception/main.py - Pipeline Selection → Action Models: selects model
perception/pipeline_factory.py - Action Models → Action Batching: uses batching
perception/models/action_rtmpose_posec3d.py - Action Models → Action Policy: uses policy
perception/models/action_rtmpose_posec3d.py - Frame Analysis → Violence Heuristic: evaluates behavior
perception/frame_processor.py - Robot LiDAR → Raspberry Pi: publishes scan
README.md - Raspberry Pi → LiDAR Bridge: forwards scan
README.md - LiDAR Bridge → Mapping Localization: feeds ROS scan
README.md - Raspberry Pi → FastAPI Server: sends encoder ticks
README.md - FastAPI Server → Encoder Odometry: forwards telemetry
README.md - Operator → Navigation API: manages maps
README.md - Navigation API → Map Management: loads and saves
README.md - Map Management → ROS Map Bridge: exchanges map data
README.md - Mapping Localization → Nav2 Commands: starts navigation
README.md - Nav2 Commands → Dry-run Planner: routes dry-run output
README.md - Dry-run Planner → FastAPI Server: reports dry-run
server/app.py - FastAPI Server → Raspberry Pi: sends manual commands
README.md - Raspberry Pi → Motor Controller: dispatches commands
raspberry/robot_command_client.py - Motor Controller → Pico W Firmware: controls over UART
README.md - Raspberry Pi → Speaker Stub: dispatches speech
raspberry/robot_command_client.py