A ROS2 based Human-In-The-Loop Framework for UAV Search and Rescue Operations
Organizations: Department of Computer Science and Information Systems, Birla Institute of Technology and Science, Pilani, Pilani Campus, Vidya Vihar, Pilani, Rajasthan 333031, India · Department of Systems and Computer Engineering, Carleton University, Ottawa, K1S 5B6, Ontario, Canada
Abstract
Existing Unmanned Aerial Vehicle (UAV) autonomy frameworks lack human contextual awareness, limiting real-time adaptability in unstructured Search and Rescue (SAR) environments. To address data availability, we propose a Robot Operating System (ROS2)-based human-in-the-loop (HITL) framework that translates human directional gestures (left/right) into UAV navigation commands using RGB-Depth (RGB-D) sensing and YOLOv11 (You Only Look Once). The deprecation of ROS1 necessitates migrating to ROS2, prioritising real-time communication, scalability, and long-term maintainability. Unlike approaches optimised for peak accuracy under ideal conditions, the proposed system prioritises robustness and real-time deployment in degraded SAR environments. Our system achieves 89% confidence in depth estimation under occlusion and varying environmental conditions in Gazebo-PX4 simulations. In foggy conditions, RGB-D fusion consistently provides more informative cues than RGB alone, with an average improvement of 46.7% across all scenarios and distances. The framework demonstrates superior occlusion handling (+15%), adaptive RGB-D fusion, temporal consistency modelling, and real-time deployment via a ROS2 data distribution service (DDS), with end-to-end latency below 50 ms. We evaluate the modified YOLOv11 and the depth-weighted pose estimation on a held-out simulated test set and on real people from the public UAV-GESTURE dataset, in clear air and in Koschmieder fog. Without retraining, the framework reads the gestures of real people with 80% accuracy, depth keeps 77% at a visibility of 10 m where RGB drops to 24%, and the modified YOLOv11 reaches 91% in simulation and 99% on held-out real people when trained on real data. The open-source ROS2 implementation eases the transition of SAR-UAV platforms from ROS1, enabling UAVs to act directly on operator gestures without complex path planning.
Figures & tables
| Environment | Global Entropy | Local Entropy |
|---|---|---|
| Forest | 3.9928 | 1.6510 |
| City | 5.6586 | 2.8883 |
| Wall | 2.6269 | 0.3007 |
| Joints | Index | Joints | Index |
|---|---|---|---|
| Nose | 0 | Left Wrist | 9 |
| Left Eye | 1 | Right Wrist | 10 |
| Right Eye | 2 | Left Hip | 11 |
| Left Ear | 3 | Right Hip | 12 |
| Right Ear | 4 | Left Knee | 13 |
| Left Shoulder | 5 | Right Knee | 14 |
| Scenario | Keypoint Detection | Closest Correct Estimation | ||
|---|---|---|---|---|
| RGB | Depth | RGB | Depth | |
| City | 0.79 | 0.34 | 0.83 | 0.87 7.13 |
| Forest | 0.83 | 0.34 | 0.74 | 0.89 9.79 |
| Wall | 0.86 | 0.59 | 0.75 | 0.74 7.74 |
| Environment | Entropy | RGB-Only | RGB-D |
|---|---|---|---|
| Wall | 2.63 | 0.75 CCE | 0.74 (-1%) |
| City | 5.66 | 0.83 CCE | 0.87 (+4%) |
| Forest | 3.99 | 0.74 CCE | 0.89 (+15%) |
| 1 m | 3 m | 5 m | 7 m | 10 m | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Scenario | ||||||||||
| City | 0.86 | 1.24 | 0.87 | 3.11 | 0.77 | 4.81 | 0.76 | 7.01 | 0.83 | 9.99 |
| Forest | 0.72 | 1.95 | 0.85 | 3.21 | 0.86 | 5.20 | 0.85 | 7.23 | 0.87 | 10.35 |
| Wall | 0.89 | 0.83 | 0.78 | 3.37 | 0.89 | 5.43 | 0.76 | 7.59 | 0.63 | 11.14 |
| Closest Distance | Medium Distance | Farthest Distance | ||||
|---|---|---|---|---|---|---|
| Scenario | ||||||
| City | 0.28 | 0.59 | 0 | 0.88 | 0 | 0.91 |
| Forest | 0.63 | 0.60 | 0.30 | 0.30 | 0 | 0.86 |
| Wall | 0.57 | 0.45 | 0 | 0.60 | 0 | 0.80 |
| Distance Category | RGB Confidence | Depth Confidence | Improvement |
|---|---|---|---|
| Close Range (1–3 m) | 0.28–0.63 | 0.45–0.60 | Moderate gain (mean + 25%) |
| Medium Range (5 m) | 0.00–0.30 | 0.30–0.88 | Large gain (RGB often near zero) |
| Far Range (7–12 m) | 0.00 (fails) | 0.80–0.91 | Detection enabled (RGB fails) |
| Overall Trend: Depth sensing maintains reliable confidence as RGB degrades | |||
| System | Test Condition | Performance | Env-Specific? | Fog Testing |
|---|---|---|---|---|
| MediaPipe | Mobile, desktop | Not reported | Not detailed | NO |
| YOLOv9 SAR | Heridal dataset | 94.18% mAP | Heridal-specific | NO |
| VTTransPose | COCO val2017 | 76.5% AP | Generic COCO | NO |
| YOLOv11pose | Animal posture | 94.1% mAP | Domain-specific | NO |
| Gesture YOLOv4 | Clear weather | 96.14% acc | Optimal only | NO |
| Our Proposed System | Gazebo | 89% average | City, Forest and Wall | YES |
| Dimension | Proposed System | MediaPipe | YOLOv9 SAR | VTTransPose | YOLOv11 | Gesture YOLOv4 |
|---|---|---|---|---|---|---|
| Task Focus | Gesture Command | Perception pipeline | Detection | Pose estimation | Detection | Gesture detection |
| Fog / Smoke Robustness | +46.7% | NO | NO | NO | NO | NO |
| Occlusion Handling | +15% | – | Ensemble | – | – | – |
| Adaptive RGB-D Fusion | YES | NO | NO | NO | NO | NO |
| Temporal Consistency | YES | NO | NO | NO | NO | NO |
| SAR-Specific Design | YES | NO | YES | NO | NO | NO |
| Feature | Skeleton Tracking (AirPose / MediaPipe) | Direct Detection (Proposed System) |
|---|---|---|
| Detection Unit | Discrete Keypoints (Joints) | Holistic Object |
| Dependency | Requires high-resolution visibility of individual limbs | Requires general depth/shape profile |
| Fog Behaviour | Catastrophic Failure: Graph breaks if a single joint is obscured | Robust: Interpolates intent from overall shape cues (+46.7% gain) |
| Occlusion | High Jitter: Lost tracking leads to noise and null outputs | Stable: Classifies visible volumetric features |
| SAR Viability | Limited: Valid only in clear weather | High: Validated in fog and three different environments |
Search-and-Rescue Robotics
Search-and-rescue robotics develops autonomous and human-guided robots to find, reach, assess, and assist people in hazardous environments.
See all 43 papers