Method, device, electronic device and medium for predicting the space occupied by obstacles in the future
By combining the obstacle's historical movement direction data and current status to predict its future occupied space, the problem of insufficient dependence on future trajectories of the autonomous vehicle decision-making algorithm in the existing technology is solved, and the prediction accuracy and decision-making effect are improved.
Patent Information
- Application Number
- CN202311383960.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-10-24
AI Technical Summary
Existing self-driving vehicle decision-making algorithms only rely on the future movement trajectories of obstacles, resulting in decision-making results that are too conservative and fail to fully consider the future space occupied by obstacles, thus affecting the accuracy of decision-making.
By using the obstacle's historical movement direction data, current movement speed and current position to predict future movement trajectories, and combining the size of the obstacle to predict future scaling size, the future occupied space is determined. The specific method includes fitting a curve to predict the future movement direction, calculating the future scaling size, and finally drawing a rectangular frame to determine the occupied space.
It improves the prediction accuracy of obstacles' future movement trajectories and occupied spaces, avoids overly conservative autonomous driving decision-making results, and makes the algorithm simple, efficient and interpretable.
Smart Images

Figure CN117429448B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a method, device, electronic device and medium for predicting the space occupied by an obstacle in the future. Background Art
[0002] With the development of autonomous driving technology, the scenarios in which autonomous driving technology can be used are gradually expanding, and the decision-making tasks that autonomous driving vehicles need to handle are becoming more complex. Reasonable and accurate prediction algorithms are the basis for autonomous driving vehicles to make correct decisions.
[0003] In related technologies, only the predicted future trajectory of obstacles is used as the input of the decision module of the autonomous driving vehicle. However, due to the game of road rights between the vehicle and the moving obstacles (especially other moving vehicles), if the autonomous driving decision is made based only on the future moving trajectory of the obstacles, the obtained autonomous driving decision result is too conservative. Therefore, the autonomous driving decision should also be made in combination with the future occupied space of the obstacles. Therefore, how to accurately determine the future occupied space of the obstacles has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve at least one of the above technical problems, the present disclosure provides a method, device, electronic device and medium for predicting the space occupied by an obstacle in the future.
[0005] According to one aspect of the present disclosure, a method for predicting the future space occupied by an obstacle is provided, comprising: predicting the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle; predicting the future scaled size of the obstacle based on the size of the obstacle and the current movement speed; and determining the future occupied space of the obstacle based on the future scaled size and the future movement trajectory.
[0006] According to a method for predicting a space to be occupied by an obstacle in the future of at least one embodiment of the present disclosure, predicting the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle includes: predicting the future movement direction of the obstacle based on the historical movement direction data of the obstacle; predicting the future movement trajectory of the obstacle based on the future movement direction, the current movement speed and the current position.
[0007] According to the method for predicting the future space occupied by an obstacle of at least one embodiment of the present disclosure, the historical moving direction data includes multiple historical moving directions, and predicting the future moving direction of the obstacle based on the historical moving direction data of the obstacle includes: determining fitting weights of the multiple historical moving directions; determining a target fitting curve based on the multiple historical moving directions and their corresponding fitting weights; and predicting the future moving direction of the obstacle based on the target fitting curve.
[0008] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the fitting weight of the historical moving direction is calculated by the following formula: Among them, w i represents the fitting weight of the i-th historical moving direction, e is a natural constant, a w is the calibration parameter, t i Indicates the collection time of the i-th historical moving direction.
[0009] According to the method for predicting the future space occupied by an obstacle of at least one embodiment of the present disclosure, the target fitting curve is determined according to the multiple historical moving directions and their corresponding fitting weights, including: determining a constant fitting curve, a linear fitting curve and a quadratic fitting curve according to the multiple historical moving directions and their corresponding fitting weights; calculating a constant fitting curve error according to the constant fitting curve, the multiple historical moving directions and their corresponding fitting weights; calculating a linear fitting curve error according to the linear fitting curve, the multiple historical moving directions and their corresponding fitting weights; calculating a quadratic fitting curve error according to the quadratic fitting curve, the multiple historical moving directions and their corresponding fitting weights; and determining the target fitting curve according to the constant fitting curve error, the linear fitting curve error and the quadratic fitting curve error.
[0010] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the constant fitting curve is calculated by the following formula: θ = c 0 , Among them, θ represents the moving direction of the obstacle, c 0 represents the constant term of the constant fitting curve, w i represents the fitting weight of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
[0011] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the constant fitting curve error is calculated by the following formula: Among them, f 0 represents the constant fitting curve error.
[0012] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the first-order fitting curve is calculated by the following formula: θ=b 1 t+c 1 , Among them, θ represents the moving direction of the obstacle, b 1 represents the linear coefficient of the linear fitting curve, t represents the prediction time, c 1 represents the constant term of the first-order fitting curve, w i represents the fitting weight of the i-th historical moving direction, t i represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
[0013] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the first-order fitting curve error is calculated by the following formula: Among them, f 1 represents the first-order fitting curve error.
[0014] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the quadratic fitting curve is calculated by the following formula: θ = a 2 t 2 +b 2 t+c 2 ,
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021] Among them, θ represents the moving direction of the obstacle, a 2 represents the quadratic term coefficient of the quadratic fitting curve, b 2 represents the linear coefficient of the quadratic fitting curve, t represents the prediction time, c 2 represents the constant term of the quadratic fitting curve, w i represents the fitting weight of the i-th historical moving direction, ti represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
[0022] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the quadratic fitting curve error is calculated by the following formula: Among them, f 2 represents the quadratic fitting curve error.
[0023] According to at least one embodiment of the present disclosure, the method for predicting the future space occupied by an obstacle, wherein the determining the target fitting curve according to the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error comprises: determining the minimum value among the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error; in response to the minimum value being the constant fitting curve error, taking the constant fitting curve as the target fitting curve; in response to the minimum value being the first-order fitting curve error, taking the first-order fitting curve as the target fitting curve; in response to the minimum value being the second-order fitting curve error and the absolute value of the second-order term coefficient of the second-order fitting curve being greater than 0, if the abscissa of the vertex of the second-order fitting curve is less than the latest acquisition time of the historical moving direction or the abscissa of the vertex of the second-order fitting curve is greater than the latest predicted time of the future moving direction, taking the second-order fitting curve as the target fitting curve; in response to the minimum value being the second-order fitting curve error, if the second-order term coefficient of the second-order fitting curve is equal to 0 or the abscissa of the vertex of the second-order fitting curve is greater than or equal to the latest acquisition time of the historical moving direction and less than or equal to the latest predicted time of the future moving direction, taking the first-order fitting curve as the target fitting curve.
[0024] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the future movement trajectory of the obstacle is calculated by the following formula: Among them, (x k ,y k ) represents the position of the obstacle at time k, (x k-1 ,y k-1 ) represents the position of the obstacle at time k-1, v represents the current moving speed, Δt represents the time difference between time k and time k-1, θ k-1 Indicates the moving direction of the obstacle at time k-1.
[0025] According to the method for predicting the space to be occupied by an obstacle in the future in at least one embodiment of the present disclosure, the size includes length and width, the future scaled size includes future scaled length and future scaled width, and predicting the future scaled size of the obstacle based on the size of the obstacle and the current moving speed includes: determining a length attenuation coefficient and a width attenuation coefficient based on the current moving speed; predicting the future scaled length of the obstacle based on the length and the length attenuation coefficient; and predicting the future scaled width of the obstacle based on the width and the width attenuation coefficient.
[0026] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the future scaling length is calculated by the following formula: Among them, d t represents the future scaling length, L represents the length, a t represents the length attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
[0027] According to the method for predicting the future space occupied by an obstacle in at least one embodiment of the present disclosure, the future scaling width is calculated by the following formula: Among them, d n represents the future zoom width, H represents the width, a n represents the width attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
[0028] According to a method for predicting a space to be occupied by an obstacle in the future in at least one embodiment of the present disclosure, the future moving trajectory includes a future position, and determining the future occupied space of the obstacle based on the future zoom size and the future moving trajectory includes: drawing a rectangular frame with the future position as the geometric center of the rectangular frame, the future zoom length as the length of the rectangular frame, and the future zoom width as the width of the rectangular frame, wherein the length direction of the rectangular frame is parallel to the current moving speed direction, and the width direction of the rectangular frame is perpendicular to the length direction of the rectangular frame; and using the area framed by the rectangular frame as the future occupied space of the obstacle.
[0029] According to a second aspect of the present disclosure, a device for predicting the future space occupied by an obstacle is provided, comprising: a first prediction module, used to predict the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle; a second prediction module, used to predict the future scaled size of the obstacle based on the size of the obstacle and the current movement speed; and a determination module, used to determine the future occupied space of the obstacle based on the future scaled size and the future movement trajectory.
[0030] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the method for predicting the future space occupied by an obstacle as described in any embodiment of the present disclosure.
[0031] According to a fourth aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the method for predicting the future space occupied by an obstacle as described in any embodiment of the present disclosure is used.
[0032] The present disclosure provides a method, device, electronic device and medium for predicting the future space occupied by an obstacle. The method predicts the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle, and predicts the future scaled size of the obstacle based on the size of the obstacle and the current movement speed. The future space occupied by the obstacle can be determined more accurately based on the future scaled size and the future movement trajectory. The algorithm is simple, the operation efficiency is high and the interpretability is strong. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0034] Figure 1 It is a flowchart of a method for predicting a space occupied by an obstacle in the future according to an embodiment of the present disclosure.
[0035] Figure 2 It is a schematic diagram of a process of predicting the future movement trajectory of an obstacle according to an embodiment of the present disclosure.
[0036] Figure 3 It is a schematic diagram of a process of predicting the future moving direction of an obstacle according to an embodiment of the present disclosure.
[0037] Figure 4 It is a schematic diagram of a process of determining a target fitting curve according to an embodiment of the present disclosure.
[0038] Figure 5 FIG. 4 is another schematic diagram of a process for determining a target fitting curve according to an embodiment of the present disclosure.
[0039] Figure 6 It is a schematic diagram of a process of predicting the future scaling size of an obstacle according to one embodiment of the present disclosure.
[0040] Figure 7 is a visual example diagram of an obstacle size definition method according to an embodiment of the present disclosure.
[0041] Figure 8 It is another flowchart of a method for predicting a space occupied by an obstacle in the future according to an embodiment of the present disclosure.
[0042] Fig. 9 is a visualization example diagram of a fitting weight curve according to one embodiment of the present disclosure.
[0043] Fig.10 is a visualization example diagram of historical movement direction data according to one embodiment of the present disclosure.
[0044] Fig.11 is a visualization example diagram of the future space occupied by obstacles according to one embodiment of the present disclosure.
[0045] Fig.12 It is a schematic block diagram of the structure of a device for predicting the future space occupied by an obstacle using a hardware implementation of a processing system according to one embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0047] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0048] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.
[0049] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.
[0050] When a component is referred to as being "on," "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.
[0051] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values and / or the values provided that will be recognized by those of ordinary skill in the art.
[0052] Combined with the following Figures 1 to 12 The method for predicting a space to be occupied by an obstacle in the future and the device for predicting a space to be occupied by an obstacle in the future of the present disclosure are described in detail.
[0053] Figure 1The figure is a flowchart of a method for predicting the future space occupied by an obstacle according to an embodiment of the present disclosure. The method for predicting the future space occupied by an obstacle of the present disclosure can be used in the scene of the vehicle's automatic driving, the scene of the robot's automatic navigation or the scene of the drone's automatic cruising, etc. The following will take the scene of the vehicle's automatic driving as an example to explain the method for predicting the future space occupied by an obstacle of the present disclosure in detail. Figure 1 As shown, the method for predicting the space occupied by an obstacle in the future according to the embodiment of the present disclosure may include step S10, step S20 and step S30.
[0054] S10: Predicting the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle.
[0055] It is understandable that in the related art, simple rule-based prediction models (such as uniform acceleration straight line prediction model, uniform speed straight line prediction model, etc.) are used to predict the future movement trajectory of obstacles. These prediction models only rely on the current state data of the obstacle for prediction, which leads to low accuracy in predicting the future movement trajectory of the obstacle.
[0056] In the embodiments of the present disclosure, when predicting the future movement trajectory of an obstacle, not only the current movement speed and current position of the obstacle are used, but also the historical movement direction data of the obstacle is used, thereby enhancing the reliance on historical data and improving the accuracy of the predicted future movement trajectory of the obstacle.
[0057] The historical moving direction data of the obstacle may include multiple historical moving directions of the obstacle. The historical moving direction may be understood as the historical absolute moving direction of the obstacle. Exemplarily, the absolute moving direction is the moving direction in the north-east earth coordinate system or the northeast sky coordinate system.
[0058] The current moving speed of the obstacle can be understood as the current moving speed of the obstacle relative to the earth.
[0059] The current position of the obstacle can be understood as the current absolute position of the obstacle. For example, the absolute position is the GPS positioning coordinate.
[0060] Exemplarily, the obstacle's historical relative moving direction, current relative moving speed and current relative position of the vehicle can be obtained through sensors such as cameras and laser radars installed on the vehicle, and then the obstacle's historical relative moving direction, current relative moving speed and current relative position of the vehicle can be converted into the obstacle's historical absolute moving direction, current relative moving speed and current absolute position through a preset conversion algorithm, thereby obtaining the obstacle's historical moving direction data, current moving speed and current position. The disclosed embodiments do not limit the method for obtaining the obstacle's historical moving direction data, current moving speed and current position.
[0061] After obtaining the historical moving direction data, current moving speed and current position of the obstacle, the future moving trajectory of the obstacle can be predicted by combining the historical moving direction data, current moving speed and current position of the obstacle.
[0062] S20: predicting the future scaled size of the obstacle according to the size of the obstacle and the current moving speed.
[0063] For example, the size of the obstacle can be configured by default according to the type of the obstacle. For example, an image containing the obstacle can be collected by a sensor such as a camera of the vehicle, the type of the obstacle can be determined by image processing, and then the size corresponding to the obstacle type can be queried in the pre-stored obstacle size data to obtain data such as the size of the obstacle.
[0064] Furthermore, assuming that the obstacle is a vehicle, its shape is usually a rectangle by default, and the size of the obstacle may include information such as the length and width of the obstacle. assuming that the obstacle is a person, its shape may also be a rectangle by default, and the size of the obstacle may also include information such as the length and width of the obstacle.
[0065] Of course, algorithms such as target detection can also be used to process images containing obstacles to obtain real-time size information of obstacles. The embodiment of the present disclosure does not limit the expression, specific content, acquisition method, etc. of the obstacle size.
[0066] After the size and current moving speed of the obstacle are obtained, the future scaling size of the obstacle may be predicted in combination with the size and current moving speed of the obstacle.
[0067] The future scaled size of the obstacle can be understood as the future size of the obstacle in the preset obstacle-occupied space coordinate system, or can be understood as the size obtained after scaling the size of the obstacle. For example, if the moving obstacle gradually moves away from the vehicle, the future size of the obstacle in the preset obstacle-occupied space coordinate system gradually decreases, that is, the future scaled size of the obstacle gradually decreases; if the moving obstacle gradually approaches the vehicle, the future size of the obstacle in the preset obstacle-occupied space coordinate system gradually increases, that is, the future scaled size of the obstacle gradually increases.
[0068] It should be pointed out that in Figure 1 In the example, step S20 is executed after step S10. In other examples, step S20 may be executed before step S10, or step S20 and step S10 may be executed simultaneously. The execution order of step S20 and step S10 is not limited here.
[0069] S30: Determine the future occupied space of the obstacle according to the future scaling size and the future moving trajectory.
[0070] For example, the position of the obstacle in the preset obstacle-occupied space coordinate system can be determined based on the future movement trajectory, and the size of the obstacle in the preset obstacle-occupied space coordinate system can be determined based on the future scaled size, and then after obtaining the future scaled size and the future movement trajectory, the future occupied space of the obstacle can be determined in the preset obstacle-occupied space coordinate system. The future occupied space of the obstacle can be understood as an area of a certain size occupied by the obstacle at a certain position in the preset obstacle-occupied space coordinate system.
[0071] In some embodiments, after determining the future occupied space of the obstacle, an autonomous driving decision is made based on the determined future occupied space of the obstacle.
[0072] The method for predicting the future space occupied by an obstacle provided by the present disclosure predicts the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle, and predicts the future scaled size of the obstacle based on the size of the obstacle and the current movement speed, thereby being able to more accurately determine the future space occupied by the obstacle based on the future scaled size and the future movement trajectory, with a simple algorithm, high operating efficiency and strong interpretability. Furthermore, making an autonomous driving decision based on the future space occupied by the obstacle determined by the present disclosure can avoid the result of the autonomous driving decision being too conservative.
[0073] See also Figure 2 In some implementations, step S10 includes step S11 and step S12.
[0074] S11: Predict the future moving direction of the obstacle based on the historical moving direction data of the obstacle.
[0075] S12: Predict the future movement trajectory of the obstacle according to the future movement direction, the current movement speed and the current position.
[0076] In this way, the future movement trajectory of the obstacle can be predicted by fully combining the historical movement direction data, current movement speed and current position of the obstacle, thereby improving the accuracy of the predicted future movement trajectory of the obstacle.
[0077] For example, the least squares method can be used to perform curve fitting on the historical movement direction data of the obstacle, and the future movement direction of the obstacle can be predicted based on the fitted curve, and then the future movement trajectory of the obstacle can be predicted based on the future movement direction, current movement speed and current position.
[0078] Exemplarily, the historical moving direction can be characterized by the historical angle. Generally, the historical angle is defined in the range of [-pi, pi]. Before using the least squares method to perform curve fitting on the historical moving direction data of the obstacle, it also includes: preprocessing the historical angle data of the obstacle, for example, adding or subtracting 2k*Pi, k=0, 1, 2... to the corresponding historical angle, so that the preprocessed historical angle data is monotonic. Further, using the least squares method to perform curve fitting on the historical moving direction data of the obstacle includes: using the least squares method to perform curve fitting on the preprocessed historical angle data.
[0079] In some embodiments, the historical movement direction data includes multiple historical movement directions. Figure 3 , step S11 includes step S111, step S112 and step S113.
[0080] S111: Determine fitting weights of multiple historical moving directions.
[0081] S112: Determine a target fitting curve according to a plurality of historical moving directions and their corresponding fitting weights.
[0082] S113: Predicting the future moving direction of the obstacle according to the target fitting curve.
[0083] In this way, fitting multiple historical moving directions based on the fitting weights of multiple historical moving directions can ensure that the determined target fitting curve is more accurate and reliable, thereby improving the prediction accuracy of the future moving direction of the obstacle.
[0084] Specifically, the fitting weights of the historical movement directions collected at different times are different.
[0085] For example, the earlier the historical movement direction is collected, the smaller the fitting weight is, and the later the historical movement direction is collected, the larger the fitting weight is. In this way, it is ensured that the subsequent fitting results are closer to the current movement state of the obstacle, while not ignoring the historical movement state of the obstacle.
[0086] For example, the target fitting curve can characterize the relationship between the obstacle movement direction and time, and after determining the target fitting curve, for a certain future prediction time, the corresponding obstacle future movement direction can be determined according to the target fitting curve.
[0087] In some embodiments, the fitting weight of the historical moving direction is calculated by the following formula (1):
[0088]
[0089] In formula (1), w irepresents the fitting weight of the i-th historical moving direction, e is a natural constant, a w is the calibration parameter, t i Indicates the collection time of the i-th historical moving direction.
[0090] In this way, an exponential function is used to assign different weights to each historical moving direction, so that the subsequent fitting results are close to the current motion state of the obstacle, thereby improving the prediction accuracy.
[0091] For example, for different models, a w Different values can be used.
[0092] See also Figure 4 In some embodiments, step S112 includes step S1121, step S1122, step S1123, step S1124 and step S1125.
[0093] S1121: Determine a constant fitting curve, a first-order fitting curve, and a second-order fitting curve according to a plurality of historical moving directions and their corresponding fitting weights.
[0094] S1122: Calculate the constant fitting curve error according to the constant fitting curve, multiple historical moving directions and their corresponding fitting weights.
[0095] S1123: Calculate a first-order fitting curve error according to the first-order fitting curve, multiple historical moving directions and their corresponding fitting weights.
[0096] S1124: Calculate the quadratic fitting curve error according to the quadratic fitting curve, multiple historical moving directions and their corresponding fitting weights.
[0097] S1125: Determine a target fitting curve according to the constant fitting curve error, the first-order fitting curve error, and the second-order fitting curve error.
[0098] In this way, using three different curves to fit the historical movement direction of the obstacle can cover more scenarios and ensure that the determined target fitting curve is more consistent with the actual movement state of the obstacle, thereby improving the prediction accuracy.
[0099] It can be understood that the constant fitting curve represents that the obstacle travels along a straight line, the first-order fitting curve represents that the obstacle passes through a circular arc, and the second-order fitting curve represents that the obstacle passes through an S-shaped curve.
[0100] Exemplarily, the target fitting curve may be one of a constant fitting curve, a linear fitting curve, and a quadratic fitting curve.
[0101] In some embodiments, the constant fitting curve is calculated by the following formula (2) and formula (3):
[0102] θ=c 0 Formula (2).
[0103]
[0104] In formula (2) and formula (3), θ represents the moving direction of the obstacle, c 0 represents the constant term of the constant fitting curve, w i represents the fitting weight of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of historical moving directions.
[0105] In some embodiments, the constant fitting curve error is calculated by the following formula (4):
[0106]
[0107] In formula (4), f 0 Represents the constant fitting curve error.
[0108] In some embodiments, the first-order fitting curve is calculated by the following formula (5), formula (6) and formula (7):
[0109] θ=b 1 t+c 1 Formula (5).
[0110]
[0111]
[0112] In formula (5), formula (6) and formula (7), θ represents the moving direction of the obstacle, b 1 represents the linear coefficient of the first-order fitting curve, t represents the prediction time, c 1 represents the constant term of the first-order fitting curve, w i represents the fitting weight of the i-th historical moving direction, t i represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of historical moving directions.
[0113] Exemplarily, the value of the predicted time t may be the acquisition time of the historical moving direction, or may be the current time or the future time.
[0114] Exemplarily, “time” is absolute time, that is, monotonically increasing time. For example, the historical moving direction data includes a historical moving direction collected at the 2nd second, a historical moving direction collected at the 3rd second, a historical moving direction collected at the 4th second, and a historical moving direction collected at the 5th second (the latest collection time of the historical moving direction is 5 seconds at this time). The current time is the 6th second. If you want to predict the moving direction of the obstacle at the 7th second, let t be 7 seconds, and then calculate the moving direction of the obstacle at the 7th second in combination with formula (5).
[0115] In some embodiments, the first-order fitting curve error is calculated by the following formula (8):
[0116]
[0117] In formula (8), f 1 Represents the error of the first fitting curve.
[0118] In some embodiments, the quadratic fitting curve is calculated by the following formula (9) to formula (18):
[0119] θ=a 2 t 2 +b 2 t+c 2 Formula (9).
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129] In formula (9) to formula (18), θ represents the moving direction of the obstacle, a 2 represents the quadratic term coefficient of the quadratic fitting curve, b 2 represents the linear coefficient of the quadratic fitting curve, t represents the prediction time, c 2 represents the constant term of the quadratic fitting curve, w irepresents the fitting weight of the i-th historical moving direction, t i represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of historical moving directions.
[0130] In some embodiments, the quadratic fitting curve error is calculated by the following formula (19):
[0131]
[0132] In formula (19), f 2 Represents the quadratic fitting curve error.
[0133] In some embodiments, step S1125 includes step S11251, step S11252, step S11253, step S11254, and step S11255.
[0134] S11251: Determine the minimum value among the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error.
[0135] S11252: In response to the minimum value being the constant fitting curve error, taking the constant fitting curve as the target fitting curve.
[0136] S11253: In response to the minimum value being the first-order fitting curve error, the first-order fitting curve is used as the target fitting curve.
[0137] S11254: In response to the minimum value being the quadratic fitting curve error and the absolute value of the quadratic term coefficient of the quadratic fitting curve being greater than 0, if the abscissa of the vertex of the quadratic fitting curve is less than the latest acquisition time of the historical moving direction, or the abscissa of the vertex of the quadratic fitting curve is greater than the latest predicted time of the future moving direction, the quadratic fitting curve is used as the target fitting curve.
[0138] S11255: In response to the minimum value being the quadratic fitting curve error, if the quadratic term coefficient of the quadratic fitting curve is equal to 0, or the abscissa of the vertex of the quadratic fitting curve is greater than or equal to the latest acquisition time of the historical moving direction and less than or equal to the latest predicted time of the future moving direction, the first-order fitting curve is used as the target fitting curve.
[0139] In this way, the fitting curve with the best fitting degree is used as the target fitting curve, thereby improving the accuracy of the future movement trajectory of the obstacle determined according to the target fitting curve.
[0140] For example, after determining the constant fitting curve error, the first fitting curve error and the second fitting curve error, please combine Figure 5First, determine whether the constant fitting curve error is the minimum value among the three. If so, directly determine the constant fitting curve as the target fitting curve; if not, further determine whether the first-order fitting curve error is the minimum value among the three. If the first-order fitting curve error is the minimum value among the three, directly determine the first-order fitting curve as the target fitting curve; if the first-order fitting curve error is not the minimum value among the three, further determine the quadratic term coefficient a of the quadratic fitting curve 2 Is the absolute value greater than 0, and the vertex abscissa T of the quadratic fitting curve e Is it less than the latest collection time T in the historical moving direction? h Or the vertex abscissa T of the quadratic fitting curve e Is it greater than the latest predicted time T of the future moving direction? p . Furthermore, the quadratic term coefficient a of the quadratic fitting curve 2 When the absolute value is greater than 0, if the vertex abscissa T of the quadratic fitting curve is e Less than the latest collection time T in the historical moving direction h , or the vertex abscissa T of the quadratic fitting curve e Greater than the latest predicted time T of the future moving direction p , then the quadratic fitting curve is taken as the target fitting curve; the quadratic term coefficient a of the quadratic fitting curve 2 When it is equal to 0, the first fitting curve is used as the target fitting curve; at the vertex of the second fitting curve, the horizontal coordinate T e Greater than or equal to the latest collection time T of the historical moving direction h And the vertex abscissa of the quadratic fitting curve is T e Less than or equal to the latest predicted time T of the future moving direction p In the case of , the first-order fitting curve is used as the target fitting curve. Among them, the vertex abscissa T of the second-order fitting curve is e =-b 2 / 2a 2 In this way, it is avoided that the prediction time of the future moving direction contains the extreme points of the quadratic fitting curve.
[0141] In one example, a maximum prediction duration is preset, and then the maximum prediction duration is added to the current time to obtain the latest prediction time of the future moving direction.
[0142] In some embodiments, the future movement trajectory of the obstacle is calculated by the following formula (20):
[0143]
[0144] In formula (20), (x k ,y k ) represents the position of the obstacle at time k, (xk-1 ,y k-1 ) represents the position of the obstacle at time k-1, v represents the current moving speed, Δt represents the time difference between time k and time k-1, θ k-1 Indicates the moving direction of the obstacle at time k-1.
[0145] It is understandable that in the related art, the future movement trajectory of the obstacle is predicted based on a pre-trained neural network model (such as a long short-term memory recursive neural network model, etc.), but this requires a large amount of sample data for model learning and model training in the early stage, which is inefficient overall and has poor algorithm interpretability. In this embodiment, the future movement trajectory of the obstacle is predicted using a display function model as shown in formula (20), which does not require a large amount of sample data for model learning and model training, and has higher overall efficiency and stronger interpretability.
[0146] The position of the obstacle at time k can be understood as the future position of the obstacle. The position of the obstacle at time k-1 can be understood as the position of the obstacle at the previous moment before time k.
[0147] In an example, the current time is the 6th second. If we want to predict the future movement trajectory of the obstacle every 1 second (i.e., Δt is 1 second) at the current time, the process can be as follows: first, determine k-1 to be 6 seconds and k to be 7 seconds, then substitute the position of the obstacle at the 6th second (i.e., the current position), the moving speed of the obstacle at the 6th second (i.e., the current moving speed), and the moving direction of the obstacle at the 6th second into the above formula (20) to solve for the position of the obstacle at the 7th second; then, determine k-1 to be 7 seconds and k to be 8 seconds, then substitute the position of the obstacle at the 7th second, the moving speed of the obstacle at the 6th second (i.e., the current moving speed), and the moving direction of the obstacle at the 6th second into the above formula (20) to solve for the position of the obstacle at the 7th second; The current moving speed) and the moving direction of the obstacle at the 7th second are substituted into the above formula (20) to solve the position of the obstacle at the 8th second. Secondly, it is determined that k-1 is 8s and k is 9s. Then the position of the obstacle at the 8th second, the moving speed of the obstacle at the 6th second (i.e., the current moving speed) and the moving direction of the obstacle at the 8th second are substituted into the above formula (20) to solve the position of the obstacle at the 9th second. This process is repeated until the position of the obstacle at the latest predicted time is determined. Finally, the positions of the obstacle between the 6th second and the latest predicted time are connected to generate the future moving trajectory of the obstacle.
[0148] In some embodiments, the size includes a length and a width, and the future scaled size includes a future scaled length and a future scaled width. Figure 6 , step S20 includes step S21, step S22 and step S23.
[0149] S21: Determine the length attenuation coefficient and the width attenuation coefficient according to the current moving speed.
[0150] S22: Predict the future scaled length of the obstacle based on the length and length decay coefficient.
[0151] S23: Predict the future scaled width of the obstacle based on the width and the width attenuation coefficient.
[0152] In this way, the size of the obstacle is scaled based on the length attenuation coefficient and the width attenuation coefficient to determine the future scaled size of the obstacle, which facilitates the subsequent accurate determination of the future occupied space of the obstacle based on the future scaled size of the obstacle, thereby preventing the autonomous driving decision results from being overly conservative when making autonomous driving decisions based on the future occupied space of the obstacle determined according to the present disclosure.
[0153] Please combine Figure 7 For example, the current moving speed of the obstacle is v, and the size of the obstacle along the current moving speed direction A is defined as the length of the obstacle, and the size of the obstacle along the normal direction B of the current moving speed is defined as the width of the obstacle. Furthermore, the length attenuation coefficient can be understood as the attenuation coefficient of the obstacle in the current moving speed direction A; the width attenuation coefficient can be understood as the attenuation coefficient of the obstacle in the normal direction B of the current moving speed.
[0154] For example, the length attenuation coefficient and width attenuation coefficient corresponding to different moving speeds can be pre-calibrated and stored in the form of a table. After the current moving speed is determined, the length attenuation coefficient and width attenuation coefficient corresponding to the current moving speed can be quickly determined by looking up the table.
[0155] In an example, if the current moving speed is 0, the length attenuation coefficient and the width attenuation coefficient are both 0; if the current moving speed is 10km / h, the length attenuation coefficient is 0.03 and the width attenuation coefficient is 0.01; if the current moving speed is 50km / h, the length attenuation coefficient is 0.14 and the width attenuation coefficient is 0.07; if the current moving speed is 100km / h, the length attenuation coefficient is 0.18 and the width attenuation coefficient is 0.10.
[0156] In some implementations, the future scaling length is calculated using the following formula (21):
[0157]
[0158] In formula (21), d t Indicates the future scaling length, L indicates the length, a t represents the length attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
[0159] In this way, the length of the obstacle is attenuated by using an exponential attenuation function as shown in formula (21), so that the future occupied space of the obstacle can be more accurately determined based on the future scaled length, thereby preventing the autonomous driving decision result from being too conservative when making an autonomous driving decision based on the future occupied space of the obstacle determined by the present disclosure.
[0160] In an example, the historical moving direction data includes a historical moving direction collected at the 2nd second, a historical moving direction collected at the 3rd second, a historical moving direction collected at the 4th second, and a historical moving direction collected at the 5th second. The length of the obstacle is 5m, the length attenuation coefficient is 0.03, and the current time is the 6th second. If you want to predict the future scaled length of the obstacle at the 7th second, then let t be 7s, T h The value is 5s, L is 5m, a t The value is taken as 0.03, and then combined with formula (21) to calculate the future scaled length of the obstacle at the 7th second.
[0161] In some implementations, the future zoom width is calculated using the following formula (22):
[0162]
[0163] In formula (22), d n Indicates the future scaling width, H indicates width, a n represents the width attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
[0164] In this way, the width of the obstacle is attenuated by using an exponential attenuation function as shown in formula (22), so that the future occupied space of the obstacle can be more accurately determined based on the future scaled width, thereby preventing the autonomous driving decision result from being too conservative when making an autonomous driving decision based on the future occupied space of the obstacle determined by the present disclosure.
[0165] In some embodiments, the future movement trajectory includes a future position. Accordingly, step S30 includes step S31 and step S32.
[0166] S31: Draw a rectangular frame with the future position as the geometric center of the rectangular frame, the future zoom length as the length of the rectangular frame, and the future zoom width as the width of the rectangular frame. The length direction of the rectangular frame is parallel to the current moving speed direction, and the width direction of the rectangular frame is perpendicular to the length direction of the rectangular frame.
[0167] S32: The area framed by the rectangular frame is regarded as the future occupied space of the obstacle.
[0168] In this way, the future occupied space of the obstacle can be accurately determined based on the future movement trajectory and the future scaling size, thereby preventing the autonomous driving decision result from being too conservative when making autonomous driving decisions based on the future occupied space of the obstacle determined by the present invention.
[0169] Please combine Figure 8 The following is a complete example of an example of a method for predicting the future space occupied by an obstacle disclosed in the present invention:
[0170] In this embodiment, the calibration parameter a w is 0.25, and the fitting weight curve of the historical moving direction is as follows Fig. 9 The current moving speed v of the obstacle is 50 km / h, the length L of the obstacle is 5 m, the width H of the obstacle is 2.4 m, and the historical moving direction data of the obstacle in the past 5 seconds is as follows Fig.10 shown.
[0171] Further, according to Fig. 9 The fitting weights shown are used to fit the historical moving direction of the obstacle, and a constant fitting curve, a first-order fitting curve and a second-order fitting curve are obtained. The constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error are calculated. By comparing the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error, it is determined that the fitting curve error is the smallest. Therefore, the first-order fitting curve is used as the target fitting curve, and the first-order fitting curve is used to predict the future moving direction of the obstacle. Then, the future moving trajectory of the obstacle is predicted according to the future moving direction of the obstacle, the current moving speed of the obstacle and the current position of the obstacle. Among them, the constant term c of the first-order fitting curve is 1 is 0.529, and the first-order coefficient b of the first-order fitting curve is 1 It is 0.040.
[0172] At the same time, since the current moving speed v of the obstacle is 50 km / h, it can be determined that the length attenuation coefficient is 0.14 and the width attenuation coefficient is 0.07. Then, the future scaled length of the obstacle is predicted based on the length attenuation coefficient, and the future scaled width of the obstacle is predicted based on the width attenuation coefficient.
[0173] Finally, the future occupied space of the obstacle is determined by combining the future moving trajectory, future zoom length and future zoom width of the obstacle. For the convenience of display, the current geometric center position of the obstacle is set as the coordinate origin, and the current time is recorded as 0.0s. Then, the future occupied space of the obstacle obtained in this embodiment is as follows: Fig.11 shown.
[0174] Fig.12It is a schematic block diagram of the structure of a device for predicting the future space occupied by an obstacle using a hardware implementation of a processing system according to one embodiment of the present disclosure.
[0175] The device may include a corresponding module for performing each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be performed by a corresponding module, and the device may include one or more modules in these modules. The module may be one or more hardware modules specially configured to perform the corresponding steps, or implemented by a processor configured to perform the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination.
[0176] The hardware structure can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0177] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.
[0178] Any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present disclosure. The processor performs the various methods and processes described above. For example, the method implementation in the present disclosure can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).
[0179] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.
[0180] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.
[0181] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0182] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.
[0183] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.
[0184] Fig.12 FIG. 1 is a schematic diagram of a structure of a device 1000 for predicting the future space occupied by an obstacle according to an embodiment of the present disclosure. Fig.12 As shown, the device 1000 for predicting the future space occupied by an obstacle according to the present disclosure may include a first prediction module 1002 , a second prediction module 1004 and a determination module 1006 .
[0185] The first prediction module 1002 is used to predict the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle. The second prediction module 1004 is used to predict the future scaled size of the obstacle based on the size of the obstacle and the current movement speed. The determination module 1006 is used to determine the future occupied space of the obstacle based on the future scaled size and the future movement trajectory.
[0186] The present disclosure also provides an electronic device, including: a memory, the memory storing execution instructions; and a processor or other hardware module, the processor or other hardware module executes the execution instructions stored in the memory, so that the processor or other hardware module executes the above-mentioned method for predicting the space occupied by obstacles in the future.
[0187] Exemplarily, the electronic devices include but are not limited to vehicle-mounted terminals, servers, domain controllers, flight controllers, etc.
[0188] The present disclosure also provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the above-mentioned method for predicting the space occupied by obstacles in the future.
[0189] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, unless they are contradictory.
[0190] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0191] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A method for predicting the space that an obstacle will occupy in the future, It is characterized in that include: Predicting the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle; Predicting a future scaled size of the obstacle based on the size of the obstacle and the current moving speed; Determine the future occupied space of the obstacle according to the future scaled size and the future moving trajectory; The size includes a length and a width, the future scaling size includes a future scaling length and a future scaling width, and the predicting the future scaling size of the obstacle according to the size of the obstacle and the current moving speed includes: Determine a length attenuation coefficient and a width attenuation coefficient according to the current moving speed; predicting a future scaled length of the obstacle based on the length and the length attenuation coefficient; predicting a future scaled width of the obstacle based on the width and the width attenuation coefficient; The future movement trajectory includes a future position, and determining the future occupied space of the obstacle according to the future scaled size and the future movement trajectory includes: Draw a rectangular frame with the future position as the geometric center of the rectangular frame, the future zoom length as the length of the rectangular frame, and the future zoom width as the width of the rectangular frame, wherein the length direction of the rectangular frame is parallel to the current moving speed direction, and the width direction of the rectangular frame is perpendicular to the length direction of the rectangular frame; The area framed by the rectangular frame is used as the future occupied space of the obstacle.
2. The method for predicting the future space occupied by an obstacle according to claim 1, It is characterized in that The predicting of the future movement trajectory of the obstacle according to the historical movement direction data, the current movement speed and the current position of the obstacle includes: Predicting the future movement direction of the obstacle based on the historical movement direction data of the obstacle; The future movement trajectory of the obstacle is predicted according to the future movement direction, the current movement speed and the current position.
3. The method for predicting the future space occupied by an obstacle according to claim 2, It is characterized in that The historical moving direction data includes a plurality of historical moving directions, and predicting the future moving direction of the obstacle according to the historical moving direction data of the obstacle includes: Determining fitting weights of a plurality of the historical moving directions; Determine a target fitting curve according to the plurality of historical moving directions and their corresponding fitting weights; The future moving direction of the obstacle is predicted according to the target fitting curve.
4. The method for predicting the future space occupied by an obstacle according to claim 3, It is characterized in that The fitting weight of the historical moving direction is calculated by the following formula: Among them, w i represents the fitting weight of the i-th historical moving direction, e is a natural constant, a w is the calibration parameter, t i Indicates the collection time of the i-th historical moving direction.
5. The method for predicting the future space occupied by obstacles according to claim 3, It is characterized in that The step of determining a target fitting curve according to the plurality of historical moving directions and their corresponding fitting weights includes: Determine a constant fitting curve, a first-order fitting curve and a second-order fitting curve according to the plurality of historical moving directions and their corresponding fitting weights; Calculating a constant fitting curve error according to the constant fitting curve, the plurality of historical moving directions and their corresponding fitting weights; Calculating a primary fitting curve error according to the primary fitting curve, the plurality of historical moving directions and their corresponding fitting weights; Calculating a quadratic fitting curve error according to the quadratic fitting curve, a plurality of the historical moving directions and their corresponding fitting weights; The target fitting curve is determined according to the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error.
6. The method for predicting the future space occupied by an obstacle according to claim 5, It is characterized in that The constant fitting curve is calculated by the following formula: θ=c 0 , Among them, θ represents the moving direction of the obstacle, c 0 represents the constant term of the constant fitting curve, w i represents the fitting weight of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
7. The method for predicting the future space occupied by an obstacle according to claim 6, It is characterized in that The constant fitting curve error is calculated by the following formula: Among them, f 0 represents the constant fitting curve error.
8. The method for predicting the future space occupied by an obstacle according to claim 5, It is characterized in that The first-order fitting curve is calculated by the following formula: θ=b 1 t+c 1 , Among them, θ represents the moving direction of the obstacle, b 1 represents the linear coefficient of the linear fitting curve, t represents the prediction time, c 1 represents the constant term of the first-order fitting curve, w i represents the fitting weight of the i-th historical moving direction, t i represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
9. The method for predicting the future space occupied by an obstacle according to claim 8, It is characterized in that The first-order fitting curve error is calculated by the following formula: Among them, f 1 represents the first-order fitting curve error.
10. The method for predicting the future space occupied by an obstacle according to claim 5, It is characterized in that The quadratic fitting curve is calculated by the following formula: θ=a 2 t 2 +b 2 t+c 2 , Among them, θ represents the moving direction of the obstacle, a 2 represents the quadratic term coefficient of the quadratic fitting curve, b 2 represents the linear coefficient of the quadratic fitting curve, t represents the prediction time, c 2 represents the constant term of the quadratic fitting curve, w i represents the fitting weight of the i-th historical moving direction, t i represents the collection time of the i-th historical moving direction, y i represents the i-th historical moving direction, and n represents the total number of the historical moving directions.
11. The method for predicting the future space occupied by an obstacle according to claim 10, It is characterized in that The quadratic fitting curve error is calculated by the following formula: Among them, f 2 represents the quadratic fitting curve error.
12. The method for predicting the future space occupied by an obstacle according to claim 5, It is characterized in that The determining the target fitting curve according to the constant fitting curve error, the first-order fitting curve error and the second-order fitting curve error comprises: Determine a minimum value among the constant fitting curve error, the first-order fitting curve error, and the second-order fitting curve error; In response to the minimum value being the constant fitting curve error, taking the constant fitting curve as the target fitting curve; In response to the minimum value being the primary fitting curve error, taking the primary fitting curve as the target fitting curve; In response to the minimum value being the quadratic fitting curve error and the absolute value of the quadratic term coefficient of the quadratic fitting curve being greater than 0, if the abscissa of the vertex of the quadratic fitting curve is less than the latest acquisition time of the historical moving direction, or the abscissa of the vertex of the quadratic fitting curve is greater than the latest predicted time of the future moving direction, taking the quadratic fitting curve as the target fitting curve; In response to the minimum value being the quadratic fitting curve error, if the quadratic term coefficient of the quadratic fitting curve is equal to 0, or the abscissa of the vertex of the quadratic fitting curve is greater than or equal to the latest acquisition time of the historical moving direction and less than or equal to the latest predicted time of the future moving direction, the first-order fitting curve is used as the target fitting curve.
13. The method for predicting the future space occupied by an obstacle according to claim 2, It is characterized in that The future movement trajectory of the obstacle is calculated by the following formula: Among them, (x k ,y k ) represents the position of the obstacle at time k, (x k-1 ,y k-1 ) represents the position of the obstacle at time k-1, v represents the current moving speed, Δt represents the time difference between time k and time k-1, θ k-1 Indicates the moving direction of the obstacle at time k-1.
14. The method for predicting the future space occupied by an obstacle according to claim 1, It is characterized in that The future scaling length is calculated by the following formula: Among them, d t represents the future scaling length, L represents the length, a t represents the length attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
15. The method for predicting the future space occupied by an obstacle according to claim 1, It is characterized in that The future zoom width is calculated by the following formula: Among them, d n represents the future zoom width, H represents the width, a n represents the width attenuation coefficient, e is a natural constant, t represents the prediction time, T h Indicates the latest collection time of the historical moving direction.
16. A device for predicting the space that an obstacle will occupy in the future. It is characterized in that include: A first prediction module, used to predict the future movement trajectory of the obstacle based on the historical movement direction data, current movement speed and current position of the obstacle; A second prediction module, configured to predict a future scaled size of the obstacle according to the size of the obstacle and the current moving speed; A determination module, configured to determine a future occupied space of the obstacle according to the future scaled size and the future moving trajectory; The size includes a length and a width, the future scaling size includes a future scaling length and a future scaling width, and the predicting the future scaling size of the obstacle according to the size of the obstacle and the current moving speed includes: Determine a length attenuation coefficient and a width attenuation coefficient according to the current moving speed; predicting a future scaled length of the obstacle based on the length and the length attenuation coefficient; predicting a future scaled width of the obstacle based on the width and the width attenuation coefficient; The future movement trajectory includes a future position, and determining the future occupied space of the obstacle according to the future scaled size and the future movement trajectory includes: Draw a rectangular frame with the future position as the geometric center of the rectangular frame, the future zoom length as the length of the rectangular frame, and the future zoom width as the width of the rectangular frame, wherein the length direction of the rectangular frame is parallel to the current moving speed direction, and the width direction of the rectangular frame is perpendicular to the length direction of the rectangular frame; The area framed by the rectangular frame is used as the future occupied space of the obstacle.
17. An electronic device, It is characterized in that include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instructions stored in the memory so that the processor executes the method for predicting the future space occupied by an obstacle as described in any one of claims 1 to 15.
18. A readable storage medium, It is characterized in that The readable storage medium stores execution instructions, which are used to implement the method for predicting the future space occupied by an obstacle as described in any one of claims 1 to 15 when executed by the processor.
