The present disclosure relates to the technical field of flight and, more particularly, to an obstacle avoidance method for unmanned aerial vehicle (UAV) and a UAV.
During an operation of an unmanned aerial vehicle (UAV), hills, trees and other natural objects, as well as power lines, telephone poles, buildings, and the like, in a flight corridor cause great hidden dangers to a safe flight of the UAV. In conventional technologies, binocular vision, laser and other optical lenses, as well as ultrasonic radar are used to sense the external environment of the UAV to achieve an obstacle avoidance of the UAV. However, the optical lenses are sensitive to external conditions such as light and weather conditions. In contrast, the radar is not sensitive to the external conditions, and thus, it is effective and works all day even under harsh weather such as rain, fog, dust, and the like. Therefore, the radar is also used for detecting the obstacles, and the obstacle avoidance can be realized according to the obstacles detected by the radar.
However, in conventional technologies, an obstacle misdetection is a problem for the UAV using the radar to detect obstacles.
In accordance with the disclosure, there is provided an obstacle avoidance method for an unmanned aerial vehicle (UAV) including determining a flight trajectory of an obstacle relative to the UAV according to measurement data output by a radar arranged at the UAV, and performing an obstacle avoidance according to the flight trajectory of the obstacle.
Also in accordance with the disclosure, there is provided a UAV including a rack, a radar arranged at the rack or at a load carried by the rack, and a controller arranged at the rack and communicatively coupled to the radar. The radar is configured to obtain measurement data. The controller is configured to determine a flight trajectory of an obstacle relative to the UAV according to the measurement data output by the radar, and perform an obstacle avoidance according to the flight trajectory of the obstacle.
In order to provide a clearer illustration of technical solutions of disclosed embodiments, the drawings used in the description of the disclosed embodiments are briefly described below. It will be appreciated that the disclosed drawings are merely examples and other drawings conceived by those having ordinary skills in the art on the basis of the described drawings without inventive efforts should fall within the scope of the present disclosure.
In order to provide a clearer illustration of technical solutions of disclosed embodiments, example embodiments will be described with reference to the accompanying drawings. It will be appreciated that the described embodiments are some rather than all of the embodiments of the present disclosure. Other embodiments conceived by those having ordinary skills in the art on the basis of the described embodiments without inventive efforts should fall within the scope of the present disclosure.
The present disclosure provides an obstacle avoidance method which can be applied to an unmanned aerial vehicle (UAV). The UAV can carry a radar configured to detect an obstacle and output measurement data corresponding to a detection of the obstacle. The measurement data may be the measurement data output by the radar after detecting the obstacle, or maybe not the real measurement data but a clutter detected by the radar, such as a ground clutter. The present disclosure can solve the problem of obstacle misdetection for the UAV using the radar to detect obstacles.
A position where the radar is installed on the UAV can be flexibly designed according to actual needs, which is not limited herein. Emission direction of the radar waves can be flexibly designed according to actual needs, which is not limited herein.
In some embodiments, according to the detection principle of the radar, the radar can include a continuous wave radar or a pulse radar.
No matter it is a moving obstacle or a stationary obstacle, when the flying UAV is used as a reference, the obstacle always has a flight trajectory relative to the UAV. Therefore, even if the radar may output the measurement data corresponding to the clutter, because there is no obstacle corresponding to the clutter, the flight trajectory of the obstacle relative to the UAV would not be affected by the measurement data of the radar generated from the ground clutter.
The implementation manner of determining the flight trajectory of the obstacle relative to the UAV is not limited herein. For example, when a relationship between two pieces of measurement data output by two detections of the radar satisfies a preset relationship, the two pieces of measurement data can be used as two waypoints, and a route formed by the two waypoints can be determined as the flight trajectory of the obstacle relative to the UAV. The flight trajectory may include at least two waypoints, and information of each waypoint may include one or more of a position, a speed, an angle, and the like.
At 102, an obstacle avoidance is performed according to the flight trajectory of the obstacle. A flight trajectory or a flight height of the UAV can be adjusted according to the flight trajectory of the obstacle relative to the UAV to perform the obstacle avoidance. In some embodiments, a flight attitude of the UAV can be controlled according to the flight trajectory of the obstacle relative to the UAV to perform the obstacle avoidance. The flight attitude may include diving, climbing, accelerating, decelerating, rolling, and the like. The implementation manner of performing the obstacle avoidance according to the flight trajectory of the obstacle is not limited herein, and a person skilled in the art may design a corresponding obstacle avoidance strategy to avoid obstacles according to actual needs.
Consistent with the disclosure, according to the measurement data output by the radar, the flight trajectory of the obstacle relative to the UAV can be determined. The obstacle avoidance can be performed according to the flight trajectory of the obstacle. As such, even if the radar may output the measurement data corresponding to the clutter, because there is no obstacle corresponding to the clutter, the flight trajectory of the obstacle relative to the UAV would not be affected by the measurement data of the radar generated from the ground clutter. Therefore, when the obstacle avoidance is performed according to the flight trajectory of the obstacle, the obstacle avoidance based on the measurement data of the radar generated from the clutter can be avoided, and the problem of obstacle misdetection can be solved.
As shown in
In some embodiments, the processes at 301 can further include determining a motion model of the obstacle according to the flight trajectory of the obstacle relative to the UAV at the previous moment, and determining the first predicted waypoint of the obstacle at the current moment according to the motion model. The motion model may represent the first predicted waypoint of the obstacle at the current moment as a function of the waypoint at the previous moment (e.g., a moment immediately before the current moment).
The motion model can be selected according to a motion state of the obstacle and a degree of real-time of the radar. For example, when the motion state of the obstacle is stationary, the motion model may be a constant speed model that can obtain flight speed information of the UAV in real time. One or more of the position of the waypoint, speed, angle, and the like in the flight trajectory of the obstacle relative to the UAV at the previous moment can be used as state variable(s) to determine the motion model of the obstacle. A principle of selecting the state variable(s) from the position of the waypoint, speed, angle, and the like can include selecting a set of variables that has the least number of dimensions and can fully reflect dynamic characteristics of the flight trajectory of the obstacle, thereby preventing an amount of calculation from increasing with the number of state variables. In some embodiments, the state variable(s) can include the speed.
In some embodiments, determining the first predicted waypoint of the obstacle at the current moment according to the motion model may include: determining an estimated waypoint of the obstacle at the current moment according to the motion model, and determining the first predicted waypoint of the obstacle at the current moment using the Kalman algorithm based on the waypoint at the previous moment and the estimated waypoint. For example, the waypoint at the previous moment can be used as a measurement value in the Kalman filter algorithm, and the estimated waypoint can be used as a predicted value in the Kalman filter algorithm, and thus, the estimated value calculated by the Kalman filter algorithm can be the first predicted waypoint.
The implementation manner of determining the first predicted waypoint of the obstacle at the current moment according to the motion model is not limited herein. For example, the estimated waypoint of the obstacle at the current moment determined according to the motion model may be used as the first predicted waypoint. As another example, the first predicted waypoint may be determined by weighting the first estimated waypoint and the waypoint of the flight trajectory at the previous moment (e.g., the moment immediately before the current moment).
At 302, a first correlation wave gate is determined according to the first predicted waypoint. The first correlation wave gate may refer to a space area centered on the first predicted waypoint. The first correlation wave gate may include a rectangular wave gate, a ring wave gate, a circular wave gate, a spherical wave gate, a fan-shaped wave gate, or the like. The following two aspects can be considered when determining a shape and size of the first correlation wave gate: the probability of relevant echoes falling within the first correlation wave gate should be high, and not allowing too many irrelevant echoes to be in the first correlation wave gate. The relevant echoes can be understood to be echoes having corresponding measurement data related to the flight trajectory, and the irrelevant echoes can be understood to be echoes having corresponding measurement data irrelevant to the flight trajectory.
At 303, if the echoes of the radar detected at the current moment fall within the first correlation wave gate, a current waypoint of the flight trajectory is determined according to the measurement data corresponding to the echoes. An echo of the radar detected at the current moment is also referred to as a “current echo” of the radar. Taking a spherical wave gate and a Cartesian coordinate system as an example, a range of the first correlation wave gate may be determined by the following formula (1).
where (x0, y0) can represent the coordinate corresponding to the first predicted waypoint in the Cartesian coordinate system, (xk, yk) can represent the coordinate of the measurement data corresponding to the echo in the Cartesian coordinate system, and K can represent a radius of the spherical wave gate.
The measurement data output by the radar is generally in the polar coordinate system, and the data processed by the controller is in the Cartesian coordinate system, and hence, the measurement data in the polar coordinate system output by the radar can be converted into the measurement data in the Cartesian coordinate system by using the coordinate system conversion.
x=R*cos(φ) (2)
y=R*sin(φ) (3)
In some embodiments, when the number of echoes falling in the first correlative wave gate is one, determining the current waypoint of the obstacle according to the measurement data corresponding to the echoes can include: using the measurement data corresponding to the echoes as the current waypoint of the flight trajectory.
In some embodiments, when the number of echoes falling in the first correlative wave gate is more than one, determining the current waypoint of the obstacle according to the measurement data corresponding to the echoes can include: selecting one echo among the multiple echoes, and using the measurement data corresponding to the selected echo as the current waypoint of the flight trajectory. In some embodiments, selecting one echo among the multiple echoes can include selecting the echo among the multiple echoes based on the nearest neighbor method.
For example, an update vector of the ith echo at the k+1 time, vi(k+1), can be determined based on the ith echo at the k+1 time, zi(k+1), using the following formula (4).
v
i(k+1)=zi(k+1)−zi(k) (4)
where zi(k) represents the measurement data corresponding to the echo at time k.
The distance gi(k+1) can be determined using the following formula (5) according to vi(k+1).
g
i(k+1)=viT(k+1)S−1(k+1)vi(k+1) (5)
where viT(k+1) represents a transpose of vi(k+1), and S−1(k+1) represents an innovation covariance matrix.
The echo having a smallest gi (k+1) among the multiple echoes can be selected. The implementation method for selecting the echo among multiple echoes based on the nearest neighbor method is not limited herein. For example, the echo with a closest distance to the echo corresponding to the first predicted waypoint among the multiple echoes.
In some embodiments, the obstacle may be not fixed during the flight of the UAV, and thus, in addition to determining the flight trajectory described above, a new flight trajectory different from the flight trajectory described above can be determined. Therefore, when the echo of the radar does not fall within the first correlative wave gate at the current moment, the new flight trajectory may be determined according to the measurement data. The processing method for determining the new flight trajectory according to the measurement data may be similar to the processing method for generating a candidate trajectory in the method shown in
Consistent with the disclosure, the first predicted waypoint of the obstacle at the current moment can be determined by the flight trajectory of the obstacle relative to the UAV at the previous moment. According to the first predicted waypoint, the first correlation wave gate can be determined. If the echoes of the radar fall within the first correlation wave gate at the current moment, the current waypoint of the flight trajectory can be determined according to the measurement data corresponding to the echoes. Based on the measurement data output by the radar, the flight trajectory of the obstacle relative to the UAV can be determined.
During the flight of the UAV, the obstacle may be not fixed. In order to improve an accuracy of the flight trajectory of the obstacle, in addition to the flight trajectory described above, multiple candidate trajectories that may become the flight trajectory of the obstacle can also be determined. When the echoes of the radar do not fall within the first correlation wave gate at the current moment, it may be further determined whether the echoes fall within the second correlation wave gate determined based on the candidate trajectories. The number of the candidate flight trajectories may be one or more, which is not limited herein. The second correlation wave gate is similar to the first correlation wave gate described above, and detailed description thereof is omitted herein.
At 602, if the echoes fall within the second correlation wave gate, the current waypoint of one of the multiple candidate trajectories is determined according to the measurement data corresponding to the echoes. The processes at 602 is similar to the processes at 303, and detailed description thereof is omitted herein.
At 603, if the echoes do not fall within the second correlation wave gate, new candidate trajectories are generated according to the measurement data corresponding to the echoes. During the flight of the UAV, the obstacle may be not fixed. Therefore, in addition to the flight trajectory and candidate trajectories described above, the new candidate trajectories different from the flight trajectory and candidate trajectories described above can also be determined. In some embodiments, generating the trajectories needs to consider establishing trajectories for the obstacle as soon as possible and avoiding false trajectories as far as possible.
In some embodiments, each of the new candidate trajectories can be generated as follows. When the number of second measurement data in first measurement data output by the radar at M consecutive times is greater than or equal to K, the candidate trajectories can be generated. The second measurement data can include the first measurement data whose degree of difference with the measurement data immediately before the first measurement data is less than or equal to a preset difference degree. The candidate trajectory can include waypoint information determined according to each first measurement data. M is a positive integer greater than or equal to 2, and K is a positive integer less than or equal to M.
Assume that when the difference between the first measurement data at the ith moment and the measurement data at the previous moment (i−1)th is less than or equal to the preset difference degree, Zi equals 1. When the difference between the first measurement data at the ith moment and the measurement data at the previous moment (i−1)th is greater than the preset difference degree, Zi equals 0.
During the flight of the UAV, the obstacle may be not fixed. In order to determine the accuracy of the trajectory (e.g., the flight trajectory and the candidate trajectory of the obstacle), a quality of the trajectory can be managed. A higher quality of the trajectory corresponds to a higher accuracy of the trajectory, and a lower quality of the trajectory corresponds to a lower accuracy of the trajectory.
In some embodiments, the quality of the trajectory can be managed as follows. According to the degree of difference between the current waypoint and the first predicted waypoint, the quality of the flight trajectory can be updated. According to the degree of difference between the current waypoint and the second predicted waypoint, the quality of the candidate trajectory can be updated. A smaller degree of difference corresponds to a better quality of the trajectory, and a greater degree of difference corresponds to a worse quality of the trajectory. The current waypoint may be the current waypoint of the candidate trajectory or the flight trajectory described above.
During the flight of the UAV, the candidate trajectory described above may become the flight trajectory of the obstacle, or may not become the flight trajectory of the obstacle. The flight trajectory may also become the candidate trajectory after a period of time. In some embodiments, on the basis of managing the quality of the trajectory, the trajectory can be further managed according to the quality of the trajectory. For example, the candidate trajectory and the flight trajectory can be managed according to the quality of the trajectory.
In some embodiments, managing the candidate trajectory and the flight trajectory according to the quality of the trajectory can include: when the quality of the flight trajectory is less than or equal to a first preset trajectory quality, using the flight trajectory as the candidate trajectory, and when the quality of the candidate trajectory is greater than or equal to a second preset trajectory quality, using the candidate trajectory as the flight trajectory. The first preset trajectory quality and the second preset trajectory quality can be flexibly designed according to actual needs, which are not limited herein.
In some embodiments, in order to reduce the number of trajectories to be managed, the trajectory can also be deleted. Herein, “delete” can be understood as an operation opposite to the operation “generate” described above. Managing the candidate trajectory and the flight trajectory according to the quality of the trajectory may further include: when the quality of the candidate trajectory is less than or equal to a third preset trajectory quality, deleting the candidate trajectory. The third preset trajectory quality can be less than the first preset trajectory quality.
In some embodiments, if the echoes of the radar do not fall within the first correlation wave gate at the current moment, whether the echoes fall within the second correlation wave gate can be determined. If the echoes fall within the second correlation wave gate, the current waypoint of the candidate trajectory can be determined based on the measurement data corresponding to the echoes. If the echoes do not fall within the second correlation wave gate, the new candidate trajectory can be generated based on the measurement data corresponding to the echoes. On the basis of the flight trajectory of the obstacle, the generation and update of the candidate trajectory can be realized, and the accuracy of the flight trajectory of the obstacle can be improved.
As shown in
Referring again to
At 803, the obstacle avoidance is performed according to the flight trajectory. The processes at 803 are similar to the processes at 102, and detailed description thereof is omitted herein.
Consistent with the disclosure, the measurement data that satisfies the preset condition in the measurement data output by the radar can be determined. According to the measurement data output by the radar that satisfies the preset condition, the flight trajectory of the obstacle relative to the UAV can be determined. The amount of data calculation can be reduced, thereby reducing a burden on the controller and increasing a processing speed. The possibility of false trajectory formation can be reduced.
In some embodiments, the controller 1002 determining the flight trajectory of the obstacle relative to the UAV 1000 according to the measurement data output by the radar 1004 can include the following processes. The first predicted waypoint of the obstacle at the current moment is determined according to the flight trajectory of the obstacle relative to the UAV at the previous moment. The first correlation wave gate is determined according to the first predicted waypoint. If the echoes of the radar fall within the first correlation wave gate at the current moment, the current waypoint of the flight trajectory is determined according to the measurement data corresponding to the echoes.
In some embodiments, when the number of echoes falling in the first correlative wave gate is one, the controller 1002 determining the current waypoint of the obstacle according to the measurement data corresponding to the echoes can include: using the measurement data corresponding to the echoes as the current waypoint of the flight trajectory.
In some embodiments, when the number of echoes falling in the first correlative wave gate is more than one, the controller 1002 determining the current waypoint of the obstacle according to the measurement data corresponding to the echoes can include: selecting one echo among the multiple echoes, and using the measurement data corresponding to the selected echo as the current waypoint of the flight trajectory. In some embodiments, the controller 1002 selecting one echo among the multiple echoes can include selecting the echo among the multiple echoes based on the nearest neighbor method.
In some embodiments, the controller 1002 can be further configured to determine whether the echoes fall within a second correlation wave gate in response to the echoes of the radar not falling within the first correlation wave gate at the current moment, determine the current waypoint of one of the multiple candidate trajectories according to the measurement data corresponding to the echoes in response to the echoes falling within the second correlation wave gate, and generate the new candidate trajectories according to the measurement data corresponding to the echoes in response to the echoes not falling within the second correlation wave gate. The second correlation wave gate can refer to the correlation wave gate determined according to the second predicted waypoint. The second predicted waypoint can refer to a predicted waypoint determined according to the candidate trajectory.
In some embodiments, the controller 1002 generating the new candidate trajectories according to the measurement data corresponding to the echoes can include the following processes. When the number of second measurement data in first measurement data output by the radar at M consecutive times is greater than or equal to K, the candidate trajectories can be generated. The second measurement data can include the first measurement data whose degree of difference with the measurement data immediately before the first measurement data is less than or equal to the preset difference degree. The candidate trajectory can include waypoint information determined according to each first measurement data. M is a positive integer greater than or equal to 2, and K is a positive integer less than or equal to M.
In some embodiments, the controller 1002 can be further configured to update the quality of the flight trajectory according to the degree of difference between the current waypoint and the first predicted waypoint, and update the quality of the candidate trajectory according to the degree of difference between the current waypoint and the second predicted waypoint. A smaller degree of difference corresponds to a better quality of the trajectory, and a greater degree of difference corresponds to a worse quality of the trajectory.
In some embodiments, the controller 1002 can be further configured to manage the candidate trajectory and the flight trajectory according to the quality of the trajectory. In some embodiments, the controller 1002 managing the candidate trajectory and the flight trajectory according to the quality of the trajectory can include: when the quality of the flight trajectory is less than or equal to the first preset trajectory quality, using the flight trajectory as the candidate trajectory, and when the quality of the candidate trajectory is greater than or equal to the second preset trajectory quality, using the candidate trajectory as the flight trajectory.
In some embodiments, the controller 1002 managing the candidate trajectory and the flight trajectory according to the quality of the trajectory can further include: when the quality of the candidate trajectory is less than or equal to the third preset trajectory quality, deleting the candidate trajectory. The third preset trajectory quality can be less than the first preset trajectory quality.
In some embodiments, the controller 1002 determining the first predicted waypoint of the obstacle at the current moment according to the flight trajectory of the obstacle relative to the UAV at the previous moment can include: determining the motion model of the obstacle according to the flight trajectory of the obstacle relative to the UAV at the previous moment, and determining the first predicted waypoint of the obstacle at the current moment according to the motion model.
In some embodiments, the controller 1002 determining the first predicted waypoint of the obstacle at the current moment according to the motion model can include: determining the estimated waypoint of the obstacle at the current moment according to the motion model, and determining the first predicted waypoint of the obstacle at the current moment using the Kalman algorithm based on the waypoint at the previous moment and the estimated waypoint.
In some embodiments, the controller 1002 can be further configured to determine the measurement data that satisfies the preset condition from the measurement data output by the radar before using the measurement data output by the radar. The controller 1002 determining the flight trajectory of the obstacle relative to the UAV according to the measurement data output by the radar can include: determining the flight trajectory of the obstacle relative to the UAV according to the measurement data output by the radar that satisfies the preset condition.
In some embodiments, the preset condition can include the distance threshold condition and/or the angle threshold condition. In some embodiments, the controller 1002 performing the obstacle avoidance according to the flight trajectory can include controlling the flight attitude of the UAV according to the flight trajectory of the obstacle relative to the UAV to perform the obstacle avoidance.
In some embodiments, the controller 1002 can be further configured to control the radar 1004 to continuously rotate, and obtain the measurement data of the radar 1004 during continuous rotation. In some embodiments, when the radar 1004 is continuously rotating, the radar 1004 can emit the radar waves toward the front direction, the lower front direction, the downward direction, the back direction, the lower back direction, and the upward direction of the UAV 1000. In some embodiments, the direction of the rotation axis of the radar 1004 may be parallel to the pitch axis of the UAV 1000. The UAV 100 can include a multi-rotor UAV, for example, a four-rotor UAV.
The controller 1002 of the UAV 1000 can be configured to execute the methods in
Some or all of the processes of the method described above can be executed by hardware running program instructions. The program may be stored in a computer-readable storage medium. When the program is executed, the processes of the method are executed. The computer-readable storage medium can include a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, an optical disk, or another medium that can store program codes.
It is intended that the disclosed embodiments be considered as exemplary only and not to limit the scope of the disclosure. Changes, modifications, alterations, and variations of the above-described embodiments may be made by those skilled in the art within the scope of the disclosure.
This application is a continuation of International Application No. PCT/CN2017/117043, filed on Dec. 18, 2017, the entire content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/117043 | Dec 2017 | US |
Child | 16879482 | US |