Research Article

Online Path Generation and Navigation for Swarms of UAVs

Listing 3

: EPL query to determine if a drone is in close proximity of a moving obstacle.
select A.droneName as aName, A.x as aX, A.y as aY, A.z as aZ,
O.obstacleName as oName, O.x as oX, O.y as oY, O.z as oZ, from
DroneLocEvent.win : time(1 sec) A, MObsEvent.win : time(1 sec) O
where A.x in [O.x − 2 : O.x + 2] and A.y in [O.y − 2 : O.y + 2] and A.z in
[O.z − 2 : O.z + 2] and (A.x=O.x or A.y=O.y or A.z=O.z)