Urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicle
By generating reference paths and relative coordinate systems, acquiring dynamic obstacle observation data, extracting motion features, determining the probability distribution of intent, and predicting risk areas, the problem of obstacle avoidance in urban low-altitude environments with uncertain motion intent of dynamic obstacles is solved, achieving forward-looking and risk-reasonable path planning and automatic obstacle avoidance.
Patent Information
- Application Number
- CN202611661876.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies lack foresight in obstacle avoidance decision-making when the movement intentions of dynamic obstacles are uncertain in urban low-altitude environments. This makes it difficult to achieve forward-looking and risk-reasonable path planning and automatic obstacle avoidance. In particular, in multi-obstacle scenarios, the combined risks and positioning conditions are not fully considered, resulting in insufficient stability.
A reference path is generated by acquiring global waypoints, a relative coordinate system is established, dynamic obstacle observation data is acquired and observation trajectory data is maintained, motion features are extracted, the intention probability distribution is determined, a predicted risk area is generated, and the joint risk area is corrected when multiple obstacles exist. A cost function is constructed to solve for the optimal control sequence.
It achieves forward-looking and risk-reasonable path planning and automatic obstacle avoidance while taking into account obstacle avoidance safety, trajectory smoothness and target approach in situations where the movement intention of dynamic obstacles is uncertain. It reduces unnecessary avoidance maneuvers, maintains robustness, and achieves this.
Smart Images

