A path planning method, device, electronic device and storage medium

By projecting and sampling the outline of obstacles, combined with cost calculation, the problem of path planning and obstacle avoidance for autonomous vehicles in narrow spaces is solved, and the optimality and smoothness of the path are achieved.

CN114923496BActive Publication Date: 2024-10-11NINGBO LOTUS ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210320488.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2024-10-11
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

Self-driving vehicles cannot plan a path when traveling in a narrow space, and cannot effectively avoid multiple obstacles.

Method used

By projecting lane line information, lane centerline information and obstacle outline information to the target coordinate system, the starting point and end point are determined, and sampling points are obtained by sampling both sides of the obstacle outline along the vehicle's driving direction, and multiple paths are determined based on this information. , and obtain the reference path through cost calculation to ensure that the path is close to the lane centerline when avoiding obstacles.

Benefits of technology

This enables autonomous vehicles to correctly plan paths in narrow driving spaces, effectively avoid multiple obstacles, and ensure the optimality and smoothness of the path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114923496B_ABST
    Figure CN114923496B_ABST
Patent Text Reader

Abstract

The present invention discloses a path planning method, device, electronic device and storage medium, which relates to the field of intelligent transportation. The method includes: projecting lane line information, lane centerline information and obstacle contour information into a target coordinate system to obtain projection information; determining the starting point and end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sampling both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points; determining multiple paths based on the starting point, the end point and the sampling points; calculating the cost of the multiple paths, and determining a reference path among the multiple paths based on the cost calculation results; and determining the target planning path based on the reference path. This method simplifies the sampling space, enables the autonomous driving vehicle to effectively and reasonably avoid multiple obstacles in a narrow driving space, and ensures the optimality and smoothness of the path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation, and in particular to a path planning method, device, electronic equipment and storage medium. Background Art

[0002] There are three main types of path planning methods at present: graph search, sampling, and numerical optimization. The advantages and disadvantages of the three methods are different. Graph search can ensure that the searched path is optimal, and numerical optimization can well ensure that the path is smooth. Figure 1 In the prior art, the path planning method is usually that the autonomous driving vehicle first searches for a reference path in the hard boundary that does not collide with obstacles. Through the design of the cost function, this path will be as close to the center line of the current lane as possible in the desired safe driving corridor. Secondly, a path that meets the vehicle dynamics constraints is planned in the hard boundary based on the reference path by numerical optimization. Finally, the vehicle drives according to the planned path.

[0003] For an autonomous vehicle, the vehicle needs to plan a safe, collision-free path that complies with the vehicle's kinematic constraints. Figure 2 In the left figure, the common practice to ensure that the path does not collide with obstacles is to solve it by expanding the obstacles, and the judgment of the obstacle avoidance direction depends on the rule decision; refer to Figure 2 As shown in the right figure, the fixed-size expansion of obstacles makes it impossible for autonomous vehicles to plan a path when the driving space is narrow, and rule-based judgment cannot effectively and correctly calculate the avoidance directions of multiple obstacles. Summary of the invention

[0004] In view of the shortcomings of the prior art described above, the purpose of the present application is to solve the problem that an autonomous driving vehicle cannot plan a path when the driving space is narrow and cannot effectively avoid multiple obstacles.

[0005] In order to solve the above technical problems, the present invention provides a path planning method, device, electronic device and storage medium, and the scheme is as follows:

[0006] On the one hand, a path planning method is provided, comprising:

[0007] Projecting the lane line information, lane centerline information and obstacle contour information into the target coordinate system to obtain projection information;

[0008] Determine the starting point and the end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sample both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points;

[0009] Determine a plurality of paths based on the starting point, the end point, and the sampling point;

[0010] Performing cost calculation on the multiple paths, and determining a reference path among the multiple paths based on the cost calculation result; the cost calculation result represents the degree to which the path is close to the center line of the lane while avoiding the obstacle;

[0011] A target planning path is determined based on the reference path.

[0012] Optionally, sampling both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points includes:

[0013] Determining a sampling distance on both sides of the obstacle contour along the driving direction of the vehicle, the sampling distance being the sum of half the width of the vehicle and a safety distance, the safety distance being a preset distance between the vehicle and the obstacle contour;

[0014] The sampling point is obtained by sampling based on the sampling distance.

