Backup path planning method for unmanned vehicle, storage medium and unmanned vehicle

By introducing the planner factory, pose detector and collision detector into the unmanned vehicle, alternative paths are generated and optimized, which solves the problem that the alternative paths cannot avoid obstacles and improves the efficiency and safety of path planning.

CN118443049BActive Publication Date: 2024-09-17NEOLIX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889749.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-17
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The backup path of the unmanned vehicle cannot avoid obstacles and requires deceleration and parking processing in the speed planner, resulting in inefficient path planning.

Method used

Introduce the planner factory, pose detector and collision detector into the unmanned vehicle. By generating a rough solution path and performing sparse and unconstrained optimization, the rationality and collision risk of the path are detected to ensure the feasibility of the alternate path and pass Common interfaces increase flexibility in path planning.

Benefits of technology

It improves the quality of alternative paths and the flexibility of path planning, ensures that unmanned vehicles can drive safely when the detection results are true, and improves the efficiency and reliability of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118443049B
    Figure CN118443049B
Patent Text Reader

Abstract

The present application discloses a backup path planning method, storage medium and unmanned vehicle for an unmanned vehicle, belonging to the field of unmanned driving technology. The method includes: when the main path planner is unable to perform path planning, the planner factory generates a backup path according to at least one pre-loaded path planning function; the posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result for indicating true or false; the collision detector detects whether a collision occurs when the unmanned vehicle travels along the backup path, and generates a second detection result for indicating true or false; if it is determined that both the first detection result and the second detection result are true, the backup path planner sends the backup path as the final planned path of the unmanned vehicle to the speed planner. The present application can use a custom path planning function to generate a backup path, optimize the backup path through a refined generator, and can also perform posture detection and collision detection, thereby improving the quality of the backup path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of unmanned driving technology, and in particular to a backup path planning method for an unmanned vehicle, a storage medium, and an unmanned vehicle. Background Art

[0002] The planning module in an unmanned vehicle is generally divided into lateral path planning and longitudinal speed planning. The lateral path planning is responsible for generating a spatial path that does not contain time information, which can avoid and detour static obstacles; the longitudinal speed planning considers time information on the basis of the spatial path to generate a space-time trajectory that can avoid dynamic obstacles.

[0003] The planning module includes a main path planner and a backup path planner. Under normal circumstances, the main path planner can generate a planned path based on some constraints (such as obstacle avoidance, etc.); when the planned path cannot be generated based on these constraints (that is, the path planning of the main planner fails), the backup path planner can abandon some or all of the constraints to generate a backup path and send the backup path to the speed planner so that the speed planner can perform longitudinal speed planning, thereby ensuring the normal driving of the unmanned vehicle.

[0004] Since the backup path is generated by abandoning some constraints, it is necessary to further plan the deceleration and stopping trajectory in the speed planner to avoid obstacles in the backup path. Summary of the invention

[0005] The present application provides a backup path planning method for an unmanned vehicle, a storage medium, and an unmanned vehicle, which are used to solve the problem that the backup path cannot avoid obstacles and needs to plan deceleration and stopping in the speed planner. The technical solution is as follows:

[0006] According to a first aspect of the present application, a backup path planning method for an unmanned vehicle is provided, which is used in an unmanned vehicle, wherein the unmanned vehicle includes a main path planner, a backup path planner, and a speed planner, wherein the backup path planner includes a planner factory, a pose detector, and a collision detector, and the method includes:

[0007] When the primary path planner is unable to perform path planning, the planner factory generates an alternate path according to at least one preloaded path planning function;

[0008] The posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false;

[0009] The collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false;

[0010] If it is determined that both the first detection result and the second detection result are true, the backup path planner sends the backup path as the final planned path of the unmanned vehicle to the speed planner.

[0011] In a possible implementation, when the planner factory includes a coarse solution generator and a refined solution generator, the planner factory generates a backup path according to at least one preloaded path planning function, including:

[0012] The rough solution generator generates a rough solution path according to at least one pre-loaded path planning function, wherein the at least one path planning function is loaded into the rough solution generator through a universal interface;

[0013] The refined solution generator determines whether initial posture adjustment is required, selects alternative reference points from the rough solution path according to the determination result, calculates initial state parameters of the unmanned vehicle according to the alternative reference points, and performs sparse, unconstrained optimization and densification processing on the rough solution path according to the initial state parameters to obtain an alternative path.

[0014] In a possible implementation, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false, including:

[0015] The posture detector obtains the coordinate information of the unmanned vehicle and the heading difference of the unmanned vehicle relative to a reference point in the reference line;

[0016] The posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the coordinate information and the heading difference;

[0017] If the position and posture of the unmanned vehicle are both reasonable, the posture detector generates a first detection result indicating true;

[0018] If only the position of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating a true and slow braking operation, so that the speed planner controls the unmanned vehicle to perform a slow braking operation until the speed of the unmanned vehicle is lower than the speed threshold and then generates a first detection result indicating a false;

[0019] If the position and posture of the unmanned vehicle are both unreasonable, or only the posture of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating true and emergency braking operations, so that the speed planner controls the unmanned vehicle to perform emergency braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then generates a first detection result indicating false.

[0020] In a possible implementation, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the coordinate information and the heading difference, including:

[0021] The posture detector determines whether the unmanned vehicle has left the center of the lane according to the coordinate information to obtain a first judgment result;

[0022] The posture detector determines whether the unmanned vehicle is within the road according to the road boundary information in the map, and obtains a second determination result;

[0023] The posture detector determines whether the unmanned vehicle is in the lane according to the lane information in the map, and obtains a third determination result;

