A method, device and product for autonomous driving path planning considering stability
By using lidar and sensor data to construct a raster map in an off-road environment, and combining probabilistic road maps and Dijkstra's algorithm for path planning, the problems of vehicle stability and slope control are solved, and safe and energy-efficient off-road path planning is achieved.
Patent Information
- Application Number
- CN202410909857.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing path planning methods fail to effectively consider the stability of vehicles in off-road environments, resulting in vehicle instability when driving in environments with large slopes and excessive energy consumption. Traditional probabilistic roadmap algorithms fail to effectively avoid collisions and Control the slope.
By using lidar, inertial measurement unit and global positioning system to obtain environmental information, construct a raster map, and combine with probabilistic road map and Dijkstra algorithm, conduct stability condition test and collision test during path planning, select the path with the least cost and carry out Smooth operation ensures path stability and collision avoidance.
It realizes the planning of shorter paths with smaller slopes in off-road environments, ensuring the stability of vehicle driving, avoiding vehicle drift and sideslip, saving energy, and improving driving safety.
Smart Images

Figure CN118464053B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of path planning, and in particular to an automatic driving path planning method, device and product taking stability into consideration. Background Art
[0002] At present, path planning for off-road environments mainly considers collision avoidance and short paths, and rarely considers the slope of the off-road environment and the stability of the vehicle. However, the slope of the off-road environment is large. If the vehicle speed is high, path planning without considering stability conditions will cause danger to the vehicle's driving. At the same time, the vehicle will consume energy when climbing the slope. The traditional probabilistic roadmap (PRM) algorithm does not consider the analysis of vehicle stability in the process of sampling and constructing the path network diagram. It is very likely that the planned path will cause the vehicle to become unstable, thus posing a threat to driving safety. Therefore, it is urgent to propose a path planning method that considers the vehicle's stability conditions, while also achieving the functions of collision avoidance, short distance, and small slope along the way. Summary of the invention
[0003] The purpose of the present invention is to provide an automatic driving path planning method, device and product that takes stability into consideration, which can achieve collision avoidance over a shorter distance and ensure that the slope of the path is smaller, thereby ensuring the stability of the vehicle's driving.
[0004] To achieve the above-mentioned purpose, the present invention provides the following solution: a method for autonomous driving path planning taking stability into consideration, the method comprising: obtaining environmental information using a lidar, and fusing the environmental information with sensor data obtained by an inertial measurement unit IMU and a global positioning system GPS to construct a grid map; the grid map has terrain elevation information and obstacle attributes.
[0005] According to the grid map and the starting point and end point information of the vehicle, the probabilistic roadmap PRM algorithm is used to search the path.
[0006] When searching for a path, traverse the neighbors of the current node in turn and select the node n with the smallest cost. i , until traversing node n i+1 When the neighboring points are i+2 .
[0007] For node n i , node n i+1 and node n i+2 The connected polylines are replaced by arcs with a set radius to achieve smooth operation.
[0008] Perform stability condition and collision checks on the set radius.
[0009] When both the stability condition check and the collision check are passed, determine the node n i+2 is a node in the path, and traverses node n i+2 The neighboring points are searched until the search is completed and the vehicle’s driving path is obtained.
[0010] Optionally, the path search using a probabilistic roadmap PRM algorithm based on the grid map and the starting point information and the end point information of the vehicle specifically includes: constructing a topology map based on the grid map and the starting point information and the end point information of the vehicle; the topology map is used as a path network map.
[0011] According to the topological graph, the Dijkstra algorithm is used to search for the path.
[0012] Optionally, the path search using the Dijkstra algorithm according to the topology graph specifically includes: using the formula Determine the path evaluation function.
[0013] in, represents the total cost of the path, Represents the distance cost of the current sampling point, represents the cost between the sampling point and the obstacle, represents the terrain cost, , , Represents the weight of the cost.
[0014] Optionally, the stability condition check and collision check for the set radius specifically include: i and node n i+1 The average slope of the line between nodes and i+1 and node n i+2 The slope is determined by the average slope of the line connecting the two points, and the minimum radius is determined by the slope.
[0015] Determine whether the set radius passes the stability condition test.
[0016] If the stability condition test is passed, determine whether there is a collision; if there is a collision, reduce the set radius until there is no collision. If there is no radius that meets the requirements within the range greater than the minimum radius, delete node n. i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test; if it does not exist, determine the node n i+2 is a node in the path; and traverses node n i+2 Neighboring point.
[0017] If the stability condition test is not passed, the node n is determined according to the minimum radius i , node ni+1 and node n i+2 The arc between them; and determine whether there is a collision; if there is no collision, smooth the current arc; if there is a collision, delete node n i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test.
[0018] Optionally, the use formula Perform stability condition test.
[0019] Where R is the radius of curvature, and is the vertical load on the front and rear wheels, , m is the vehicle mass, is the road slope, is the centroid height, is the wheelbase of the car, μ represents the road adhesion coefficient, represents the acceleration due to gravity, is the vehicle longitudinal velocity, is the distance from the center of the vehicle's front axle to its center of mass, is the distance from the rear axle center to the center of mass of the vehicle, represents the equivalent cornering stiffness of the front axle tire, Represents the equivalent cornering stiffness of the rear axle tire.
[0020] Alternatively, using the formula Reduce the set radius.
[0021] in, is the arc radius, To set the radius, is the minimum radius, is the weight, .
[0022] 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 method.
[0023] A computer program product comprises a computer program, which implements the steps of the method when executed by a processor.
[0024] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0025] The present invention provides an autonomous driving path planning method, device and product that takes stability into consideration. Based on the probabilistic roadmap (PRM) algorithm, the vehicle stability condition is constructed. A stability condition test is performed each time the next extension point is selected, thereby ensuring the safety of the planned path. When smoothing, obstacle collision tests are considered, so that the planned path distance is shorter and collision avoidance can be achieved. At the same time, the planned path can pass through terrain with a gentle slope, saving energy and preventing the occurrence of some dangerous situations. In an off-road environment, the present invention can effectively ensure the safety of the planned path of a vehicle traveling in an off-road environment, and avoid vehicle drift, side sliding and other phenomena. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] 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 labor.
[0027] Figure 1 A schematic flow chart of an automatic driving path planning method considering stability provided by the present invention;
[0028] Figure 2 Build a flow diagram for the topology diagram;
[0029] Figure 3 This is a schematic diagram of the collision detection process. DETAILED DESCRIPTION
[0030] 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.
[0031] The purpose of the present invention is to provide an automatic driving path planning method, device and product that takes stability into consideration, which can achieve collision avoidance over a shorter distance and ensure that the slope of the path is smaller, thereby ensuring the stability of the vehicle's driving.
[0032] 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.
[0033] like Figure 1As shown, the present invention provides an automatic driving path planning method taking stability into consideration, including S101 to S106.
[0034] S101, using laser radar to obtain environmental information, and fusing the environmental information with sensor data obtained by an inertial measurement unit and a global positioning system to construct a grid map. The grid map has terrain elevation information and obstacle attributes.
[0035] S101 uses LiDAR for mapping. LiDAR scans the environment to provide environmental information, integrates the data of Inertial Measurement Unit (IMU) and Global Positioning System (GPS) sensors to update the map, and generates a raster map with terrain elevation information and obstacle attributes in real time. The raster attributes are assigned based on the detection results of obstacles in the environment by LiDAR to create an environmental raster map. The map is updated based on the environmental data updated by the perception layer.
[0036] S102, searching for a path using a probabilistic roadmap (PRM) algorithm based on the grid map and the starting point information and the end point information of the vehicle.
[0037] According to the vehicle's starting point information, end point information and grid map, random sampling is performed in the non-obstacle area to generate sampling points, and the starting point, end point and sampling points are added to the topological map. In the example, the sampling point v is used as a vertex in the topological graph G. The adjacent vertices of the vertex are searched in the topological graph G. Each vertex is connected to its neighboring points, and then the connection is checked for collision. The connection passing through the obstacle is deleted. If the connection has no collision, it is added to the topological graph G as an edge e, and the cost of the edge is calculated. The vehicle constructs a topological graph as a path network graph in each planning cycle. The flowchart of constructing the topological graph is shown in the figure below. Figure 2 After sampling on the map, collision check is performed to generate a topological graph as a path network graph, which provides search objects for subsequent path searches.
[0038] The Dijkstra algorithm is used to simultaneously consider the distance cost, obstacle cost and terrain cost in the off-road environment, as well as the stability conditions of the vehicle, to search for a low-cost path that can avoid vehicle instability, prevent the vehicle from drifting, skidding, etc., and ensure driving safety.
[0039] The path evaluation function is as follows: (1).
[0040] In the formula, represents the total cost of the path, Represents the distance cost of the current sampling point, represents the cost between the sampling point and the obstacle, represents the terrain cost, , , Represents the weight of the cost.
[0041] The cost of the sampling points and obstacles is calculated using formula (2) to keep the vehicle away from obstacles and avoid collisions.
[0042] (2).
[0043] In the formula, is the cost coefficient of the obstacle, is the distance between the vehicle and the obstacle, The obstacle influence radius.
[0044] The calculation formula of distance cost is: (3).
[0045] In the formula, is the current sampling point The parent node of Represents the distance cost of the parent node of the current sampling point, and sets the distance cost of the starting point to 0. for and The distance between two points.
[0046] The terrain cost is calculated as: .
[0047] in, Representative Node n The terrain cost, is the terrain cost coefficient, Refers to the node n The gradient of the terrain point, Map horizontal and vertical coordinates ( x , y ) at the elevation.
[0048] S103, when searching for a path, traverse the neighbors of the current node in turn and select the node n with the smallest cost i , until traversing node n i+1 When the neighboring points are i+2 .
[0049] S104, for node n i , node n i+1 and node n i+2 The connected polylines are replaced by arcs with a set radius to achieve smooth operation.
[0050] S105, performing stability condition check and collision check on the set radius.
[0051] S105 specifically includes: according to node n i and node n i+1 The average slope of the line between nodes and i+1 and node n i+2 The average slope of the line between them determines the slope, and the minimum radius is determined by the slope; determine whether the set radius passes the stability condition test; if it passes the stability condition test, determine whether there is a collision; if there is a collision, use the formula Reduce the set radius until there is no collision. If there is no set radius that meets the requirements within the range greater than the minimum radius, delete node n. i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test; if there is no collision, determine node n i+2 is a node in the path; and traverses node n i+2 The neighboring points of is the arc radius, To set the radius, is the minimum radius, is the weight, ; If the stability condition test is not passed, the node n is determined according to the minimum radius i , node n i+1 and node n i+2 The arc between them; and determine whether there is a collision; if there is no collision, smooth the current arc; if there is a collision, delete node n i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test.
[0052] The stability condition analysis process is as follows.
[0053] To avoid vehicle instability, the sideslip angle and yaw rate should satisfy: (4).
[0054] in, μ represents the road adhesion coefficient, ω represents the yaw angular velocity, represents the sideslip angle of the center of mass, Represents the acceleration due to gravity.
[0055] The tire slip angles of the front and rear wheels of a car can be calculated using formula (5): (5).
[0056] in, is the front wheel slip angle of the car, is the rear wheel slip angle of the car, is the front wheel turning angle, is the lateral velocity of the vehicle, is the vehicle longitudinal velocity, is the distance from the center of the vehicle's front axle to its center of mass, It is the distance from the center of mass of the vehicle to the rear axle.
[0057] When the vehicle is stable, Generally small, formula (6) holds true: (6).
[0058] Then formula (5) can be written as: (7).
[0059] From formula (7), we can get the following relationship: (8).
[0060] in, is the wheelbase of the car.
[0061] Front wheel slip angle Side slip angle of rear wheel The calculation formula is: (9).
[0062] in, represents the lateral force on the front wheels of the vehicle, represents the lateral force on the rear wheels of the vehicle, represents the equivalent cornering stiffness of the front axle tire, Represents the equivalent cornering stiffness of the rear axle tire.
[0063] Assuming the car is in a steady state, the lateral force of the front and rear wheels can be calculated using the following formula: (10).
[0064] From equations (8), (9) and (10), we can get the calculation formulas for the sideslip angle and yaw rate of the center of mass: (11).
[0065] Front wheel angle It can be calculated using the following formula: (12).
[0066] From equations (4), (11) and (12), we can get the conditions for the vehicle to remain stable: (13).
[0067] Formula (13) is equivalent to: (14).
[0068] Right now: (15).
[0069] Assuming that the car is moving at a constant speed and only considering the load transfer of the vehicle on the sloped terrain, the vertical loads on the front and rear wheels can be calculated: (16).
[0070] in m is the vehicle mass, is the road slope, is the centroid height.
[0071] Combining equation (16) with equation (15), for each radius of curvature R It can be judged whether it satisfies constraint (15). If it satisfies constraint (15), the car will not become unstable. If it does not, the car will become unstable.
[0072] S106, when both the stability condition check and the collision check are passed, determine the node n i+2 is a node in the path, and traverses node n i+2 The neighboring points are searched until the search is completed and the vehicle’s driving path is obtained.
[0073] As a specific embodiment, the Dijkstra algorithm is based on the constructed topological graph, according to To calculate the cost of each node, traverse the neighbors of the current node in turn, and select the node n with the smallest cost i , and select an arc to smooth the current node n i , node n i The previous expansion node n i-1 , node n i-1 The previous expansion node n i-2 The polyline is then tested for stability based on the arc radius. If the stability condition is met, then node n i is the next node to be expanded, and then node n i is the current node. If the stability condition is not met, delete node n. i Then select the point with the smallest cost among the remaining points as the next node to be expanded, and repeat the above process until the target node is found.
[0074] When searching for a path, we start from the starting point n1 and connect the nodes with the lowest cost each time. When we find the point n3 with the lowest cost when we traverse the neighboring points of the second point n2, we check the stability condition of the line segment connecting the three points n1, n2 and n3. After that, we check the stability condition in this way every time we expand the next node.
[0075] First determine the radius based on experience R oWhen searching for a path using PRM, every three-point polyline is replaced by an arc to replace the corner part, and Figure 3 shown.
[0076] (a) If the ideal radius R o If the radius is greater than the minimum radius determined by formula (15), then determine whether there will be a collision. Ro If the arc is used to replace the corner part, the path will collide with obstacles. In this case, the arc radius should be appropriately reduced. R The calculation formula is:
[0077] (17).
[0078] in, R min is the minimum radius determined by equation (15).
[0079] The steps to reduce the arc radius are: first take The radius of the arc is calculated to be 0.1, and the obstacle collision test is performed on this basis. If it meets the requirements, the radius is recorded so that the subsequent path can be smoothed to replace the original corner with an arc of this radius. If it does not meet the requirements, continue to increase until Equal to 1, if there is still no radius that meets the requirements, it means that the current node n i If it does not meet the requirements, delete the node immediately. i , find the node with the minimum cost among the remaining neighbors , repeat the above operation (a) and find an arc to replace And the angle connecting the previous two points, and perform stability condition test and collision test, and record the arc radius that meets the stability condition and has no collision.
[0080] (b) If the ideal radius R o If the radius is smaller than the minimum radius determined by formula (15), the arc with the minimum radius determined by formula (15) is used to replace the original polyline, and a collision check is performed. If no collision occurs, the node n is recorded. i and the corresponding radius; if a collision occurs, delete the node n i , find the node with the minimum cost among the remaining neighbors , repeat the above operation (b), where the purpose of (a) and (b) is to find an arc to replace and the angle between the two previous nodes, and perform stability condition checks and collision checks until a radius that meets the requirements is found and this radius is recorded. If no radius that meets the requirement is found, the search is performed based on the remaining nodes.
[0081] in, (18). Where, Indicates the current node n i The first two expansion nodes n i-2 and node n i-1 The average slope of the line between Indicates the current node n i With the previous expansion node n i-1 The average slope of the line between them.
[0082] Obtain a series of path points that can be connected to form a low-cost path that meets vehicle stability conditions. Query the radius of the arc selected for each corner recorded after executing the above steps, and use arcs of corresponding radius to replace the corners, thereby smoothing the path and making it easier to track.
[0083] In one embodiment, a computer device is provided, which may be a database. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. 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 via a network connection. When the computer program is executed by the processor, a method for autonomous driving path planning considering stability is implemented.
[0084] In one embodiment, a computer device is also provided, including a memory and a processor to store a computer program on the memory and run on the processor, and when the processor executes the computer program, the steps in the above-mentioned automatic driving path planning method considering stability are implemented.
[0085] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for autonomous driving path planning considering stability.
[0086] 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 this application 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.
[0087] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 in this application 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 in this application 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 in this application 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.
[0088] 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.
[0089] 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. An automatic driving path planning method considering stability, characterized in that: The method comprises: Using laser radar to obtain environmental information, and fusing the environmental information with sensor data obtained by an inertial measurement unit (IMU) and a global positioning system (GPS) to construct a raster map; the raster map has terrain elevation information and obstacle attributes; According to the grid map and the starting and ending information of the vehicle, the probabilistic roadmap PRM algorithm is used to search the path; When searching for a path, traverse the neighbors of the current node in turn and select the node n with the smallest cost. i , until traversing node n i+1 When the neighboring points are i+2 ; For node n i , node n i+1 and node n i+2 The connected polylines are replaced by arcs with a set radius to achieve smooth operation; Perform stability condition and collision tests on the set radius; When both the stability condition check and the collision check are passed, determine the node n i+2 is a node in the path, and traverses node n i+2 The neighboring points of the vehicle are searched until the search is completed and the vehicle's driving path is obtained; The stability condition test and collision test for the set radius specifically include: According to node n i and node n i+1 The average slope of the line between nodes and i+1 and node n i+2 The average slope of the line between them determines the slope, and the minimum radius is determined by the slope; Determine whether the set radius passes the stability condition test; If the stability condition test is passed, determine whether there is a collision; if there is a collision, reduce the set radius until there is no collision. If there is no set radius that meets the requirements within the range greater than the minimum radius, delete node n. i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test; if there is no collision, determine node n i+2 is a node in the path; and traverses node n i+2 's neighboring points; If the stability condition test is not passed, the node n is determined according to the minimum radius i , node n i+1 and node n i+2 The arc between them; and determine whether there is a collision; if there is no collision, smooth the current arc; if there is a collision, delete node n i+2 ; Find the node with the minimum cost among the remaining neighboring points, and return to the step of determining whether the set radius passes the stability condition test.
2. The method for autonomous driving path planning considering stability according to claim 1, characterized in that: The method of searching a path using a PRM algorithm based on the grid map and the starting point information and the end point information of the vehicle specifically includes: Constructing a topological map according to the grid map and the starting point information and the end point information of the vehicle; the topological map is used as a path network map; According to the topological graph, the Dijkstra algorithm is used to search for the path.
3. The method for autonomous driving path planning considering stability according to claim 2, characterized in that: The path search using the Dijkstra algorithm according to the topology graph specifically includes: Using the formula Determine the path evaluation function; in, represents the total cost of the path, Represents the distance cost of the current sampling point, represents the cost between the sampling point and the obstacle, represents the terrain cost, , , Represents the weight of the cost.
4. The method for autonomous driving path planning considering stability according to claim 1, characterized in that: Using the formula Conduct stability condition tests; in, R is the radius of curvature, and are the vertical loads on the front and rear wheels, respectively. , m is the vehicle mass, is the road slope, is the centroid height, is the wheelbase of the car, μ represents the road adhesion coefficient, represents the acceleration due to gravity, is the vehicle longitudinal velocity, is the distance from the center of the vehicle's front axle to its center of mass, is the distance from the rear axle center to the center of mass of the vehicle, represents the equivalent cornering stiffness of the front axle tire, Represents the equivalent cornering stiffness of the rear axle tire.
5. The method for autonomous driving path planning considering stability according to claim 1, characterized in that: Using the formula Reduce the set radius; in, is the arc radius, To set the radius, is the minimum radius, is the weight, .
6. A computer device comprising: 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 method according to any one of claims 1 to 5.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