Figure CN123137355A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of unmanned aerial vehicle (UAV) control, and more particularly to a method for urban path planning and automatic obstacle avoidance for low-altitude UAVs. Background Technology
[0002] With the increasing application of low-altitude drones in urban environments, these drones need to fly along reference paths and possess automatic obstacle avoidance capabilities. Dynamic obstacles such as other drones, birds, and construction equipment exist in the low-altitude urban airspace, and their motion states may change. Existing technologies typically rely on sensor observations to predict the motion of dynamic obstacles and perform local obstacle avoidance accordingly. However, current technologies still have shortcomings in obstacle avoidance decisions when the motion state of dynamic obstacles changes.
[0003] In existing local obstacle avoidance technologies, the foresight of obstacle avoidance decisions needs improvement. When the direction or speed of a dynamic obstacle changes, the timing and extent of avoidance may not be ideal, potentially resulting in avoidance that is too early, too late, or an unreasonable detour. Therefore, existing technologies still have room for improvement in path planning and obstacle avoidance performance under conditions of uncertain dynamic obstacle movement intentions.
[0004] When multiple dynamic obstacles exist in the low-altitude urban environment, existing technologies typically handle each obstacle individually, failing to adequately consider the combined risks posed by multiple obstacles. Furthermore, the stability of obstacle avoidance decisions needs improvement under less-than-ideal positioning conditions. Summary of the Invention
[0005] The purpose of this invention is to propose a method for urban path planning and automatic obstacle avoidance for low-altitude unmanned aerial vehicles (UAVs) to address how to achieve forward-looking and risk-reasonable UAV path planning and automatic obstacle avoidance in dynamic urban low-altitude environments when the movement intentions of dynamic obstacles are uncertain and may change.
[0006] To address the aforementioned technical problems, embodiments of the present invention provide a method for urban path planning and automatic obstacle avoidance for low-altitude unmanned aerial vehicles (UAVs), employing the following technical solution, including:
[0007] Obtain the global waypoint sequence and generate a reference path based on the global waypoint sequence;
[0008] Acquire dynamic obstacle observation data within the drone's perception range, and maintain observation trajectory data for each dynamic obstacle;
[0009] Motion features are extracted from the observed trajectory data. Based on the motion features, the probability that the dynamic obstacle belongs to each of the multiple preset motion intention modes is determined, and the intention probability distribution is obtained.
[0010] Based on the intent probability distribution and the motion models corresponding to the multiple preset motion intent modes, a predicted position distribution under each preset motion intent mode is generated, and the predicted position distribution under each preset motion intent mode is weighted according to the intent probability distribution to obtain the predicted risk area of the dynamic obstacle.
[0011] When multiple dynamic obstacles exist, a joint risk area is determined based on the overlap between the predicted risk areas of each dynamic obstacle, and the risk value of the joint risk area is corrected.
[0012] Based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system, a cost function is constructed, which includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term.
[0013] Using the control sequence of the UAV as the optimization variable, the cost function is solved in a relative coordinate system with the reference path as the reference to obtain the optimal control sequence, and the current control command is output according to the optimal control sequence.
[0014] Furthermore, the extraction of motion features based on the observed trajectory data includes:
[0015] The position sequence, velocity sequence, and heading sequence are obtained from the observed trajectory data according to time windows;
[0016] The trajectory curvature features are determined based on the position sequence, the heading change features are determined based on the heading sequence, the speed change features are determined based on the speed sequence, the relative azimuth change features are determined based on the relative position between the dynamic obstacle and the UAV, and the observation consistency features are determined based on the deviation between the position sequence and the fitted trajectory.
[0017] The motion feature is a combination of at least two of the trajectory curvature feature, the heading change feature, the velocity change feature, the relative azimuth change feature, and the observation consistency feature.
[0018] Furthermore, based on the aforementioned motion characteristics, the probability of the dynamic obstacle belonging to each of the multiple preset motion intention patterns is determined, resulting in an intention probability distribution, including:
[0019] Multiple preset motion intention modes are set, including at least three of the following: constant straight-line mode, coordinated turning mode, deceleration and stop mode, acceleration and departure mode, and evasive maneuver mode.
[0020] Based on the feature distribution corresponding to the motion features and each preset motion intention pattern, calculate the posterior probability that the dynamic obstacle belongs to each preset motion intention pattern;
[0021] The posterior probability obtained in the current control cycle and the probability obtained in the previous control cycle are time-smoothed to obtain the intention probability distribution.
[0022] Furthermore, the above-mentioned generation of predicted position distributions under each preset motion intention mode based on the intent probability distribution and the motion models corresponding to the multiple preset motion intention modes includes:
[0023] For each preset motion intention mode, based on the current observation state of the dynamic obstacle and the motion model corresponding to the preset motion intention mode, the predicted position at multiple future moments is derived by forward extrapolation.
[0024] Based on the uncertainty of the current observation state and the process uncertainty in the forward extrapolation process, the position uncertainty corresponding to each predicted position is determined;
[0025] Based on the predicted position and the position uncertainty, the predicted position distribution under the preset motion intention mode is obtained.
[0026] Furthermore, the predicted position distribution under each preset motion intention mode is weighted according to the aforementioned intention probability distribution to obtain the predicted risk area of the dynamic obstacle, including:
[0027] Using the probability corresponding to each preset motion intention mode as a weight, the predicted position distribution under each preset motion intention mode is weighted and summed to obtain the weighted position distribution;
[0028] The weighted location distribution is expanded based on at least one of the drone size and safety distance to obtain the predicted risk area.
[0029] Furthermore, based on the overlapping relationship between the predicted risk areas of each dynamic obstacle, a joint risk area is determined, and the risk value of the joint risk area is corrected, including:
[0030] For any two dynamic obstacles, at each time point in the prediction time domain, calculate the ratio between the overlapping volume of the predicted risk region of the two dynamic obstacles and the smaller volume of the two dynamic obstacles.
[0031] When the ratio is greater than a preset ratio threshold, the corresponding overlapping area is determined as a joint risk area;
[0032] The risk amplification factor is determined based on the ratio, and the risk cost term of the joint risk area is corrected using the risk amplification factor.
[0033] When the movement intentions of two dynamic obstacles are detected to influence each other, the range of the predicted risk area of the dynamic obstacles involved in the mutual influence is increased, and the predicted risk areas of the two are merged into a joint risk area.
[0034] Furthermore, the above-mentioned cost function is solved in a relative coordinate system with the reference path as the reference, using the control sequence of the UAV as the optimization variable, to obtain the optimal control sequence, including:
[0035] Using the reference path as a reference, establish relative coordinate systems along the tangential, transverse, and vertical directions of the reference path;
[0036] In the relative coordinate system, control perturbations along the tangential, lateral, and vertical directions are applied to the nominal control sequence to generate candidate control sequences;
[0037] The candidate control sequence is forward extrapolated to obtain the candidate trajectory;
[0038] The risk cost term is calculated based on the relationship between the candidate trajectory, the predicted risk region, and the joint risk region, and the cost function value is calculated by combining the target cost term, the smoothing cost term, and the constraint cost term.
[0039] The nominal control sequence is updated based on the cost function value of each candidate trajectory to obtain the optimal control sequence.
[0040] To address the aforementioned technical problems, this invention also provides a low-altitude unmanned aerial vehicle (UAV) urban path planning and automatic obstacle avoidance device, employing the following technical solution:
[0041] A low-altitude unmanned aerial vehicle (UAV) urban path planning and automatic obstacle avoidance device includes:
[0042] The path generation module is used to obtain a global waypoint sequence and generate a reference path based on the global waypoint sequence.
[0043] The obstacle tracking module is used to acquire dynamic obstacle observation data within the drone's perception range and maintain observation trajectory data for each dynamic obstacle.
[0044] The intent inference module is used to extract motion features based on the observed trajectory data, determine the probability that the dynamic obstacle belongs to each of the multiple preset motion intent patterns based on the motion features, and obtain the intent probability distribution.
[0045] The risk area generation module is used to generate the predicted position distribution under each preset motion intention mode according to the intention probability distribution and the motion model corresponding to the multiple preset motion intention modes, and to weight the predicted position distribution under each preset motion intention mode according to the intention probability distribution to obtain the predicted risk area of the dynamic obstacle.
[0046] The joint risk determination module is used to determine a joint risk area based on the overlapping relationship between the predicted risk areas of each dynamic obstacle when multiple dynamic obstacles exist, and to correct the risk value of the joint risk area.
[0047] The cost function construction module is used to construct a cost function based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system. The cost function includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term.
[0048] The trajectory optimization module is used to solve the cost function in a relative coordinate system with the reference path as the reference, using the control sequence of the UAV as the optimization variable, to obtain the optimal control sequence, and output the current control command according to the optimal control sequence.
[0049] To address the aforementioned technical problems, embodiments of the present invention also provide a computer device, which employs the following technical solution:
[0050] A computer device includes a memory and a processor, the memory storing computer-readable instructions, wherein the processor, when executing the computer-readable instructions, implements the steps of the urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles as described above.
[0051] To address the aforementioned technical problems, embodiments of the present invention also provide a computer-readable storage medium, employing the technical solution described below:
[0052] A computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the urban path planning and automatic obstacle avoidance method for a low-altitude unmanned aerial vehicle as described above.
[0053] Compared with the prior art, the present invention has the following main advantages:
[0054] This invention discloses a method for urban path planning and automatic obstacle avoidance for low-altitude unmanned aerial vehicles (UAVs). It generates a reference path by acquiring global waypoints and establishes a relative coordinate system based on this reference path during subsequent obstacle avoidance. By acquiring dynamic obstacle observation data and maintaining observation trajectory data, it extracts motion features from the observation trajectory data to determine the probability distribution of dynamic obstacles belonging to multiple preset motion intention modes. Based on the intention probability distribution and the motion model corresponding to each preset motion intention mode, it generates a predicted position distribution and weights it to obtain a predicted risk area. This ensures that the risk area reflects the uncertainty of dynamic obstacle behavior, rather than relying solely on a single kinematic prediction. This method is applicable when multiple dynamic obstacles exist. When encountering obstacles, the joint risk area is determined based on the overlapping relationship between predicted risk areas, and its risk value is corrected. This is beneficial for considering the risks formed by multiple obstacles. On this basis, a cost function including risk cost, target cost, smoothing cost, and constraint cost is constructed, and the optimal control sequence is solved in the reference path relative coordinate system. Thus, under the condition that the movement intention of dynamic obstacles is uncertain, obstacle avoidance safety, trajectory smoothness, and target approach are taken into account, unnecessary avoidance maneuvers are reduced, and good robustness is maintained for situations with unsatisfactory positioning conditions. This enables UAVs to achieve forward-looking and risk-reasonable path planning and automatic obstacle avoidance in urban low-altitude dynamic environments. Attached Figure Description
[0055] To more clearly illustrate the solutions in this invention, the accompanying drawings used in the description of the embodiments of this invention will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0056] Figure 1 This is an exemplary system architecture diagram in which the present invention can be applied;
[0057] Figure 2 This is a flowchart of an embodiment of the urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles of the present invention;
[0058] Figure 3 This is a schematic diagram of a structure of an embodiment of the urban path planning and automatic obstacle avoidance device for low-altitude unmanned aerial vehicles of the present invention;
[0059] Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device of the present invention. Detailed Implementation
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains; the terminology used herein in the specification is for the purpose of describing particular embodiments only and is not intended to limit the invention; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings are used to distinguish different objects and not to describe a particular order.
[0061] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0062] To enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0063] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0064] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0065] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer Ⅲ) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, and desktop computers, etc.
[0066] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
[0067] It should be noted that the urban path planning and automatic obstacle avoidance method for low-altitude UAVs provided in the embodiments of the present invention is generally executed by the terminal device, and correspondingly, the urban path planning and automatic obstacle avoidance device for low-altitude UAVs is generally installed in the terminal device.
[0068] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0069] The urban low-altitude environment is characterized by high-density building obstruction, complex airflow disturbances, and the coexistence of various types of dynamic obstacles. High-density buildings can lead to limited field of view, non-line-of-sight obstruction, multipath reflection, and positioning degradation; building-around-flow, street valley winds, gusts, and turbulence can make the motion state of UAVs and dynamic obstacles more prone to abrupt changes; dynamic obstacles are diverse in type, have large differences in maneuverability, and may affect each other.
[0070] Existing local obstacle avoidance technologies mostly rely on single kinematic predictions, making it difficult to achieve proactive avoidance when the obstacle's movement intention is uncertain and changing. This can easily lead to avoidance being too early, too late, unreasonable in magnitude, or unnecessary detours. In multi-obstacle scenarios, each obstacle is usually handled independently, without fully considering the joint risks formed by overlapping predicted risk areas and coupled intentions. At the same time, obstacle avoidance decisions that rely on global coordinate systems or absolute positioning lack stability when positioning conditions are not ideal.
[0071] Continue to refer to Figure 2 A flowchart illustrating an embodiment of the urban path planning and automatic obstacle avoidance method for a low-altitude unmanned aerial vehicle (UAV) according to the present invention is shown. The urban path planning and automatic obstacle avoidance method for the low-altitude UAV includes the following steps:
[0072] Step S1: Obtain the global waypoint sequence and generate a reference path based on the global waypoint sequence.
[0073] In this embodiment, the urban path planning and automatic obstacle avoidance method for low-altitude UAVs operates on electronic devices (e.g., Figure 1 The terminal device shown can send or receive data via wired or wireless connection. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G / 5G connections, Wi-Fi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra-wide band) connections, and other currently known or future wireless connection methods.
[0074] It should be noted that the global waypoint sequence is a sequential arrangement of multiple waypoints representing the UAV's global flight path. The reference path is a path generated based on the global waypoint sequence, used for UAV flight tracking and subsequent establishment of a relative coordinate system.
[0075] In this embodiment, the UAV receives a global waypoint sequence from the global path planner via a communication link. Each waypoint in the global waypoint sequence includes a three-dimensional position. The UAV performs cubic B-spline interpolation on the global waypoint sequence to fit the discrete waypoints into a continuously differentiable reference path. The reference path is represented by an arc length parameter. The UAV discretizes and stores the reference path at fixed arc length intervals as a lookup table. The lookup table includes the position, tangent vector, normal vector, and binormal vector on the reference path. The lookup table is used to subsequently transform the UAV state and predicted risk area to a relative coordinate system based on the reference path.
[0076] The source of the global waypoint sequence is not limited to the global path planner; it can also be the mission planning system, ground station, pre-stored files, operator input, or data sent by an external system. The reference path is not limited to cubic B-spline interpolation; it can also be other interpolation, fitting, smoothing, parameterization, or discrete storage methods.
[0077] For example, before a city logistics drone takes off from a delivery station, the ground station sends the drone a global waypoint sequence from the delivery station to the target building. This global waypoint sequence traverses two city blocks. After receiving this global waypoint sequence, the drone's onboard computing equipment generates a reference path using cubic B-spline interpolation and stores the reference path as a lookup table. After takeoff, the drone flies along this reference path. The drone's forward-facing sensor has an effective detection range of 30m, a forward field of view of 60°, and a control frequency of 30Hz.
[0078] Step S2: Obtain dynamic obstacle observation data within the drone's perception range, and maintain observation trajectory data for each dynamic obstacle.
[0079] It should be noted that the perception range of a drone is the spatial range within which the drone itself or an associated information source can acquire information about dynamic obstacles. Dynamic obstacles are non-static objects within the perception range. Dynamic obstacle observation data is observational information about dynamic obstacles. Observation trajectory data is a set of observational information maintained over time for each dynamic obstacle.
[0080] In this embodiment, the UAV acquires dynamic obstacle observation data within its perception range using an onboard LiDAR and visual sensor. The LiDAR outputs point clouds, and the visual sensor outputs images. The UAV downsamples the point clouds, removes ground points, and filters noise; it performs target detection on the images, associating candidate targets in the point clouds and images to obtain dynamic obstacle observation data. This dynamic obstacle observation data includes the position, velocity, and observation timestamp of the dynamic obstacle. The UAV maintains observation trajectory data for each dynamic obstacle. The observation trajectory data is stored in a circular queue, the length of which corresponds to a preset time window. During each control cycle, the UAV writes the latest dynamic obstacle observation data to the circular queue and removes older data that exceeds the preset time window. The dynamic obstacle observation data is arranged chronologically in the circular queue, forming the observation trajectory data for that dynamic obstacle.
[0081] For example, an urban logistics drone flies along a reference path. The drone's forward-facing lidar and visual sensors detect a delivery drone from another company 25 meters ahead. This delivery drone is within a 50-degree forward field of view. The drone processes the lidar point cloud and visual image to obtain the delivery drone's position and velocity. The drone then establishes observation trajectory data for this delivery drone. The preset time window for the observation trajectory data is 1.5 seconds. The control frequency is 30 Hz, and the control cycle is approximately 0.033 seconds. Approximately 45 observation points are stored in a circular queue. In each control cycle, the drone writes new position and velocity data into the circular queue, forming the observation trajectory data for the most recent 1.5 seconds.
[0082] Step S3: Extract motion features based on the observed trajectory data, and determine the probability that the dynamic obstacle belongs to each of the multiple preset motion intention modes based on the motion features, thereby obtaining the intention probability distribution.
[0083] It should be noted that motion features are quantities extracted from observed trajectory data to characterize the motion state or changes in motion state of dynamic obstacles. Multiple preset motion intention patterns are pre-defined patterns representing the possible motion behaviors of dynamic obstacles. The intention probability distribution is the set of probabilities that a dynamic obstacle belongs to each preset motion intention pattern.
[0084] In this embodiment, the Gaussian mixture model consists of M Gaussian components. M is the number of preset motion intention patterns. Each Gaussian component corresponds to one preset motion intention pattern. The mean of the m-th Gaussian component is μ. m The covariance of the m-th Gaussian component is Σm. The prior probability of the m-th Gaussian component is π. m In the offline phase, motion feature vectors for each preset motion intention mode are collected. For each preset motion intention mode, the mean and covariance of the corresponding Gaussian component are estimated based on the motion feature vectors of that mode. Prior probabilities are calculated based on the proportion of each preset motion intention mode appearing in the offline data. In the online phase, the motion feature vector f is input. The probability density of each Gaussian component with respect to the motion feature vector f is calculated. The product of the prior probability and the probability density of each Gaussian component is summed to obtain the normalized denominator. The product of the prior probability and the probability density of each Gaussian component is divided by the normalized denominator to obtain the posterior probability of the preset motion intention mode corresponding to that Gaussian component. The posterior probabilities of all preset motion intention modes constitute the intention probability distribution.
[0085] In this embodiment, the UAV extracts motion features from the observed trajectory data in each control cycle. The UAV slides across the observed trajectory data according to a time window, capturing the position sequence, velocity sequence, and heading sequence within the time window. The UAV calculates motion features based on the position sequence, velocity sequence, and heading sequence. Motion features include heading change rate features, velocity trend features, trajectory curvature features, relative orientation change features, and observation consistency features. The UAV concatenates the motion features into a motion feature vector. The dimension of the motion feature vector is 10. The UAV inputs the motion feature vector into a pre-set classification model. The classification model uses a Gaussian mixture model. The classification model outputs the probability that a dynamic obstacle belongs to each of several preset motion intention modes. The multiple preset motion intention modes include constant straight-line mode, coordinated turning mode, deceleration and stop mode, acceleration and departure mode, and avoidance maneuver mode. The UAV normalizes the probabilities output by the classification model to obtain an intention probability distribution. The UAV performs time smoothing on the intention probability distribution. The time smoothing coefficient is 0.3. The time-smoothed intention probability distribution is used to subsequently generate the predicted position distribution.
[0086] For example, the drone maintains observation trajectory data for a delivery drone 25m ahead. The preset time window for observing the trajectory data is 1.5s. The drone extracts motion features from the observed trajectory data. The standard deviation of the heading change rate is 0.15 rad / s. The maximum heading change is 0.25 rad. The speed trend is +0.3. The speed change is 0.5 m / s. The average trajectory curvature is 0.021m. -1The relative azimuth rate of change is -0.1 rad / s. The observation residual is 0.08 m. The UAV inputs the above motion characteristics into a Gaussian mixture model. The Gaussian mixture model outputs the probability that the delivery UAV belongs to one of five preset motion intention modes. The probability of constant straight-ahead mode is 0.15. The probability of coordinated turning mode is 0.10. The probability of deceleration and stopping mode is 0.05. The probability of acceleration and departure mode is 0.60. The probability of avoidance maneuver mode is 0.10. The UAV uses a time smoothing coefficient of 0.3 to smooth the above probabilities over time. The time-smoothed intention probability distribution is: constant straight-ahead mode 0.18, coordinated turning mode 0.12, deceleration and stopping mode 0.06, acceleration and departure mode 0.55, and avoidance maneuver mode 0.09.
[0087] Step S4: Based on the intent probability distribution and the motion models corresponding to the multiple preset motion intent modes, generate the predicted position distribution under each preset motion intent mode, and weight the predicted position distribution under each preset motion intent mode according to the intent probability distribution to obtain the predicted risk area of the dynamic obstacle.
[0088] It should be noted that the motion model consists of multiple preset motion intention patterns, each used to predict the future position of a dynamic obstacle. The predicted position distribution is the distribution of possible future positions of dynamic obstacles under each preset motion intention pattern. The predicted risk region is a weighted area representing the space that a dynamic obstacle may occupy in the future and the magnitude of the risk.
[0089] In this embodiment, for each preset motion intention mode, the UAV uses the motion model corresponding to that preset motion intention mode to extrapolate the future position of the dynamic obstacle within the prediction time domain, starting from the current observed state of the dynamic obstacle. The prediction time domain is 2.0s, divided into 20 steps, each step lasting 0.1s. The UAV performs the above extrapolation for all preset motion intention modes to obtain the predicted position distribution under each preset motion intention mode. Then, the UAV weights the predicted position distribution under each preset motion intention mode according to the intention probability distribution. Specifically, the UAV uses the probability corresponding to each preset motion intention mode as the weight of the predicted position distribution under that mode, and weights the predicted position distribution under each mode to obtain the predicted risk region of the dynamic obstacle. The predicted risk region represents the space that the dynamic obstacle may occupy in the future prediction time domain and the corresponding risk level. The confidence level of the predicted risk region is 0.90. The UAV expands the predicted risk region according to the UAV size and safety distance. The expanded predicted risk region is used to construct the cost function subsequently.
[0090] For example, the drone generates predicted position distributions for each of the five preset motion intention modes based on the time-smoothed probability distribution of the intention and the corresponding motion models. The drone then weights the predicted position distributions for each preset motion intention mode using the probability corresponding to that mode as a weight, resulting in the predicted risk area for the delivery drone. The probability of the acceleration departure mode is 0.55. The predicted position distribution corresponding to the acceleration departure mode shows that the delivery drone is accelerating away from its current path area. The weighted predicted risk area has a low risk density in the drone's path space. The prediction time domain is 2.0 s. The prediction step size is 0.1 s. The number of prediction steps is 20. The confidence level of the predicted risk area is 0.90.
[0091] Step S5: When there are multiple dynamic obstacles, determine the joint risk area based on the overlap relationship between the predicted risk areas of each dynamic obstacle, and correct the risk value of the joint risk area.
[0092] It should be noted that overlap refers to the spatial or temporal overlap of the predicted risk areas of various dynamic obstacles. A joint risk area is the region formed by the overlap of the predicted risk areas of multiple dynamic obstacles. The risk value is a quantity representing the magnitude of the risk within the joint risk area.
[0093] When multiple dynamic obstacles exist, their predicted risk areas may overlap, creating a combined risk greater than that of a single dynamic obstacle. Treating each obstacle independently may underestimate this combined risk. Therefore, it is necessary to determine the combined risk area based on the overlap relationship and adjust the risk value of this combined risk area accordingly.
[0094] In this embodiment, the UAV determines whether multiple dynamic obstacles exist. If multiple dynamic obstacles exist, the UAV compares whether the predicted risk regions of each dynamic obstacle overlap. Specifically, at each time point in the prediction time domain, the UAV calculates the ratio between the overlapping volume of the predicted risk regions of any two dynamic obstacles and the smaller volume of the overlapping volume. When the ratio is greater than a preset ratio threshold, the UAV identifies the corresponding overlapping region as a joint risk region. The preset ratio threshold is 0.3. The UAV determines a risk amplification factor based on the ratio. The risk amplification factor is dynamically adjusted based on the ratio. The UAV uses the risk amplification factor to correct the risk cost term of the joint risk region. The corrected joint risk region is used to subsequently construct the cost function.
[0095] For example, a drone flies over an urban construction area and detects three dynamic obstacles: drone A performing aerial photography, bird B, and drone C avoiding drone A. The drone generates predicted risk regions for drone A, bird B, and drone C respectively. The overlap between the predicted risk regions of drone A and drone C is 0.55. This overlap is greater than a preset ratio threshold of 0.3. The drone defines the overlapping portion of the predicted risk regions of drone A and drone C as the joint risk region. The risk amplification gain is 0.5. The joint risk amplification factor is 1 plus 0.5 multiplied by 0.55, which equals 1.275. The drone uses the joint risk amplification factor of 1.275 to correct the risk value of the joint risk region. The corrected joint risk region is used to subsequently construct the cost function.
[0096] Step S6: Based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system, construct a cost function, which includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term.
[0097] It should be noted that the relative coordinate system is a coordinate system based on the reference path. The representation of the predicted risk region in the relative coordinate system is the expression obtained after transforming the predicted risk region to the relative coordinate system. The representation of the corrected joint risk region in the relative coordinate system is the expression obtained after transforming the corrected joint risk region to the relative coordinate system. The cost function is a function that evaluates the quality of candidate control sequences or candidate trajectories. The risk cost term is a term in the cost function that represents the magnitude of the risk. The target cost term is a term in the cost function that represents the degree of convergence to the target. The smoothing cost term is a term in the cost function that represents the smoothness of trajectory or control changes. The constraint cost term is a term in the cost function that represents the degree of constraint violation.
[0098] In this embodiment, the UAV transforms the predicted risk area into a relative coordinate system based on the reference path. Specifically, the UAV transforms the center and extent of the predicted risk area from the coordinate system containing the dynamic obstacle observation data to the relative coordinate system, obtaining a representation of the predicted risk area in the relative coordinate system. The UAV also transforms the corrected joint risk area into the relative coordinate system, obtaining a representation of the corrected joint risk area in the relative coordinate system. Then, the UAV constructs a cost function. The cost function includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term. The risk cost term is calculated based on the representations of the predicted risk area and the corrected joint risk area in the relative coordinate system. The target cost term is calculated based on the relationship between the UAV and the target point. The smoothing cost term is calculated based on the changes in the control sequence. The constraint cost term is calculated based on the UAV's flight constraints. The cost function is a weighted sum of the risk cost term, the target cost term, the smoothing cost term, and the constraint cost term. The weight of the risk cost term is 100. The weight of the target cost term is 10. The weight of the smoothing cost term is 1. The weight of the constraint cost term is 50.
[0099] For example, the UAV transforms the predicted risk area and the corrected joint risk area into a relative coordinate system based on the reference path. The UAV constructs a cost function based on these representations. The cost function includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term. The risk cost term evaluates the degree to which the candidate trajectory enters the predicted risk area and the corrected joint risk area. The target cost term evaluates the degree to which the candidate trajectory approaches the target point. The smoothing cost term evaluates the smoothness of the candidate trajectory. The constraint cost term evaluates the degree to which the candidate trajectory violates flight constraints. The risk cost term has a weight of 100. The target cost term has a weight of 10. The smoothing cost term has a weight of 1. The constraint cost term has a weight of 50.
[0100] Step S7: Using the UAV's control sequence as the optimization variable, solve the cost function in a relative coordinate system with the reference path as the reference to obtain the optimal control sequence, and output the current control command based on the optimal control sequence.
[0101] It should be noted that the control sequence is a time-ordered sequence of multiple future control variables for the UAV. Optimization variables are those that can be adjusted during the cost function solution process. The optimal control sequence is the control sequence that makes the cost function meet the set requirements. The current control command is the control variable that needs to be output in the current control cycle.
[0102] In this embodiment, the UAV uses the control sequence as the optimization variable. The UAV generates candidate control sequences in a relative coordinate system based on the reference path. Centered on the current optimal control sequence, the UAV applies a Gaussian perturbation to generate 800 candidate control sequences. The UAV performs forward extrapolation on each candidate control sequence to obtain the corresponding candidate trajectory. The UAV calculates the cost function value based on the candidate trajectory. The cost function value includes a risk cost term, an objective cost term, a smoothing cost term, and a constraint cost term. Based on the cost function values of each candidate trajectory, the UAV updates the optimal control sequence using importance weighting. The UAV selects the candidate control sequence with the smallest cost function value as the optimal control sequence. The UAV outputs the current control command based on the optimal control sequence. Specifically, the UAV outputs the control quantity at the current moment in the optimal control sequence as the current control command to the UAV flight control system. The UAV flight control system controls the UAV flight according to the current control command. The control frequency is 30Hz. In the next control cycle, the UAV repeats the above steps.
[0103] For example, the UAV generates 800 candidate control sequences in a relative coordinate system based on the reference path, using the control sequence as the optimization variable. The UAV performs forward extrapolation on the candidate control sequences to obtain candidate trajectories. The UAV calculates the cost function value for each candidate trajectory. Based on the cost function values of each candidate trajectory, the UAV updates the optimal control sequence by weighting importance. The temperature parameter is 1.0. The UAV outputs the control quantity at the current moment in the optimal control sequence as the current control command. The UAV flies and avoids obstacles according to the current control command. In Example 1, the UAV only makes a lateral offset of 0.8m, smoothly passing through the area without triggering unnecessary obstacle avoidance maneuvers. In Example 2, the UAV bypasses the joint risk area from the left, while avoiding the predicted risk area of bird B. In Example 4, the UAV detects that the probability of the avoidance maneuver mode increases from 0.10 to 0.70 within 0.3s, and adjusts its trajectory in the next control cycle, shifting away from the direction of avoiding the dynamic obstacle.
[0104] This invention generates a reference path by acquiring global waypoints and establishes a relative coordinate system based on this reference path during subsequent obstacle avoidance. It acquires dynamic obstacle observation data and maintains observation trajectory data, extracting motion features from the trajectory data to determine the probability distribution of dynamic obstacles belonging to multiple preset motion intention modes. Based on the probability distribution of intentions and the motion models corresponding to each preset motion intention mode, it generates and weights predicted position distributions to obtain predicted risk regions. This ensures that the risk regions reflect the uncertainty of dynamic obstacle behavior, rather than relying solely on a single kinematic prediction. When multiple dynamic obstacles exist, it determines a joint risk region and corrects its risk value based on the overlap between predicted risk regions, which is beneficial for considering the risks formed by multiple obstacles. On this basis, it constructs a cost function including risk cost, target cost, smoothing cost, and constraint cost, and solves the optimal control sequence in the relative coordinate system of the reference path. Thus, even when the motion intention of dynamic obstacles is uncertain, it balances obstacle avoidance safety, trajectory smoothness, and target approach, reduces unnecessary avoidance maneuvers, and maintains good robustness to unsatisfactory positioning conditions. This enables UAVs to achieve forward-looking and risk-reasonable path planning and automatic obstacle avoidance in urban low-altitude dynamic environments.
[0105] The core of this invention lies not in the selection of a single motion model or a single classifier, but in constructing a complete inference chain, from observed trajectory data to the intent probability distribution, from the intent probability distribution to the predicted risk region, from the predicted risk region to the joint risk region, and finally solving for the optimal control sequence in the relative coordinate system of the reference path. This inference chain elevates obstacle avoidance decision-making from a reaction to the current position to a look-ahead of intent-driven behavior.
[0106] In some optional implementations of this embodiment, the extraction of motion features based on the observed trajectory data includes:
[0107] Position, velocity, and heading sequences are obtained from the observed trajectory data in time windows; trajectory curvature features are determined based on the position sequences, heading change features are determined based on the heading sequences, velocity change features are determined based on the velocity sequences, relative azimuth change features are determined based on the relative positions between the dynamic obstacle and the UAV, and observation consistency features are determined based on the deviation between the position sequences and the fitted trajectory; at least two of the trajectory curvature features, heading change features, velocity change features, relative azimuth change features, and observation consistency features are combined to form the motion features.
[0108] In this embodiment, position, velocity, and heading sequences are obtained from the observed trajectory data according to time windows. Let N be the number of elements within a time window. w There are 10 observation points. The location sequence is q1 to q2. M The velocity sequence is from v1 to v.M The heading sequence is ψ1 to ψ2. M .
[0109] The trajectory curvature characteristics are determined based on the position sequence. A quadratic curve is fitted to the position sequence to obtain the fitted curve. The average curvature and rate of change of curvature within the time window are calculated. The average curvature is used to distinguish between linear and curvilinear motion. The rate of change of curvature is used to distinguish between stable curvature changes and abrupt curvature changes.
[0110] The characteristics of course change are determined based on the course sequence. The standard deviation of the course change rate is obtained by taking the square root of the square of the difference between the course at each observation point and the average course within the time window. The maximum course change is equal to the maximum absolute value of the difference between each course and the first course within the time window. A small course change rate indicates a high probability of a constant straight-ahead pattern. A large course change rate and continuous same-direction pattern indicate a high probability of a coordinated turn pattern. A large course change rate and alternating directions indicate a high probability of an evasive maneuver pattern.
[0111] Determine speed change characteristics based on the speed sequence. The speed trend is the average of the signs of adjacent speed differences. The speed change amplitude is the average of the absolute values of adjacent speed differences. A continuously decreasing speed indicates a high probability of a deceleration and stopping mode. A continuously increasing speed indicates a high probability of an acceleration and disengagement mode.
[0112] The relative azimuth change characteristics are determined based on the relative position between the dynamic obstacle and the drone. The relative azimuth angle is calculated using atan2 from the positions of the dynamic obstacle and the drone. The rate of change of the relative azimuth angle is used to identify avoidance maneuver patterns. If the dynamic obstacle turns away from the drone, the probability of an avoidance maneuver pattern increases.
[0113] The consistency characteristics of observations are determined based on the deviation between the position sequence and the fitted trajectory. The root mean square of the observation residuals is obtained by taking the square root of the square mean of the distances between each observation point and its corresponding position on the fitted trajectory. Large residuals indicate high observation noise or abrupt changes in motion patterns. A larger residual suggests a more dispersed probability distribution.
[0114] At least two of the following characteristics are combined to form a motion feature: trajectory curvature feature, heading change feature, velocity change feature, relative azimuth change feature, and observation consistency feature. In a preferred embodiment, all of the above features are concatenated into a motion feature vector f. The dimension D of the motion feature vector f is equal to 10.
[0115] For example, the drone maintains observation trajectory data for a delivery drone 25 meters ahead. The preset time window for the observation trajectory data is 1.5 seconds. The control frequency is 30 Hz, the control cycle is approximately 0.033 seconds, and approximately 45 observation points are stored in a circular queue. The drone extracts motion features from the observation trajectory data. The standard deviation of the heading change rate is 0.15 radians per second. The maximum heading change is 0.25 radians. The speed trend is +0.3. The speed change amplitude is 0.5 meters per second. The average trajectory curvature is 0.021 meters per second. The relative azimuth change rate is -0.1 radians per second. The observation residual is 0.08 meters. The drone concatenates the above features into a motion feature vector. The motion feature vector is used to subsequently determine the intent probability distribution.
[0116] This invention extracts multiple types of motion features from observed trajectory data and combines at least two of them into motion features. This allows for a more comprehensive description of the motion state changes of dynamic obstacles, providing richer input for determining the probability that a dynamic obstacle belongs to each preset motion intention pattern, and helping to improve the accuracy of the intention probability distribution.
[0117] In some optional implementations of this embodiment, the above-mentioned determination of the probability that the dynamic obstacle belongs to each of the multiple preset motion intention modes based on the motion characteristics, to obtain the intention probability distribution, includes:
[0118] Multiple preset motion intention modes are set, including at least three of the following: constant straight-line mode, coordinated turning mode, deceleration and stop mode, acceleration and departure mode, and evasive maneuver mode; based on the motion characteristics and the feature distribution corresponding to each preset motion intention mode, the posterior probability of the dynamic obstacle belonging to each preset motion intention mode is calculated; the posterior probability obtained in the current control cycle and the probability obtained in the previous control cycle are time-smoothed to obtain the intention probability distribution.
[0119] In this embodiment, multiple preset motion intention modes are set. These preset motion intention modes include at least three of the following: constant straight-line mode, coordinated turning mode, deceleration and stop mode, acceleration and departure mode, and evasive maneuver mode. In a preferred embodiment, all five modes are used.
[0120] Based on the feature distributions corresponding to motion features and preset motion intention patterns, the posterior probability of a dynamic obstacle belonging to each preset motion intention pattern is calculated. A Gaussian mixture model is used. A Gaussian distribution in the feature space is established for each preset motion intention pattern. During online inference, given a motion feature vector f, the posterior probability of a dynamic obstacle belonging to each preset motion intention pattern is calculated using a Gaussian mixture model based on the feature distributions corresponding to the motion features and preset motion intention patterns. The posterior probability is determined based on the prior probability of the pattern, the Gaussian distribution probability density function, and the motion feature vector.
[0121] The posterior probability obtained from the current control cycle and the probability obtained from the previous control cycle are time-smoothed to obtain the intention probability distribution. Time smoothing is a weighted combination of the posterior probability obtained from the current control cycle and the smoothed probability obtained from the previous control cycle, based on a smoothing coefficient. The smoothing coefficient ranges from 0 to 1. In a preferred embodiment, the smoothing coefficient is equal to 0.3.
[0122] For example, the drone inputs its motion feature vector into a Gaussian mixture model. The Gaussian mixture model outputs the probability that the delivery drone belongs to one of five preset motion intention modes. The probability of the constant straight-ahead mode is 0.15. The probability of the coordinated turn mode is 0.10. The probability of the deceleration and stop mode is 0.05. The probability of the acceleration and departure mode is 0.60. The probability of the evasive maneuver mode is 0.10. The drone uses a time smoothing coefficient of 0.3 to smooth the above probabilities over time. The time-smoothed intention probability distribution is: constant straight-ahead mode 0.18, coordinated turn mode 0.12, deceleration and stop mode 0.06, acceleration and departure mode 0.55, and evasive maneuver mode 0.09.
[0123] This invention maps the motion state of dynamic obstacles to a finite set of intention patterns by setting multiple preset motion intention patterns and calculating posterior probabilities. Through temporal smoothing, it reduces obstacle avoidance decision oscillations caused by abrupt changes in single inference results, making the intention probability distribution more stable and providing more reliable weights for subsequent generation of predicted position distributions.
[0124] In some optional implementations of this embodiment, the above-mentioned generation of predicted position distributions under each preset motion intention mode based on the intent probability distribution and the motion models corresponding to the plurality of preset motion intention modes includes:
[0125] For each preset motion intention mode, based on the current observation state of the dynamic obstacle and the motion model corresponding to the preset motion intention mode, the predicted positions at multiple future moments are derived through forward extrapolation; based on the uncertainty of the current observation state and the process uncertainty in the forward extrapolation process, the position uncertainty corresponding to each predicted position is determined; based on the predicted positions and the position uncertainties, the predicted position distribution under the preset motion intention mode is obtained.
[0126] In this embodiment, for each preset motion intention mode, the predicted positions at multiple future moments are derived by forward extrapolation based on the current observation state of the dynamic obstacle and the motion model corresponding to the preset motion intention mode.
[0127] For the constant-direction straight-line motion mode, a uniform linear motion model is adopted. The predicted position is equal to the current observed position plus the current observed velocity multiplied by the product of the prediction step number and the prediction step length.
[0128] For the coordinated turn mode, a motion model with constant turn rate and speed is employed. The predicted position is calculated based on the current observed position, speed, turn rate, and current heading. The turn rate is estimated from the observed trajectory data, and its uncertainty propagates to the prediction covariance through process noise. The predicted position is calculated using the following formula:
[0129]
[0130] in, To coordinate the turning mode The predicted position of the step. This is the current observation location. For the current observation speed, For turning rate, For the current course, To predict the number of steps. To predict step size. Turning rate. Estimated from observed trajectory data. The estimation method is based on the rate of change of heading over time in the observed trajectory data. The uncertainty of the turning rate propagates to the prediction covariance through process noise.
[0131] For the deceleration and stopping mode, an exponentially decaying velocity model is used. The velocity decays exponentially with time. The deceleration coefficient is estimated from the observed trajectory data. The velocity is calculated using the following formula:
[0132]
[0133] in, For the first The speed of the step, For the current observation speed, This is the deceleration coefficient. To predict the number of steps, To predict the step size.
[0134] The estimation method is based on the rate of change of velocity over time in the observed trajectory data. Position prediction is obtained through integration. Position prediction is calculated using the following formula:
[0135]
[0136] in, For deceleration and stop mode, the first Predicted position of the step This is the current observation location. For the current observation speed, This is the deceleration coefficient. To predict the number of steps, To predict the step size, This is the unit vector for the current heading.
[0137] For the accelerated escape mode, a constant acceleration motion model is used. The predicted position is calculated based on the current observed position, current observed velocity, acceleration, prediction step number, and prediction step size. The acceleration is estimated from the observed trajectory data. Its uncertainty is propagated through process noise.
[0138] For the avoidance maneuver mode, a steering model based on the UAV's relative azimuth is adopted. The steering angular velocity is equal to the avoidance gain multiplied by the relative azimuth angle. Position prediction is obtained through an integral steering motion model.
[0139] It should be noted that the above five motion models are all analytical models based on kinematics or dynamics, and the parameters are directly estimated or preset from the observed trajectory data, without the need for offline training.
[0140] Based on the uncertainties of the current observation state and the process uncertainties during the forward extrapolation, the position uncertainties corresponding to each predicted position are determined. Position uncertainties are represented by the prediction covariance. The prediction covariance is obtained by propagating the initial position covariance, velocity covariance, and process noise covariance.
[0141] Based on the predicted location and location uncertainty, the predicted location distribution under the preset motion intention mode is obtained. The predicted location distribution is represented by the predicted location and the predicted covariance.
[0142] For example, the drone generates predicted position distributions for each of the five preset motion intent modes based on the time-smoothed intent probability distribution and the corresponding motion models. The prediction time domain is 2.0 seconds. The prediction step size is 0.1 seconds. The prediction number of steps is 20. For the acceleration-out mode, the acceleration is estimated to be 0.5 m / s² from the observed trajectory data. The predicted position is calculated based on the constant acceleration motion model. The prediction covariance is obtained by propagating the initial position covariance, velocity covariance, and process noise covariance. The predicted position distribution is used for subsequent weighting to obtain the predicted risk area.
[0143] This invention obtains the predicted position by forward extrapolating for each preset motion intention mode, and determines the position uncertainty based on the uncertainty of the current observation state and the uncertainty of the process. This can more completely represent the distribution of possible positions of dynamic obstacles in the future prediction time domain, and provide a more accurate basis for subsequent weighted generation of predicted risk areas.
[0144] It should be noted that the predicted risk area of this invention differs from general probability predictions or hazard maps. The predicted risk area of this invention is obtained by weighting the predicted position distributions under each preset motion intention mode using the intention probability distribution as the weight. The weighted covariance includes both inter-mode uncertainty and intra-mode uncertainty. Inter-mode uncertainty reflects the position prediction uncertainty caused by the intention probability distribution. Intra-mode uncertainty reflects the process noise of each motion model itself. Therefore, the predicted risk area directly reflects the uncertainty of dynamic obstacle behavior, rather than merely reflecting environmental uncertainty or estimation errors. This representation allows obstacle avoidance decisions to adjust the risk area based on the probability of dynamic obstacle behavior, rather than simply expanding the safety distance or inflating the obstacle range.
[0145] In some optional implementations of this embodiment, the weighting of the predicted position distribution under each preset motion intention mode according to the intention probability distribution to obtain the predicted risk area of the dynamic obstacle includes:
[0146] Using the probability corresponding to each preset motion intention mode as a weight, the predicted position distribution under each preset motion intention mode is weighted and summed to obtain the weighted position distribution; the weighted position distribution is then expanded according to at least one of the UAV size and safety distance to obtain the predicted risk area.
[0147] In this embodiment, the predicted position distributions under each preset motion intention mode are weighted and summed using the probabilities corresponding to each preset motion intention mode as weights to obtain the weighted position distribution. Specifically:
[0148] in, The weighted center of the location distribution. For pattern Predicted time The smooth probability, For pattern At the predicted position at prediction time k, The number of preset motion intention modes.
[0149] The center of the weighted location distribution is equal to the sum of the products of the smoothing probabilities of each model and their corresponding predicted locations. The covariance of the weighted location distribution is calculated using the following formula:
[0150]
[0151] in, The weighted covariance of the location distribution. For pattern At the predicted time The smooth probability, For pattern The prediction covariance at prediction time k, For pattern At the predicted position at prediction time k, The weighted center of the location distribution. The superscript indicates the number of preset motion intention modes. This indicates transpose. The covariance includes both inter-mode and intra-mode uncertainties.
[0152] The weighted location distribution is expanded based on at least one of the drone size and safety distance to obtain the predicted risk area. The expanded covariance is equal to the weighted location distribution covariance plus the square of the sum of the drone size and safety distance multiplied by the third-order identity matrix.
[0153] For example, the drone generates predicted position distributions for each of the five preset motion intent patterns based on the time-smoothed probability distribution of the intent and the corresponding motion models. The drone then weights the predicted position distributions for each preset motion intent pattern using the probability corresponding to that pattern as a weight, resulting in a weighted position distribution. The drone then dilates the weighted position distribution based on its size and safety margin to obtain a predicted risk region. The confidence level of the predicted risk region is 0.90. This predicted risk region is used to subsequently construct the cost function.
[0154] This invention uses a weighted summation of predicted position distributions under various preset motion intention modes, weighted by the probability distribution of the intention, to make the predicted risk area reflect the uncertainty of dynamic obstacle behavior. By expanding the weighted position distribution according to the drone size and safety distance, the predicted risk area can better match actual obstacle avoidance needs, thus improving the safety of obstacle avoidance decisions.
[0155] In some optional implementations of this embodiment, the determination of a joint risk region based on the overlap between the predicted risk regions of each dynamic obstacle, and the correction of the risk value of the joint risk region, includes:
[0156] For any two dynamic obstacles, at each time point in the prediction time domain, the ratio between the overlapping volume of the predicted risk regions of the two dynamic obstacles and the smaller volume is calculated; when the ratio is greater than a preset ratio threshold, the corresponding overlapping region is determined as a joint risk region; a risk amplification coefficient is determined based on the ratio, and the risk cost term of the joint risk region is corrected using the risk amplification coefficient; when it is detected that the movement intentions of two dynamic obstacles influence each other, the range of the predicted risk regions of the dynamic obstacles involved in the mutual influence is increased, and the predicted risk regions of the two are merged into a joint risk region.
[0157] It should be noted that the overlapping volume is the volume of the spatially intersecting portion of the predicted risk regions of two dynamic obstacles. The smaller volume is the volume of the smaller of the predicted risk regions of the two dynamic obstacles. The overlap degree is the ratio between the overlapping volume of the predicted risk regions of the two dynamic obstacles and the smaller volume. The preset ratio threshold is a pre-set overlap degree threshold used to determine whether a joint risk region exists. The joint risk region is the area formed after the predicted risk regions of two dynamic obstacles overlap. The risk amplification factor is a coefficient used to amplify the risk cost term of the joint risk region. Mutual influence of movement intentions means that the movement intention of one dynamic obstacle is changed by the presence of another dynamic obstacle.
[0158] In this embodiment, for any two dynamic obstacles, at each time point in the prediction time domain, the ratio between the overlapping volume of the predicted risk regions of the two dynamic obstacles and the smaller volume of the two obstacles is calculated. The overlap is obtained by summing the ratios of the overlapping volumes of the two predicted risk regions and the smaller volume of the two obstacles at each time point in the prediction time domain.
[0159] When the ratio is greater than a preset ratio threshold, the corresponding overlapping area is identified as a joint risk area. In a preferred embodiment, the preset ratio threshold is 0.3. A risk amplification factor is determined based on the ratio, and this factor is used to correct the risk cost term of the joint risk area. The risk amplification factor is calculated using the following formula:
[0160]
[0161] in, This is a risk amplification factor. To amplify the gain, For dynamic obstacles and The overlap of predicted risk areas. The amplification gain can be determined by the following formula:
[0162] in, For maximum amplification gain, This is a preset ratio threshold. Preferably, It is 0.5. The amplification gain is 0.3. That is, when the overlap reaches the preset ratio threshold and a joint risk area is formed, the amplification gain is 0.5; when the threshold is not reached, no joint risk area is formed, and the amplification gain is 0.
[0163] When a mutual influence is detected between the movement intentions of two dynamic obstacles, the range of the predicted risk area of the dynamic obstacles involved in the mutual influence is increased, and the predicted risk areas of the two obstacles are merged into a joint risk area. The detection conditions are that the probability of the avoidance maneuver pattern of obstacle i is greater than the sum of its historical baseline and the probability increment threshold, and the distance between obstacle j and obstacle i is less than the coupling distance threshold. In a preferred embodiment, the probability increment threshold is equal to 0.2, and the coupling distance threshold is equal to 10 meters.
[0164] When intentional coupling is detected, the predicted risk region of the involved obstacles is corrected. The correction method involves increasing the variance of the probability distribution. The covariance of the corrected predicted risk region is equal to the covariance of the uncorrected predicted risk region plus the square of the coupling uncertainty increment multiplied by the third-order identity matrix. Simultaneously, the predicted risk regions of the coupled obstacles are spatially merged to generate a joint risk region.
[0165] For example, a drone flies in an urban construction area and detects three dynamic obstacles: drone A performing aerial photography, a bird B, and drone C avoiding drone A. The drone generates predicted risk areas for drone A, bird B, and drone C respectively. The overlap between the predicted risk areas of drone A and drone C is 0.55. This overlap is greater than a preset ratio threshold of 0.3. The drone defines the overlapping portion of the predicted risk areas of drone A and drone C as a joint risk area. The risk amplification gain is 0.5. The joint risk amplification factor is 1 plus 0.5 multiplied by 0.55, which equals 1.275. The drone uses the joint risk amplification factor of 1.275 to correct the risk value of the joint risk area. Simultaneously, the probability of drone C's avoidance maneuver is significantly higher than the baseline, and drone A is located within the neighborhood of drone C's avoidance direction, indicating intentional coupling. The predicted risk areas of drone A and drone C are corrected by increasing the probability distribution variance, and a joint risk area is generated. The revised joint risk region is used to construct the cost function in the subsequent process.
[0166] This invention identifies joint risk regions formed by multiple dynamic obstacles by calculating the ratio between the overlapping volume of the predicted risk regions of two dynamic obstacles and the smaller volume of the two overlapping volumes. By determining a risk amplification factor based on this ratio and correcting the risk cost term of the joint risk region, the invention avoids underestimating the joint risk when treating each dynamic obstacle independently. By detecting the mutual influence of motion intentions and expanding the scope of the predicted risk region, the invention better reflects the interactions between dynamic obstacles.
[0167] It should be noted that the risk topology reasoning of this invention not only calculates the overlap between predicted risk regions, but also detects whether the motion intentions of two dynamic obstacles influence each other. When intention coupling is detected, the range of the predicted risk regions of the coupled dynamic obstacles is increased, and the predicted risk regions of the two are merged into a joint risk region. This mechanism differs from the method of treating multiple dynamic obstacles independently and simply accumulating their individual risks. Through intention coupling detection, this invention can identify situations where the motion intention of one dynamic obstacle changes due to the presence of another dynamic obstacle, thereby more accurately assessing the joint risk formed by multiple dynamic obstacles.
[0168] In some optional implementations of this embodiment, the above-mentioned method uses the control sequence of the UAV as the optimization variable, solves the cost function in a relative coordinate system based on the reference path, and obtains the optimal control sequence, including:
[0169] Using the reference path as a reference, a relative coordinate system is established along the tangential, lateral, and vertical directions of the reference path. In this relative coordinate system, control perturbations along the tangential, lateral, and vertical directions are applied to the nominal control sequence to generate candidate control sequences. Forward extrapolation is performed on the candidate control sequences to obtain candidate trajectories. The risk cost term is calculated based on the relationship between the candidate trajectories and the predicted risk region and the joint risk region. A cost function value is calculated by combining the target cost term, the smoothing cost term, and the constraint cost term. The nominal control sequence is updated based on the cost function values of each candidate trajectory to obtain the optimal control sequence.
[0170] In this embodiment, a relative coordinate system is established along the tangential, lateral, and vertical directions of the reference path, using the reference path as a reference. In the relative coordinate system, the longitudinal coordinate represents the arc length traveled along the reference path, the lateral coordinate represents the offset along the normal direction of the reference path, and the vertical coordinate represents the offset in the vertical direction. The state of the UAV in the relative coordinate system includes the longitudinal coordinate, longitudinal velocity, lateral coordinate, lateral velocity, vertical coordinate, and vertical velocity.
[0171] In a relative coordinate system, control perturbations along the tangential, lateral, and vertical directions are applied to the nominal control sequence to generate candidate control sequences. A candidate control sequence is equal to the nominal control sequence plus the control perturbations. The control perturbations follow a Gaussian distribution, and their covariance matrix is a diagonal matrix of the standard deviations of the tangential, lateral, and vertical perturbations.
[0172] Forward extrapolation is performed on the candidate control sequences to obtain candidate trajectories. The forward extrapolation uses a discrete translational model to calculate the longitudinal, lateral, and vertical coordinates respectively. Then, the relative coordinates are converted to global position using a path-relative frame. The conversion formula is: global position equals the reference path plus the lateral coordinate multiplied by the normal vector plus the vertical coordinate multiplied by the binormal vector.
[0173] The risk cost term is calculated based on the relationship between the candidate trajectory and the predicted risk area and the joint risk area. The cost function value is then calculated by combining the target cost term, the smoothing cost term, and the constraint cost term. The cost function is calculated using the following formula:
[0174]
[0175] in, The cost function value, As the weight of the risk cost item, For risk cost item, As the weight of the target cost term, For the target cost term, To smooth the weights of the cost terms, To smooth out the cost term, To constrain the weights of the cost terms, This is to constrain the cost term.
[0176] The risk cost term equals the sum of the risk densities of each dynamic obstacle at each prediction time point on the candidate trajectory. Specifically, the risk density is calculated as follows:
[0177]
[0178] in, Risk density, For dynamic obstacles At the predicted time The predicted location, For dynamic obstacles At the predicted time The predicted covariance, For candidate trajectories in the th The position of the step, The normalization constant is To predict the determinant of the covariance matrix.
[0179] For the joint risk region, the risk density is multiplied by the joint risk amplification factor. The target cost term equals the square of the distance between the candidate trajectory endpoint and the target point. The smoothing cost term equals the sum of the squares of the differences between adjacent control variables. The constraint cost term is used to penalize trajectories that violate dynamic constraints; optionally, the constraint cost term equals the sum of the penalty values for violations of velocity constraints, acceleration constraints, pitch angle constraints, and roll angle constraints at each prediction time.
[0180] The nominal control sequence is updated based on the cost function values of each candidate trajectory to obtain the optimal control sequence. A sampling optimization method is employed. Within each control cycle, a Gaussian perturbation is applied, centered on the current optimal control sequence, to generate K candidate control sequences. Candidate trajectories are obtained through forward extrapolation. The cost function value of each candidate trajectory is calculated. The optimal control sequence is updated using an importance-weighted approach. The update formula is as follows:
[0181]
[0182] in, For the nominal control sequence in the first The control amount of the step, This represents the number of candidate control sequences. For the first The cost function value of each candidate trajectory, For temperature parameters, For the first The candidate control sequence in the 1st The step-by-step control disturbance. In a preferred embodiment, Equals 800, It equals 1.0. Output the first control value as the current control instruction.
[0183] For example, the UAV generates 800 candidate control sequences in a relative coordinate system based on a reference path, using the control sequence as the optimization variable. The UAV performs forward extrapolation on the candidate control sequences to obtain candidate trajectories. The UAV calculates the cost function value for each candidate trajectory. Based on the cost function values of each candidate trajectory, the UAV updates the optimal control sequence by weighting importance. The temperature parameter is 1.0. The UAV outputs the control quantity at the current moment in the optimal control sequence as the current control command. The UAV flies and avoids obstacles according to the current control command. In Example 1, the UAV only makes a lateral offset of 0.8 meters, smoothly passing through the area without triggering unnecessary obstacle avoidance maneuvers. In Example 2, the UAV bypasses the joint risk area from the left, while avoiding the predicted risk area of bird B. In Example 4, the UAV detects that the probability of the avoidance maneuver mode increases from 0.10 to 0.70 within 0.3 seconds, and adjusts its trajectory in the next control cycle, shifting away from the dynamic obstacle avoidance direction. The control frequency is 30 Hz.
[0184] This invention establishes relative coordinate systems along the tangential, lateral, and vertical directions within a relative coordinate system based on a reference path, and generates candidate control sequences and candidate trajectories within these relative coordinate systems. This enhances the robustness of obstacle avoidance decisions to global positioning errors. By calculating risk cost terms based on the relationship between candidate trajectories and predicted and joint risk areas, and combining these with target cost terms, smoothing cost terms, and constraint cost terms to calculate cost function values, obstacle avoidance safety, trajectory smoothness, and target approach can be balanced. By updating the nominal control sequence based on the cost function values of each candidate trajectory, an optimal control sequence that meets the set requirements can be obtained.
[0185] It should be noted that the relative coordinate system of this invention is not limited to local trajectory planning. This invention unifies intent inference, predicted risk region generation, joint risk region correction, and cost function solution within a relative coordinate system based on the reference path. Predicted risk regions and joint risk regions need to be represented in this relative coordinate system. Candidate trajectories are sampled and derived in this relative coordinate system. The cost function is calculated in this relative coordinate system. This systematic integration enables obstacle avoidance decisions to remain robust even with global localization degradation, because lateral and vertical offsets are calculated relative to the reference path, and localized drift has a relatively small impact on relative offsets.
[0186] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0187] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0188] Further reference Figure 3 As a response to the above Figure 2The present invention provides an embodiment of a low-altitude unmanned aerial vehicle (UAV) urban path planning and automatic obstacle avoidance device, which is similar to the method shown. Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0189] like Figure 3 As shown, the urban path planning and automatic obstacle avoidance device 300 for low-altitude unmanned aerial vehicles (UAVs) described in this embodiment includes: a path generation module 301, an obstacle tracking module 302, an intent inference module 303, a risk area generation module 304, a joint risk determination module 305, a cost function construction module 306, and a trajectory optimization module 307. Wherein:
[0190] The path generation module 301 is used to obtain a global waypoint sequence and generate a reference path based on the global waypoint sequence.
[0191] The obstacle tracking module 302 is used to acquire dynamic obstacle observation data within the perception range of the UAV and maintain observation trajectory data for each dynamic obstacle.
[0192] The intent inference module 303 is used to extract motion features based on the observed trajectory data, determine the probability that the dynamic obstacle belongs to each of the multiple preset motion intent modes based on the motion features, and obtain the intent probability distribution.
[0193] The risk area generation module 304 is used to generate the predicted position distribution under each preset motion intention mode according to the intention probability distribution and the motion model corresponding to the multiple preset motion intention modes, and to weight the predicted position distribution under each preset motion intention mode according to the intention probability distribution to obtain the predicted risk area of the dynamic obstacle.
[0194] The joint risk determination module 305 is used to determine a joint risk area based on the overlapping relationship between the predicted risk areas of each dynamic obstacle when multiple dynamic obstacles exist, and to correct the risk value of the joint risk area.
[0195] The cost function construction module 306 is used to construct a cost function based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system. The cost function includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term.
[0196] The trajectory optimization module 307 is used to solve the cost function in a relative coordinate system with the reference path as the reference, using the control sequence of the UAV as the optimization variable, to obtain the optimal control sequence, and output the current control command according to the optimal control sequence.
[0197] The urban path planning and automatic obstacle avoidance device for low-altitude unmanned aerial vehicles (UAVs) provided by this invention acquires a global waypoint sequence and generates a reference path through a path generation module, acquires dynamic obstacle observation data and maintains observation trajectory data through an obstacle tracking module, extracts motion features and determines the intention probability distribution through an intention inference module, generates and weights the predicted position distribution under each preset motion intention mode to obtain a predicted risk area through a risk area generation module, determines and corrects the joint risk area when multiple dynamic obstacles exist through a joint risk determination module, constructs a cost function including a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term through a cost function construction module, and solves the cost function in a relative coordinate system based on the reference path through a trajectory optimization module to obtain the optimal control sequence and output the current control command. Thus, it achieves forward-looking and risk-reasonable path planning and automatic obstacle avoidance when the motion intention of dynamic obstacles is uncertain, reduces unnecessary avoidance maneuvers, and maintains good robustness to situations with unsatisfactory positioning conditions.
[0198] To address the aforementioned technical problems, embodiments of the present invention also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0199] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41, 42, and 43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0200] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.
[0201] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for urban path planning and automatic obstacle avoidance methods for low-altitude unmanned aerial vehicles. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.
[0202] In some embodiments, the processor 42 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, such as executing computer-readable instructions for the urban path planning and automatic obstacle avoidance method of the low-altitude UAV.
[0203] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.
[0204] The computer device provided by this invention executes computer-readable instructions through a memory and a processor to realize the steps of the above-mentioned urban path planning and automatic obstacle avoidance method for low-altitude UAVs. This enables forward-looking and risk-reasonable path planning and automatic obstacle avoidance when the movement intention of dynamic obstacles is uncertain, reducing unnecessary avoidance maneuvers and maintaining good robustness to situations with unsatisfactory positioning conditions.
[0205] The present invention also provides another embodiment, namely, a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles described above.
[0206] The computer-readable storage medium provided by this invention enables the implementation of the steps of the above-mentioned urban path planning and automatic obstacle avoidance method for low-altitude UAVs when the stored computer-readable instructions are executed by a processor. This allows for forward-looking and risk-reasonable path planning and automatic obstacle avoidance even when the movement intention of dynamic obstacles is uncertain, reducing unnecessary avoidance maneuvers and maintaining good robustness in situations with unsatisfactory positioning conditions.
[0207] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0208] Obviously, the embodiments described above are merely some embodiments of the present invention, not all embodiments. The accompanying drawings show preferred embodiments of the present invention, but do not limit the patent scope of the present invention. The present invention can be implemented in many different forms; rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure of the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the patent protection scope of this invention.
Claims
1. A method for urban path planning and automatic obstacle avoidance for low-altitude unmanned aerial vehicles (UAVs), characterized in that, include: Obtain the global waypoint sequence and generate a reference path based on the global waypoint sequence; Acquire dynamic obstacle observation data within the drone's perception range, and maintain observation trajectory data for each dynamic obstacle; Motion features are extracted from the observed trajectory data. Based on the motion features, the probability that the dynamic obstacle belongs to each of the multiple preset motion intention modes is determined, and the intention probability distribution is obtained. Based on the intent probability distribution and the motion models corresponding to the multiple preset motion intent modes, a predicted position distribution under each preset motion intent mode is generated, and the predicted position distribution under each preset motion intent mode is weighted according to the intent probability distribution to obtain the predicted risk area of the dynamic obstacle. When multiple dynamic obstacles exist, a joint risk area is determined based on the overlap between the predicted risk areas of each dynamic obstacle, and the risk value of the joint risk area is corrected. Based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system, a cost function is constructed, which includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term. Using the control sequence of the UAV as the optimization variable, the cost function is solved in a relative coordinate system with the reference path as the reference to obtain the optimal control sequence, and the current control command is output according to the optimal control sequence.
2. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, Motion features are extracted from the observed trajectory data, including: The position sequence, velocity sequence, and heading sequence are obtained from the observed trajectory data according to time windows; The trajectory curvature features are determined based on the position sequence, the heading change features are determined based on the heading sequence, the speed change features are determined based on the speed sequence, the relative azimuth change features are determined based on the relative position between the dynamic obstacle and the UAV, and the observation consistency features are determined based on the deviation between the position sequence and the fitted trajectory. The motion feature is a combination of at least two of the trajectory curvature feature, the heading change feature, the velocity change feature, the relative azimuth change feature, and the observation consistency feature.
3. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, Based on the motion characteristics, the probability that the dynamic obstacle belongs to each of the multiple preset motion intention patterns is determined, resulting in an intention probability distribution, including: Multiple preset motion intention modes are set, including at least three of the following: constant straight-line mode, coordinated turning mode, deceleration and stop mode, acceleration and departure mode, and evasive maneuver mode. Based on the feature distribution corresponding to the motion features and each preset motion intention pattern, calculate the posterior probability that the dynamic obstacle belongs to each preset motion intention pattern; The posterior probability obtained in the current control cycle and the probability obtained in the previous control cycle are time-smoothed to obtain the intention probability distribution.
4. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, Based on the intent probability distribution and the motion models corresponding to the multiple preset motion intent patterns, a predicted position distribution is generated for each preset motion intent pattern, including: For each preset motion intention mode, based on the current observation state of the dynamic obstacle and the motion model corresponding to the preset motion intention mode, the predicted position at multiple future moments is derived by forward extrapolation. Based on the uncertainty of the current observation state and the process uncertainty in the forward extrapolation process, the position uncertainty corresponding to each predicted position is determined; Based on the predicted position and the position uncertainty, the predicted position distribution under the preset motion intention mode is obtained.
5. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, The predicted position distribution under each preset motion intention mode is weighted according to the stated intention probability distribution to obtain the predicted risk area of the dynamic obstacle, including: Using the probability corresponding to each preset motion intention mode as a weight, the predicted position distribution under each preset motion intention mode is weighted and summed to obtain the weighted position distribution; The weighted location distribution is expanded based on at least one of the drone size and safety distance to obtain the predicted risk area.
6. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, Based on the overlap between the predicted risk areas of each dynamic obstacle, a joint risk area is determined, and the risk value of the joint risk area is corrected, including: For any two dynamic obstacles, at each time point in the prediction time domain, calculate the ratio between the overlapping volume of the predicted risk region of the two dynamic obstacles and the smaller volume of the two dynamic obstacles. When the ratio is greater than a preset ratio threshold, the corresponding overlapping area is determined as a joint risk area; The risk amplification factor is determined based on the ratio, and the risk cost term of the joint risk area is corrected using the risk amplification factor. When the movement intentions of two dynamic obstacles are detected to influence each other, the range of the predicted risk area of the dynamic obstacles involved in the mutual influence is increased, and the predicted risk areas of the two are merged into a joint risk area.
7. The urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles according to claim 1, characterized in that, Using the control sequence of the UAV as the optimization variable, the cost function is solved in a relative coordinate system with the reference path as the reference, to obtain the optimal control sequence, including: Using the reference path as a reference, establish relative coordinate systems along the tangential, transverse, and vertical directions of the reference path; In the relative coordinate system, control perturbations along the tangential, lateral, and vertical directions are applied to the nominal control sequence to generate candidate control sequences; The candidate control sequence is forward extrapolated to obtain the candidate trajectory; The risk cost term is calculated based on the relationship between the candidate trajectory, the predicted risk region, and the joint risk region, and the cost function value is calculated by combining the target cost term, the smoothing cost term, and the constraint cost term. The nominal control sequence is updated based on the cost function value of each candidate trajectory to obtain the optimal control sequence.
8. A low-altitude unmanned aerial vehicle (UAV) urban path planning and automatic obstacle avoidance device, characterized in that, include: The path generation module is used to obtain a global waypoint sequence and generate a reference path based on the global waypoint sequence. The obstacle tracking module is used to acquire dynamic obstacle observation data within the drone's perception range and maintain observation trajectory data for each dynamic obstacle. The intent inference module is used to extract motion features based on the observed trajectory data, determine the probability that the dynamic obstacle belongs to each of the multiple preset motion intent patterns based on the motion features, and obtain the intent probability distribution. The risk area generation module is used to generate the predicted position distribution under each preset motion intention mode according to the intention probability distribution and the motion model corresponding to the multiple preset motion intention modes, and to weight the predicted position distribution under each preset motion intention mode according to the intention probability distribution to obtain the predicted risk area of the dynamic obstacle. The joint risk determination module is used to determine a joint risk area based on the overlapping relationship between the predicted risk areas of each dynamic obstacle when multiple dynamic obstacles exist, and to correct the risk value of the joint risk area. The cost function construction module is used to construct a cost function based on the representation of the predicted risk region in the relative coordinate system with the reference path as the reference, and the representation of the corrected joint risk region in the relative coordinate system. The cost function includes a risk cost term, a target cost term, a smoothing cost term, and a constraint cost term. The trajectory optimization module is used to solve the cost function in a relative coordinate system with the reference path as the reference, using the control sequence of the UAV as the optimization variable, to obtain the optimal control sequence, and output the current control command according to the optimal control sequence.
9. A computer device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the urban path planning and automatic obstacle avoidance method for low-altitude unmanned aerial vehicles as described in any one of claims 1 to 7.