[0024] The posture detector determines whether the unmanned vehicle is indoors to obtain a fourth determination result;

[0025] The posture detector detects whether the position and posture of the unmanned vehicle are reasonable based on the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference.

[0026] In a possible implementation, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference, including:

[0027] If the second judgment result is false, the posture detector determines that only the position of the unmanned vehicle is unreasonable;

[0028] If the first judgment result is false and the third judgment result is true, the posture detector determines a heading threshold according to the fourth judgment result, and if the heading difference is greater than the heading threshold, it is determined that only the posture of the unmanned vehicle is unreasonable;

[0029] If the first judgment result is false and the third judgment result is false, or if the first judgment result is true, the posture detector determines the heading threshold according to the fourth judgment result, and if the heading difference is greater than the heading threshold and the second judgment result is false, it is determined that both the position and the posture of the unmanned vehicle are unreasonable; if the heading difference is greater than the heading threshold and the second judgment result is true, it is determined that only the posture of the unmanned vehicle is unreasonable;

[0030] Otherwise, the posture detector determines that the position and posture of the unmanned vehicle are reasonable.

[0031] In a possible implementation, the collision detector detects whether a collision occurs when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false, including:

[0032] The collision detector obtains size information, curb information, lane boundary information and obstacle information of the unmanned vehicle;

[0033] The collision detector calculates the longitudinal preview range of the unmanned vehicle according to the size information;

[0034] The collision detector traverses each path point in the backup path that is within the longitudinal preview range, and generates a body boundary box of the unmanned vehicle according to the path point and the size information;

[0035] The collision detector detects whether the unmanned vehicle will collide based on the vehicle body boundary box, the curb information, the lane boundary information and the obstacle information;

[0036] If the unmanned vehicle will not collide, the collision detector generates a second detection result indicating true;

[0037] If the unmanned vehicle is about to collide, the collision detector generates a second detection result indicating true and emergency braking operations, so that the speed planner controls the unmanned vehicle to perform emergency braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then generates a second detection result indicating false.

[0038] In a possible implementation, the collision detector detects whether the unmanned vehicle will collide based on the vehicle body boundary box, the curb information, the lane boundary information, and the obstacle information, including:

[0039] The collision detector selects a section of the curb according to the curb information, and if the vehicle body boundary box overlaps with the curb, it is determined that the unmanned vehicle will collide;

[0040] The collision detector selects a pair of left and right boundary points according to the lane boundary information, and if the vehicle body boundary box overlaps with the left and right boundary points, it is determined that the unmanned vehicle will collide;

[0041] The collision detector determines an obstacle boundary box according to the obstacle information, and if the vehicle body boundary box overlaps with the obstacle boundary box, it is determined that the unmanned vehicle will collide;

[0042] Otherwise, the collision detector determines that the unmanned vehicle will not collide.

[0043] In a possible implementation, the method further includes:

[0044] If it is determined that at least one of the first detection result and the second detection result is false, it is determined that the backup path generation fails.

[0045] According to a second aspect of the present application, an unmanned vehicle is provided, the unmanned vehicle comprising a main path planner, a backup path planner and a speed planner, the backup path planner comprising a planner factory, a pose detector and a collision detector;

[0046] The planner factory is used to generate a backup path according to at least one pre-loaded path planning function when the main path planner cannot perform path planning;

[0047] The position and posture detector is used to detect whether the position and posture of the unmanned vehicle are reasonable, and generate a first detection result indicating whether it is true or false;

[0048] The collision detector is used to detect whether a collision will occur when the unmanned vehicle travels along the backup path, and to generate a second detection result indicating true or false;

[0049] The backup path planner is used to send the backup path to the speed planner as the final planned path of the unmanned vehicle if it is determined that both the first detection result and the second detection result are true.

[0050] According to a third aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the backup path planning method for the unmanned vehicle as described above.

[0051] The beneficial effects of the technical solution provided by this application include at least:

[0052] The planner factory is equipped with a general interface, through which at least one custom path planning function can be loaded into the coarse solution generator, and then the coarse solution generator is used to generate the coarse solution path, which can improve the flexibility of path planning. All coarse solution paths generated by the path planning functions can share a fine solution generator for optimization, and the coarse solution path can be optimized by the fine solution generator, which not only improves the reuse rate of the fine solution generator, but also improves the quality of the backup path.

[0053] After the backup path is generated by the planner factory, it is tested by the pose detector and the collision detector. When both test results are true, the backup path is sent to the velocity planner, which can improve the quality of the backup path. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0055] Figure 1 is a structural block diagram of an unmanned vehicle provided by an embodiment of the present application;

[0056] Figure 2 is a flow chart of a backup path planning method for an unmanned vehicle provided by an embodiment of the present application;

[0057] Figure 3 is a flow chart of a backup path planning method for an unmanned vehicle provided by an embodiment of the present application;

[0058] Figure 4 It is a schematic diagram of a backup path provided by an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0060] like Figure 1 As shown, the unmanned vehicle in the present application may include a main path planner 110, a backup path planner 120 and a speed planner 130. If the main path planner 110 can generate a planned path according to some constraints, the planned path is sent to the speed planner 130; if the main path planner 110 cannot generate a planned path, the backup path planner 120 will abandon some constraints to generate a backup path, and send the backup path to the speed planner 130.

[0061] The backup path planner 120 in this embodiment may include a planner factory 121, a pose detector 122 and a collision detector 123. The planner factory 121 includes a coarse solution generator and a fine solution generator, the coarse solution generator is used to generate a coarse solution path, and the fine solution generator is used to optimize the coarse solution path to finally obtain a backup path. The pose detector 122 is used to detect the pose of the unmanned vehicle. The collision detector 123 is used to detect whether the unmanned vehicle will collide. The backup path planner 120 comprehensively judges whether the backup path is reasonable based on the detection results of the pose detector 122 and the collision detector 123, and sends the reasonable backup path to the speed planner 130.