[0015] Optionally, the sampling points include valid sampling points and invalid sampling points; the valid sampling points are located within the lane line, and the invalid sampling points are located outside the lane line.

[0016] Optionally, also include:

[0017] If all the sampling points are invalid sampling points, the intersection of the lower boundary of the obstacle contour and the center line of the lane is taken as the final sampling point;

[0018] The final sampling point is taken as the end point.

[0019] Optionally, the performing cost calculation on the multiple paths and determining a reference path among the multiple paths based on the cost calculation result includes:

[0020] For each of the plurality of paths, determining a first distance between a point on the path and the centerline of the lane, and a second distance between a point on the path and the obstacle contour;

[0021] Determining a cost calculation result corresponding to the path according to the first distance, the second distance, and a smoothing property value of the path;

[0022] Compare the cost calculation results corresponding to each path in the multiple paths, and determine the path with the smallest cost calculation result as the reference path.

[0023] Optionally, determining the cost calculation result corresponding to the path according to the first distance, the second distance and the smoothness attribute value of the path includes:

[0024] For each point on the path, a first calculation result is obtained based on the product of a first distance corresponding to the point and a first coefficient; a second calculation result is obtained based on the product of a second distance corresponding to the point and a second coefficient;

[0025] A third coefficient is obtained by linearly fusing the first coefficient and the second coefficient; a third calculation result is obtained by multiplying the smoothing property value of the path by the third coefficient;

[0026] Summing the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result;

[0027] The first coefficient and the second coefficient are adjusted based on the first summation result, and a cost calculation result corresponding to the path is determined when the second distance between each point on the path and the obstacle contour is not less than the safety distance.

[0028] Optionally, also include:

[0029] If it is determined based on the projection information that there is no obstacle between the starting point and the end point, the lane centerline is determined as the reference path.

[0030] In another aspect, a path planning device is provided, comprising:

[0031] A projection module is used to project lane line information, lane centerline information and obstacle contour information into a target coordinate system to obtain projection information;

[0032] A sampling module, used to determine the starting point and the end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sampling both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points;

[0033] A planning module, configured to determine a plurality of paths based on the starting point, the end point and the sampling point;

[0034] A cost calculation module, configured to perform cost calculation on the multiple paths, and determine a reference path among the multiple paths based on the cost calculation result; the cost calculation result represents the degree to which the path is close to the center line of the lane while avoiding the obstacle;

[0035] The optimization module is used to determine the target planning path based on the reference path.

[0036] Optionally, the sampling module includes:

[0037] A sampling distance determination unit, used to determine a sampling distance on both sides of the obstacle contour along the driving direction of the vehicle, wherein the sampling distance is the sum of half the width of the vehicle and a safety distance, and the safety distance is a preset distance between the vehicle and the obstacle contour;

[0038] A sampling unit is used to perform sampling based on the sampling distance to obtain the sampling point.

[0039] Optionally, the cost calculation module includes:

[0040] a parameter determination module for determining, for each of the plurality of paths, a first distance between a point on the path and the lane centerline, and a second distance between a point on the path and the obstacle contour;

[0041] a calculation module, configured to determine a cost calculation result corresponding to the path according to the first distance, the second distance and a smoothing property value of the path;

[0042] The reference path determination module is used to compare the cost calculation results corresponding to each path in the multiple paths, and determine the path with the smallest cost calculation result as the reference path.

[0043] Optionally, the calculation module includes:

[0044] A first calculation unit is used to obtain, for each point on the path, a first calculation result based on the product of a first distance corresponding to the point and a first coefficient; and obtain a second calculation result based on the product of a second distance corresponding to the point and a second coefficient;

[0045] A second calculation unit, configured to obtain a third coefficient by linearly fusing the first coefficient and the second coefficient; and obtain a third calculation result based on the product of the smoothing property value of the path and the third coefficient;

[0046] A third calculation unit, configured to sum the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result;

[0047] An adjustment unit is used to adjust the first coefficient and the second coefficient based on the first summation result, and determine the cost calculation result corresponding to the path when the second distance between each point on the path and the obstacle contour is not less than the safety distance.

[0048] On the other hand, an electronic device is provided, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the steps of the above method.

[0049] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the steps of the above method.

[0050] On the other hand, a computer program product or a computer program is provided, which includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the above method.

[0051] By adopting the above technical solution, the present invention has the following beneficial effects:

[0052] The path is determined by sampling on both sides of the obstacle instead of the traditional search algorithm's discretization of the entire search space. The reference path is then obtained through cost calculation, and the reference path is smoothly designed to simplify the sampling space. The real-time performance of the search algorithm is improved, and the autonomous driving vehicle can correctly plan the path in a narrow driving space, effectively and reasonably avoid multiple obstacles, and ensure the optimality and smoothness of the path.

[0053] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention, where the same reference numerals generally represent the same components. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0055] Figure 1 A schematic diagram of a path planning method in the prior art;

[0056] Figure 2 A schematic diagram of a path planning method in the prior art and the existing technical problems;

[0057] Figure 3 A schematic diagram of a flow chart of a path planning method provided by an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of sampling points of an optional method in the path planning method provided in an embodiment of the present invention;

[0059] Figure 5 A schematic diagram of invalid sampling points of an optional method in the path planning method provided in an embodiment of the present invention;

[0060] Figure 6 A schematic diagram of determining multiple paths based on the starting point, the end point and the sampling point in the path planning method provided in an embodiment of the present invention;

[0061] Figure 7 A schematic diagram of the structure of a path planning device provided by an embodiment of the present invention;

[0062] Figure 8 A schematic diagram of the server hardware structure of the operation path planning method provided for the implementation of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the accompanying 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.

[0064] The term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "top", "bottom", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may include one or more of the features explicitly or implicitly. Moreover, the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0065] refer to Figure 3, which shows a flow chart of a path planning method provided by an embodiment of the present invention. It should be noted that this specification provides method operation steps as described in the embodiment or flow chart, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the system device or product is executed in practice, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or a multi-threaded processing environment). The path planning method provided by an embodiment of the present invention includes:

[0066] S301, projecting lane line information, lane centerline information and obstacle contour information into a target coordinate system to obtain projection information.

[0067] Specifically, when the autonomous driving vehicle (hereinafter referred to as the vehicle) is driving, it receives map information and obstacle information, the map information includes the lane line information and the lane center line information, the obstacle information includes the obstacle contour information, and the lane line information, the lane center line information and the obstacle contour information are projected into the target coordinate system. In the embodiment of the present invention, the target coordinate system is the Frenet coordinate system. In the Frenet coordinate system, the lane center line is used as a reference line, and the coordinate system is established using the tangent vector t and the normal vector n of the reference line. The vehicle itself is used as the origin, and the coordinate axes are perpendicular to each other, divided into the s direction (i.e., the direction along the reference line) and the d direction (i.e., the current normal direction of the reference line). In the Frenet coordinate system, the trajectory of the vehicle moving forward and staying within the lane line is calculated as a straight line, and the obstacle information is projected into the coordinate system, and the data is processed by dimensionality reduction. The obstacle expansion principle is used, that is, the vehicle is converted into a particle, and the obstacle is expanded according to the volume of the robot, the amount of calculation is reduced, and the difficulty of path planning is simplified.

[0068] S302, determining a starting point and an end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sampling is performed on both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points.

[0069] In a possible implementation, step S302 further includes the steps of:

[0070] (1) Determining a sampling distance on both sides of the obstacle contour along the vehicle's travel direction, wherein the sampling distance is the sum of half the width of the vehicle and a safety distance, wherein the safety distance is a preset distance between the vehicle and the obstacle contour;

[0071] (2) Sampling is performed based on the sampling distance to obtain the sampling point.

[0072] Specifically, refer to Figure 4 , the solid lines on both sides are lane lines, the dotted line in the middle is the lane centerline, and the rectangular box is the obstacle outline. If there is at least one obstacle between the starting point and the end point, a sampling point is taken on both sides of each obstacle outline, and the sampling distance is half the width of the vehicle L 1 Safety distance L 2 The sum of the safety distance L 2 is the vehicle preset parameter D safe , which is the minimum distance to ensure that the vehicle does not collide with obstacles. Sampling both sides of each obstacle can ensure that the vehicle can effectively avoid obstacles.

[0073] In a possible implementation manner, the sampling points include valid sampling points and invalid sampling points: the valid sampling points are located within the lane line, and the invalid sampling points are located outside the lane line; Figure 4 As shown, point M is a valid sampling point, and point N is an invalid sampling point. If the sampling points are all invalid sampling points, refer to Figure 5 , then take the intersection point Z of the lower boundary of the obstacle contour and the center line of the lane as the final sampling point, and take the final sampling point as the end point.

