How vq-vinh/da2-robot-agv works
DA2 is a Kiva-style warehouse AGV: an operator creates and confirms prioritized shelf-delivery orders; mission logic coordinates shelf approach, lift operations, delivery, return-to-slot, and charging. ROS 2 provides navigation, localization, perception, and simulation, while STM32 firmware implements motor-speed control. The README documents key flows and capabilities; sampled source confirms the mission entry points and embedded control calls. The Pi-to-MCU UART bridge is described as future work, so no implemented connection is asserted.
Main entry points: navigation.launch.py Nav2 navigation · app.c Firmware app tasks · sim.launch.py Gazebo simulation · speed_ctrl.c Speed control
Components 19
Orders and mission
- Web dashboard
RasPi/src/agv_mission/scripts/web_dashboard.py - Order manager
RasPi/src/agv_mission/scripts/order_manager.py - Mission launch
RasPi/src/agv_mission/launch/mission.launch.py
ROS navigation
- Nav2 navigation
RasPi/src/agv_navigation/launch/navigation.launch.py - Shelf detection
RasPi/src/agv_navigation/scripts/shelf_detector.py - Payload handling
RasPi/src/agv_navigation/scripts/payload_manager.py - Localization and EKF
RasPi/src/agv_localization/launch/ekf.launch.py - SLAM
RasPi/src/agv_navigation/launch/slam.launch.py - Robot description
RasPi/src/agv_description/launch/display.launch.py
Simulation
- Gazebo simulation
RasPi/src/agv_gazebo/launch/sim.launch.py - Warehouse generation
RasPi/src/agv_gazebo/scripts/make_warehouse.py
STM32 firmware
- Firmware app tasks
STM32/App/Src/app.c - Speed control
STM32/App/Src/speed_ctrl.c - Motor driver
STM32/Modules/Src/motor.c - Encoder driver
STM32/Modules/Src/encoder.c - UART transport
STM32/Modules/Src/uart_tx.c
Control tools
- Live tuning
STM32/tools/tune.py - Speed log analysis
STM32/tools/plot_speed.py
Other components
- Operator
Connections 20
- Operator → Web dashboard: submits orders
README.md - Web dashboard → Order manager: serves requests
README.md - Mission launch → Order manager: starts mission
RasPi/src/agv_mission/launch/mission.launch.py - Order manager → Nav2 navigation: dispatches goals
README.md - Nav2 navigation → Localization and EKF: uses pose
README.md - Shelf detection → Nav2 navigation: provides shelf pose
README.md - Payload handling → Nav2 navigation: filters scans
README.md - SLAM → Nav2 navigation: provides mapping
- Gazebo simulation → Warehouse generation: uses generated world
- Gazebo simulation → Robot description: loads robot model
- Gazebo simulation → Nav2 navigation: runs navigation
README.md - Nav2 navigation → Firmware app tasks: planned command link
- Firmware app tasks → Speed control: runs control
STM32/App/Src/app.c - Firmware app tasks → Encoder driver: samples encoder
STM32/App/Src/app.c - Firmware app tasks → UART transport: sends log data
STM32/App/Src/app.c - Speed control → Motor driver: sets motor output
STM32/App/Src/speed_ctrl.c - Speed control → Encoder driver: reads speed
STM32/App/Src/speed_ctrl.c - Live tuning → Firmware app tasks: sends UART commands
STM32/tools/tune.py - UART transport → Live tuning: streams telemetry
- Live tuning → Speed log analysis: records logs
STM32/tools/tune.py