[0062] like Figure 2As shown, it shows a method flow chart of a backup path planning method for an unmanned vehicle provided by an embodiment of the present application. The backup path planning method for an unmanned vehicle can be applied to Figure 1 In the unmanned vehicle shown in FIG. 1 , the backup path planning method of the unmanned vehicle may include:

[0063] Step 201 : When the primary path planner is unable to perform path planning, the planner factory generates a backup path according to at least one pre-loaded path planning function.

[0064] The path planning function is a function used to generate an alternative path, and each path planning function corresponds to a path generation method. For example, the path generation method may be a lattice generation method, a reference line generation method, and the like.

[0065] We can load the code of at least one path planning function into the planner factory, and the planner factory generates a backup path according to the at least one path planning function. When the planner factory includes one path planning function, the planner factory directly generates a backup path according to the path planning function; when the planner factory includes at least two path planning functions, the planner factory can read the priority of each path planning function, select the path planning function with the highest priority to generate a backup path, and if the backup path cannot be generated, select the path planning function with the highest priority from the remaining path planning functions to generate a backup path, and stop the loop after the backup path is generated.

[0066] Step 202: The posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false.

[0067] The posture detector is used to detect whether the position and posture of the unmanned vehicle are reasonable. The specific detection method is described in the following text and will not be repeated here.

[0068] When the position and posture of the unmanned vehicle are reasonable, the posture detector generates a first detection result indicating true; when the position and / or posture of the unmanned vehicle are unreasonable, the posture detector generates a first detection result indicating false.

[0069] Step 203, the collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result for indicating true or false.

[0070] The collision detector is used to detect whether the unmanned vehicle will collide with the curb, the left and right boundaries of the lane, obstacles, etc. when driving along the alternative path. The specific detection method is described in the following text and will not be repeated here.

[0071] When the unmanned vehicle travels along the alternate path, no collision occurs, and the collision detector generates a second detection result indicating a true result; when the unmanned vehicle travels along the alternate path, a collision occurs, and the collision detector generates a second detection result indicating a false result.

[0072] Step 204: If it is determined that both the first detection result and the second detection result are true, the backup path planner sends the backup path as the final planned path of the unmanned vehicle to the speed planner.

[0073] If both the first detection result and the second detection result are true, the backup path planner determines that the position and posture of the unmanned vehicle are reasonable, and the unmanned vehicle will not collide when driving along the backup path, that is, the backup path is available, and the backup path is sent to the speed planner for processing. If at least one of the first detection result and the second detection result is false, the backup path planner determines that the backup path is unavailable, and the backup path generation fails.

[0074] In summary, the backup path planning method for the unmanned vehicle provided in the embodiment of the present application is provided with a general interface in the planner factory, through which at least one customized path planning function can be loaded into the rough solution generator, and then the rough solution generator is used to generate the rough solution path, which can improve the flexibility of path planning. The rough solution paths generated by all path planning functions can share a fine solution generator for optimization, and the fine solution generator is used to optimize the rough solution path, which not only improves the reuse rate of the fine solution generator, but also improves the quality of the backup path.

[0075] After the backup path is generated by the planner factory, it is tested by the pose detector and the collision detector. When both test results are true, the backup path is sent to the velocity planner, which can improve the quality of the backup path.

[0076] like Figure 3 As shown, it shows a flowchart of an alternative path planning method for an unmanned vehicle provided by an embodiment of the present application. The alternative path planning method for an unmanned vehicle can be applied to Figure 1 In the unmanned vehicle shown in FIG. 1 , the backup path planning method of the unmanned vehicle may include:

[0077] Step 301, when the main path planner is unable to perform path planning, the rough solution generator generates a rough solution path according to at least one pre-loaded path planning function, and the at least one path planning function is loaded into the rough solution generator through a universal interface.

[0078] The planner factory includes a rough solution generator and a fine solution generator. The rough solution generator contains a general interface through which at least one path planning function can be loaded. The path planning function is a function used to generate an alternative path, and each path planning function corresponds to a path generation method, for example, the path generation method can be a lattice generation method, a reference line generation method, etc.

[0079] Taking the lattice generation method as an example, the path planning function is quintic_bvp_funcs, which can be encapsulated by three functions, including BackupPathPlannerFactory{}[BackupPathPlannerType::kQuinticBvp]->GeneratePath, BackupProcess and IsPathValid. Taking the reference line generation method as an example, the path planning function is ref_line_funcs, which can be encapsulated by three functions, including BackupPathPlannerFactory{}[BackupPathPlannerType::kRefLine]->GeneratePath, BackupProcess and IsPathValid. BackupPathPlannerFactory is used to generate a rough backup path, BackupProcess is used to generate a fine backup path based on the rough backup path, and IsPathValid is used to check the fine backup path and output the rough solution path after confirming that it is correct.

[0080] We can load the code of at least one path planning function into the rough solution generator, and the rough solution generator generates a rough solution path according to the at least one path planning function. When the rough solution generator includes one path planning function, the rough solution generator directly generates the rough solution path according to the path planning function; when the rough solution generator includes at least two path planning functions, the rough solution generator can read the priority of each path planning function, select the path planning function with the highest priority to generate the rough solution path, and if the rough solution path cannot be generated, the path planning function with the highest priority is selected from the remaining path planning functions to generate the rough solution path, and the loop stops after the rough solution path is generated.

