Online generation of safe trajectories for quadrotor UAV flight in cluttered environments