Abstract
Autonomous unmanned aerial vehicles (UAVs) or drones navigating in constrained and complex indoor environments require high-rate collision avoidance against fast dynamic obstacles, a scenario where altitude does not provide an escape route. Conventional cameras fail in these environments due to their inherent latency, fixed acquisition interval and motion blur. This limitation is overcome by neuromorphic event-camera sensors through asynchronous per-pixel brightness detection, ultra-low latency, high dynamic range and eliminating motion blur. Existing event-camera-based avoidance techniques often rely on heavy computation for dense clustering, ego-motion compensation and depth estimation. We propose a proportional urgency fast dynamic obstacle avoidance strategy that provides dynamic speed of the UAV based on the localised speed of the approaching obstacle without depth camera or heavy ego-motion compensation. The proposed approach replaces complex dense optical flow with a principal axial region-of-interest filter. By applying strict spatial bandpass filters of event blobs and checking temporal growth consistency over a 4-hit sliding window, a stable time-to-contact (TTC) metric is calculated. Obstacles approaching the UAV at high velocities trigger rapid image scale-growth, producing an immediate drop in remaining TTC. The controller translates this temporal urgency directly into a proportionally amplified lateral velocity response, commanding aggressive evasion speeds up to an actuator saturation limit of 5.0 m/s for imminent hazards, while scaling down to a gentle baseline drift for slower threats. The entire open-source pipeline was implemented natively in ROS 2 and evaluated via closed-loop physics simulations deployed on a HP ZBook powered by an Intel Core i7 processor in Gazebo Harmonic using an ESIM event generation framework. Empirical results confirm that a 10 m/s thrown projectile is successfully avoided with a stable minimum separation of 0.90 m.
1. Introduction
UAVs have significantly improved human life in recent years in both civil and military domains, including aerial photography, geological monitoring, and agriculture [1]. The likelihood of UAVs colliding with other objects or similar drones rises dramatically with increased UAV usage. However, it is particularly difficult to provide collision-free navigation when navigating around randomly moving obstructions with traditional visual sensors like RGB cameras due to delay and motion blur, particularly in situations involving high speeds [2]. Event-based cameras have emerged as a possible substitute for dynamic obstacle avoidance to overcome these constraints [3]. They provide high temporal resolution and function well in low light [4]. Numerous studies have demonstrated how crucial it is for UAVs to detect and avoid obstacles in real time [5,6,7]. The majority of these studies are limited to outdoor environments where altitude is not constrained, unlike indoor navigation, such as a warehouse inventory flight, which navigates between shelf rows and still shares the constrained space with people, forklifts and approaching objects that can move several metres per second towards the drone path. A head-on object at cruise height cannot be cleared by a vertical hop: the vehicle would crash into the ceiling, the floor, or the shelves. Indoor event-camera work that still assumes a free 3D escape therefore leaves the constrained-workspace case open.
2. Related Work
UAVs are increasingly used in indoor navigation for applications such as delivery, warehouse inspection, and inventory management, where navigation is often constrained by shelves, walls, and ceilings [8,9,10,11,12]. This highlights the need for reactive navigation within narrow shelf corridors, fast-moving dynamic objects and bounded flight heights. Such environments limit the available manoeuvring space and make rapid detection of approaching obstacles particularly important.
Event-camera sensors offer attractive sensing for these environments because they asynchronously capture changes in brightness with high temporal resolution and reduced motion blur [2]. Their suitability for perceiving fast collision-course obstacles has been demonstrated [13,14]. Falanga et al. used event warping, apparent object size, and IMU rotation compensation to estimate the range and TTC of the obstacle, achieving 3.5 ms processing latency and avoiding obstacles at relative speeds of up to 10 m/s. Recent approaches have combined event-based optical flow, FOE estimation, depth, and artificial potential fields for UAV navigation [13,15].
However, these approaches generally rely on global motion estimation, depth information, or learned representations. The present work instead considers a head-on independently moving obstacle in a constrained flight corridor, where the relevant visual cue is localised apparent-size growth rather than the global expansion pattern produced by UAV ego-motion. We therefore investigate a lightweight event-based pipeline that detects a centre-region event blob, confirms sustained apparent-size growth, estimates TTC, and triggers a lateral avoidance manoeuvre without depth, neural-network inference, or privileged obstacle pose. The empty corridor is additionally evaluated as a control condition to determine whether background event activity produces false avoidance responses. Events are generated using an ESIM-style contrast-threshold model [16].
3. Methodology
3.1. System Architecture
Figure 1 is a closed-loop system architecture for the proposed system. In each of the accumulated events within the time frames, run these four stages: event representation, perception, obstacle detection, and avoidance. The output is a velocity command to the UAV. That command is sent to either the custom simulator or Gazebo.
Figure 1.
Closed-loop framework (right to left): CAMERA, event representation, foveal ROI, optical tau/looming detection, avoidance, and controller. The Grey arrow represents the raw asynchronous event stream from the event camera sensor, while the red arrows is the processing and control data flow of the proposed pipeline.
Figure 2 is a closed-loop flowchart. Obstacle avoidance is activated only when an obstacle is present in the foveal ROI, an approaching obstacle is detected, and the time-to-contact is plausible. After the obstacle is cleared, the vehicle returns to the path and continues to the goal.
Figure 2.
Closed-loop flowchart.
3.2. Event-Camera Representation
Let I(x, y, t) be the onboard intensity. Log intensity is
An event is emitted at pixel (x, y) when the change from the last reference exceeds the contrast threshold C
with C = 0.20, image size 160 × 120, and fx = fy = 120 at 40 Hz.
Polarity is the sign of that change (ON if the pixel brightens, OFF if it darkens)
3.3. Foveal Perception and Obstacle Candidate Isolation
The full event image contains activities from the corridor walls, floor, ceiling, and other textured structures. Because the target encounter is head-on, processing is restricted to a square region around the principal point:
Let n(u, v) be the number of events at a pixel within the active window. The crop is binarised and dilated by one pixel using a 3 × 3 structuring element as follows:
Eight-connected components are retained only when they contain at least four fired pixels:
Among the retained components, the candidate closest to the principal point is selected:
3.4. Obstacle Detection
For the selected component, a bounding-box diameter is computed as
An equivalent-circle diameter complements the bounding-box measure when the event contour is elongated or partially hollow as follows:
The diameter used for looming and TTC estimation is the larger estimate:
A candidate must satisfy a loose detection screen on size, aspect ratio, and centrality as follows:
The detection limits are dmin = 3 px and dmax = 18 px.
3.5. Looming Detection and Tracking
An approaching object is expected to exhibit sustained apparent-size growth. Looming is therefore confirmed from the diameter history using the following four samples:
The growth sequence is additionally constrained to prevent substantial reversal or an implausible one-step jump as follows:
where εr = 0.75 px and εs = 10 px. Candidate detections are associated with an existing track using nearest-neighbour image-plane distance within an 18 px gate as follows:
3.6. Time to Contact Estimation
For a confirmed track, the recent apparent-diameter samples are fitted by least squares as follows:
If the fitted expansion rate is below a small floor, the observation is treated as non-closing, as can be seen in the following:
Following the optical-tau formulation of [17], time-to-contact is estimated from apparent size and its expansion rate as follows:
3.7. Collision-Urgency Confirmation
A numerically valid TTC is not sufficient to trigger the UAV to initiate obstacle avoidance because small transient event blobs can produce unstable estimates. The controller therefore requires sufficient apparent size, a TTC within the operational interval, and a plausible closing speed as follows:
The parameters are dgate = 6 px, τmin= 0.12 s, τ0= 2.0 s, and .
A dodge is triggered only after three consecutive camera frames satisfy the gate; a failing frame resets the streak as follows:
4. Results and Discussions
In this research, we used both a custom simulator and the open-source robotic simulator, Gazebo. Each simulator was designed with a world which uses a 28 m × 4 m layout, a UAV radius of 0.25 m, a cruise altitude of 1.5 m after takeoff from a 0.28 m pad, and an approaching ball (R = 0.15 m) launched toward the UAV at a speed of 10m/s. The event model is the same in both simulators: contrast threshold C = 0.20 on successive log-intensity frames, 160 × 120, 40 Hz, and a 50 ms window.
Gazebo Simulator: Figure 3 and Figure 4 are the Gazebo world, which consists of a shaded brick corridor with ceiling lights, mortar grout, and a spotted ball. Contrast is softer, and the texture is mid-tone, so cruise events are sparse, and the ball on the optical axis is a compact ring. After the sidestep, brick courses and grout fire as long streaks under ego-motion.
Figure 3.
Gazebo world.
Figure 4.
Gazebo simulator. (Top): intensity frames from the onboard camera. (Bottom): events accumulated over the 50 ms preceding each frame; red marks ON (+) events (brightness increase) and blue marks OFF (−) events (brightness decrease). (Left): cruise phase. (Centre): ball on the optical axis (t = 3.60 s). (Right): after the dodge manoeuvre (t = 3.90 s), with the ball no longer centred.
Custom Simulator: Figure 5 is the ray-traced corridor, with axial black–white stripes, an end-wall checkerboard, dark shelf spheres, and a checker-patterned ball. High-contrast albedo fills the ball with ON and OFF events.
Figure 5.
Custom simulator. Bottom: Events from successive frames. Centre: Confirmation, ball on the optical axis. Right: After the dodge.
As shown in Figure 6, at detection, the ball sits centred in the 16 px crop box, small and faint, and the full frame is still sparse, so isolation barely matters yet. After the obstacle avoidance, the vehicle’s own lateral motion floods the full frame with wall/grout streaks, but the crop still isolates a clean ball blob from that event clutter.
Figure 6.
Gazebo onboard view at t = 3.60 s, 0.12 s before confirmation. The ball projects at the principal point and sits inside the yellow 16 px centre crop. Left: Intensity. Right: 50 ms events. The yellow box marks the foveal ROI (N × N px centre crop); events outside it are dimmed and excluded from processing.
Table 1 is the summary of the tested UAV navigation from the speed of 1.0 to 3.0 m/s, clearing a 10 m/s throw. At a 1.5 m/s cruise, a 12 m/s throw is cleared (0.70 m miss).
Table 1.
Dynamic obstacle avoidance performance under varying UAV and object velocities.
In Figure 7, Panel (a) is the plan view of the UAV as it cruises forward at y = 0 toward the goal at (24, 0). At x ≈ 5–6 m, it changes; it avoids the approaching ball by changing its trajectory, then rejoins the path and continues straight to the goal. In Panel (b), two vertical dotted lines mark when the throw occurred at 3.15 s, and the UAV was able to avoid it at 3.72 s. The green line, which represents the UAV, is flat at zero until the dodge, then spikes briefly to about 0.9 m before returning to zero.
Figure 7.
UAV trajectory (a) plan view: UAV dodges the 10 m/s ball and returns to the centreline before the goal at 24 m. (b) Lateral coordinate and separation versus time. Throw at 3.15 s; dodge at 3.72 s; minimum separation 0.90 m.
5. Conclusions
This research closed the dynamic avoidance loop around UAV operation with a single forward-looking event camera navigating in an indoor environment, dodging a fast independent ball from a monocular event stream without depth or heavy ego motion compensation. The model was deployed on both the custom and Gazebo simulator, and in both a 10m/s ball thrown at a 3m/s cruise was detected and dodged, after which the drone returns to its path and cruises towards the goal. These results are from single simulated trials on a head-on, single-obstacle encounter with no ego-rotation, so robustness across repeated trials, off-axis obstacles, and real hardware remains untested.
Author Contributions
Conceptualization, I.A. and M.A.; methodology, I.A. and M.A.; software, I.A.; validation, I.A. and M.A.; formal analysis, I.A. and M.A.; resources, I.A.; data curation, I.A.; writing—original draft preparation, I.A. and M.A.; writing—review and editing, I.A. and M.A.; visualization, I.A.; supervision, M.A.; investigation, I.A. and M.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The source code, simulation worlds, and simulation data for all experiments in this paper are openly available at https://github.com/me2ulab/event-urgency-dodge (accessed on 26 November 2026). The repository contains an implementation of the method with which every experiment can be re-run, together with the per-run trajectory and perception logs, run parameters, and camera and event frames.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| UAVs | Unmanned Aerial Vehicles |
| ROI | Region of Interest |
| TTC | Time to Contact |
| ROS2 | Robot Operating System 2 |
| FOE | Focus of Expansion |
| RGB | Red–Green–Blue |
References
- Hu, X.; Liu, Z.; Wang, X.; Yang, L.; Wang, G. Event-Based Obstacle Sensing and Avoidance for an UAV Through Deep Reinforcement Learning; Springer: Berlin/Heidelberg, Germany, 2022; Volume 13606. [Google Scholar] [CrossRef] [Scilit]
- Gallego, G.; Delbruck, T.; Orchard, G.M.; Bartolozzi, C.; Taba, B.; Censi, A.; Leutenegger, S.; Davison, A.J.; Conradt, J.; Daniilidis, K.; et al. Event-based vision: A survey. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 44, 154–180. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Akanbi, I.; Ayomoh, M. Event-Based Vision Application on Autonomous Unmanned Aerial Vehicle: A Systematic Review of Prospects and Challenges. Sensors 2025, 26, 81. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mueggler, E.; Huber, B.; Scaramuzza, D. Event-based, 6-DOF pose tracking for high-speed maneuvers. In 2014 IEEE/RSJ International Conference on Intelligent Robots and Systems; IEEE: New York, NY, USA, 2014; pp. 2761–2768. [Google Scholar]
- Chand, B.N.; Mahalakshmi, P.; Naidu, V.P.S. Sense and avoid technology in unmanned aerial vehicles: A review. In 2017 International Conference on Electrical, Electronics, Communication, Computer, and Optimization Techniques (ICEECCOT); IEEE: New York, NY, USA, 2017; pp. 512–517. [Google Scholar]
- Wan, Z.; Zhang, X.; Xiao, X.; Zhao, J.; Tie, J.; Chen, R.; Xu, S.; Zhang, G.; Wang, L.; Dai, H. A Fast and Safe Neuromorphic Approach for Obstacle Avoidance of Unmanned Aerial Vehicle. In Proceedings of the 2024 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Kuching, Malaysia, 6–10 October 2024; pp. 1963–1968. [Google Scholar] [CrossRef] [Scilit]
- Ben Miled, M.; Liu, W.W.; Liu, Y.C. Bioinspired framework for real-time collision detection with dynamic obstacles in cluttered outdoor environments using event cameras. IET CYBER-Syst. Robot. 2025, 7, e70006. [Google Scholar] [CrossRef] [Scilit]
- Fei, W.; Jin-Qiang, C.U.I.; Ben-Mei, C.; Tong, H.L.E.E. A comprehensive UAV indoor navigation system based on vision optical flow and laser FastSLAM. Acta Autom. Sin. 2013, 39, 1889–1899. [Google Scholar] [CrossRef] [Scilit]
- Kumar, G.A.; Patil, A.K.; Patil, R.; Park, S.S.; Chai, Y.H. A LiDAR and IMU integrated indoor navigation system for UAVs and its application in real-time pipeline classification. Sensors 2017, 17, 1268. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Elamin, A.; El-Rabbany, A.; Jacob, S. Event-based visual/inertial odometry for UAV indoor navigation. Sensors 2024, 25, 61. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tavasoli, S.; Poorghasem, S.; Pan, X.; Yang, T.Y.; Bao, Y. Autonomous post-disaster indoor navigation and survivor detection using low-cost micro aerial vehicles. Comput.-Aided Civ. Infrastruct. Eng. 2025, 40, 130–144. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Liu, Y.; Qiu, H.; Qirong, Y.; Lian, Z. Indooruav: Benchmarking vision-language uav navigation in continuous indoor environments. Proc. AAAI Conf. Artif. Intell. 2026, 40, 23864–23872. [Google Scholar] [CrossRef] [Scilit]
- Ahmadi, B.; Liu, G. Enhanced dynamic obstacle avoidance for UAVs using event camera and ego-motion compensation. Drones 2025, 9, 745. [Google Scholar] [CrossRef] [Scilit]
- Falanga, D.; Kleber, K.; Scaramuzza, D. Dynamic obstacle avoidance for quadrotors with event cameras. Sci. Robot. 2020, 5, eaaz9712. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ahmadi, B.; Liu, G. Event-Based Optical Flow for UAV Obstacle Avoidance: A Direction Selective Filter Approach. Aerotec. Missili Spaz. 2026, 105, 759–770. [Google Scholar] [CrossRef] [Scilit]
- Rebecq, H.; Gehrig, D.; Scaramuzza, D. Esim: An open event camera simulator. In Proceedings of the Conference on Robot Learning; PMLR: Cambridge, MA, USA, 2018; pp. 969–982. [Google Scholar]
- Lee, D.N. A theory of visual control of braking based on information about time-to-collision. Perception 1976, 5, 437–459. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