[0081] Assuming that the path planning function includes quintic_bvp_funcs and ref_line_funcs, and the priority of quintic_bvp_funcs is higher than that of ref_line_funcs, the rough solution generator first generates a rough solution path according to quintic_bvp_funcs. If the rough solution path can be generated, step 302 is executed. If the rough solution path cannot be generated, the rough solution path is generated according to ref_line_funcs. If the rough solution path can be generated, step 302 is executed. If the rough solution path cannot be generated, it is determined that the backup path generation has failed and the process ends.

[0082] When using the lattice method to generate a rough solution path, the rough solution generator first determines the lateral boundary of the driving (taking the detour or cruising in the lane), then determines the longitudinal preview range of the unmanned vehicle (for example, 30 meters from the front of the vehicle), and scatters points based on the lateral boundary at the preview position. Based on the starting point and many scattered points, a boundary value problem (BVP) is established to generate multiple polynomial curves, and then the cost is designed (for example, stay away from the boundary, stay away from obstacles, drive on the side, etc.), the cost of each polynomial curve is calculated, and the polynomial curve with the minimum cost is determined as the rough solution path. Figure 4 As shown in Figure 4, the green box represents the lane, and the longitudinal red dots represent the scattered points based on the lateral boundaries.

[0083] When using the reference line method to generate a rough solution path, the rough solution generator can determine the longitudinal preview range of the unmanned vehicle (for example, 30 meters from the front of the vehicle), and then intercept the reference line from the starting point to the preview position as the rough solution path.

[0084] In step 302, the refined solution generator determines whether initial posture adjustment is required, selects alternative reference points from the rough solution path according to the determination result, calculates the initial state parameters of the unmanned vehicle according to the alternative reference points, and performs sparse, unconstrained optimization and densification processing on the rough solution path according to the initial state parameters to obtain an alternative path.

[0085] In this embodiment, the coarse solution path generated by the coarse solution generator according to any path planning function can be optimized by a fine solution generator, thereby improving the reuse rate of the fine solution generator.

[0086] Specifically, the refined solution generator can determine whether the initial posture adjustment is required, and the judgment conditions include whether there is a re-planning signal and whether there will be a large curvature section. If the initial posture adjustment is not required, the refined solution generator will use the reference point closest to the unmanned vehicle as an alternative reference point; if the initial posture adjustment is required, a number of reference points within a certain distance in front and behind the unmanned vehicle will be selected, and the reference point with the smallest heading difference with the unmanned vehicle will be used as an alternative reference point. Then, the refined solution generator calculates the initial state parameters of the Frenet system in the lateral direction according to the alternative reference points, including the lateral position L, lateral velocity dL, and lateral acceleration ddL. Then, the refined solution generator performs sparse path processing through uniform sampling, uses unconstrained optimization to solve the problem, densifies the path based on lateral kinematics, and finally outputs a refined solution path. The planner factory checks the data format of the refined solution path. If it meets the format requirements, the refined solution path is determined as a backup path.

[0087] Step 303: The posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false.

[0088] The posture detector is used to detect whether the position and posture of the unmanned vehicle are reasonable. When the position and posture of the unmanned vehicle are reasonable, the posture detector generates a first detection result indicating true; when the position and / or posture of the unmanned vehicle are unreasonable, the posture detector generates a first detection result indicating false.

[0089] Specifically, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false, which may include:

[0090] (1) The pose detector obtains the coordinate information of the unmanned vehicle and the heading difference of the unmanned vehicle relative to the reference point in the reference line.

[0091] The posture detector obtains the size information and posture information of the unmanned vehicle, and generates coordinate information based on the size information, posture information and reference line.

[0092] The pose detector calculates the heading difference of the unmanned vehicle relative to the reference point in the reference line based on the reference line.

[0093] (2) The posture detector detects whether the position and posture of the unmanned vehicle are reasonable based on the coordinate information and heading difference.

[0094] Among them, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the coordinate information and the heading difference, including: the posture detector determines whether the unmanned vehicle has left the center of the lane (is_headout) according to the coordinate information, and obtains a first judgment result; the posture detector determines whether the unmanned vehicle is in the road (is_inroad) according to the road boundary information in the map, and obtains a second judgment result; the posture detector determines whether the unmanned vehicle is in the lane (is_inlane) according to the lane information in the map, and obtains a third judgment result; the posture detector determines whether the unmanned vehicle is indoors (is_indoor), and obtains a fourth judgment result; the posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference.

[0095] Specifically, the posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference, which may include:

[0096] (a) If the second judgment result is false, the posture detector determines that only the position of the unmanned vehicle is unreasonable.

[0097] If is_inroad is false, meaning the car is outside the road boundary, then the pose detector determines that the car is only in an unreasonable position.

[0098] (b) If the first judgment result is false and the third judgment result is true, the posture detector determines the heading threshold according to the fourth judgment result. If the heading difference is greater than the heading threshold, it is determined that only the posture of the unmanned vehicle is unreasonable.

[0099] If is_inlane is true and is_headout is false (the vehicle is in the lane and the head is facing the center, so the position is definitely reasonable), the posture detector determines custom thresholds of different standards based on whether is_indoor (since lanes outdoors are wider than lanes indoors, a smaller threshold can be set for indoors and a larger threshold can be set for outdoors), and determines whether the heading difference of the unmanned vehicle is greater than the threshold. If the heading difference is greater than the heading threshold, it means that the error of the heading difference of the unmanned vehicle is large, and the posture detector determines that only the posture of the unmanned vehicle is unreasonable.