[0074] The valid sampling points are nodes that the search algorithm needs to refer to in the following method steps, and the invalid sampling points are nodes that the search algorithm does not refer to, that is, the path does not pass through invalid sampling points. If all sampling points are invalid sampling points, the path planning stops when it reaches the obstacle; the lower boundary is the two-dimensional lower boundary of the obstacle contour along the driving direction of the vehicle in the Frenet coordinate system, that is, the vehicle cannot avoid the obstacle within the lane line and stops when it drives to the boundary of the obstacle contour.

[0075] S303, determining a plurality of paths based on the starting point, the end point and the sampling point;

[0076] refer to Figure 6 In one embodiment, there are two obstacles in the driving space, point S is the starting point, point F is the end point, points M, N and Q are valid sampling points, and point P is an invalid sampling point. The search algorithm is called to connect the starting point S, valid sampling point Q, valid sampling point N and end point F to form a path R1; the starting point S, valid sampling point Q, valid sampling point M and end point F are connected to form a path R2. R1 and R2 are paths that do not collide with obstacles. The search algorithm is a graph search algorithm, which has optimality and theoretically guarantees that the searched path is optimal as a possible path for the vehicle to travel.

[0077] S304, performing cost calculation on the multiple paths, and determining a reference path among the multiple paths based on the cost calculation result; the cost calculation result represents the degree to which the path is close to the center line of the lane when avoiding the obstacle;

[0078] Specifically, the path searched by the cost function design search algorithm will be within the lane line and as close to the center line of the current lane as possible. The smaller the cost calculation result is, the smaller the cost of making the path close to the center line of the lane is.

[0079] In a possible implementation, step S304 further includes the following steps:

[0080] (1) for each of the plurality of paths, determining a first distance between a point on the path and the centerline of the lane, and a second distance between the point on the path and the obstacle contour;

[0081] (2) determining a cost calculation result corresponding to the path according to the first distance, the second distance, and a smoothness attribute value of the path;

[0082] In a possible implementation, the step includes:

[0083] For each point on the path, a first calculation result is obtained based on the product of a first distance corresponding to the point and a first coefficient; a second calculation result is obtained based on the product of a second distance corresponding to the point and a second coefficient;

[0084] A third coefficient is obtained by linearly fusing the first coefficient and the second coefficient; a third calculation result is obtained by multiplying the smoothing property value of the path by the third coefficient;

[0085] Summing the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result;

[0086] The first coefficient and the second coefficient are adjusted based on the first summation result, and a cost calculation result corresponding to the path is determined when the second distance between each point on the path and the obstacle contour is not less than the safety distance.

[0087] (3) Compare the cost calculation results corresponding to each of the multiple paths, and determine the path with the smallest cost calculation result as the reference path.

[0088] Specifically, in the embodiment of the present invention, one path R among the multiple paths A For example, take path R A A is a discrete point on 1 , A 2 , A 3 , …A n, determine the first distance g(x) between each point and the center line of the lane, the second distance h(x) between each point and the obstacle contour, and the smoothing attribute value z(x) of each point, that is, the slope of each point. The expression of the cost function is: Where α is the first coefficient, β is the second coefficient, the first coefficient and the second coefficient are linearly fused to obtain the third coefficient (1-α-β), the first distance g(x), the second distance h(x), and the smoothing attribute value z(x) of each point are summed accordingly, and the first coefficient and the second coefficient are adjusted so that the path R A The distance from the obstacle contour is not less than the safety distance D safe In the case of a vehicle, the vehicle should be as close to the center line of the lane as possible. The safety distance here can be set according to the data specified in the vehicle data manual. In one embodiment, if the distance between the vehicle and the obstacle outline is 0.8D safe , the vehicle can also avoid obstacles at this time, so the second coefficient can be adjusted to make h(x) not less than 0.8D safe The cost calculation results of other paths are then determined, and the cost calculation results of each path are compared to determine the path with the smallest cost calculation result, which is the reference path for path planning.

[0089] S305: Determine a target planning path based on the reference path.

