Park logistics trolley path planning method based on map-free navigation
By using reinforcement learning and LSTM models in map-free navigation, the path planning of the park logistics car is optimized, which solves the robustness and safety issues of SLAM mapping in complex environments and achieves more efficient and safe navigation performance.
Patent Information
- Application Number
- CN202410720080.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Existing technologies rely on SLAM mapping in park logistics car navigation, which results in poor mapping robustness, map drift, and insufficient navigation security in complex dynamic environments. Moreover, traditional methods are not suitable for motion planning in complex environments.
Using a path planning method based on mapless navigation, by designing the dynamics model of the simulation environment, using the reinforcement learning algorithm and PPO algorithm to train the strategy-evaluation network, and combining the LSTM model to model the difference between the simulation environment and the real environment, and optimizing the car's operation without Path planning under map conditions improves navigation safety and adaptability.
It effectively shortens the training time of the car in complex environments, improves the safety of path planning and navigation success rate, reduces the collision rate, and improves the navigation performance in dynamic environments.
Smart Images

Figure CN118730145A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and in particular to a path planning method for a park logistics vehicle based on map-free navigation. Background Art
[0002] 1) At present, the park's logistics and transportation are mostly carried out by manual transportation. However, there is a huge gap between the number of working population and the demand for labor, and the difficulty in hiring workers in logistics and distribution is difficult to alleviate.
[0003] 2) Mapless navigation can find a path for the car from the starting point to the target location. The path should be as short as possible, the smoothness of the path should meet the dynamic characteristics of the car, and the safety of the path should ensure that the car will not collide and the goods can be safely delivered to the target point.
[0004] 3) Currently, the realization of navigation functions in park warehouses mainly relies on SLAM mapping, which actively builds maps to obtain environmental maps and determine the position of the vehicle at the same time. However, traditional SLAM mapping mainly focuses on using geometric techniques to build maps, and navigation itself is rarely considered. The representations built by SLAM systems are usually not suitable for traditional motion planning methods. In addition, during the mapping process, dynamic objects in the park environment will have dynamic feature points, resulting in poor mapping robustness and map drift. Mapless navigation based on reinforcement learning does not rely on maps, and has the ability to learn during the interaction between the vehicle and the environment. It has stronger adaptability in complex dynamic environments such as logistics parks. Summary of the invention
[0005] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a path planning method for a park logistics vehicle based on map-free navigation, so as to more effectively learn the path planning ability of the vehicle without a map in the case where it is difficult to build a map in complex and changeable real environments such as logistics parks, thereby effectively shortening the time required for the vehicle to be trained in a real environment, and improving the safety of the vehicle's path planning in a real environment, thereby providing a reference for the improvement and optimization of map-free navigation.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0007] The path planning method of a park logistics vehicle based on map-free navigation of the present invention is characterized in that it comprises the following steps:
[0008] Step 1: Design the dynamic model of the car in the simulation environment according to the real environment car, and set the initial parameters of the car in the simulation environment, including: maximum driving speed v max and the maximum rotation angle θ max; According to the spatial state of obstacles in the real environment, set the same spatial state of obstacles in the simulation environment;
[0009] Step 2: Define the state parameter set Ss of the car in the simulation environment = {s1 s ,s2 s ...,s i s ,...,sms},s i s is the normalized state quantity of the car in the simulation environment at the i-th step, including: the minimum distance between the car and the obstacle at the i-th step, the distance di from the position of the car at the i-th step to the target point, and the coordinates of the car at the i-th step; i = 1, 2, …, m, where m is the total number of steps;
[0010] Define the action parameter set A of the car in the simulation environment = {a1, a2..., a i ,...,a m}, a i is the state of the car at step i, and a i = {v i ,θ i}, where v i is the speed of the car at step i, θ i is the steering angle of the car at step i;
[0011] Step 3: According to the action amount a of the car in step i i , generate the minimum distance between the car and the obstacle at step i, and the distance d from the car's position at step i to the target point i And the coordinates of the car at step i;
[0012] Step 4: Set the reward function R of the car at step i i ;
[0013] Step 5: construct a strategy-evaluation network π, and use the PPO algorithm to train the strategy-evaluation network to obtain a local optimal strategy-evaluation model π;
[0014] Step 6: Build an LSTM model φ based on the difference between the car in the simulation environment and the real environment, and train the LSTM model φ, so as to combine the trained LSTM model φ with the real environment to train the strategy-evaluation network to obtain the global optimal strategy-evaluation network π * .
[0015] Step 7: The global optimal strategy-evaluation model π *Deploy it to the control module of the car in the real environment, and after obtaining the global optimal minimum distance between the car and the obstacle at the i-th step, the global optimal distance from the car's position at the i-th step to the target point, and the global optimal coordinates of the car according to the process in step 3, input the global optimal strategy-evaluation model π * , thereby outputting the global optimal action of the car in the i+1th step and moving.
[0016] The path planning method for a park logistics vehicle based on map-free navigation described in the present invention is also characterized in that step 4 is to construct a reward function R using formula (1) i :
[0017] R i =ω1R vi +ω2R si +ω3R ci +ω4R ai (2)
[0018] In formula (2), R vi represents the speed reward function, and is obtained from formula (3), R si represents the steering reward function, and is obtained from formula (4), R ci represents the collision reward function, and is obtained from formula (5), R ai represents the target reward function, and is obtained by equation (7); ω1, ω2, ω3, ω4 represent the weights of the four rewards;
[0019]
[0020] In formula (3), r represents the speed reward coefficient, v max represents the maximum speed of the car, v min Indicates the minimum speed of the car;
[0021]
[0022] In formula (4), τr eward represents the positive reward value when the car does not change direction obviously, τ punish It represents the penalty value of the car changing direction obviously, and θ0 represents the standard for judging whether the car turns obviously.
[0023]
[0024] In formula (5), D min Indicates the minimum collision warning circle, v max Indicates the maximum driving speed, D max Indicates the maximum collision warning circle, d iminrepresents the minimum distance to the obstacle, σ1 represents the penalty value of the car colliding, σ2 represents the penalty parameter of the car about to collide, and:
[0025]
[0026] In formula (6), d max represents the maximum collision threshold, d min represents the minimum collision threshold; Δt is the time interval;
[0027]
[0028] In formula (7), c d Indicates the threshold value of the car reaching the target point, c r Represents the distance change reward coefficient, c i represents the penalty for each additional time step, d i is the distance between the current car and the target point, c reward Indicates the reward value given when the car reaches the target point.
[0029] The step 5 comprises:
[0030] Step 5.1: The strategy-evaluation network π includes: an evaluation network and a strategy network;
[0031] The evaluation network is composed of two fully connected layers and an output layer, and the activation functions between all fully connected layers are Relu functions; let the parameters of the evaluation network be The input of the evaluation network is the normalized state quantity, and the output is the current state value;
[0032] The strategy network is constructed including: a neural network of the output mean part and a neural network of the output variance part; wherein the neural network of the output mean part includes: two fully connected layers and an output layer, and the output layer activation function is a tanh function; the neural network of the output variance part includes: two fully connected layers and an output layer, and the output layer activation function is a softplus activation function; the activation function between all fully connected layers is a Relu function;
[0033] Let the parameters of the policy network be θ, the input of the policy network is the normalized state quantity, and the output is the current action quantity a~N(ε,std); ε and std represent the mean and variance respectively; N represents Gaussian distribution, and ~ represents obedience;
[0034] Define the training strategy of the policy network as π θ , define the environment interaction parameter of the policy network as θ', and the environment interaction strategy of the policy network as π θ' ;
[0035] Step 5.2: Normalized state quantity s of step i i Input the strategy network for processing and output the action amount a of the i-th step i and the reward R for step i i ;
[0036] The i-th step action amount a i After the vehicle dynamics model executes the expected trajectory of the i-th step, the normalized state quantity s of the i+1-th step is obtained. i+1 ;
[0037] Will (s i ,a i ,s i+1 ,R i ) is stored in the experience pool as the i-th sample;
[0038] Step 5.3: After assigning i+1 to i, return to step 5.2 until the number of samples in the experience pool reaches the upper capacity limit n;
[0039] Step 5.4: Draw any i-th sample from the experience pool, and use the advantage function estimator shown in formula (8) to calculate the estimated value of the i-th step
[0040]
[0041] In formula (8), V φ (s i ) is to convert the The state value obtained after inputting the value network, V φ (s i+1 ) is the value of the i-th sample The state value obtained after inputting the value network; γ is the reward discount coefficient;
[0042] Step 5.5: Define the state quantity The strategy π θ Select action a i The probability of i |s i ,θ i ), in the state quantity The strategy π θ' Select action a i The probability of i |s i ,θ' i ), define π(a i |s i ,θ i ) and π(a i |s i, θ' i ) has a ratio of r(θ i );θ i represents the network parameters of the policy network at the i-th step;
[0043] Step 5.6: Use Equation (8) to obtain the network parameters θ of the policy network at the (i + 1)-th step i+1 :
[0044]
[0045] In Equation (9), ▽ θ is the gradient operator of the policy network parameter θ, clip(r(θ i ), 1 - ε, 1 + ε) is the range limiting function, which limits r(θ i ) within the range of 1 - ε to 1 + ε, and ε is the set threshold, is the expectation;
[0046] Step 5.7: Use Equation (9) to obtain the network parameters of the value network at the (i + 1)-th step
[0047]
[0048] In Equation (10), is the gradient operator of the value network parameter ;
[0049] Step 5.8: After assigning i + 1 to i, if i < m, then return to Step 5.2 and execute sequentially, otherwise, it means obtaining the network parameters θ m and and form the optimal policy - evaluation network model π.
[0050] The said Step 6 includes:
[0051] Step 6.1: Initialize i = 1;
[0052] Use the Markov decision process to represent the simulation environment D s = <S s , A, p s , r s >, and the real - world environment D t = <S t , A, p t , r t >, where, r s represents the reward function of the simulation environment, r t represents the reward function of the real - world environment, and r s = r t = R i , p sWith p t Represent the state transition probability distribution of the simulation environment and the real environment respectively;
[0053] Step 6.2: Sample the state of the car in the real environment at step i-1 s i-1 t ~p t (s i-1 ), where s i-1 t represents the state of the car in the real environment at step i-1, p t (s i-1 ) represents the state s of the car in the real environment at the i-1 step i-1 t The state transition probability distribution of
[0054] Step 6.3: Set the car in the simulation environment to the state s of the car in the real environment at step i-1 i-1 t start;
[0055] Give the car a random and safe behavior strategy μ so that the car follows strategy a i ~μ(s i t ) performs the i-th step movement and collects the state s of the car in the i-th step in the real environment i t And the state s of the car in the simulation environment at step i i s , thus obtaining the i-th experience (s i ,a i ,s i+1 s ,s i+1 t );
[0056] Step 6.4: After assigning i+1 to i, return to step 6.3 and execute sequentially until i=T, thus obtaining a trajectory τ=(s0 s ,s0 t ,s1 s ,s1 t ...s T-2 s ,a T ,s T-1 s ,s T-1 t );
[0057] Step 6.5: Based on the trajectory τ, use the Adam algorithm to perform maximum likelihood training on the LSTM model φ to obtain the trained LSTM model φ, thereby predicting the estimated state of the car in the real environment at the i+1 step
[0058] The LSTM model φ uses formula (1) to predict the state s of the car in the real environment at the i+1 step i+1 t :
[0059] φ(s i t ,a i ,h,s i+1 s )=s i+1 t -s i+1 s (1)
[0060] In formula (1), h is the hidden state of the LSTM model φ;
[0061] Step 6.6: According to the local optimal strategy-evaluation model π, obtain the action sample a of the car in the simulation environment at step i i ~π(s i s ) and execute, so as to obtain the reward R of the car in the simulation environment at the i-th step i And the state s at step i+1 i+1 s ; thus forming a sample Stored in the experience pool, used to update the local optimal strategy-evaluation model π, to obtain the updated local optimal strategy-evaluation model π';
[0062] Step 6.7: Assign π' to π, and set the state s of the car in the simulation environment at the i+1 step i+1 s Compared with the state estimation of the car in the real environment at the i+1 step After they are the same, return to step 6.3 and execute sequentially until i = T, thus obtaining the global optimal strategy-evaluation model π * .
[0063] An electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the path planning method, and the processor is configured to execute the program stored in the memory.
[0064] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the path planning method when the computer program is executed by a processor.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] 1. Due to factors such as changes in goods and movement of people in the logistics park, the present invention adopts map-free navigation technology and uses reinforcement learning algorithm for navigation, which can greatly reduce the collision rate of mobile robots during navigation and improve the navigation success rate, thereby improving the safety performance of reinforcement learning map-free navigation.
[0067] 2. For dynamic environments such as parks, the car of the present invention is trained in a simple environment and then migrated to a complex dynamic environment. In the absence of a map, it can effectively use the obstacle information fed back by the environment to make better navigation decisions, and can predictively avoid dynamic obstacles when encountering them, showing strong generalization capabilities.
[0068] 3. There is still a problem of low sampling efficiency when allowing the car to perform training migration directly in the real environment. The present invention adopts a neural enhanced simulation (NAS) learning control strategy to model the difference between the simulation environment and the real environment, learn the mapping from the simulation environment to the real environment, and more effectively utilize the strategies learned in the simulation environment, thereby reducing the training time of the car in reality.
[0069] 4. There is also a safety issue when the car is directly trained and transferred in the real environment. Since reinforcement learning requires the intelligent agent to conduct trial and error by random sampling in a large range in the environment, its behavior at certain moments may damage the car itself, the surrounding environment, and even organisms. The present invention uses sim2real technology to simulate the real environment in a simulation environment to improve the safety of the car in the process of map-free navigation training. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A schematic diagram of the PPO algorithm framework implemented in the present invention;
[0071] Figure 2 This is a schematic diagram of the algorithm training process in an embodiment of the present invention;
[0072] Figure 3 This is a diagram of the Sim-to-Real training model in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] In this embodiment, a path planning method for a park logistics vehicle based on map-free navigation includes the following steps:
[0074] Step 1: Design the dynamic model of the car in the simulation environment according to the real environment car, and set the initial parameters of the car in the simulation environment, including: maximum driving speed v maxand the maximum rotation angle θ max ; According to the spatial state of obstacles in the real environment, set the same spatial state of obstacles in the simulation environment.
[0075] Step 2: Define the state parameter set S of the car in the simulation environment s ={s1 s ,s2 s ...,s i s ,...,s m s},s i s is the normalized state quantity of the car in the simulation environment at the i-th step, including: the minimum distance between the car and the obstacle at the i-th step, the distance d from the position of the car at the i-th step to the target point i , the coordinates of the car at the i-th step; i = 1, 2, ..., m, m is the total number of steps;
[0076] Define the action parameter set A of the car in the simulation environment = {a1, a2..., a i ,...,a m}, a i is the state of the car at step i, and a i = {v i ,θ i}, where v i is the speed of the car at step i, θ i is the steering angle of the car at the i-th step.
[0077] Step 3: According to the action amount a of the car in step i i , generate the minimum distance between the car and the obstacle at step i, and the distance d from the car's position at step i to the target point i And the coordinates of the car at step i.
[0078] Step 4: Set the reward function R of the car at step i i ;
[0079] Step 4.1: Formula (1) constructs the reward function R i :
[0080] R i =ω1R vi +ω2R si +ω3R ci +ω4R ai (1)
[0081] In formula (1), R vi represents the speed reward function, and is obtained from formula (2), R si represents the steering reward function, and is obtained from formula (3), Rci represents the collision reward function, and is obtained from formula (4), R ai represents the target reward function, and is obtained by equation (6); ω1, ω2, ω3, ω4 represent the weights of the four rewards;
[0082]
[0083] In formula (2), r represents the speed reward coefficient, v max represents the maximum speed of the car, v min Indicates the minimum speed of the car;
[0084]
[0085] In formula (3), τ reward represents the positive reward value when the car does not change direction obviously, τ punish represents the penalty value for the car to change direction obviously, and θ0 represents the standard for judging whether the car is turning obviously;
[0086]
[0087] In formula (4), D min Indicates the minimum collision warning circle, v max Indicates the maximum driving speed, D max Indicates the maximum collision warning circle, d imin represents the minimum distance to the obstacle, σ1 represents the penalty value of the car colliding, σ2 represents the penalty parameter of the car about to collide, and:
[0088]
[0089] In formula (5), d max represents the maximum collision threshold, d min represents the minimum collision threshold; Δt is the time difference between training steps;
[0090]
[0091] In formula (6), c d Indicates the threshold value of the car reaching the target point, c r Represents the distance change reward coefficient, c i represents the penalty for each additional time step, d i is the distance between the current car and the target point, c reward Indicates the reward value given when the car reaches the target point.
[0092] Step 5: construct a strategy-evaluation network π, and use the PPO algorithm to train the strategy-evaluation network to obtain a local optimal strategy-evaluation model π. The schematic diagram of the PPO algorithm framework implemented in the present invention is as follows: Figure 1 shown.
[0093] Step 5.1: The policy-criticism network π includes: a criterion network and a policy network;
[0094] The evaluation network is composed of two fully connected layers and an output layer, and the activation functions between all fully connected layers are Relu functions; let the parameters of the evaluation network be The input of the evaluation network is the normalized state quantity, and the output is the current state value;
[0095] The strategy network includes: a neural network for the output mean part and a neural network for the output variance part; the neural network for the output mean part includes: two fully connected layers and an output layer, and the output layer activation function is the tanh function; the neural network for the output variance part includes: two fully connected layers and an output layer, and the output layer activation function is the softplus activation function; the activation function between all fully connected layers is the Relu function;
[0096] Let the parameters of the policy network be θ, the input of the policy network is the normalized state quantity, and the output is the current action quantity a~N(ε,std); ε and std represent the mean and variance respectively; N represents Gaussian distribution, and ~ represents obedience;
[0097] Define the training strategy of the policy network as π θ , define the environment interaction parameter of the policy network as θ', and the environment interaction strategy of the policy network as π θ' .
[0098] Step 5.2: Normalized state quantity s of step i i Input the policy network for processing and output the action amount a of the i-th step i and the reward R for step i i ;
[0099] The action amount a of step i i After the vehicle dynamics model executes the expected trajectory of step i, it obtains the normalized state quantity s of step i+1 i+1 ;
[0100] Will (s i ,a i ,s i+1 ,R i ) is stored in the experience pool as the i-th sample.
[0101] Step 5.3: After assigning i+1 to i, return to step 5.2 until the number of samples in the experience pool reaches the upper capacity limit n;
[0102] Step 5.4: Draw any i-th sample from the experience pool, and use the advantage function estimator shown in formula (8) to calculate the estimated value of the i-th step
[0103]
[0104] In formula (7), V φ (s i ) is to convert the The state value obtained after inputting the value network, V φ (s i+1 ) is the value of the i-th sample The state value obtained after entering the value network; γ is the reward discount coefficient.
[0105] Step 5.5: Define the state quantity The strategy π θ Select action a i The probability of i |s i ,θ i ), in the state quantity The strategy π θ' Select action a i The probability of i |s i ,θ' i ), define π(a i |s i ,θ i ) and π(a i |s i ,θ' i ) is r(θ i );θ i Represents the network parameters of the policy network at step i;
[0106] Step 5.6: Use formula (8) to get the network parameters θ of the policy network at step i+1 i+1 :
[0107]
[0108] In formula (8), ▽ θ is the gradient operator of the policy network parameter θ, clip(r(θ i ),1-ε,1+ε) is the range limiting function, which is r(θ i ) is limited to the range of 1-ε to 1+ε, where ε is the set threshold. Is the expectation.
[0109] Step 5.7: Obtain the network parameters of the value network at the (i + 1)-th step using Equation (9).
[0110]
[0111] In Equation (9), is the value network parameter of the gradient operator;
[0112] Step 5.8: After assigning i + 1 to i, if i < m, then return to Step 5.2 and execute sequentially. Otherwise, it means obtaining the network parameter θ at the m-th step. m and and form the optimal policy-evaluation network model π. The training process of this policy-evaluation network is as Figure 2 shown.
[0113] Step 6: Build an LSTM model φ based on the differences between the simulation environment and the real environment of the trolley, train the LSTM model φ, and combine the trained LSTM model φ with the real environment to train the policy-evaluation network to obtain the global optimal policy-evaluation network.
[0114] Step 6.1: Initialize i = 1;
[0115] Use the Markov decision process to represent the simulation environment D s = <S s , A, p s , r s >, and the real environment D t = <S t , A, p t , r t . Among them, r s represents the reward function of the simulation environment, r t represents the reward function of the real environment, and r s = r t = R i , p s and p t respectively represent the state transition probability distributions of the simulation environment and the real environment.
[0116] Step 6.2: Sample the state of the trolley in the real environment at the (i - 1)-th step s i-1 t ~ p t (s i-1 ), where s i-1 t represents the state of the trolley in the real environment at the (i - 1)-th step, p t (si-1 ) represents the state s of the car in the real environment at the i-1 step i-1 t The state transition probability distribution of .
[0117] Step 6.3: Set the car in the simulation environment to the state s of the car in the real environment at step i-1 i-1 t start;
[0118] Give the car a random and safe behavior strategy μ so that the car follows strategy a i ~μ(s i t ) performs the i-th step movement and collects the state s of the car in the i-th step in the real environment i t And the state s of the car in the simulation environment at step i i s , thus obtaining the i-th experience (s i ,a i ,s i+1 s ,s i+1 t );
[0119] Step 6.4: After assigning i+1 to i, return to step 6.3 and execute sequentially until i=T, thus obtaining a trajectory τ=(s0 s ,s0 t ,s1 s ,s1 t ...s T-2 s ,a T ,s T-1 s ,s T-1 t );
[0120] Step 6.5: Based on the trajectory τ, use the Adam algorithm to perform maximum likelihood training on the LSTM model φ to obtain the trained LSTM model φ, thereby predicting the estimated state of the car in the real environment at the i+1 step
[0121] The LSTM model φ uses formula (1) to predict the state s of the car in the real environment at the i+1 step i+1 t :
[0122] φ(s i t ,a i ,h,s i+1 s )=s i+1t -s i+1 s (10)
[0123] In formula (10), h is the hidden state of the LSTM model φ.
[0124] Step 6.6: According to the local optimal strategy-evaluation model π, obtain the action sample a of the car in the simulation environment at step i i ~π(s i s ) and execute, so as to obtain the reward R of the car in the simulation environment at the i-th step i And the state s at step i+1 i+1 s ; thus forming a sample Stored in the experience pool, it is used to update the local optimal strategy-evaluation model π to obtain the updated local optimal strategy-evaluation model π':
[0125] Step 6.7: Assign π' to π, and set the state s of the car in the simulation environment at the i+1 step i+1 s Compared with the state estimation of the car in the real environment at the i+1 step After they are the same, return to step 6.3 and execute sequentially until i = T, thus obtaining the global optimal strategy-evaluation model π * ;
[0126] Figure 3 The left side shows the method of training the forward dynamics model by collecting the state differences when running the same action on the simulation and the real car. Figure 3 The right side shows that when the forward model is learned, it can be applied to the simulation state to obtain the corresponding real state. The correction model is time-dependent, using LSTM, and the policy learning algorithm can only pass the real car state.
[0127] Step 7: The global optimal strategy-evaluation model π * Deploy it to the control module of the car in the real environment, and after obtaining the global optimal minimum distance between the car and the obstacle at the i-th step, the global optimal distance from the car's position at the i-th step to the target point, and the global optimal coordinates of the car according to the process in step 3, input the global optimal strategy-evaluation model π * , thereby outputting the global optimal action of the car in the i+1th step and moving.
[0128] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0129] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A path planning method for a park logistics vehicle based on map-free navigation, characterized in that: The following steps are involved: Step 1: Design the dynamic model of the car in the simulation environment according to the real environment car, and set the initial parameters of the car in the simulation environment, including: maximum driving speed v max and the maximum rotation angle θ max ; According to the spatial state of obstacles in the real environment, set the same spatial state of obstacles in the simulation environment; Step 2: Define the state parameter set S of the car in the simulation environment s ={s1 s ,s2 s ...,s i s ,...,s m s },s i s is the normalized state quantity of the car in the simulation environment at the i-th step, including: the minimum distance between the car and the obstacle at the i-th step, the distance d from the position of the car at the i-th step to the target point i , the coordinates of the car at the i-th step; i = 1, 2, ..., m, m is the total number of steps; Define the action parameter set A of the car in the simulation environment = {a1, a2..., a i ,...,a m }, a i is the state of the car at step i, and a i = {v i ,θ i }, where v i is the speed of the car at step i, θ i is the steering angle of the car at step i; Step 3: According to the action amount a of the car in step i i , generate the minimum distance between the car and the obstacle at step i, and the distance d from the car's position at step i to the target point i And the coordinates of the car at step i; Step 4: Set the reward function R of the car at step i i ; Step 5: construct a strategy-evaluation network π, and use the PPO algorithm to train the strategy-evaluation network to obtain a local optimal strategy-evaluation model π; Step 6: Build an LSTM model φ based on the difference between the car in the simulation environment and the real environment, and train the LSTM model φ, so as to combine the trained LSTM model φ with the real environment to train the strategy-evaluation network to obtain the global optimal strategy-evaluation network π * . Step 7: The global optimal strategy-evaluation model π * Deploy it to the control module of the car in the real environment, and after obtaining the global optimal minimum distance between the car and the obstacle at the i-th step, the global optimal distance from the car's position at the i-th step to the target point, and the global optimal coordinates of the car according to the process in step 3, input the global optimal strategy-evaluation model π * , thereby outputting the global optimal action of the car in the i+1th step and moving.
2. A path planning method for a park logistics vehicle based on map-free navigation according to claim 1, characterized in that: Step 4 is to construct the reward function R using formula (1) i : R i =ω1R vi +ω2R si +ω3R ci +ω4R ai (2) In formula (2), R vi represents the speed reward function, and is obtained from formula (3), R si represents the steering reward function, and is obtained from formula (4), R ci represents the collision reward function, and is obtained from formula (5), R ai represents the target reward function, and is obtained by equation (7); ω1, ω2, ω3, ω4 represent the weights of the four rewards; In formula (3), r represents the speed reward coefficient, v max represents the maximum speed of the car, v min Indicates the minimum speed of the car; In formula (4), τ reward represents the positive reward value when the car does not change direction obviously, τ punish It represents the penalty value of the car changing direction obviously, and θ0 represents the standard for judging whether the car turns obviously. In formula (5), D min Indicates the minimum collision warning circle, v max Indicates the maximum driving speed, D max Indicates the maximum collision warning circle, d imin represents the minimum distance to the obstacle, σ1 represents the penalty value of the car colliding, σ2 represents the penalty parameter of the car about to collide, and: In formula (6), d max represents the maximum collision threshold, d min Indicates the minimum collision threshold; Δt is the time interval; In formula (7), c d Indicates the threshold value of the car reaching the target point, c r Represents the distance change reward coefficient, c i represents the penalty for each additional time step, d i is the distance between the current car and the target point, c reward Indicates the reward value given when the car reaches the target point.
3. The method for generating dynamic cut-in behavior of traffic participants in an autonomous driving scenario according to claim 1, characterized in that: The step 5 comprises: Step 5.1: The strategy-evaluation network π includes: an evaluation network and a strategy network; The evaluation network is composed of two fully connected layers and an output layer, and the activation functions between all fully connected layers are Relu functions; let the parameters of the evaluation network be The input of the evaluation network is the normalized state quantity, and the output is the current state value; The strategy network is constructed including: a neural network of the output mean part and a neural network of the output variance part; wherein the neural network of the output mean part includes: two fully connected layers and an output layer, and the output layer activation function is a tanh function; the neural network of the output variance part includes: two fully connected layers and an output layer, and the output layer activation function is a softplus activation function; the activation function between all fully connected layers is a Relu function; Let the parameters of the policy network be θ, the input of the policy network is the normalized state quantity, and the output is the current action quantity a~N(ε,std); ε and std represent the mean and variance respectively; N represents Gaussian distribution, and ~ represents obedience; Define the training strategy of the policy network as π θ , define the environment interaction parameter of the policy network as θ', and the environment interaction strategy of the policy network as π θ' ; Step 5.2: Normalized state quantity s of step i i Input the strategy network for processing and output the action amount a of the i-th step i and the reward R for step i i ; The action amount a of step i i After the vehicle dynamics model executes the expected trajectory of the i-th step, the normalized state quantity s of the i+1-th step is obtained. i+1 ; Will (s i ,a i ,s i+1 ,R i ) is stored in the experience pool as the i-th sample; Step 5.3: After assigning i+1 to i, return to step 5.2 until the number of samples in the experience pool reaches the upper capacity limit n; Step 5.4: Draw any i-th sample from the experience pool, and use the advantage function estimator shown in formula (8) to calculate the estimated value of the i-th step In formula (8), V φ (s i ) is to convert the The state value obtained after inputting the value network, V φ (s i+1 ) is the value of the i-th sample The state value obtained after inputting the value network; γ is the reward discount coefficient; Step 5.5: Define the state quantity The strategy π θ Select action a i The probability of i |s i ,θ i ), in the state quantity The strategy π θ' Select action a i The probability of i |s i ,θ' i ), define π(a i |s i ,θ i ) and π(a i |s i ,θ' i ) is r(θ i );θ i Represents the network parameters of the policy network at step i; Step 5.6: Use formula (8) to get the network parameters θ of the policy network at step i+1 i+1 : In formula (9), is the gradient operator of the policy network parameter θ, clip(r(θ i ),1-ε,1+ε) is the range limiting function, which is r(θ i ) is limited to the range of 1-ε to 1+ε, where ε is the set threshold. For expectations; Step 5.7: Use formula (9) to get the network parameters of the value network at step i+1 In formula (10), is the value network parameter The gradient operator of Step 5.8: After assigning i + 1 to i, if i < m, then return to Step 5.2 and execute sequentially; otherwise, it means obtaining the network parameter θ of the m-th step. m and and form the optimal policy-evaluation network model π.
4. The method for generating dynamic cut-in behavior of traffic participants in an autonomous driving scenario according to claim 3, characterized in that: The step 6 comprises: Step 6.1: Initialize i=1; The Markov decision process will be used to represent the simulation environment D s = s ,A,p s ,r s > and real environment D t = t ,A,p t ,r t >, where r s represents the reward function of the simulation environment, r t represents the reward function of the real environment, and r s =r t =R i , p s With p t Represent the state transition probability distribution of the simulation environment and the real environment respectively; Step 6.2: Sample the state of the car in the real environment at step i-1 i-1 t ~p t (s i-1 ), where s i-1 t represents the state of the car in the real environment at step i-1, p t (s i-1 ) represents the state s of the car in the real environment at the i-1 step i-1 t The state transition probability distribution of Step 6.3: Set the car in the simulation environment to the state s of the car in the real environment at step i-1 i-1 t start; Give the car a random and safe behavior strategy μ so that the car follows strategy a i ~μ(s i t ) performs the i-th step movement and collects the state s of the car in the i-th step in the real environment i t And the state s of the car in the simulation environment at step i i s , thus obtaining the i-th experience (s i ,a i ,s i+1 s ,s i+1 t ); Step 6.4: After assigning i+1 to i, return to step 6.3 and execute sequentially until i=T, thus obtaining a trajectory τ=(s0 s ,s0 t ,s1 s ,s1 t ...s T-2 s ,a T ,s T-1 s ,s T-1 t ); Step 6.5: Based on the trajectory τ, use the Adam algorithm to perform maximum likelihood training on the LSTM model φ to obtain the trained LSTM model φ, thereby predicting the estimated state of the car in the real environment at the i+1 step The LSTM model φ uses formula (1) to predict the state s of the car in the real environment at the i+1 step i+1 t : φ(s i t ,a i ,h,s i+1 s )=s i+1 t -s i+1 s (1) In formula (1), h is the hidden state of the LSTM model φ; Step 6.6: According to the local optimal strategy-evaluation model π, obtain the action sample a of the car in the simulation environment at step i i ~π(s i s ) and execute, so as to obtain the reward R of the car in the simulation environment at the i-th step i And the state s at step i+1 i+1 s ; thus forming a sample Stored in the experience pool, used to update the local optimal strategy-evaluation model π, to obtain the updated local optimal strategy-evaluation model π'; Step 6.7: Assign π' to π, and set the state s of the car in the simulation environment at the i+1 step i+1 s Compared with the state estimation of the car in the real environment at the i+1 step After they are the same, return to step 6.3 and execute sequentially until i = T, thus obtaining the global optimal strategy-evaluation model π * .
5. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the path planning method described in any one of claims 1 to 4, and the processor is configured to execute the program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the path planning method according to any one of claims 1 to 4 are executed.
Citation Information
Patent Citations
Mobile robot continuous control method based on non-map motion planner
CN106950969A
Neural network system for autonomous vehicle control
CN109863513A
Driverless vehicle local path planning method based on model prediction
CN111338340A
Unmanned ship hybrid sensing autonomous obstacle avoidance method and system based on reinforcement learning
CN111880535A
Route guidance apparatus
JP2002340573A
Cited By
Sim2Real model construction method and device based on reinforcement learning
CN119669952A
Path exploration parameter optimization system and method based on deep reinforcement learning
CN119828479A
Unmanned ship path planning reinforcement learning method based on simplified environment and dynamics
CN120235212A
Reinforcement learning method for unmanned vehicle path planning based on simplified environment and dynamics
CN120235212B