[0100] (c) If the first judgment result is false and the third judgment result is false, or if the first judgment result is true, the posture detector determines the heading threshold according to the fourth judgment result. If the heading difference is greater than the heading threshold and the second judgment result is false, it is determined that both the position and posture of the unmanned vehicle are unreasonable; if the heading difference is greater than the heading threshold and the second judgment result is true, it is determined that only the posture of the unmanned vehicle is unreasonable.

[0101] If is_inlane is false and is_headout is false, or if is_headout is true, the pose detector determines custom thresholds of different standards according to whether is_indoor (since the lanes outdoors are wider than those indoors, a smaller threshold can be set for indoors and a larger threshold can be set for outdoors), and determines whether the heading difference of the unmanned vehicle is greater than the threshold. If the heading difference is greater than the heading threshold and is_inroad is false, it means that the error of the heading difference of the unmanned vehicle is large and the position is unreasonable, and the pose detector determines that both the position and attitude of the unmanned vehicle are unreasonable; if the heading difference is greater than the heading threshold and is_inroad is true, it means that the error of the heading difference of the unmanned vehicle is large and the position is reasonable, and the pose detector determines that only the attitude of the unmanned vehicle is unreasonable.

[0102] (d) Otherwise, the pose detector determines that the position and pose of the unmanned vehicle are reasonable.

[0103] Except for the above three cases, the position and posture of the unmanned vehicle determined by the posture detector are reasonable.

[0104] (3) If the position and posture of the unmanned vehicle are reasonable, the posture detector generates a first detection result indicating that it is true.

[0105] The pose detector also includes a speed limit generator and a virtual obstacle generator. The speed limit generator is used to output the constraint type (hard constraint or soft constraint) and the speed limit value to the speed planner; the virtual obstacle generator is used to construct an extra-large virtual obstacle (sudden braking virtual obstacle) at the coordinates of the unmanned vehicle when entering the backup path planning, or, when entering the backup path planning, to construct a long virtual obstacle perpendicular to the heading along the heading direction at the coordinates of the unmanned vehicle (slow braking virtual obstacle), and then output the sudden braking virtual obstacle or the slow braking virtual obstacle to the speed planner.

[0106] If the position and posture of the unmanned vehicle are reasonable, the posture detector does not generate virtual obstacles and constraint types, but only generates a first detection result to indicate the truth.

[0107] (4) If only the position of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating true and slow braking operations, so that the speed planner controls the unmanned vehicle to perform slow braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then generates a first detection result indicating false.

[0108] When a slow braking operation is required, the speed limit generator outputs soft constraints and speed limit values ​​to the speed planner, and the virtual obstacle generator outputs a slow braking virtual obstacle to the speed planner. When the speed planner determines that there are slow braking virtual obstacles and soft constraints, it controls the unmanned vehicle to perform a slow braking operation until the speed of the unmanned vehicle is lower than the speed threshold, and the posture detector generates a first detection result indicating a false, indicating that the backup path generation failed.

[0109] (5) If both the position and posture of the unmanned vehicle are unreasonable, or if only the posture of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating a true or emergency braking operation, so that the speed planner controls the unmanned vehicle to perform an emergency braking operation until the speed of the unmanned vehicle falls below the speed threshold and then generates a first detection result indicating a false operation.

[0110] When an emergency brake operation is required, the speed limit generator outputs hard constraints and speed limit values ​​to the speed planner, and the virtual obstacle generator outputs emergency brake virtual obstacles to the speed planner. When the speed planner determines that there are emergency brake virtual obstacles and hard constraints, it controls the unmanned vehicle to perform an emergency brake operation until the speed of the unmanned vehicle is lower than the speed threshold, and the posture detector generates a first detection result indicating a false value, indicating that the backup path generation failed.

[0111] Step 304: The collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false.

[0112] The collision detector is used to detect whether the unmanned vehicle will collide with the curb, the left and right boundaries of the lane, obstacles, etc. when driving along the alternate path. When the unmanned vehicle does not collide with the alternate path, the collision detector generates a second detection result indicating true; when the unmanned vehicle collides with the alternate path, the collision detector generates a second detection result indicating false.

[0113] Specifically, the collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false, which may include:

[0114] (1) The collision detector obtains the size information, curb information, lane boundary information, and obstacle information of the unmanned vehicle.

[0115] The collision detector can obtain lane boundary information from the map and roadside information and obstacle information from the perception module.

[0116] (2) The collision detector calculates the longitudinal preview range of the unmanned vehicle based on the size information.

[0117] The collision detector can generate a longitudinal preview range (for example, 30 meters from the front of the vehicle) based on size information, kinematic constraints and current vehicle speed.

[0118] (3) The collision detector traverses each path point in the backup path that is within the longitudinal preview range and generates the vehicle's body bounding box based on the path points and size information.

[0119] The collision detector uses the path point as the location of the unmanned vehicle, and then generates the body bounding box of the unmanned vehicle at that location based on the size information.

[0120] (4) The collision detector detects whether the unmanned vehicle will collide based on the vehicle body boundary box, curb information, lane boundary information, and obstacle information.

[0121] The collision detector detects whether the unmanned vehicle will collide based on the vehicle body boundary box, curb information, lane boundary information, and obstacle information, and may include:

[0122] The collision detector selects a segment of the curb based on the curb information. If the vehicle body boundary box overlaps with the curb, it is determined that the unmanned vehicle will collide.

[0123] The collision detector selects a pair of left and right boundary points based on the lane boundary information. If the vehicle body boundary box overlaps with the left and right boundary points, it is determined that the unmanned vehicle will collide.

[0124] The collision detector determines the obstacle bounding box based on the obstacle information. If the vehicle body bounding box overlaps with the obstacle bounding box, it is determined that the unmanned vehicle will collide.

