
Course Resources — ROS 2 for Underwater Robotics
Everything you write and run across all 11 sections, in one download.
What's inside:
- ros2_ws/src/ — the six ROS 2 packages built through the course: diver_bringup, diver_control, diver_description, diver_examples, diver_localization, diver_perception. Includes all meshes, URDF/Xacro,
worlds and launch files.
- sim/ — the three-container Docker stack (Gazebo + ArduSub + QGroundControl), plus run.sh, verify_stack.sh, ArduSub params and course worlds.
- scripts/ — every per-lecture script, organised by section: thruster allocation and DOF probes (S6), sensor and hydrodynamics probes (S7), EKF and mapping (S8), dataset generation, training and
evaluation (S9), and the full capstone mission state machine and orchestrator (S10).
- fetch_third_party.sh — pulls ArduPilot, ardupilot_gazebo, orca4, bluerov2_gz and QGroundControl.
Start here:
unzip rov-course-resources.zip && cd rov_course
./fetch_third_party.sh # ~1 GB of upstream projects
cd ros2_ws && colcon build --symlink-install && source install/setup.bash
cd ../sim && ./run.sh && ./verify_stack.sh
A note on what's not included, and why: the large upstream projects (ArduPilot, Gazebo model packages, QGroundControl) total well over 1 GB and are all public — fetch_third_party.sh clones them fresh so
you get working revisions rather than a stale snapshot. Similarly there's no build/, install/ or log/ directory: those are machine-specific and are created by your own colcon build. The Section 9
training dataset isn't bundled either — you generate it yourself in lecture 9.6, which is the point of that lecture.
Requirements: Ubuntu 22.04 or 24.04, ROS 2 (Humble or Jazzy), Docker with Compose. Section 2 covers setup from a clean machine.
Stuck? Post in the Q&A — I read all of it.
This course contains the use of artificial intelligence.
Narrated with a synthetic voice. The robotics, the code and every measured result are the instructor's, produced by running the tools shown on screen. If you need a human instructor on camera, this course is not for you.
Ever wondered how an underwater robot actually finds its way with no GPS, fights buoyancy and drag to hold a depth, and spots a target through murky water? In this course, you'll
build and pilot a fully simulated Autonomous Underwater Vehicle (ROV/AUV) from the ground up, using the exact industrial stack real underwater robotics teams run: ROS2 Jazzy, Gazebo
Harmonic, ArduSub SITL, and QGroundControl.
This isn't a vibe-coding course. Every hard topic is taught in three layers: the intuition (a picture or a live sim demo), the numbers (the actual math, derived plainly), and the
code/config (how it maps to ROS2, Gazebo, and ArduSub, and what breaks when you change it).
You'll start from zero installing ROS2, Gazebo, and Docker and work up through:
- Core ROS2 concepts: nodes, topics, services, parameters, launch files, TF2 frames, and DDS/QoS
- Reading and modifying a real robot's URDF/Xacro description, including mass, inertia, and collision physics
- Standing up the same Dockerized ArduSub + Gazebo + QGroundControl stack used in real underwater robotics
- Thruster physics and the allocation matrix that maps 6 thrusters to 6 degrees of freedom
- The real hydrodynamics at play: buoyancy, drag, and added mass
- State estimation with an Extended Kalman Filter, and sonar-based mapping with factor graphs and loop closure
- Training and evaluating a YOLO-based object detector for underwater inspection
- A capstone mission where you fuse piloting, mapping, and detection into one autonomous run you own end-to-end
Along the way I share real war stories from building actual underwater vehicles: sign-flip bugs, GPU render crashes, lost degrees of freedom, and false-positive detections in murky water.
By the end, you'll have hands-on, physics-grounded experience with the same tools and techniques used in real marine robotics and physical AI a strong foundation for further study
or a portfolio-ready capstone project.