[0090] The lane line is used as a constraint boundary condition, and the reference path is smoothed by numerical optimization, so that the reference path is as smooth as possible and meets the vehicle dynamics constraints. In a possible implementation, if it is determined based on the projection information that there is no obstacle between the starting point and the end point, the center line of the lane is determined as the reference path. Specifically, point 1 closest to the starting point and point 2 closest to the end point are taken on the center line of the lane, and the starting point, point 1, point 2, and the end point are connected as the reference path, and then the reference path is numerically optimized to make the path as smooth as possible.

[0091] Corresponding to the above-mentioned path planning method, an embodiment of the present invention also provides a path planning device. Since the path planning device provided by the embodiment of the present invention corresponds to the path planning methods provided by the above-mentioned embodiments, the implementation methods of the above-mentioned path planning methods are also applicable to the path planning device provided by this embodiment, and will not be repeated in the embodiments of the present invention.

[0092] refer to Figure 7 , which is a schematic diagram of the structure of a path planning device provided by an embodiment of the present invention, the device has the function of implementing the path planning method in the above method embodiment, the function can be implemented by hardware, or by hardware executing corresponding software, the device may include:

[0093] The projection module 701 is used to project the lane line information, the lane centerline information and the obstacle contour information into the target coordinate system to obtain projection information;

[0094] A sampling module 702 is used to determine the starting point and the end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sampling is performed on both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points;

[0095] A planning module 703, configured to determine a plurality of paths based on the starting point, the end point and the sampling point;

[0096] A cost calculation module 704 is used to perform cost calculation on the multiple paths, and determine a reference path among the multiple paths based on the cost calculation result; the cost calculation result represents the degree to which the path is close to the center line of the lane when avoiding the obstacle;

[0097] The optimization module 705 is used to determine a target planning path based on the reference path.

[0098] Optionally, the sampling module 702 includes:

[0099] A sampling distance determination unit, used to determine a sampling distance on both sides of the obstacle contour along the driving direction of the vehicle, wherein the sampling distance is the sum of half the width of the vehicle and a safety distance, and the safety distance is a preset distance between the vehicle and the obstacle contour;

[0100] A sampling unit is used to perform sampling based on the sampling distance to obtain the sampling point.

[0101] Optionally, the cost calculation module includes:

[0102] a parameter determination module for determining, for each of the plurality of paths, a first distance between a point on the path and the lane centerline, and a second distance between a point on the path and the obstacle contour;

[0103] a calculation module, configured to determine a cost calculation result corresponding to the path according to the first distance, the second distance and a smoothing property value of the path;

[0104] The reference path determination module is used to compare the cost calculation results corresponding to each path in the multiple paths, and determine the path with the smallest cost calculation result as the reference path.

[0105] Optionally, the calculation module includes:

[0106] A first calculation unit is used to obtain, for each point on the path, a first calculation result based on the product of a first distance corresponding to the point and a first coefficient; and obtain a second calculation result based on the product of a second distance corresponding to the point and a second coefficient;

[0107] A second calculation unit, configured to obtain a third coefficient by linearly fusing the first coefficient and the second coefficient; and obtain a third calculation result based on the product of the smoothing property value of the path and the third coefficient;

[0108] A third calculation unit, configured to sum the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result;

[0109] An adjustment unit is used to adjust the first coefficient and the second coefficient based on the first summation result, and determine the cost calculation result corresponding to the path when the second distance between each point on the path and the obstacle contour is not less than the safety distance.

[0110] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0111] An embodiment of the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the steps of the path planning method as described above.

[0112] The memory can be used to store software programs and modules, and the processor executes various functional applications by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory. The processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0113] The method embodiments provided in the embodiments of the present invention can be executed in a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 8 is a schematic diagram of the hardware structure of a server running a path planning method provided by an embodiment of the present invention, such as Figure 8 As shown, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 810 (the processor 810 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 830 for storing data, and one or more storage media 820 (such as one or more mass storage devices) for storing application programs 823 or data 822. Among them, the memory 830 and the storage medium 820 can be short-term storage or permanent storage. The program stored in the storage medium 820 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the processor 810 can be configured to communicate with the storage medium 820 and execute a series of instruction operations in the storage medium 820 on the server 800. The server 800 may also include one or more power supplies 860, one or more wired or wireless network interfaces 850, one or more input and output interfaces 840, and / or one or more operating systems 821, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0114] The input / output interface 840 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 800. In one example, the input / output interface 840 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 840 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0115] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only and does not limit the structure of the above electronic device. Figure 8 More or fewer components as shown, or with Figure 8 Different configurations are shown.