[0125] Otherwise, the collision detector determines that the autonomous vehicle will not collide.

[0126] (5) If the unmanned vehicle will not collide, the collision detector generates a second detection result indicating true.

[0127] If the autonomous vehicle will not collide, the collision detector does not generate a virtual obstacle and constraint type, but only generates a second detection result to indicate that it is true.

[0128] (6) If the unmanned vehicle is about to collide, the collision detector generates a second detection result indicating a true and emergency braking operation, so that the speed planner controls the unmanned vehicle to perform an emergency braking operation until the speed of the unmanned vehicle is lower than the speed threshold and then generates a second detection result indicating a false.

[0129] When an emergency brake operation is required, the speed limit generator outputs hard constraints and speed limit values ​​to the speed planner, and the virtual obstacle generator outputs emergency brake virtual obstacles to the speed planner. When the speed planner determines that there are emergency brake virtual obstacles and hard constraints, it controls the unmanned vehicle to perform an emergency brake operation until the speed of the unmanned vehicle is lower than the speed threshold, and the collision detector generates a second detection result indicating a false value, indicating that the backup path generation failed.

[0130] Step 305: If it is determined that both the first detection result and the second detection result are true, the backup path planner sends the backup path as the final planned path of the unmanned vehicle to the speed planner.

[0131] If both the first detection result and the second detection result are true, the backup path planner determines that the position and posture of the unmanned vehicle are reasonable, and the unmanned vehicle will not collide when traveling along the backup path, that is, the backup path is available, and the backup path is sent to the speed planner for processing.

[0132] Step 306: If it is determined that at least one of the first detection result and the second detection result is false, it is determined that the backup path generation fails.

[0133] If at least one of the first detection result and the second detection result is false, the backup path planner determines that the backup path is unavailable and the backup path generation fails.

[0134] In summary, the backup path planning method for the unmanned vehicle provided in the embodiment of the present application is provided with a general interface in the planner factory, through which at least one customized path planning function can be loaded into the rough solution generator, and then the rough solution generator is used to generate the rough solution path, which can improve the flexibility of path planning. The rough solution paths generated by all path planning functions can share a fine solution generator for optimization, and the fine solution generator is used to optimize the rough solution path, which not only improves the reuse rate of the fine solution generator, but also improves the quality of the backup path.

[0135] After the backup path is generated by the planner factory, it is tested by the pose detector and the collision detector. When both test results are true, the backup path is sent to the velocity planner, which can improve the quality of the backup path.

[0136] like Figure 1 As shown, it shows a structural block diagram of an unmanned vehicle provided by an embodiment of the present application, the unmanned vehicle may include: a main path planner 110, a backup path planner 120 and a speed planner 130, the backup path planner 120 includes a planner factory 121, a pose detector 122 and a collision detector 123;

[0137] A planner factory 121, configured to generate an alternate path according to at least one pre-loaded path planning function when the primary path planner is unable to perform path planning;

[0138] A posture detector 122, used to detect whether the position and posture of the unmanned vehicle are reasonable, and generate a first detection result indicating whether it is true or false;

[0139] A collision detector 123, used to detect whether a collision will occur when the unmanned vehicle travels along the backup path, and to generate a second detection result indicating true or false;

[0140] The backup path planner 120 is used to send the backup path as the final planned path of the unmanned vehicle to the speed planner if it is determined that both the first detection result and the second detection result are true.

[0141] In an optional embodiment, when the planner factory includes a coarse solution generator and a refined solution generator, the planner factory 121 is further configured to:

[0142] The rough solution generator generates a rough solution path according to at least one pre-loaded path planning function, and the at least one path planning function is loaded into the rough solution generator through a universal interface;

[0143] The refined solution generator determines whether the initial posture adjustment is needed, selects alternative reference points from the rough solution path according to the judgment result, calculates the initial state parameters of the unmanned vehicle according to the alternative reference points, and performs sparse, unconstrained optimization and densification on the rough solution path according to the initial state parameters to obtain an alternative path.

[0144] In an optional embodiment, the posture detector 122 is further used to:

[0145] Obtain the coordinate information of the unmanned vehicle and the heading difference of the unmanned vehicle relative to the reference point in the reference line;

[0146] Detect whether the position and posture of the unmanned vehicle are reasonable based on the coordinate information and heading difference;

[0147] If the position and posture of the unmanned vehicle are reasonable, a first detection result indicating true is generated;

[0148] If only the position of the unmanned vehicle is unreasonable, a first detection result indicating true and slow braking operation is generated, so that the speed planner controls the unmanned vehicle to perform slow braking operation, until the speed of the unmanned vehicle is lower than the speed threshold, and then a first detection result indicating false is generated;

[0149] If the position and posture of the unmanned vehicle are unreasonable, or only the posture of the unmanned vehicle is unreasonable, a first detection result indicating true and emergency braking operations is generated, so that the speed planner controls the unmanned vehicle to perform emergency braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then a first detection result indicating false is generated.

[0150] In an optional embodiment, the posture detector 122 is further used to:

[0151] Determine whether the unmanned vehicle has left the center of the lane according to the coordinate information, and obtain a first determination result;

[0152] Determine whether the unmanned vehicle is within the road according to the road boundary information in the map, and obtain a second determination result;

[0153] Determine whether the unmanned vehicle is in the lane according to the lane information in the map, and obtain a third determination result;

[0154] Determine whether the unmanned vehicle is indoors, and obtain a fourth determination result;

[0155] Whether the position and posture of the unmanned vehicle are reasonable is detected based on the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference.

[0156] In an optional embodiment, the posture detector 122 is further used to:

