Path planning for quadrotor UAV using genetic algorithm