FlowPilot
Drone that avoids obstacles with optical flow
A simulated drone that flies to its goal and, when its camera spots an obstacle that is not on the map, goes around it and returns to its route.
Key result
Avoids columns that are not on the map using only the front camera's optical flow, and returns to the route until it reaches its goal
The problem
A drone that follows a route planned on a map will crash into any obstacle that is not on it. It needs to see and react on its own, with lightweight sensors.
The solution
A closed visual navigation loop in simulation, from camera to motion:
- Perception: the front camera’s optical flow (Farneback and Lucas-Kanade with Harris corners) estimates the collision risk in each sector of the image.
- Supervisor: chooses between following the route, braking or avoiding. Before each manoeuvre it checks on the known map that the detour is safe and, if not, it stops.
- Control: the reference is smoothed with speed and acceleration limits and tracked by an LQR controller.
- In the test, the drone flies along a 40 m corridor, avoids three columns missing from the map and reaches its goal. The supervisor never receives the true position of those columns: only the optical flow decides.
Why it matters
Optical flow works with a cheap camera and little computation, which makes it suitable for small drones indoors, in warehouses or for inspection.
Status
Proof of concept in simulation.
Credits
The optical flow algorithms start from Lab 5 of MIT course 16.485 Visual Navigation for Autonomous Vehicles (MIT-SPARK). The drone simulator, the ROS 2 integration and the closed loop of perception, decision and control are original work.