[0157] If the second judgment result is false, it is determined that only the position of the unmanned vehicle is unreasonable;

[0158] If the first judgment result is false and the third judgment result is true, the heading threshold is determined according to the fourth judgment result, and if the heading difference is greater than the heading threshold, it is determined that only the posture of the unmanned vehicle is unreasonable;

[0159] If the first judgment result is false and the third judgment result is false, or if the first judgment result is true, the heading threshold is determined according to the fourth judgment result; if the heading difference is greater than the heading threshold and the second judgment result is false, it is determined that both the position and the posture of the unmanned vehicle are unreasonable; if the heading difference is greater than the heading threshold and the second judgment result is true, it is determined that only the posture of the unmanned vehicle is unreasonable;

[0160] Otherwise, it is determined that the position and posture of the unmanned vehicle are reasonable.

[0161] In an optional embodiment, the collision detector 123 is further configured to:

[0162] Obtain the size information, curb information, lane boundary information and obstacle information of the unmanned vehicle;

[0163] Calculate the longitudinal preview range of the unmanned vehicle based on the size information;

[0164] Traverse each path point in the backup path that is within the longitudinal preview range, and generate a body bounding box of the unmanned vehicle based on the path point and size information;

[0165] Detect whether the unmanned vehicle will collide based on the vehicle body boundary box, curb information, lane boundary information and obstacle information;

[0166] If the unmanned vehicle will not collide, a second detection result indicating true is generated;

[0167] If the unmanned vehicle is about to collide, a second detection result indicating a true and emergency braking operation is generated, so that the speed planner controls the unmanned vehicle to perform an emergency braking operation, until the speed of the unmanned vehicle is lower than the speed threshold, and then a second detection result indicating a false is generated.

[0168] In an optional embodiment, the collision detector 123 is further configured to:

[0169] A section of the curb is selected based on the curb information. If the vehicle body boundary box overlaps with the curb, it is determined that the unmanned vehicle will collide.

[0170] A pair of left and right boundary points are selected based on the lane boundary information. If the vehicle body boundary box overlaps with the left and right boundary points, it is determined that the unmanned vehicle will collide.

[0171] Determine the obstacle bounding box based on the obstacle information. If the vehicle body bounding box overlaps with the obstacle bounding box, it is determined that the unmanned vehicle will collide.

[0172] Otherwise, it is determined that the unmanned vehicle will not collide.

[0173] In an optional embodiment, the backup path planner 120 is further configured to:

[0174] If it is determined that at least one of the first detection result and the second detection result is false, it is determined that the backup path generation fails.

[0175] In summary, the unmanned vehicle provided in the embodiment of the present application has a universal interface in the planner factory, through which at least one custom path planning function can be loaded into the rough solution generator, and then the rough solution generator is used to generate a rough solution path, which can improve the flexibility of path planning. The rough solution paths generated by all path planning functions can share a fine solution generator for optimization, and the fine solution generator is used to optimize the rough solution path, which not only improves the reuse rate of the fine solution generator, but also improves the quality of the backup path.

[0176] After the backup path is generated by the planner factory, it is tested by the pose detector and the collision detector. When both test results are true, the backup path is sent to the velocity planner, which can improve the quality of the backup path.

[0177] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the backup path planning method for the unmanned vehicle as described above.

[0178] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0179] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A backup path planning method for an unmanned vehicle, It is characterized in that Used in an unmanned vehicle, the unmanned vehicle includes a main path planner, a backup path planner and a speed planner, the backup path planner includes a planner factory, a posture detector and a collision detector, and the method includes: When the main path planner is unable to perform path planning, the planner factory abandons some constraints and generates an alternative path according to at least one pre-loaded path planning function; The position and posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result for indicating true or false; wherein, only unreasonable position means that the unmanned vehicle is outside the road boundary; only unreasonable posture means that the unmanned vehicle is in the lane, the front of the vehicle is facing the center, and the heading difference is greater than the heading threshold, or only unreasonable posture means that the unmanned vehicle is in the road boundary, not in the lane, the front of the vehicle is not facing the center, and the heading difference is greater than the heading threshold; both position and posture are unreasonable, which means that the unmanned vehicle is not in the road boundary, not in the lane, the front of the vehicle is not facing the center, and the heading difference is greater than the heading threshold; both position and posture are reasonable refers to the situation other than the above three situations; The collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false; If it is determined that both the first detection result and the second detection result are true, the backup path planner sends the backup path as the final planned path of the unmanned vehicle to the speed planner.

2. The backup path planning method for an unmanned vehicle according to claim 1, It is characterized in that When the planner factory includes a coarse solution generator and a refined solution generator, the planner factory generates a backup path according to at least one preloaded path planning function, including: The rough solution generator generates a rough solution path according to at least one pre-loaded path planning function, wherein the at least one path planning function is loaded into the rough solution generator through a universal interface; The refined solution generator determines whether initial posture adjustment is required, selects alternative reference points from the rough solution path according to the determination result, calculates initial state parameters of the unmanned vehicle according to the alternative reference points, and performs sparse, unconstrained optimization and densification processing on the rough solution path according to the initial state parameters to obtain an alternative path.

3. The backup path planning method for an unmanned vehicle according to claim 1, It is characterized in that The posture detector detects whether the position and posture of the unmanned vehicle are reasonable, and generates a first detection result indicating whether it is true or false, including: The posture detector obtains the coordinate information of the unmanned vehicle and the heading difference of the unmanned vehicle relative to a reference point in the reference line; The posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the coordinate information and the heading difference; If the position and posture of the unmanned vehicle are both reasonable, the posture detector generates a first detection result indicating true; If only the position of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating a true and slow braking operation, so that the speed planner controls the unmanned vehicle to perform a slow braking operation until the speed of the unmanned vehicle is lower than the speed threshold and then generates a first detection result indicating a false; If the position and posture of the unmanned vehicle are both unreasonable, or only the posture of the unmanned vehicle is unreasonable, the posture detector generates a first detection result indicating true and emergency braking operations, so that the speed planner controls the unmanned vehicle to perform emergency braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then generates a first detection result indicating false.

