The invention belongs to the technical field of application of unmanned aerial vehicles, and discloses an RRT (rapidly-exploring
random tree)
route optimizing method of an unmanned aerial vehicle based on a
greedy algorithm. The RRT
route optimizing method comprises the following steps of using qinit as the
current point qi, and initializing n to be 0; performing
collision detection on a Q focus point qm-n since qi (n is [0,1,2 until to (m-i-1)]), and uniformly selecting points on the connecting line of qi and qm-n at certain intervals; judging whether the existence point is positioned on theobstacle or outside a map; when the existence point exists, turning to step 4; or else, turning to step 5; when the obstacle exists, namely that the connecting line passes through the fly-prohibitingarea, and n is equal to n+1, judging whether qi is qm-n-1 or not; when qi is qm-n-1, enabling i to be equal to i+1; or else, returning back; when the obstacle does not exist, connecting qi and qm-n, enabling qi to be equal to qm-n, and turning to step 6; judging whether i is equal to m or not; when i equal to m, finishing the program. The RRT
route optimizing method has the advantages that when the RRT
algorithm route of the unmanned aerial vehicle is planned, the route is reduced, the greedy concept is utilized, the result is the current optimum result, the number of route points is reduced,and the route is greatly optimized; the certain
engineering value is realized on the application of
route planning of the unmanned aerial vehicle or other robots.