
UBC UAS Autonomous Approach
Two ROS 2 nodes that ran on the drone's Jetson Nano companion computer and were flown at AEAC 2026.
Overview
UBC Uncrewed Aircraft Systems is a student design team that enters AEAC each year. The 2026 task was an autonomous drone for urban fire response. In the 2025–26 season I wrote two ROS 2 nodes for the onboard autonomy software. Both ran on the drone’s Jetson Nano companion computer and were flown at AEAC 2026.
How it’s built
bridge_detection node (Python, rclpy)
- Converts perception detections into relative body-frame PoseStamped commands for the mission node.
- Computes a 3D target position from the bounding-box center plus local depth-patch sampling, deprojected with RealSense
rs2_deproject_pixel_to_pointusing intrinsics from the depth CameraInfo topic. - Passes only detections above a confidence threshold.
Mission node (Python, rclpy)
- Converts relative target offsets into MAVROS local-position setpoints.
- Approaches in configurable steps along the line to the target, holding for a configurable dwell time at each step.
- Stops at a configurable stand-off distance from the target.
- Clamps commanded targets between configurable minimum and maximum altitudes.
- Accepts commands only when the vehicle is connected, armed, in GUIDED mode and publishing valid pose. Cancels the mission if the vehicle leaves GUIDED, disarms or disconnects.
Legacy camera and telemetry synchronizer (C++, since retired)
- Co-designed a FakeSerialPort that simulates MAVLink camera feedback.
- Fixed a segmentation fault in its
--fakecamera mode. - Wrote a multi-stage Dockerfile that builds for ARM or x64, and fixed Docker/CMake linkage for GeographicLib, ArenaSDK, MetavisionSDK, pthread and m.
- Deployed it to a Raspberry Pi over SSH. Wrote a Bash script that sets up SITL, the flight controller and tmux sessions on the Pi.
Testing
- AEAC 2026 The mission node’s autonomous approach received full marks. UBC UAS placed 4th overall.
- Integration tests Predetermined detections fed to the mission node under varied starting conditions.
- SITL Checked that the simulated vehicle reached the correct position, using telemetry from the simulated flight controller.
- End to end A mock TaggedImage publisher triggered the autonomous approach across containers.
- Catch2 Tests for the legacy synchronizer.
Status
Done. Both nodes were flown at AEAC 2026.