4. The backup path planning method for an unmanned vehicle according to claim 3, It is characterized in that The posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the coordinate information and the heading difference, including: The posture detector determines whether the unmanned vehicle has left the center of the lane according to the coordinate information to obtain a first judgment result; The posture detector determines whether the unmanned vehicle is within the road according to the road boundary information in the map, and obtains a second determination result; The posture detector determines whether the unmanned vehicle is in the lane according to the lane information in the map, and obtains a third determination result; The posture detector determines whether the unmanned vehicle is indoors to obtain a fourth determination result; The posture detector detects whether the position and posture of the unmanned vehicle are reasonable based on the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference.

5. The backup path planning method for an unmanned vehicle according to claim 4, It is characterized in that The posture detector detects whether the position and posture of the unmanned vehicle are reasonable according to the first judgment result, the second judgment result, the third judgment result, the fourth judgment result and the heading difference, including: If the second judgment result is false, the posture detector determines that only the position of the unmanned vehicle is unreasonable; If the first judgment result is false and the third judgment result is true, the posture detector determines a heading threshold according to the fourth judgment result, and if the heading difference is greater than the heading threshold, it is determined that only the posture of the unmanned vehicle is unreasonable; If the first judgment result is false and the third judgment result is false, or if the first judgment result is true, the posture detector determines the heading threshold according to the fourth judgment result, and if the heading difference is greater than the heading threshold and the second judgment result is false, it is determined that both the position and the posture of the unmanned vehicle are unreasonable; if the heading difference is greater than the heading threshold and the second judgment result is true, it is determined that only the posture of the unmanned vehicle is unreasonable; Otherwise, the posture detector determines that the position and posture of the unmanned vehicle are reasonable.

6. The backup path planning method for an unmanned vehicle according to claim 1, It is characterized in that The collision detector detects whether a collision will occur when the unmanned vehicle travels along the backup path, and generates a second detection result indicating true or false, including: The collision detector obtains size information, curb information, lane boundary information and obstacle information of the unmanned vehicle; The collision detector calculates the longitudinal preview range of the unmanned vehicle according to the size information; The collision detector traverses each path point in the backup path that is within the longitudinal preview range, and generates a body boundary box of the unmanned vehicle according to the path point and the size information; The collision detector detects whether the unmanned vehicle will collide based on the vehicle body boundary box, the curb information, the lane boundary information and the obstacle information; If the unmanned vehicle will not collide, the collision detector generates a second detection result indicating true; If the unmanned vehicle is about to collide, the collision detector generates a second detection result indicating true and emergency braking operations, so that the speed planner controls the unmanned vehicle to perform emergency braking operations until the speed of the unmanned vehicle is lower than the speed threshold and then generates a second detection result indicating false.

7. The backup path planning method for an unmanned vehicle according to claim 6, It is characterized in that The collision detector detects whether the unmanned vehicle will collide according to the vehicle body boundary box, the curb information, the lane boundary information and the obstacle information, including: The collision detector selects a section of the curb according to the curb information, and if the vehicle body boundary box overlaps with the curb, it is determined that the unmanned vehicle will collide; The collision detector selects a pair of left and right boundary points according to the lane boundary information, and if the vehicle body boundary box overlaps with the left and right boundary points, it is determined that the unmanned vehicle will collide; The collision detector determines an obstacle boundary box according to the obstacle information, and if the vehicle body boundary box overlaps with the obstacle boundary box, it is determined that the unmanned vehicle will collide; Otherwise, the collision detector determines that the unmanned vehicle will not collide.

8. The backup path planning method for an unmanned vehicle according to any one of claims 1 to 7, It is characterized in that The method further comprises: If it is determined that at least one of the first detection result and the second detection result is false, it is determined that the backup path generation fails.

9. An unmanned vehicle, It is characterized in that The unmanned vehicle includes a main path planner, a backup path planner and a speed planner, wherein the backup path planner includes a planner factory, a posture detector and a collision detector; The planner factory is used to abandon some constraints and generate a backup path according to at least one pre-loaded path planning function when the main path planner cannot perform path planning; The position and posture detector is used to detect whether the position and posture of the unmanned vehicle are reasonable, and generate a first detection result for indicating true or false; wherein, only unreasonable position means that the unmanned vehicle is outside the road boundary; only unreasonable posture means that the unmanned vehicle is in the lane, the front of the vehicle is facing the center, and the heading difference is greater than the heading threshold, or only unreasonable posture means that the unmanned vehicle is in the road boundary, not in the lane, the front of the vehicle is not facing the center, and the heading difference is greater than the heading threshold; both position and posture are unreasonable, which means that the unmanned vehicle is not in the road boundary, not in the lane, the front of the vehicle is not facing the center, and the heading difference is greater than the heading threshold; both position and posture are reasonable refers to the situation other than the above three situations; The collision detector is used to detect whether a collision will occur when the unmanned vehicle travels along the backup path, and to generate a second detection result indicating true or false; The backup path planner is used to send the backup path to the speed planner as the final planned path of the unmanned vehicle if it is determined that both the first detection result and the second detection result are true.

10. A computer-readable storage medium, It is characterized in that The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the backup path planning method for the unmanned vehicle as described in any one of claims 1 to 8.