[0116] The embodiment of the present invention further provides a computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the steps of the path planning method as described above. In the embodiment of the present invention, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc.

[0117] The embodiment of the present invention further provides a computer storage medium, wherein at least one instruction or at least one program is stored in the computer storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above method. In the embodiment of the present invention, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc.

[0118] The embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the path planning method provided in the above-mentioned various optional implementations.

[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A path planning method, characterized in that: include: Projecting the lane line information, lane centerline information and obstacle contour information into the target coordinate system to obtain projection information; Determine the starting point and the end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sample both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points; Determine a plurality of paths based on the starting point, the end point, and the sampling point; For each of the plurality of paths, determining a first distance between a point on the path and the centerline of the lane, and a second distance between a point on the path and the obstacle contour; For each point on the path, a first calculation result is obtained based on the product of a first distance corresponding to the point and a first coefficient; a second calculation result is obtained based on the product of a second distance corresponding to the point and a second coefficient; Performing linear fusion based on the first coefficient and the second coefficient to obtain a third coefficient; Obtaining a third calculation result based on the product of the smoothing property value of the path and the third coefficient; Summing the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result; adjusting the first coefficient and the second coefficient based on the first summation result, and determining a cost calculation result corresponding to the path when the second distance between each point on the path and the obstacle contour is not less than the safety distance; the cost calculation result represents the degree to which the path is close to the center line of the lane when avoiding the obstacle; Comparing the cost calculation results corresponding to each of the multiple paths, and determining the path with the smallest cost calculation result as the reference path; A target planning path is determined based on the reference path.

2. The path planning method according to claim 1, characterized in that: The step of sampling both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points includes: Determining a sampling distance on both sides of the obstacle contour along the driving direction of the vehicle, the sampling distance being the sum of half the width of the vehicle and a safety distance, the safety distance being a preset distance between the vehicle and the obstacle contour; The sampling point is obtained by sampling based on the sampling distance.

3. The path planning method according to claim 2, characterized in that: The sampling points include valid sampling points and invalid sampling points; the valid sampling points are located within the lane line, and the invalid sampling points are located outside the lane line.

4. The path planning method according to claim 3, characterized in that: Also includes: If all the sampling points are invalid sampling points, the intersection of the lower boundary of the obstacle contour and the center line of the lane is taken as the final sampling point; The final sampling point is taken as the end point.

5. The path planning method according to claim 1, characterized in that: Also includes: If it is determined based on the projection information that there is no obstacle between the starting point and the end point, the lane centerline is determined as the reference path.

6. A path planning device, characterized in that: include: A projection module is used to project lane line information, lane centerline information and obstacle contour information into a target coordinate system to obtain projection information; A sampling module, used to determine the starting point and the end point of the path planning in the target coordinate system, and if it is determined based on the projection information that there is an obstacle between the starting point and the end point, sampling both sides of the obstacle contour along the driving direction of the vehicle to obtain sampling points; A planning module, configured to determine a plurality of paths based on the starting point, the end point and the sampling point; a cost calculation module for determining, for each of the plurality of paths, a first distance between a point on the path and the centerline of the lane, and a second distance between a point on the path and a contour of the obstacle; For each point on the path, a first calculation result is obtained based on the product of a first distance corresponding to the point and a first coefficient; a second calculation result is obtained based on the product of a second distance corresponding to the point and a second coefficient; and a third coefficient is obtained based on linear fusion of the first coefficient and the second coefficient; Obtaining a third calculation result based on the product of the smoothing property value of the path and the third coefficient; Summing the first calculation result, the second calculation result, and the third calculation result corresponding to each point on the path to obtain a first summation result; adjusting the first coefficient and the second coefficient based on the first summation result, and determining a cost calculation result corresponding to the path when the second distance between each point on the path and the obstacle contour is not less than the safety distance; the cost calculation result represents the degree to which the path is close to the center line of the lane when avoiding the obstacle; Comparing the cost calculation results corresponding to each of the multiple paths, and determining the path with the smallest cost calculation result as the reference path; The optimization module is used to determine the target planning path based on the reference path.

7. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the steps of the method as claimed in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the steps of the method according to any one of claims 1 to 5.