What was built (the whole chain)
- 01Literature survey: delivery robots and ROS 2 navigation
- 02Robot model (URDF), Gazebo simulation, teleoperation
- 03Hardware build: chassis, motors, encoders, Uno, L298N, LiDAR, Pi
- 04ros2_control bring-up and odometry calibration
- 05Mapping (SLAM Toolbox), localisation (AMCL), navigation (Nav2)
- 06Delivery manager, web app, Firebase bridge (sim first)
- 07Self-recovery: position, blocked route, narrow gap, motor fault
- 08Lid, battery monitor, ultrasonic guard, Wi-Fi map, exploration
- 09Real-world tests in three homes and at the national expo
- Web app (Firebase Hosting, https://delivery-robot-demo.web.app). Teachers log in, pick a receiver, press “Request delivery”, press “Open lid”, “Close lid and send”, “Received”. An Admin page shows statistics, health, battery, Wi-Fi map, “What changed” map and a “Why?” timeline.
- Firebase Realtime Database with login (Firebase Authentication) and locked rules. It is the meeting point between the phone and the robot.
- Laptop (the “brain”), Ubuntu 20.04 + ROS 2 Foxy: Nav2 (planner, controller, behaviour tree), AMCL localisation on a saved map, slam_toolbox for mapping, twist_mux, and our own nodes: delivery_manager, firebase_bridge, self_recovery, path_guard, gap_assist, explorer, event_logger, statistics, health check, Wi-Fi mapper, change detector, ETA estimator.
- Robot: Raspberry Pi 4B (Ubuntu 20.04 server + Foxy), YDLIDAR X2 lidar, Arduino Uno (motors and encoders, ros_arduino_bridge firmware), Arduino Nano (two lid servos), HC-SR04 ultrasonic sensor (GPIO), INA219 battery sensor (I2C). Box about 33 cm x 25 cm, two driven wheels at the FRONT and a swivel caster at the back.
Our own contributions (versus standard parts): the delivery state machine with queue, lid and lock logic; self-recovery (kidnapped-robot detection and global scan matching); path guard (blocked-route handling with person/object classification); gap assist (narrow-gap manoeuvre); safety watchdog with automatic motor restart and wrong-way detection; battery-aware job acceptance and trip energy prediction; autonomous frontier exploration; Wi-Fi coverage map; change detection; event log and statistics. Standard parts used and tuned: Nav2, AMCL, slam_toolbox, ros2_control, twist_mux, diffdrive_arduino (from Josh Newans), ros_arduino_bridge firmware (Josh Newans / Arduino bridge), ydlidar driver.