A vehicle trajectory prediction method and device, vehicle, computer program product
By using the theory of potential differential game to predict vehicle trajectories in autonomous driving systems, the problem of inaccurate trajectory prediction in existing technologies is solved, and driving safety and decision-making efficiency in merging areas are improved.
Patent Information
- Application Number
- CN202510712245.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2026-12-01
AI Technical Summary
When predicting vehicle trajectories, existing autonomous driving systems cannot fully capture the vehicle's true driving intentions and future trajectory using rule-based methods, while learning-based methods ignore the feasibility of predicting trajectories, resulting in insufficient driving safety in merging areas.
Employing potential differential game theory, this method selects the vehicle and surrounding vehicles as players, obtains their motion state information, establishes a coupled trajectory optimization problem, and solves the Nash equilibrium point through the potential equation to predict the trajectory of merging vehicles, ensuring that the predicted trajectory meets the vehicle motion requirements and group interaction.
It improves the driving safety and trajectory prediction accuracy of autonomous vehicles in merging areas, reduces the need for training data, and enables real-time decision support.
Smart Images

Figure CN123190854A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of trajectory prediction technology, specifically to a vehicle trajectory prediction method and device, a vehicle, and a computer program product. Background Technology
[0002] Autonomous driving systems need to deeply consider the interaction between the autonomous vehicle and its surrounding environment in order to accurately plan a safe driving path. In addition to obeying road rules and avoiding static obstacles, autonomous driving systems must also predict the possible future trajectories of other vehicles in the vicinity, which is crucial for preventing potential collisions and improving overall driving safety.
[0003] Currently, trajectory prediction in autonomous driving systems mainly employs rule-based and learning-based methods. Traditional rule-based methods typically require manual definition of the vehicle's driving patterns, such as acceleration, deceleration, or based on a specific rate of change of speed. These methods may rely on simplified physical models, such as vehicle dynamics, but they often fail to fully capture the vehicle's true driving intentions and future trajectory. Furthermore, these methods rarely consider interactions with other vehicles when predicting vehicle trajectories. In contrast, learning-based methods can learn interaction patterns between vehicles from historical data and excel at capturing vehicle-to-vehicle interactions. However, they often overlook the feasibility of predicting trajectories, i.e., they fail to ensure that the generated trajectory conforms to the constraints of vehicle kinematics. This requires a significant investment of time and resources in collecting sufficient training data during the model training phase. Summary of the Invention
[0004] The purpose of this invention is to provide a vehicle trajectory prediction method and device, and a computer program product, so as to accurately predict the trajectories of other vehicles and save time and resources during the training phase.
[0005] To achieve the above objectives, according to a first aspect of the present invention, a vehicle trajectory prediction method is provided, the method comprising:
[0006] When a vehicle is traveling on the main road and enters the merging area, the vehicle and at least one other vehicle that affects the vehicle's travel are selected as game players, and the movement status information of all game players is obtained; the at least one other vehicle includes merging vehicles traveling on ramps.
[0007] Based on the driving intentions of all players and the motion state information of all players, a trajectory optimization problem is established in which all players are coupled together.
[0008] The potential equation for the trajectory optimization problem is constructed based on potential differential game theory.
[0009] Solve for the Nash equilibrium point of the potential equation. If the solution is successful, output the predicted trajectory of the merging vehicle.
[0010] According to a second aspect of the present invention, a vehicle trajectory prediction apparatus is provided, comprising a module for performing the above-described method.
[0011] According to a third aspect of the present invention, a vehicle trajectory prediction device is provided, comprising:
[0012] A communication interface used for communicating with other electronic devices;
[0013] Memory is used to store computer program instructions;
[0014] A processor for executing the computer program instructions to support the vehicle in implementing the method as described in the first aspect.
[0015] According to a fourth aspect of the present invention, a computer program product is provided, comprising computer program instructions that instruct a computer device to perform an operation corresponding to the method described in the first aspect.
[0016] The vehicle trajectory prediction method, device, vehicle, and computer program product proposed in this invention have the following beneficial effects:
[0017] This invention selects the vehicle and at least one other vehicle (especially merging vehicles on ramps) as players in a potential differential game when the vehicle enters the merging area, and obtains their motion state information (such as position, speed, etc.). Then, based on the driving intentions of all players and their motion state information, a coupled trajectory optimization problem is established. The trajectory optimization problem considers the interaction between vehicles, ensuring that the predicted trajectory not only meets the motion requirements of individual vehicles, but also considers the interaction within the vehicle group. To handle the complex interaction between vehicles, this invention uses potential differential game theory to construct the potential equation for the trajectory optimization problem. Potential differential game is a mathematical tool suitable for describing the strategic interaction between multiple vehicles. By solving the Nash equilibrium point of the potential equation, the aim is to find a strategy under which each player's trajectory is the best response to the trajectories of other players. If the solution is successful, the predicted trajectory of the merging vehicle can be obtained. If the Nash equilibrium point solution fails, a rule-based method is used to fit the predicted trajectory using the current position and current speed of the merging vehicle. It should be noted that by considering the interaction between vehicles, this invention can more accurately predict the trajectories of other vehicles, thereby improving the driving safety of autonomous vehicles in merging areas; the application of the potential differential game method makes trajectory prediction faster, which helps the autonomous driving system make decisions in real time. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart of a vehicle trajectory prediction method according to an embodiment of the present invention.
[0020] Figure 2 This is a flowchart illustrating a vehicle trajectory prediction method according to an embodiment of the present invention.
[0021] Figure 3 This is a schematic diagram of a vehicle merging scenario in an embodiment of the present invention.
[0022] Figure 4 This is a schematic diagram of another vehicle merging scenario in an embodiment of the present invention.
[0023] Figure 5 This is a schematic diagram of the structure of a vehicle according to an embodiment of the present invention. Detailed Implementation
[0024] The detailed description of the accompanying drawings is intended to illustrate the present embodiments of the invention and is not intended to represent only the forms in which the invention can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included within the spirit and scope of the invention.
[0025] See Figure 1 An embodiment of the present invention provides a vehicle trajectory prediction method, the method comprising the following steps:
[0026] Step S10: When the vehicle is traveling on the main road and enters the merging area, select the vehicle and at least one other vehicle that affects the vehicle's travel as game players, and obtain the motion status information of all game players; the at least one other vehicle includes merging vehicles traveling on the ramp.
[0027] Specifically, the merging area refers to the area where the main road and auxiliary roads (such as ramps, branch roads, or access roads) converge. During the driving process of the vehicle, the autonomous driving system monitors in real time whether the vehicle enters the merging area. If so, it selects the vehicle and at least one other vehicle (the vehicle's surrounding vehicles) that affect the vehicle's driving as players, and uses the vehicle's perception system to sense and collect the motion state information of each player. The motion state information includes, but is not limited to, position, speed, and heading angle.
[0028] Step S20: Based on the driving intentions of all players and the motion state information of all players, establish a trajectory optimization problem in which all players are coupled with each other.
[0029] Specifically, each vehicle has its own driving intention in the merging area, such as accelerating, maintaining speed, or merging. In this embodiment, driving intentions are pre-set for vehicles of different player roles (e.g., the vehicle driving on the main road, the merging vehicle preparing to merge into the main road, and the vehicle in front of the vehicle). The driving trajectories of vehicles in the merging area are mutually influential. Therefore, based on the driving intentions and movement states of each player, a trajectory optimization problem of mutually coupled players can be established, aiming to find the optimal driving trajectory for each player.
[0030] For example, suppose there are two players: car A and a merging car B from a ramp. Car A's intention is to stay in its current lane and travel at a constant speed; car B's intention is to merge into car A's lane without affecting car A. Car A is in the inner lane of the main road at 60 km / h; car B is on the ramp at 50 km / h, preparing to merge. The trajectory optimization problem then involves:
[0031] Objective function: For vehicle A, the objective function can be to minimize the relative speed difference with vehicle B to ensure safe merging; for vehicle B, the objective function can be to minimize the time and distance required for merging.
[0032] Constraints include, but are not limited to, vehicle dynamics constraints (such as maximum acceleration and deceleration), safety distance constraints (such as minimum distance from the vehicle in front), and lane keeping constraints (such as the vehicle must not deviate from its lane).
[0033] For example, suppose there are three players: car C, a regular vehicle D merging from the left ramp, and a vehicle E traveling in front of car C; car C's intention is to maintain its current lane and speed as much as possible while ensuring safety, preparing to pass through the merging area; car D's intention is to merge from the ramp into car C's lane and complete the merging as quickly as possible to avoid affecting other vehicles; car E's intention is to maintain its current lane and speed, without considering merging vehicles; car C is in the middle lane of the main road at a speed of 70 km / h; car D is on the left ramp at a speed of 60 km / h, preparing to merge into car C's lane; car E is in front of car C at a speed of 65 km / h; then the trajectory optimization problem includes:
[0034] Objective function: For vehicle C, the objective function can be to minimize the collision risk with other vehicle D while maintaining a safe distance from vehicle E in front; for other vehicle D, the objective function can be to minimize the time and acceleration change required for merging; for vehicle E in front, although it does not directly participate in merging, its driving state will also affect the merging process.
[0035] Constraints include vehicle dynamics constraints, safe distance constraints, lane keeping constraints, etc.
[0036] Step S30: Construct the potential equation for the trajectory optimization problem based on potential differential game theory;
[0037] Specifically, different optimization problems are coupled together by security considerations, and the optimal solution depends on the solutions of other players. Therefore, through game theory, each player must not only consider its own gains but also the possible decisions and gains of other players. Each player wants to maximize its gains under different conditions, i.e., under different decisions of other players. Potential differential game theory provides a method to solve this coupled optimization problem. By finding the potential equation and using it as the loss function of the new optimization problem, the original multiple coupled optimization problems are transformed into a single optimization problem, and the solution of this single optimization problem is the Nash equilibrium point.
[0038] Step S40: Solve for the Nash equilibrium point of the potential equation. If the solution is successful, output the predicted trajectory of the merging vehicle.
[0039] Specifically, the solution to the coupled optimization problem is the Nash equilibrium point. In a Nash equilibrium, each participant (or "player") has chosen the best strategy for themselves after considering the strategy choices of other players. That is, at the Nash equilibrium point, no player can obtain a better result by unilaterally changing their strategy. If the potential equation is solved to obtain the Nash equilibrium point, the predicted trajectory of the merging vehicle is obtained, which can be used to provide better constraints for the vehicle's decision-making.
[0040] like Figure 2 The diagram shown is a specific flowchart of an embodiment of the present invention. Figure 2The steps of this embodiment's method are illustrated in how the vehicle continuously executes them during its operation. The vehicle monitors whether it is within the merging region. If not, it continues monitoring; if so, it executes steps S10 to S40. Specifically, in step S40, after selecting a suitable solver to solve the newly constructed optimization problem, if the Nash equilibrium point is successfully solved, a predicted trajectory and a decision reference for the vehicle are obtained. If the Nash equilibrium point is not solved, a rule-based approach is needed to obtain a fallback merging vehicle prediction trajectory. Here, it can be assumed that the merging vehicle is moving at a uniformly accelerated speed based on its perceived current acceleration, and a target endpoint position (i.e., the merging point) is selected. A predicted trajectory for the merging vehicle can be fitted using a polynomial to inform the vehicle's decision-making. Figure 2 As shown, after obtaining the predicted trajectory, the vehicle will determine whether it has left the merging area. If so, the trajectory prediction ends; otherwise, the above steps S10 to S40 are repeated to perform a new round of trajectory prediction based on the latest perception data.
[0041] In summary, the method of this embodiment selects the vehicle and at least one other vehicle (especially merging vehicles on ramps) as players in a potential differential game when the vehicle enters the merging area, and obtains their motion state information (such as position, speed, etc.). Then, based on the driving intentions of all players and their motion state information, a coupled trajectory optimization problem is established. The trajectory optimization problem considers the interaction between vehicles, ensuring that the predicted trajectory not only meets the motion requirements of individual vehicles, but also considers the interaction among the vehicle group. To handle the complex interaction between vehicles, the method of this embodiment uses potential differential game theory to construct the potential equation of the trajectory optimization problem. Potential differential game is a mathematical tool suitable for describing the strategic interaction between multiple vehicles. By solving the Nash equilibrium point of the potential equation, the aim is to find a strategy under which each player's trajectory is the best response to the trajectories of other players. If the solution is successful, the predicted trajectory of the merging vehicle can be obtained. If the Nash equilibrium point solution fails, a rule-based method is adopted, using the current position and current speed of the merging vehicle to fit the predicted trajectory. It should be noted that by considering the interaction between vehicles, the method in this embodiment can more accurately predict the trajectory of other vehicles, thereby improving the driving safety of autonomous vehicles in merging areas; the application of the potential differential game method makes trajectory prediction faster, which helps the autonomous driving system make decisions in real time; compared with learning-based methods, the method in this embodiment does not require a lot of time and resources to collect training data during the training phase, because it relies on mathematical models and rules rather than data-driven learning.
[0042] In some embodiments, such as Figure 2As shown, when there is a preceding vehicle (FV) in front of the EV, the at least one other vehicle includes a merging vehicle (MV) traveling on the ramp and a preceding vehicle (FV) located in front of the EV; as Figure 3 As shown, when there is no preceding vehicle (FV) in front of the EV, the at least one other vehicle includes a merging vehicle (MV) traveling on the ramp;
[0043] In this embodiment, it is assumed that the predicted target vehicles driven by humans are all controlled by rational drivers, that is, they want to maximize their own gains. The driving intentions of different player roles are pre-set as follows:
[0044] The driving intention of the EV is to maintain a desired speed without considering lane changes; specifically, the EV aims to maintain a preset or dynamically adjusted target speed in the absence of external interference, and the EV travels in the current lane without intending to change lanes, even if there may be opportunities to accelerate or obstacles in other lanes.
[0045] The driving intention of the vehicle in front (FV) is to maintain its current lane and travel at its current speed; specifically, the vehicle in front has no intention of changing lanes and will continue to travel in its current lane; the vehicle in front will continue to travel at its current speed without accelerating or decelerating unless affected by external factors (such as changes in traffic conditions).
[0046] The merging vehicle (MV) intends to merge into the main road as quickly and safely as possible; specifically, the merging vehicle aims to merge into the main road from the ramp in the shortest possible time; while pursuing rapid merging, the merging vehicle also considers safety factors to avoid collisions or causing discomfort to other vehicles.
[0047] In some embodiments, the trajectory optimization problem includes a vehicle loss function and a merging vehicle loss function.
[0048] The goal of the vehicle is to travel at the desired speed, improving efficiency (speed tracking), while simultaneously ensuring safety and comfort, without considering lane changes. Therefore, its loss function consists of four parts: the vehicle's speed tracking loss function, acceleration loss function, lateral offset loss function, and longitudinal safety loss function. Specifically, the closer the vehicle's actual speed is to the desired speed, the smaller the value of the speed tracking loss function; the smaller the vehicle's acceleration, the smaller the value of the acceleration loss function; the closer the vehicle's lateral position is to the center of the current lane, the smaller the value of the lateral offset loss function; and the better the vehicle maintains its longitudinal distance from other players, the smaller the value of the longitudinal safety loss function.
[0049] The merging vehicle loss function is designed primarily from three aspects: merging timeliness, safety, and comfort. In this scenario, the merging vehicle's behavioral intention is very clear: to merge into the main road. There is no reverse lane change or straight-ahead movement, so road constraints along the roadside boundaries do not need to be considered. Furthermore, since the ramp lanes gradually disappear, merging vehicles will want to merge as quickly as possible. And because vehicles on the main road have the right-of-way, merging vehicles do not consider speed losses. The merging vehicle loss function can be set to include a merging timeliness loss function, an acceleration loss function, and a longitudinal safety loss function. Specifically, the earlier the merging vehicle merges into the main road, the smaller the value of the merging timeliness loss function; the smaller the acceleration of the merging vehicle, the smaller the value of the acceleration loss function; and the better the longitudinal distance maintained by the merging vehicle from other players, the smaller the value of the longitudinal safety loss function.
[0050] In some embodiments, the merging timeliness loss function includes a merging timeliness loss function in the longitudinal direction. and the merging timeliness loss function in the lateral direction
[0051] The loss value of the longitudinal merging timeliness loss function is determined based on a first weighting factor and a first variable, and can be exemplarily expressed as the product of the two:
[0052]
[0053] Where σ is the first weighting factor and f1 is the first variable. The first variable is determined based on the distance of the merging vehicle from the point where the center line of the main road and the gate lane merges. When the distance of the merging vehicle from the point where the center line of the main road and the gate lane merges is greater, the value of f1 is smaller. Conversely, when the distance of the merging vehicle from the point where the center line of the main road and the gate lane merges is smaller, the value of f1 is greater.
[0054] The loss value of the lateral merging timeliness loss function can be determined based on the second weighting factor and the second variable, and can be exemplarily expressed as the product of the two:
[0055]
[0056] Wherein, 1-σ is the second weighting factor, and f2 is the second variable. The second variable is determined based on the lateral deviation between the merging vehicle and the center line of the main road lane. When the lateral deviation between the merging vehicle and the center line of the main road lane is larger, the value of f2 is larger. Conversely, when the distance between the merging vehicle and the merging point of the main road and the center line of the gate lane is smaller, the value of f2 is smaller.
[0057] Where 0 < σ < 1, the sum of the first weighting factor and the second weighting factor is 1.
[0058] In some embodiments, the trajectory optimization problem further includes a preceding vehicle loss function;
[0059] Since the driving decisions and behaviors of the vehicle in front in the same lane are also affected by other vehicles around it, this invention focuses on the situation where the vehicle is merged, so other less important vehicles are not included. Here, it is assumed that the vehicle in front wants to maintain its lane and travel at a constant speed. The loss function of the vehicle in front can be set to include a speed tracking loss function, a lateral offset loss function, and a longitudinal safety loss function. Among them, the closer the actual speed of the vehicle in front is to its initial speed, the smaller the value of the speed tracking loss function of the vehicle in front; the closer the lateral position of the vehicle in front is to the center of the current lane, the smaller the value of the lateral offset loss function of the vehicle in front; the better the longitudinal distance maintained by the vehicle in front and other players, the smaller the value of the longitudinal safety loss function of the vehicle in front.
[0060] The following is based on Figure 2 Taking a scenario as an example, we will illustrate the loss functions of autonomous vehicles, merging vehicles, and the preceding vehicle. Based on the foregoing, the loss function of an autonomous vehicle (EV) can be defined as follows:
[0061]
[0062] For example, to achieve the objective of the vehicle loss function, the following can be set:
[0063]
[0064]
[0065] Where X represents the player's movement state, e represents the vehicle, and -e represents other players besides the vehicle. e =(x,y,ψ,v) T x and y represent the horizontal and vertical coordinates of vehicle e, ψ represents the heading angle of vehicle e, and v represents the speed of vehicle e; k represents any moment within the prediction range. Let e represent the speed tracking loss function of vehicle e at time k. It is the speed of car e at time k. Let e be the desired speed of the vehicle. This represents the acceleration of vehicle e at time k. This is the maximum acceleration of vehicle e. For comfort reasons, its acceleration should not be too large. It is mainly used to penalize vehicles that attempt to change lanes or overtake. In this embodiment, it is expected that the vehicle will continue to travel along the initial lane. center W represents the y-axis coordinate of the center line of the main road lane closest to the vehicle. lane The lane width is one of the three sub-loss functions, and these three functions are only related to the vehicle's state.
[0066] Furthermore, It's slightly different; it's not only related to the state of your own vehicle, but also to the state of other vehicles. It represents the state of the player's vehicle (EV, labeled e) at time k. It refers to the state of the player's vehicle MV (labeled m) and FV (labeled f) at time k. Used to improve safety and maintain a safe distance between the vehicle and other vehicles. y is the longitudinal distance between vehicle e and other vehicle i at time k. threshold Here, δ is a preset threshold value, and δ is a preset constant value. It is the speed of car e at time k. It is the speed of car i at time k. It is the ordinate of vehicle e at time k. It is the ordinate of car i at time k.
[0067] Based on the foregoing, the loss function for the preceding vehicle (FV) can be defined as follows:
[0068]
[0069] For example, to achieve the objective of the vehicle loss function, the following can be set:
[0070]
[0071]
[0072] Where X represents the player's movement state, f represents the car in front, and -f represents other players besides the car in front f. f =(x,y,ψ,υ) T Let x and y be the x and y coordinates of the vehicle in front f, ψ be the heading angle of the vehicle in front f, and v be the speed of the vehicle in front f. This is similar to the speed-related loss function defined for the vehicle e. It has a similar form, but unlike the self-vehicle e which aims to travel at a desired speed, it is based on the assumption that the preceding vehicle f aims to maintain its current speed. It is the speed of the car in front, f, at time k. The perceived speed of the vehicle ahead, f, at the current moment (i.e., the expected speed of the vehicle ahead). The definition is the same as for the vehicle in question, assuming that the vehicle in front, f, also has no intention of changing lanes. Let f be the ordinate of the vehicle ahead at time k. and These two items are only related to the current state of the perceived preceding vehicle f.
[0073] Furthermore, It's slightly different; it's not only related to the state of your own vehicle, but also to the state of other vehicles. Definition and bicycle They are the same because the safety considerations among the vehicles are symmetrical, that is... It is the state of the preceding vehicle f at time k. It refers to the state of the player's vehicle's MV (labeled as m) and EV (labeled as e) at time k. Used to improve safety and maintain a safe distance between the vehicle in front and other vehicles. y is the longitudinal distance between the preceding vehicle f and the merging vehicle m at time k. threshold Here, δ is a preset threshold value, and δ is a preset constant value. It is the speed of the merging vehicle m at time k. It is the speed of the car in front, f, at time k. It is the ordinate of the merging car m at time k. It is the ordinate of the vehicle f ahead at time k.
[0074] Based on the foregoing, the loss function for merging vehicles (MV) can be defined as follows:
[0075]
[0076] For example, to achieve the objective of the merging vehicle loss function, the following can be set:
[0077] Right now
[0078] Right now
[0079]
[0080] Where X represents the player's movement state, m represents the merging vehicle, and -m represents other players besides those in the merging vehicle. m =(x,y,ψ,υ,σ) T x and y are the horizontal and vertical coordinates of the merging vehicle m, ψ is the heading angle of the merging vehicle m, and v is the speed of the merging vehicle m. In the state of the merging vehicle, an additional state variable σ is introduced, which is also one of the parameters to be optimized, and is used to control the lateral and longitudinal balance relationship during merging. and Both are based on the timeliness of merging. To improve the timeliness of merging from a longitudinal perspective, s represents the total length of the merging gate road. It is the distance of the merging vehicle from the point where the center lines of the main road and the ramp lanes meet at time k. To improve merging timeliness from a lateral perspective, the closer the longitudinal distance to the merging point, the faster the lateral transition to the main road is desired, meaning a smaller lateral deviation from the main road lane centerline. The smaller the lateral deviation of MV from the main road lane, the earlier the merging is completed. Therefore, the loss due to longitudinal distance from the merging point is less of a concern. This property is derived from σ. and Connect them. Let be the ordinate of the merging vehicle at time k; As a manifestation of comfort, Let be the acceleration of the merging vehicle at time k. For the maximum acceleration of the merging vehicle, the above three loss functions are only related to the state of the merging vehicle itself.
[0081] Similarly, from a security perspective, Considering safe interaction with other vehicles, it is defined as
[0082] It should be noted that the formulas for the loss functions of the unicycle, the preceding vehicle, and the merging vehicle are merely illustrative examples. Based on these examples, those skilled in the art can appropriately adjust the formulas to achieve the target of the loss function in this embodiment.
[0083] In some embodiments, the trajectory optimization problem includes constraints, which include that the motion states of all players must satisfy vehicle kinematics model constraints, the predicted trajectories of all players must satisfy collision constraints, and the values of each state variable of all players must satisfy maximum and minimum value constraints.
[0084] Specifically, in addition to defining the loss function, the optimization problem also requires attention to various constraints. Here, we need to focus on the constraints imposed by vehicle dynamics on the state, and derive the state X of the next time step from the initial state based on the bicycle kinematic model. k+1 =f(X) k ,u k ), where u is the control variable u = (δ, a) T δ is the steering angle of the vehicle's front wheels (which can be estimated from the player's heading angle ψ), and a is the acceleration. For the initial state X0, the vehicle's own steering angle is obtained through odometry, while other vehicles' steering angle is obtained through the vehicle's perception system.
[0085] In addition, it is necessary to ensure that each state variable takes values within the feasible range, that is, within the range of maximum and minimum allowable values, since the MV state X m A new state variable σ has been added, and its value range is defined to be limited to [0, 1].
[0086] Finally, for safety considerations, hard collision constraints need to be added to the constraints, which can be expressed as:
[0087] i and
[0088] Where, r threshold To preset a safe distance threshold, and These are the x and y coordinates of player i at time k. and These are the x and y coordinates of player j at time k.
[0089] Based on the above, the optimization issues for each player can be defined as follows:
[0090]
[0091] sth i (X i ,u i ,X -i ,u -i ) = 0
[0092] g i (x i ,u i ,x -i ,u -i )≤0 (indicates an inequality constraint);
[0093] h i =0 indicates an equality constraint, meaning that each player's next state is calculated based on the vehicle's kinematics model and the current state, g i ≤0 indicates an inequality constraint, such as the values of each variable needing to be within a preset range, less than or equal to the maximum value, and greater than or equal to the minimum value. Another example is a hard collision constraint, where the safe distance needs to be less than the safe distance threshold r. threshold .
[0094] Specifically, further, by constructing the potential equation P, we can obtain the following definition based on the properties of potential games:
[0095]
[0096] Define, X = (X i ,X -i ), X i It is the state of player i, X -i Regarding the status of other players, the new optimization issue is:
[0097]
[0098] sth(X,u)=0,g(X,u)≤0
[0099] The above problem is a nonlinear optimization problem. A suitable solver can be selected to solve the optimization problem, such as ipopt. If the solution is successful, the state X and control variable u of each player at each moment in the future preset time period can be obtained. The predicted trajectory of the merging car can be obtained based on the state X of the merging car.
[0100] In some embodiments, the method includes:
[0101] Step S50: Obtain the planned trajectory of the vehicle. Based on the planned trajectory of the vehicle and the predicted trajectory of the merging vehicle, determine whether the vehicle has left the merging area. If yes, the process ends; otherwise, repeat the trajectory prediction step for the merging vehicle.
[0102] Specifically, the planned trajectory of the autonomous vehicle is compared with the predicted trajectory of the merging vehicle to assess their relative positions and possible interactions, ensuring that the autonomous vehicle will not collide with or come dangerously close to the merging vehicle while driving within the merging area. If the planned trajectory of the autonomous vehicle shows that it has successfully exited the merging area without colliding with the merging vehicle and continues to drive safely, then the current trajectory prediction process will end. If the autonomous vehicle has not yet exited the merging area or there is a risk of colliding with the merging vehicle, the trajectory prediction steps for the merging vehicle (steps S10 to S40) will be repeated to update the predicted trajectory of the merging vehicle.
[0103] Through step S50, the autonomous driving system can continuously monitor the situation in the merging area and dynamically adjust the vehicle's driving strategy until it safely exits the merging area. This process improves the adaptability and safety of autonomous vehicles in complex traffic conditions.
[0104] Another embodiment of the present invention provides a vehicle trajectory prediction device, including a module for performing the method described in the above embodiments. The module can be implemented in software, in hardware, or in a combination of software and hardware.
[0105] It should be noted that the apparatus provided in this embodiment can be used to execute the methods described in the above embodiments.
[0106] Therefore, any content not detailed in this embodiment can be obtained by referring to the methods in the above embodiments, and will not be repeated here.
[0107] Another embodiment of the present invention provides a vehicle comprising:
[0108] Communication interface 100 is used for communication with other vehicles;
[0109] Memory 110 is used to store computer program instructions 120;
[0110] The processor 130 is configured to execute the computer program instructions 120 to support the vehicle in implementing the method described in the above embodiments.
[0111] In this embodiment, the memory 110 mainly includes a program storage area and a data storage area. The program storage area can store the operating device, applications required for at least one function, etc., and the data storage area can store related data, etc. Furthermore, the memory 110 can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart media card (SMC), a secure digital card (SD), and a flash card, or other volatile solid-state storage devices.
[0112] The processor 130 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor 130 is the control center of the vehicle and uses various interfaces and lines to connect various parts of the vehicle.
[0113] Another embodiment of the present invention provides a computer program product including computer program instructions that instruct a computer device to perform operations corresponding to the methods described in the above embodiments.
[0114] Specifically, the computer program product includes a series of computer program instructions, which are codes written in a computer program. These instructions define how to perform specific operations. These instructions are designed to be loaded onto a computer device and instruct the device to perform specific operations, which refer to the various steps in the vehicle trajectory prediction method described in the above embodiments. In this way, the computer program product of this embodiment provides a complete software solution that can run on various computer devices to implement the vehicle trajectory prediction method of the above embodiments.
[0115] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A vehicle trajectory prediction method, characterized by, The method includes: When a vehicle is traveling on the main road and enters the merging area, the vehicle and at least one other vehicle that affects the vehicle's travel are selected as game players, and the movement status information of all game players is obtained; the at least one other vehicle includes merging vehicles traveling on ramps. Based on the driving intentions of all players and the motion state information of all players, a trajectory optimization problem is established in which all players are coupled together. The potential equation for the trajectory optimization problem is constructed based on potential differential game theory. Solve for the Nash equilibrium point of the potential equation. If the solution is successful, output the predicted trajectory of the merging vehicle.
2. The method of claim 1, wherein, When there is a vehicle in front of the vehicle, the at least one other vehicle includes merging vehicles traveling on the ramp and vehicles in front of the vehicle; when there is no vehicle in front of the vehicle, the at least one other vehicle includes merging vehicles traveling on the ramp. The driving intention of the vehicle is to maintain the desired speed and not consider changing lanes; the driving intention of the vehicle in front is to maintain the current lane and drive at the current speed; the driving intention of the merging vehicle is to merge into the main road as quickly and safely as possible.
3. The method of claim 2, wherein, The trajectory optimization problem includes the vehicle loss function and the merging vehicle loss function; The vehicle loss function includes the vehicle's speed tracking loss function, acceleration loss function, lateral offset loss function, and longitudinal safety loss function. Specifically, the closer the vehicle's actual speed is to its desired speed, the smaller the value of the speed tracking loss function; the smaller the vehicle's acceleration, the smaller the value of the acceleration loss function; the closer the vehicle's lateral position is to the center of the current lane, the smaller the value of the lateral offset loss function; and the better the vehicle maintains its longitudinal distance from other players, the smaller the value of the longitudinal safety loss function. The merging vehicle loss function includes a merging timeliness loss function, an acceleration loss function, and a longitudinal safety loss function. The earlier a merging vehicle merges onto the main road, the smaller the value of the merging timeliness loss function; the smaller the acceleration of the merging vehicle, the smaller the value of the acceleration loss function; and the better the longitudinal distance maintained by the merging vehicle from other players, the smaller the value of the longitudinal safety loss function.
4. The method of claim 3, wherein, The merging timeliness loss function includes a merging timeliness loss function in the longitudinal direction and a merging timeliness loss function in the lateral direction; The loss value of the longitudinal merging timeliness loss function is obtained based on the first weighting factor and the first variable, wherein the first variable is determined based on the distance of the merging vehicle from the merging point of the main road and the center line of the gate lane; The loss value of the lateral merging timeliness loss function is obtained based on the second weighting factor and the second variable, which is determined based on the lateral deviation between the merging vehicle and the centerline of the main road lane. The sum of the first weighting factor and the second weighting factor is 1.
5. The method of claim 3, wherein, The trajectory optimization problem also includes a preceding vehicle loss function; the preceding vehicle loss function includes a speed tracking loss function, a lateral offset loss function, and a longitudinal safety loss function; wherein, the closer the actual speed of the preceding vehicle is to its initial speed, the smaller the value of the preceding vehicle's speed tracking loss function; the closer the lateral position of the preceding vehicle is to the center of the current lane, the smaller the value of the preceding vehicle's lateral offset loss function; the better the preceding vehicle maintains its longitudinal distance from other players, the smaller the value of the preceding vehicle's longitudinal safety loss function.
6. The method of claim 5, wherein, The trajectory optimization problem includes constraints, namely, the motion states of all players must satisfy the vehicle kinematics model constraints, the predicted trajectories of all players must satisfy the collision constraints, and the values of each state variable of all players must satisfy the maximum and minimum value constraints.
7. The method according to any one of claims 1 to 6, characterized in that, The method includes: Obtain the planned trajectory of the vehicle. Based on the planned trajectory of the vehicle and the predicted trajectory of the merging vehicle, determine whether the vehicle has left the merging area. If yes, the process ends; otherwise, repeat the trajectory prediction steps for the merging vehicle.
8. A vehicle trajectory prediction device, characterized in that, Includes a module for performing the method according to any one of claims 1 to 7.
9. A vehicle, characterized in that, include: A communication interface used for communicating with other electronic devices; Memory is used to store computer program instructions; A processor for executing the computer program instructions to support the vehicle in implementing the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that, It includes computer program instructions that instruct a computer device to perform an operation corresponding to the method as described in any one of claims 1 to 7.
