
This course contains the use of artificial intelligence (AI).
This course is a comprehensive, hands-on, beginner-to-advanced guide to building an Autonomous Surveillance Robot from the ground up using ROS2 Humble, Gazebo, YOLOv8, and a completely custom navigation stack. Designed for complete beginners, this project-based curriculum teaches you how to bridge the gap between computer vision and physical robotic motion by creating a fully closed-loop, Software-in-the-Loop (SIL) autonomous system.
By the end of this course, you will have built a robot that continuously monitors a scene, automatically flags suspicious human behaviour, dynamically maps the target's physical coordinates, and navigates to investigate—entirely without human intervention.
Core Course Modules & What You Will Build
The project is divided into four tightly integrated core modules, each responsible for a distinct part of the autonomous pipeline:
Custom Simulation Environment (Gazebo): You will design a custom, physics-based 3D Gazebo world modelling an indoor urban locality, complete with boundary walls, internal rooms, animated pedestrian actors following scripted trajectories, and a fixed overhead surveillance camera.
AI-Powered Perception Node (YOLOv8): You will write a custom ROS2 node that subscribes to the live overhead camera feed and runs YOLOv8n to detect people. It uses pixel-velocity thresholding to classify their activity as Walking, Running, or Staying in real time.
Homography-Based Coordinate Mapping: Instead of relying on rigid, hardcoded goals, you will implement a homography projection matrix (H) using OpenCV to map 2D image pixels (the detected person's foot point at floor level) to real-world map coordinates (x, y). The target is dynamically snapped to a configurable spatial grid and published as a navigation goal.
Custom Navigation Stack (No Nav2): You will completely bypass the standard Nav2 navigation stack. Instead, you will build a modular three-stage custom navigation pipeline from scratch:
Stage 1: IA* Path Planner: Computes a collision-free route around obstacles using a manually defined obstacle map.
Stage 2: Cubic-Spline Path Smoother: Converts jagged waypoints into a continuous, drivable curve using arc-length parameterisation.
Stage 3: Adaptive Controller: Fuses Pure-Pursuit and PID-style damping to steer the TurtleBot3 Waffle robot smoothly and accurately to the target.
Why This Course Is Unique
True Closed-Loop Autonomy: Learn how to build a reactive system where a visual event (a person staying still for more than 5 seconds) automatically triggers a robot to navigate, investigate, and resume patrol without any manual scripting.
Bypassing the Nav2 Black Box: Rather than plugging pre-packaged navigation nodes together, you will write the path planner, smoother, and motor velocity controller yourself, giving you deep, mathematical insights into robotic control theory and motion planning.
Grounded in Localisation: You will master AMCL (Adaptive Monte Carlo Localisation) strictly for robot pose estimation, fusing wheel odometry with a pre-built map to close the control loop.
Designed for Complete Beginners: No prior ROS2 experience is required. The course provides full code files, line-by-line explanations, and plain-English walkthroughs for every single terminal command, XML configuration, and architectural diagram.
Originality and Use of Artificial Intelligence (AI)
The educational framework, technical concepts, software architecture, implementation methodology, engineering decisions, practical examples, source code, and accompanying technical manual presented in this course are the original work of our team.
Artificial intelligence (AI) was used only as an assistive tool during course production. AI assisted with tasks such as language refinement, technical writing support, narration, and video production. All technical concepts, software architecture, algorithms, engineering decisions, implementation methodology, source code, instructional design, and technical validation were conceived, developed, reviewed, and verified by our team.