A rough road path planning method, device, medium and product
By constructing a multi-step loss value probabilistic dynamic model and a reinforcement learning algorithm, the problem of difficulty in planning long-distance paths for autonomous vehicles in rugged terrain is solved, high-quality trajectory planning is achieved, and driving accuracy and precision are improved.
Patent Information
- Application Number
- CN202410909875.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-09
AI Technical Summary
It is difficult for autonomous vehicles to plan long-distance paths in rugged terrain environments, which may lead to problems such as vehicle traps during driving and cannot meet the requirements of fast driving.
Construct a probabilistic dynamics model based on multi-step loss values, and combine it with a reinforcement learning algorithm to determine the trajectory planning of the autonomous vehicle, consider the dynamic transfer of the vehicle in rough terrain, train the trajectory planning strategy, and impose constraints to ensure that the trajectory does not diverge.
It improves the accuracy and precision of the intelligent vehicle's driving trajectory planning on rough roads, has the ability to plan long-term trajectories, and overcomes the problem that existing technology cannot plan long-term trajectories.
Smart Images

Figure CN118464054B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent vehicle planning, and in particular to a rough road path planning method, device, medium and product. Background Art
[0002] Autonomous path planning for autonomous vehicles in rough terrain environments is a long-standing challenge. The complexity and uncertainty of the terrain make the vehicle's dynamics very complex, which means that the vehicle can only plan short-distance paths, but not long-distance paths. Short-distance trajectories lack future information and may cause the vehicle to get stuck due to uncertainty during driving, which cannot meet the requirements of fast driving in rugged environments. Summary of the invention
[0003] The purpose of the present invention is to provide a rough road path planning method, device, medium and product, which can improve the accuracy and precision of intelligent vehicle driving trajectory planning on rough roads.
[0004] To achieve the above-mentioned purpose, the present invention provides the following solution: a rough road path planning method, the method comprising: obtaining driving trajectory data of the rough road.
[0005] According to the driving trajectory data, a probabilistic dynamics model based on multi-step loss values is constructed.
[0006] Based on the probabilistic dynamics model, a reinforcement learning algorithm is applied to determine the trajectory planning of the autonomous driving vehicle.
[0007] Optionally, the probabilistic kinetic model is: .
[0008] in, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state of the moment; Represents the state-action pair before time i; Expressing expectations, i.e. time The probability is equal to Distribution at all times Down to The mean probability of .
[0009] Optionally, based on the probabilistic dynamics model, a reinforcement learning algorithm is applied to determine the trajectory planning of the autonomous driving vehicle, specifically including: applying a reinforcement learning algorithm to determine an initial path.
[0010] The initial path is input into the probabilistic dynamic model, and the loss function of the probabilistic dynamic model is calculated.
[0011] According to the loss function, the probabilistic dynamics model is updated by applying the gradient descent method to obtain an updated probabilistic dynamics model.
[0012] According to the updated probabilistic dynamics model, based on the objective function of trajectory planning, the trajectory planning of the autonomous driving vehicle is determined.
[0013] Optionally, the loss function of the probabilistic dynamics model is: .
[0014] in, Indicates the definer, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state-action pair before the moment; The loss function representing the update of the probabilistic dynamics model is defined as From 0 to The negative log logarithm of the mean of the likelihood .
[0015] Optionally, the objective function of the trajectory planning is:
[0016] .
[0017] .
[0018] .
[0019] in, Objective function for training trajectory planning strategies for reinforcement learning; is the reference state trajectory, including a lateral reference position, a longitudinal reference position, a reference heading angle, a reference longitudinal velocity and a reference lateral velocity; is the state trajectory, including lateral position, longitudinal position, heading angle, longitudinal velocity, lateral velocity, and yaw angular velocity; To control the trajectory, including the front wheel angle and longitudinal acceleration; represents the prediction time domain; Represents the first step, ; They represent the penalties for the distance between the ego vehicle and the reference trajectory, the heading angle error, the longitudinal velocity error, the lateral velocity, the yaw rate, the front wheel angle, and the longitudinal acceleration; is the deviation constraint between the trajectory and the reference trajectory, which states that the maximum average trajectory deviation is less than , is the pre-set constraint threshold, To obtain the maximum value symbol, represents the nth trajectory, , Indicates the total number of trajectories.
[0020] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-mentioned rough road path planning methods.
[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for planning a path on a rough road.
[0022] A computer program product comprises a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned rough terrain path planning methods.
[0023] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0024] The present invention constructs a probabilistic dynamic model that takes into account multi-step loss values. The model takes into account the uncertainty of the vehicle during the driving process, and the multi-step loss function can more accurately predict the uncertainty of the trajectory than the single-step loss function; the probabilistic dynamic model is combined with a reinforcement learning algorithm to train a trajectory planning strategy. Since the dynamic transfer of the vehicle on rugged terrain is taken into account, the learned trajectory planning strategy has the ability to plan long-distance trajectories and generate high-quality trajectories; the reinforcement learning algorithm trains the trajectory planning strategy, and constraints are imposed on the trajectory during training to ensure that the generated trajectory does not diverge, thereby improving the accuracy and precision of trajectory planning, and overcoming the problem that existing autonomous driving vehicles cannot plan for long periods of time on rugged terrain. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A schematic flow chart of a rough road path planning method provided in Example 1 of the present invention.
[0027] Figure 2 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] The purpose of the present invention is to provide a rough road path planning method, device, medium and product, which can improve the accuracy and precision of intelligent vehicle driving trajectory planning on rough roads.
[0030] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0031] Example 1: Figure 1 As shown, the rough road path planning method in this embodiment includes steps S1 to S3.
[0032] Step S1: Acquire driving trajectory data on a rough road surface.
[0033] Step S2: constructing a probabilistic dynamics model based on multi-step loss values according to the driving trajectory data.
[0034] Step S3: According to the probabilistic dynamics model, a reinforcement learning algorithm is applied to determine the trajectory planning of the autonomous driving vehicle.
[0035] S3 specifically includes steps S31 to S34.
[0036] Step S31: Apply the reinforcement learning algorithm to determine the initial path.
[0037] Step S32: inputting the initial path into the probabilistic dynamics model, and calculating the loss function of the probabilistic dynamics model.
[0038] Step S33: According to the loss function, the probabilistic dynamics model is updated by applying the gradient descent method to obtain an updated probabilistic dynamics model.
[0039] Step S34: Determine the trajectory planning of the autonomous driving vehicle according to the updated probabilistic dynamics model and based on the objective function of trajectory planning.
[0040] In practical applications, the present invention first constructs a multi-step loss function to learn the probabilistic dynamics model of rough terrain vehicles to take into account the uncertainty of the vehicle during driving. Secondly, the learned dynamic model is combined with the reinforcement learning algorithm to train the planning strategy. Since the dynamic transfer of the vehicle on rough terrain is taken into account, the trained planning strategy has the ability to plan long-term trajectories. In addition, constraints are imposed on the trajectory during training to ensure that the generated trajectory does not diverge, thereby improving the accuracy and precision of trajectory planning. This overcomes the problem that existing autonomous driving vehicles cannot plan long-term on rough terrain.
[0041] The specific implementation steps are as follows: 1. Collect vehicle driving trajectory data, and build a probabilistic dynamics model considering multi-step loss values based on the collected trajectory. The model takes into account the uncertainty of the vehicle during driving, and the multi-step loss function can more accurately predict the uncertainty of the trajectory than the single-step loss function. The expression of the probabilistic dynamics model is: .
[0042] in, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state of the moment; Represents the state-action pair before time i; Expressing expectations, i.e. time The probability is equal to Distribution at all times Down to The mean probability of .
[0043] 2. The probabilistic dynamics model is combined with a reinforcement learning algorithm to train a trajectory planning strategy. Since the dynamic transfer of the vehicle on rugged terrain is taken into account, the learned trajectory planning strategy has the ability to plan long-distance trajectories and generate high-quality trajectories. The reinforcement learning algorithm trains the trajectory planning strategy and imposes constraints on the trajectory during training to ensure that the generated trajectory does not diverge, thereby improving the accuracy and precision of trajectory planning.
[0044] 3. Perform trajectory planning for the vehicle based on the trajectory planning strategy.
[0045] The loss function of the multi-step loss value probability dynamics model is: .
[0046] in, Indicates the definer, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state-action pair before the moment; The loss function representing the update of the probabilistic dynamics model is defined as From 0 to The negative log logarithm of the mean likelihood of . , from Jason's inequality we know that: .
[0047] The dynamic probability model is updated by minimizing the loss function of the probabilistic dynamic model , using optimization methods such as stochastic gradient descent to obtain about The gradient of the network is updated Until convergence.
[0048] Among them, the objective function of the reinforcement learning training trajectory planning strategy is: .
[0049] , .
[0050] in, Objective function for training trajectory planning strategies for reinforcement learning; is the reference state trajectory, including a lateral reference position, a longitudinal reference position, a reference heading angle, a reference longitudinal velocity and a reference lateral velocity; is the state trajectory, including lateral position, longitudinal position, heading angle, longitudinal velocity, lateral velocity, and yaw angular velocity; To control the trajectory, including the front wheel angle and longitudinal acceleration; represents the prediction time domain; Represents the first step, ; They represent the penalties for the distance between the ego vehicle and the reference trajectory, the heading angle error, the longitudinal velocity error, the lateral velocity, the yaw rate, the front wheel angle, and the longitudinal acceleration; is the deviation constraint between the trajectory and the reference trajectory, which states that the maximum average trajectory deviation is less than , is the pre-set constraint threshold, To obtain the maximum value symbol, represents the nth trajectory, , Represents the total number of trajectories. The objective function is to plan a trajectory that satisfies the constraints and minimizes the J value in the prediction time domain according to the given navigation trajectory. This type of trajectory is called the optimal trajectory.
[0051] Using Neural Networks Characterizing the reinforcement learning planning strategy, the parameters of the neural network are , so the update method of the reinforcement learning trajectory planning strategy can be expressed as: ,get about Get the gradient and update Until convergence. about Gradient and kinetic model The relationship is: .
[0052] Among them, the utility function ; To predict the lateral position, longitudinal position, heading angle, longitudinal velocity, lateral velocity, and yaw rate of the kth step in the time domain; To predict the lateral reference position, longitudinal reference position, reference heading angle, and reference longitudinal velocity at the k-th step in the time domain; To predict the front wheel angle and longitudinal acceleration at the kth step in the time domain.
[0053] remember: .
[0054] .
[0055] but: .
[0056] .
[0057] .
[0058] in, Plan strategies for trajectories.
[0059] The trajectory optimized by reinforcement learning is fed back to the probabilistic dynamics model module to update the dynamics model; the updated dynamics model is sent to the reinforcement learning trajectory planning module to improve the quality of trajectory planning; thereby realizing a closed loop of dynamics model updating and trajectory planning, achieving better and better goals.
[0060] The training process of the entire algorithm is as follows:
[0061] Step 1: Initialize the probabilistic dynamics model and plan the network weight coefficient update step size ; Initialize the probabilistic dynamics model , planning strategy .
[0062] Step 2: Random sampling from the collected driving trajectory data .
[0063] Step 3: Exploitation Predict the state at the next moment and calculate the loss function of the multi-step loss value probability dynamics model , update the probability dynamic model , About L until convergence.
[0064] Step 4: Update the probabilistic dynamics model Applied to reinforcement learning planning algorithm updates.
[0065] Step 5: Incorporating Probabilistic Dynamics Models , calculate the objective function of the reinforcement learning training trajectory planning strategy , update planning network , for about until convergence.
[0066] Step 6: Utilize Planning Strategies Plan the trajectory until convergence.
[0067] The present invention can solve the problem that the existing planning methods do not consider the complexity and uncertainty of the terrain, resulting in that the trajectory can only be planned for a short time domain, avoid problems such as the vehicle being stuck in rugged terrain, and achieve the performance of the vehicle traveling quickly in a rugged environment.
[0068] Embodiment 2: A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the rough road path planning method in Embodiment 1.
[0069] Embodiment 3: A computer-readable storage medium having a computer program stored thereon, which implements the steps of the rough road path planning method in Embodiment 1 when executed by a processor.
[0070] Embodiment 4: A computer program product, comprising a computer program, which implements the steps of the rough road path planning method in Embodiment 1 when executed by a processor.
[0071] Embodiment 5: A computer device, which may be a database, and its internal structure diagram may be as follows: Figure 2 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the rough road path planning method in Example 1 is implemented.
[0072] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0073] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0074] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0075] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A rough road path planning method, It is characterized in that The method comprises: Obtain driving trajectory data on rough roads; According to the driving trajectory data, a probabilistic dynamics model based on multi-step loss values is constructed; the probabilistic dynamics model is: ; in, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state of the moment; Represents the state-action pair before time i; Expressing expectations, i.e. time The probability is equal to Distribution at all times Down to The probability mean of ; Based on the probabilistic dynamics model, a reinforcement learning algorithm is applied to determine the trajectory planning of the autonomous driving vehicle.
2. The rough road path planning method according to claim 1, It is characterized in that According to the probabilistic dynamics model, a reinforcement learning algorithm is applied to determine the trajectory planning of the autonomous driving vehicle, specifically including: Apply reinforcement learning algorithm to determine the initial path; Inputting the initial path into the probabilistic dynamic model, and calculating the loss function of the probabilistic dynamic model; According to the loss function, applying the gradient descent method to update the probabilistic dynamics model to obtain an updated probabilistic dynamics model; According to the updated probabilistic dynamics model, based on the objective function of trajectory planning, the trajectory planning of the autonomous driving vehicle is determined.
3. The rough road path planning method according to claim 2, It is characterized in that The loss function of the probabilistic dynamics model is: ; in, Indicates the definer, It is the probability model of the dynamic model, which indicates the probability of transferring to the next state under the current state and given action. are the parameters of the neural network; express The state of the moment, for The amount of control at the moment, ; express The state-action pair before the moment; The loss function representing the update of the probabilistic dynamics model is defined as From 0 to The negative log logarithm of the mean of the likelihood .
4. The rough road path planning method according to claim 2, It is characterized in that The objective function of the trajectory planning is: ; ; ; in, Objective function for training trajectory planning strategies for reinforcement learning; is the reference state trajectory, including the lateral reference position , longitudinal reference position , reference heading angle , reference longitudinal speed and the reference lateral velocity ; is the state trajectory, including the lateral position , vertical position , heading angle , longitudinal speed , lateral speed , yaw rate ; To control the trajectory, including the front wheel angle and longitudinal acceleration ; represents the prediction time domain; Represents the first step, ; Respectively represent the penalty for the distance between the vehicle and the reference trajectory , Penalty for the error between the vehicle and the heading angle , Penalty for the error between the vehicle and the longitudinal speed , Penalties for the vehicle and lateral speed , Penalty for the vehicle and yaw rate , penalty for front wheel turning and penalties for the ego vehicle and longitudinal acceleration ; is the deviation constraint between the trajectory and the reference trajectory, which states that the maximum average trajectory deviation is less than , is the pre-set constraint threshold, To obtain the maximum value symbol, For the summation symbol, is the nth trajectory, , is the total number of trajectories.
5. A computer device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the rough road path planning method according to any one of claims 1 to 4.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the rough road path planning method described in any one of claims 1 to 4 are implemented.
7. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the rough road path planning method described in any one of claims 1 to 4 are implemented.
