Path planning method, device, equipment and medium
By combining vehicle driving speed and coordinate values in the target coordinate system, combined with horizontal and vertical planning, the problem of non-correspondence between path and speed and large amount of calculation in the existing technology is solved, achieving more accurate path planning and reducing the amount of calculation.
Patent Information
- Application Number
- CN202411020117.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing path planning algorithms separate horizontal planning and vertical planning, resulting in mismatch between paths and speeds, possible deviations or unsolvable path planning, and at the same time, the coupling algorithm of horizontal and vertical planning requires a large amount of calculation.
By combining the vehicle speed, longitudinal and transverse coordinate values in the target coordinate system, the detour space area corresponding to the obstacle is determined, and the path is re-planned, thereby combining transverse and longitudinal planning, reducing the path planning area and reducing the amount of calculations.
It achieves simultaneous planning of path shape and vehicle speed, improves the accuracy of path planning, reduces the amount of calculation, and avoids the situation where path planning has no solution.
Smart Images

Figure CN118565505A
Abstract
Description
Technical Field
[0001] This invention relates to the field of route planning, and in particular to a route planning method, apparatus, device, and medium. Background Technology
[0002] Current path planning algorithms primarily separate lateral and longitudinal planning. This means that lateral planning first determines the path shape, then longitudinal planning determines the velocity along that path, and finally, the path shape and velocity along that path are combined to obtain the driving path and the velocity at each position along that path. However, separating lateral and longitudinal planning can lead to a mismatch between the planned path and the velocity, potentially resulting in discrepancies or even unsolvable path problems. The current practice of separating lateral and longitudinal planning stems from the computationally intensive nature of algorithms that couple lateral and longitudinal planning. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a path planning method, apparatus, device, and medium that can simultaneously plan the shape of the path and the vehicle speed at various locations along the path by combining horizontal and vertical planning. By introducing detour space regions corresponding to obstacles, the area of path planning can be reduced, thereby reducing the computational load of path planning. The specific solution is as follows:
[0004] Firstly, this application provides a path planning method, including:
[0005] If an obstacle is detected on the current path during driving, a detour space area corresponding to the obstacle is determined in the target coordinate system; the coordinates of each coordinate point in the target coordinate system include the vehicle speed, the coordinate value in the first direction, and the coordinate value in the second direction; the first direction is parallel to the vehicle's front direction when the obstacle is detected, and the second direction is perpendicular to the vehicle's front direction.
[0006] In the target coordinate system, determine the new path start and path end points of the vehicle when an obstacle is detected;
[0007] In the target coordinate system, a path planning area is determined from the starting point of the path to the detour space area and from the detour space area to the end point of the path, respectively. Based on the path planning area and the detour space area, a target path from the starting point of the path to the end point of the path is planned.
[0008] Optionally, determining the path planning regions in the target coordinate system from the path starting point to the detour space region and from the detour space region to the path ending point includes:
[0009] From the bypass space region, determine the first spatial point with the smallest coordinate value in the first direction and the second spatial point with the largest coordinate value;
[0010] In the target coordinate system, a first path planning region is determined based on a first line connecting the starting point of the path to the first spatial point, and a second path planning region is determined based on a second line connecting the second spatial point to the ending point of the path.
[0011] Optionally, the step of planning a target path from the starting point to the ending point of the path based on the path planning area and the detour space area includes:
[0012] In the first path planning area, points are scattered based on the first connecting line, and the first sub-path is determined based on the cost value of each path point obtained from the scattered points; in the second path planning area, points are scattered based on the second connecting line, and the second sub-path is determined based on the cost value of each path point obtained from the scattered points.
[0013] Based on preset horizontal and vertical acceleration and deceleration thresholds, points are scattered within the bypass space area, and a third sub-path from the first space point to the second space point is determined based on the cost of each path point obtained from the scattered points.
[0014] The target path from the starting point of the path to the ending point of the path is determined based on the first sub-path, the second sub-path, and the third sub-path.
[0015] Optionally, the step of scattering points within the bypass space region based on preset lateral and longitudinal acceleration / deceleration thresholds, and determining a third sub-path from the first spatial point to the second spatial point based on the cost of each path point obtained from the scattering, includes:
[0016] The first spatial point is determined as the current target spatial point, and a plane determination operation is triggered to determine the current motion plane per unit time at the current target spatial point based on a preset horizontal and vertical acceleration and deceleration threshold.
[0017] Points are scattered in the overlapping area of the bypass space region and the current motion plane, and the path point with the lowest cost among the several path points obtained by scattering the points is determined as the new current target space point. Then, the plane determination operation is performed until the current target space point is the second space point, so as to determine the third sub-path based on all target space points.
[0018] Optionally, the method further includes:
[0019] The cost of the path point is determined based on the distance and speed parameters at the path point, the width of the lane where the path point is located, and the time loss corresponding to the path point.
[0020] The distance parameters include a first distance from the path point to the path endpoint, a second distance between the vehicle and the lane line at the path point, and minimum lateral and longitudinal distances from surrounding obstacles; the speed parameters include preset lateral and longitudinal acceleration / deceleration thresholds, a road speed limit, the vehicle's lateral and longitudinal acceleration at the path point, and the vehicle's speed; the time loss is the difference between the travel time from the path start point to the path endpoint and the travel time along the current path from the path start point to the path endpoint.
[0021] Optionally, the step of planning a target path from the starting point to the ending point of the path based on the path planning area and the detour space area includes:
[0022] If the initial path from the starting point to the ending point of the path, planned based on the path planning area and the detour space area, has an offset relative to the current path in the second direction, then the extreme value path point with the largest offset is determined from the initial path.
[0023] Path planning is performed in a first planar region in the target coordinate system based on the extreme path point, the path start point, and the initial path to obtain a first smooth path; and path planning is performed in a second planar region in the target coordinate system based on the extreme path point, the path end point, and the initial path to obtain a second smooth path.
[0024] The target path is determined based on the first smooth path and the second smooth path.
[0025] Optionally, the method further includes:
[0026] If the extreme path point is located in the adjacent lane of the lane where the path endpoint is located, then the adjacent lane endpoint corresponding to the path endpoint is determined in the adjacent lane.
[0027] Plan a first adjacent lane path from the extreme path point to the end of the adjacent lane, and determine the adjacent lane path based on the first adjacent lane path and the second adjacent lane path on the target path from the starting point of the path to the extreme path point;
[0028] The optimal path is selected from the adjacent lane paths and the target path, with the path cost being the minimum, so that the vehicle can be controlled to travel along the optimal path.
[0029] Optionally, determining the detour space region corresponding to the obstacle in the target coordinate system includes:
[0030] Determine the speed difference between the obstacle's travel speed and the vehicle's travel speed corresponding to the starting point of the path, and determine the detour space region corresponding to the obstacle in the target coordinate system based on the speed difference.
[0031] Secondly, this application provides a path planning device, comprising:
[0032] The detour area determination module is used to determine the detour space area corresponding to the obstacle in the target coordinate system if an obstacle is detected on the current path during driving; the coordinates of each coordinate point in the target coordinate system include the vehicle's driving speed, the coordinate value in a first direction, and the coordinate value in a second direction; the first direction is parallel to the vehicle's front direction when the obstacle is detected, and the second direction is perpendicular to the vehicle's front direction;
[0033] The start and end point determination module is used to determine the new path start and end point of the vehicle when an obstacle is detected in the target coordinate system.
[0034] The path planning module is used to determine, in the target coordinate system, the path planning area from the path starting point to the detour space area and the path detour space area to the path ending point, respectively, and to plan the target path from the path starting point to the path ending point based on the path planning area and the detour space area.
[0035] Thirdly, this application provides an electronic device, comprising:
[0036] Memory, used to store computer programs;
[0037] A processor for executing the computer program to implement the aforementioned path planning method.
[0038] Fourthly, this application provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the aforementioned path planning method.
[0039] In this application, if an obstacle is detected on the current path during driving, a detour space region corresponding to the obstacle is determined in the target coordinate system. The coordinates of each coordinate point in the target coordinate system include the vehicle's driving speed, the coordinate value in a first direction, and the coordinate value in a second direction. The first direction is parallel to the vehicle's front direction when the obstacle is detected, and the second direction is perpendicular to the vehicle's front direction. A new path start point and path end point for the vehicle when the obstacle is detected are determined in the target coordinate system. Path planning regions from the path start point to the detour space region and from the detour space region to the path end point are determined in the target coordinate system, respectively. A target path from the path start point to the path end point is planned based on the path planning regions and the detour space regions. Therefore, this application constructs a target coordinate system based on vehicle speed, coordinate values in a first direction, and coordinate values in a second direction. The coordinate values in the first direction represent the vehicle's longitudinal position in a direction parallel to the vehicle's front direction when an obstacle is detected, while the coordinate values in the second direction represent the vehicle's lateral position in a direction perpendicular to the vehicle's front direction. By performing path planning within the target coordinate system, combining lateral and longitudinal planning, the determined target path has practical physical meaning. It can simultaneously plan the shape of the path and the vehicle's speed at various points along the path, making the determined target path more accurate. Furthermore, this application performs path planning within the target coordinate system based on the detour space region corresponding to the obstacle, thus avoiding path planning across the entire coordinate system and reducing the computational load of path planning by minimizing the planning area. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0041] Figure 1 This is a flowchart of a path planning method disclosed in this application;
[0042] Figure 2 This is a scene diagram of a vehicle detecting an obstacle while driving, as disclosed in this application.
[0043] Figure 3 This is a schematic diagram of a target coordinate system vxy disclosed in this application;
[0044] Figure 4 This is a schematic diagram of a vy coordinate system disclosed in this application;
[0045] Figure 5 This is a schematic diagram of an xy coordinate system disclosed in this application;
[0046] Figure 6A This is a schematic diagram of a vehicle longitudinal motion planning disclosed in this application;
[0047] Figure 6B This is a schematic diagram of a vehicle lateral and longitudinal combined planning disclosed in this application;
[0048] Figure 7 This is a planar schematic diagram of the motion of a vehicle within a unit of time, as disclosed in this application.
[0049] Figure 8 This is a schematic diagram of a region disclosed in this application;
[0050] Figure 9 This is a flowchart of a specific path planning method disclosed in this application;
[0051] Figure 10 This is a schematic diagram of path smoothing disclosed in this application;
[0052] Figure 11 This is a schematic diagram of the path planning device disclosed in this application;
[0053] Figure 12 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0054] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0055] Separating lateral and longitudinal planning can easily lead to a mismatch between the planned path and the vehicle's speed, potentially resulting in discrepancies or even unsolvable path planning. However, algorithms that couple lateral and longitudinal planning suffer from significant computational costs. Therefore, this application provides a path planning method that combines lateral and longitudinal planning to simultaneously plan the path shape and the vehicle's speed at various locations along the path. Introducing detour spaces corresponding to obstacles reduces the area of path planning, thereby lowering the computational burden.
[0056] See Figure 1 As shown, an embodiment of the present invention discloses a path planning method, including:
[0057] Step S11: If an obstacle is detected on the current path during driving, the detour space area corresponding to the obstacle is determined in the target coordinate system; the coordinates of each coordinate point in the target coordinate system include the vehicle speed, the coordinate value in the first direction, and the coordinate value in the second direction; the first direction is parallel to the vehicle's front direction when the obstacle is detected, and the second direction is perpendicular to the vehicle's front direction.
[0058] In this embodiment, if the vehicle detects an obstacle on its current path during travel, and continuing along the current path would likely result in a collision with the obstacle, path planning needs to be re-performed based on the obstacle. To reduce the computational load of path planning, this embodiment determines a detour space region corresponding to the obstacle in the target coordinate system, and then performs path planning based on this detour space region, thereby narrowing the scope of path planning. It should be noted that if the vehicle does not detect any obstacles on its current path during travel, it will continue to travel along the current path.
[0059] When the vehicle is traveling along the current path, it can travel at a constant speed or at a variable speed. If it is traveling at a constant speed, the vehicle speed can be either a preset speed or the maximum or minimum speed limit of the current road, which is not specified here.
[0060] by Figure 2 For example, Figure 2 In the diagram, A represents the vehicle, B represents the obstacle, and the three dots represent the center points of each lane. If vehicle A, while traveling with the center point of the middle lane as its destination, detects obstacle B changing lanes from the right lane to the middle lane, meaning that vehicle A detects obstacle B on its current path, it is highly likely to collide with obstacle B if it continues to travel along the current path. Therefore, vehicle A needs to replan its path.
[0061] For the construction of the target coordinate system, such as Figure 3 As shown, the vehicle's speed is the v-axis; the y-axis is the first direction parallel to the direction of the vehicle's front when obstacle B is detected; and the x-axis is the second direction perpendicular to the direction of the vehicle's front. It should be noted that the x, y, and z axes in the target coordinate system are perpendicular to each other. The coordinate values in the first direction represent the vehicle's longitudinal position in that direction, and the coordinate values in the second direction represent the vehicle's lateral position in that direction. Furthermore, if the vehicle's speed is the same as the obstacle's speed when the vehicle detects an obstacle, then the vehicle and the obstacle belong to the same velocity plane.
[0062] like Figure 4As shown, the vehicle's motion in the first direction (longitudinal) can be planned on the vy plane in the target coordinate system. For each vehicle speed (taking 80 km / h as an example), points with intervals of Δt*v are uniformly distributed. The physical reason for Δt*v is that the program execution has a cycle; Δt represents one cycle of the program execution (e.g., 20 ms), v is the vehicle speed, and Δt*v represents the distance the vehicle can travel at speed v in time Δt. Assuming vehicle a travels at a constant speed of 80 km / h, it should be represented in the vy plane as a straight line parallel to the y-axis, with v marked as 80 km / h. Therefore, Δt*v has practical physical meaning in the target coordinate system. Correspondingly, at different vehicle speeds, such as... Figure 4 As shown, the vehicle speed v at a scale of 40 km / h can also be divided into countless points, but the spacing between them is half that at a vehicle speed of 80 km / h. Therefore, in the macroscopic vy coordinate system, the spacing between points also increases as v increases.
[0063] Consider one operating condition where the vehicle is undergoing a gear shift. Figure 4 For example, the vehicle's speed at time t0 is 80 km / h, corresponding to the starting point l1 in the vy coordinate system. At time t1, the vehicle's speed is 75 km / h, corresponding to point l2 in the vy coordinate system. When the vehicle's speed decreases from 80 km / h to 75 km / h at time t1, it should descend from the starting point l1 to point l2 along arrow s1. The y-coordinate of point l2 should be the y-coordinate of the starting point l1 plus Δt*v (v = 75 km / h). Similarly, it can descend from the starting point l1 to point l3 with a vehicle speed v = 40 km / h along arrow s2. It should be noted that the direction of the arrow, i.e., the slope, corresponds to the vehicle's acceleration, which is the rate of change of velocity per unit time (Δt). In practice, vehicle actuators generally have a maximum permissible acceleration or deceleration, which is the maximum slope of the arrow in the vy coordinate system.
[0064] Figure 4 This describes the vehicle's movement in the first direction, that is, its longitudinal movement. The following is an example... Figure 5 As shown, by adjusting the vy coordinate system to the yx coordinate system, the motion of the vehicle in the second direction, that is, its lateral motion, can be represented. Taking l2 as the starting point, the reciprocals of the slopes pointed to by arrows s3 and s4 correspond to the lateral acceleration of the vehicle per unit time (Δt).
[0065] Combining the vy coordinate system and the yx coordinate system, we can see that: Figure 6AIt represents a unit - time (Δt) planning that does not consider the lateral movement of the vehicle. The starting point (i.e., the point corresponding to y0) can reach point 1 and point 2. Point 1 corresponds to the maximum deceleration within the unit time allowed by the vehicle actuator, and point 2 corresponds to the maximum acceleration within the unit time allowed by the vehicle actuator. In theory, for the next unit time, any value within this range can be selected as the planned speed for the next unit time. It should be noted that since the y1 value corresponding to point 1 is different from the y2 value corresponding to point 2, the acceleration and deceleration corresponding to point 1 and point 2 are different, so the distances traveled within the unit time are also different. The y2 value during acceleration is greater than the y1 value during deceleration. Figure 6B It is a unit - time (Δt) planning that takes into account both the lateral movement and the longitudinal movement of the vehicle. Taking Figure 6B point 2 in [reference] as an example, projecting point 2 onto the xy coordinate system, the longitudinal displacement of the vehicle within the unit time can be obtained as y2 - y0, and the lateral displacement is x0.
[0066] As Figure 7 shown, combining the preset lateral and longitudinal acceleration and deceleration thresholds (including the preset lateral acceleration and deceleration thresholds and the preset longitudinal acceleration and deceleration thresholds), the motion plane of the vehicle within the unit time can be obtained in the target coordinate system. Among them, the lower arcs corresponding to y1 and y2 are on the same speed plane, the upper arcs corresponding to y3 and y4 are on the same speed plane, and y1 < y2 < y3 < y4. It should be noted that x1 < x2 < x3 < x4, but |x1| = |x4|, |x2| = |x3|, that is, the preset lateral acceleration threshold and the preset lateral deceleration threshold are the same. And y2 to y4 is the range of the longitudinal position interval that the vehicle can reach when traveling along the y - axis at the preset longitudinal acceleration and deceleration thresholds within the unit time. After considering both the lateral movement and the longitudinal movement of the vehicle, if the vehicle travels at the preset lateral acceleration and deceleration thresholds and the preset longitudinal acceleration threshold within the unit time, it can reach the coordinate point corresponding to the y3 coordinate value; if the vehicle travels at the preset lateral acceleration and deceleration thresholds and the preset longitudinal deceleration threshold within the unit time, it can reach the coordinate point corresponding to the y1 coordinate value. Therefore, the motion plane of the vehicle within the unit time, as Figure 7 shown, can be approximated as a curvilinear trapezoid.
[0067] In this embodiment, for the bypass space area corresponding to the obstacle in the target coordinate system, the bypass space area corresponding to the obstacle can be determined in the target coordinate system based on the vehicle traveling speed corresponding to the path starting point and the traveling speed of the obstacle. That is, the bypass space area is a three - dimensional space area. For the convenience of understanding, the bypass space area can be mapped onto the xy plane in the target coordinate system, Figure 8 which is the mapped plane area obtained by mapping the bypass space area onto the xy plane in the target coordinate system. Figure 8 The rectangles in the diagram represent obstacles. The area between the obstacle and the blank ellipse is the danger zone, and the area between the blank ellipse and the shaded ellipse is the detour zone. The danger zone indicates an area where the vehicle is not allowed to enter, meaning that driving in the danger zone greatly increases the likelihood of a collision with the obstacle. The detour zone indicates an area where the vehicle is allowed to enter. The values l1 and l3 in the danger zone and l2 and l4 in the detour zone can be calibrated, meaning these four values can be preset. The values d1 and d3 in the danger zone and d2 and d4 in the detour zone are quantities related to speed difference. The speed difference is the difference between the obstacle's speed and the vehicle's speed at the path's starting point. A larger speed difference results in larger values for d1, d3, d2, and d4, and a smaller speed difference results in smaller values for d1, d3, d2, and d4. It should be noted that the obstacle's speed is less than the vehicle's speed. This is mainly because the obstacle is detected by the vehicle on its current path during the journey, and if the vehicle continues to travel along the current path, it is highly likely to collide with the obstacle. The reason for the collision is that the obstacle's speed is less than the vehicle's speed.
[0068] Step S12: Determine the new starting point and ending point of the vehicle's path when an obstacle is detected in the target coordinate system.
[0069] In this embodiment, if an obstacle is detected on the current path during the vehicle's travel, the new starting point and ending point of the path are determined in the target coordinate system at the time of obstacle detection. Specifically, the new starting point is determined based on the vehicle's position and speed at the time of obstacle detection. The vehicle's position at the time of obstacle detection includes a longitudinal coordinate value in a first direction and a lateral coordinate value in a second direction. Simultaneously, the ending point of the current path can be directly determined as the new ending point, and the ending point also corresponds to the vehicle's speed, a longitudinal coordinate value in the first direction, and a lateral coordinate value in the second direction.
[0070] Step S13: In the target coordinate system, determine the path planning area from the starting point of the path to the detour space area and from the detour space area to the end point of the path, and plan the target path from the starting point of the path to the end point of the path based on the path planning area and the detour space area.
[0071] In this embodiment, after obtaining the path start point, path end point, and detour space area, path planning is performed in the target coordinate system based on the path start point, path end point, and detour space area to obtain the target path from the path start point to the path end point. The target path can be either deceleration and following or lane changing and detouring. It should be noted that if another obstacle is detected during path planning based on the path start point, path end point, and detour space area, path planning continues based on the detour space area corresponding to the new obstacle. Furthermore, there is no unsolvable path planning in this embodiment; the guaranteed target path is one with the same shape as the current path but where the vehicle speed at each position on the path may differ, i.e., the vehicle decelerates and follows the obstacle along the target path.
[0072] Specifically, a first path planning area from the path start point to the detour space area is determined in the target coordinate system, and a second path planning area from the detour space area to the path end point is determined in the target coordinate system. Then, path planning is performed based on the first path planning area, the second path planning area, and the detour space area to determine the target path from the path start point to the path end point.
[0073] Specifically, to determine the first and second path planning regions, firstly, a first spatial point with the smallest coordinate value in the first direction is determined from the bypass space region, and a second spatial point with the largest coordinate value in the first direction is determined from the bypass space region. Then, in the target coordinate system, the first path planning region is determined based on the first line connecting the path start point to the first spatial point, and the second path planning region is determined based on the second line connecting the second spatial point to the path end point.
[0074] The path planning process involves several steps. First, points are randomly assigned to a first path planning area based on a first connecting line. The cost of each path point obtained from this assignment determines the first sub-path. Then, points are randomly assigned to a second path planning area based on a second connecting line. The cost of each path point obtained from this assignment determines the second sub-path. Next, points are randomly assigned to a bypass space area based on preset lateral and longitudinal acceleration / deceleration thresholds. The cost of each path point obtained from this assignment determines the third sub-path from the first spatial point to the second spatial point. Finally, the first, second, and third sub-paths are combined to obtain the target path from the path's starting point to its ending point. The preset lateral and longitudinal acceleration / deceleration thresholds include preset lateral acceleration thresholds, preset lateral deceleration thresholds, preset longitudinal acceleration thresholds, and preset longitudinal deceleration thresholds. Randomly assigning points refers to marking points randomly or at equal intervals within a certain area. These points are referred to as path points in the path planning process, and each path point can have its corresponding cost calculated based on a preset cost function.
[0075] It should be noted that both the first and second sub-paths can be marked with points based on the line connecting two points. For example, points can be directly marked on the line connecting two points, and then the corresponding sub-paths are determined based on the path points with the minimum cost corresponding to each coordinate value in the first direction (vertical). That is, the first and second sub-paths are the optimal paths with the minimum path cost between the path start point and the first spatial point, and between the second spatial point and the path end point, respectively. Furthermore, the points for both the first and second sub-paths can be marked with equal intervals, and the interval can be set according to the actual path planning requirements. For example, it can be set to two meters, that is, one point is marked every two meters.
[0076] It should be noted that for the third sub-path, points can be scattered within the detour space based on preset horizontal and vertical acceleration / deceleration thresholds. Equal-interval scattering can also be used, but the density of points scattered within the detour space should be higher than the density based on the line connecting two points. For example, the density of points scattered within the detour space can be set to one point every one meter. This increases the density of scattering points, making the planned path within the detour space more accurate.
[0077] Specifically, the sub-path is determined based on the path point with the minimum cost corresponding to each coordinate value in the first direction (vertical direction). Assume that each coordinate value in the first direction includes y1, y2, and y3, and each coordinate value corresponds to multiple path points. For coordinate value y1, the path point with the minimum cost is determined from the multiple path points corresponding to coordinate value y1; for coordinate value y2, the path point with the minimum cost is determined from the multiple path points corresponding to coordinate value y2; for coordinate value y3, the path point with the minimum cost is determined from the multiple path points corresponding to coordinate value y3; finally, the sub-path with the minimum path cost is determined based on the path points y1, y2, and y3.
[0078] It should be noted that if the density of the points scattered in the area is relatively sparse, there may be situations where the lateral and longitudinal acceleration and deceleration between two path points exceed the preset lateral and longitudinal acceleration and deceleration thresholds. In this case, the overflow of lateral and longitudinal acceleration and deceleration can be set to allow the lateral and longitudinal acceleration and deceleration between two path points to exceed the preset lateral and longitudinal acceleration and deceleration thresholds, but not to exceed the maximum lateral and longitudinal acceleration and deceleration allowed by the vehicle actuator.
[0079] Furthermore, for the third sub-path, the first spatial point is first determined as the current target spatial point, and a plane determination operation is triggered to determine the current motion plane per unit time at the current target spatial point based on preset horizontal and vertical acceleration and deceleration thresholds. The current motion plane is as follows: Figure 7As shown. Then, the overlapping area between the bypass space region and the current motion plane is determined, and points are scattered within the overlapping area to obtain several path points. The cost value corresponding to each of the several path points is calculated based on a preset cost function. Then, the path point with the smallest cost value among the several path points is determined as the new current target space point, and the process jumps back to the plane determination operation to re-determine the current motion plane per unit time at the current target space point based on preset horizontal and vertical acceleration and deceleration thresholds. The point scattering operation in the bypass space region ends when the current target space point is the second space point. Thus, based on all the target space points, the third sub-path from the first space point to the second space point can be determined; that is, the third sub-path is the optimal path with the smallest path cost between the first space point and the second space point within the bypass space region.
[0080] Finally, by combining the first, second, and third sub-paths, the target path from the starting point to the ending point can be obtained. Since the first, second, and third sub-paths are all optimal paths with the minimum path cost within their respective regions, the target path is also the optimal path with the minimum path cost from the starting point to the ending point. In this way, by combining point-based mapping based on the connection between two points and mapping within the detour space, the computational cost of path planning in the target coordinate system can be significantly reduced, and the target path with the minimum path cost from the starting point to the ending point can be planned.
[0081] It should be noted that each path is constructed based on path points with relatively low costs, thus minimizing resource consumption for vehicles traveling along the path. Furthermore, each path corresponds to a path cost, which is a value determined by the cost of each path point. For example, the path cost can be obtained by simply adding the costs of the path points along that path.
[0082] Specifically, the cost of a waypoint is calculated by constructing a preset cost function based on various distance and speed parameters at the waypoint, the width of the lane containing the waypoint, and the corresponding time loss. The distance parameters include the first distance from the waypoint to the path endpoint, the second distance between the vehicle and the lane line at the waypoint, and the minimum lateral and longitudinal distances to surrounding obstacles. The lane line can be a solid line or a lane edge line. The speed parameters include preset lateral and longitudinal acceleration / deceleration thresholds, the maximum road speed, the vehicle's lateral and longitudinal acceleration at the waypoint, and the vehicle's speed. The time loss is the difference between the first travel time and the second travel time. The first travel time is the travel time from the path start point to the path endpoint via the waypoint; the second travel time is the travel time from the path start point to the path endpoint along the current path when there are no obstacles.
[0083] It should be noted that the first distance, the second distance, and the width of the lane where the waypoint is located can all be given based on the visually detected lane centerline or based on the lane centerline on the map; no limitation is made here. Furthermore, the minimum lateral and longitudinal distances to surrounding obstacles can be obtained through vehicle sensors, such as ultrasonic sensors.
[0084] ;
[0085] The preset cost function is shown above, where λ i This represents the scaling factor, used to adjust the proportion of each parameter's influence on the final output cost *f*. c d represents the distance from a path point to the path's endpoint. r This represents the distance (minimum value) between the vehicle and the lane line at the waypoint; W d Indicates the width of the lane where the waypoint is located; t c Indicates time loss; abs() is the absolute value function; δ and φ are preset values; a long and a lat These represent the longitudinal and lateral accelerations of the vehicle at the path points, respectively; a as and a ds These represent the preset longitudinal acceleration threshold and the preset longitudinal deceleration threshold, respectively; a Latc This indicates a preset lateral acceleration threshold or a preset lateral deceleration threshold, where the preset lateral acceleration threshold and the preset lateral deceleration threshold are the same; d long This represents the minimum longitudinal distance between the vehicle and surrounding obstacles at the waypoint; d lat This represents the minimum lateral distance between the vehicle and surrounding obstacles at the waypoint; v c This indicates the vehicle's speed at a waypoint; v max Indicates the maximum speed limit for driving on a road; tar R Indicates the right lane; tar L Indicates the left lane; tar ego Indicates the lane where the vehicle is located, via f(tar) x Different weights are assigned to each lane.
[0086] In this embodiment, after planning the target path from the starting point to the ending point, since the target path is planned in a target coordinate system, the vehicle speed at each location on the target path can be determined, and the vehicle can be controlled to travel along the target path based on the vehicle speed at each location on the target path. Alternatively, this embodiment can also decompose the longitudinal acceleration and lateral acceleration of the vehicle at each location on the target path, and control the vehicle to travel along the target path based on the longitudinal acceleration and lateral acceleration of the vehicle at each location on the target path.
[0087] Therefore, this application constructs a target coordinate system based on vehicle speed, coordinate values in a first direction, and coordinate values in a second direction. The coordinate values in the first direction represent the vehicle's longitudinal position in a direction parallel to the vehicle's front direction when an obstacle is detected, while the coordinate values in the second direction represent the vehicle's lateral position in a direction perpendicular to the vehicle's front direction. By performing path planning within the target coordinate system, combining lateral and longitudinal planning, the determined target path has practical physical meaning. It can simultaneously plan the shape of the path and the vehicle's speed at various points along the path, making the determined target path more accurate. Furthermore, this application performs path planning within the target coordinate system based on the detour space region corresponding to the obstacle, thus avoiding path planning across the entire coordinate system and reducing the computational load of path planning by minimizing the planning area.
[0088] As described in the previous embodiment, which outlined the overall process of constructing the target coordinate system and planning the target path, this embodiment will now elaborate on how to obtain a smooth target path. (See also...) Figure 9 As shown, an embodiment of the present invention discloses a path planning process, including:
[0089] Step S21: If the initial path from the starting point to the ending point of the path, planned based on the path planning area and the detour space area, has an offset relative to the current path in the second direction, then determine the extreme path point with the largest offset from the initial path.
[0090] In this embodiment, a first spatial point with the smallest coordinate value in the first direction is determined from the bypass space region, and a second spatial point with the largest coordinate value in the first direction is determined from the bypass space region. Then, a first path planning region is determined in the target coordinate system based on a first line connecting the path start point to the first spatial point, and a second path planning region is determined based on a second line connecting the second spatial point to the path end point. Path planning is performed based on the first path planning region, the second path planning region, and the bypass space region to obtain an initial path from the path start point to the path end point. Further, if the initial path has an offset in the second direction relative to the current path, the extreme path point with the largest offset in the second direction from the current path is determined from the initial path. Figure 10 For example, Figure 10 The solid line path from the starting point of the path through the extreme point to the ending point is the initial path; the current path is... Figure 10 The dashed path from the starting point to the ending point of the path, and the extreme path point is offset to the maximum in the second direction (x-axis direction) relative to the current path.
[0091] Step S22: Perform path planning in a first planar region determined in the target coordinate system based on the extreme path point, the path starting point, and the initial path to obtain a first smooth path; and perform path planning in a second planar region determined in the target coordinate system based on the extreme path point, the path ending point, and the initial path to obtain a second smooth path.
[0092] Step S23: Determine the target path based on the first smooth path and the second smooth path.
[0093] It should be noted that if the initial path has no offset relative to the current path in the second direction, the shape of the initial path is the same as that of the current path, but the vehicle speeds at various locations on the two paths may differ. If the initial path has an offset relative to the current path in the second direction, it needs to be smoothed based on extreme path points to obtain the smoothed target path.
[0094] Considering that the initial path is the path with the minimum cost obtained by scattering points in the bypass space region, rather than the path with the minimum cost from the starting point to the ending point in the entire space, this embodiment re-plans the initial path based on the extreme path points when the initial path deviates from the current path in the second direction, thereby obtaining the smooth target path from the starting point to the ending point in the entire space with the minimum cost.
[0095] Specifically, based on the extreme path points, the path starting point, and the initial path, a first planar region is determined in the target coordinate system. The first planar region is as follows: Figure 10As shown in the shaded area, path planning is performed in the first planar region to obtain a first smooth path. Simultaneously, based on the extreme path points, the path endpoint, and the initial path, a second planar region is determined in the target coordinate system, and path planning is performed in the second planar region to obtain a second smooth path. Finally, based on the first and second smooth paths, the smooth target path from the path start point to the path endpoint with the minimum path cost in the entire space can be obtained.
[0096] It should be noted that for path planning in the first and second planar regions, a smooth path can be determined by scattering points at equal intervals within the planar regions and calculating the corresponding cost value for each path point obtained from the scattering. This allows the path point with the minimum cost value corresponding to each coordinate value in the first direction to be selected.
[0097] Furthermore, such as Figure 10 As shown, if the extreme path point is located in the adjacent lane of the lane where the path endpoint is located, the adjacent lane endpoint corresponding to the path endpoint is determined in the adjacent lane. Based on the extreme path point, the adjacent lane path with the minimum path cost from the path start point to the adjacent lane endpoint is planned. Then, the path with the minimum path cost is selected from the adjacent lane path and the target path as the optimal path, thereby controlling the vehicle to travel along the optimal path.
[0098] Specifically, for planning adjacent lane paths, path planning is performed in the target coordinate system based on the extreme path point and the adjacent lane endpoint to obtain the first adjacent lane path from the extreme path point to the adjacent lane endpoint. Then, the second adjacent lane path from the path start point to the extreme path point is determined from the target path. Finally, the adjacent lane path from the path start point to the adjacent lane endpoint is determined based on the first and second adjacent lane paths.
[0099] Specifically, for the planning of the first adjacent lane path, points can be scattered based on the line connecting the extreme path point in the target coordinate system to the end point of the adjacent lane, and the corresponding cost value of each path point obtained by scattering points can be calculated. Then, the first adjacent lane path is determined based on the path point with the smallest cost value corresponding to each coordinate value in the first direction.
[0100] Since the first adjacent lane path is the path with the minimum cost from the extreme path point to the adjacent lane end point, and the second adjacent lane path is also the path with the minimum cost from the path start point to the extreme path point, the adjacent lane path determined based on the first and second adjacent lane paths is also the path with the minimum cost from the path start point to the adjacent lane end point.
[0101] Therefore, this application constructs a target coordinate system based on vehicle speed, coordinate values in a first direction, and coordinate values in a second direction. The coordinate values in the first direction represent the vehicle's longitudinal position in a direction parallel to the vehicle's front direction when an obstacle is detected, while the coordinate values in the second direction represent the vehicle's lateral position in a direction perpendicular to the vehicle's front direction. By performing path planning within this target coordinate system, combining lateral and longitudinal planning, the determined target path has practical physical meaning. Furthermore, it can simultaneously plan the path shape and vehicle speed at various points along the path, making the determined target path more accurate. Moreover, this application determines the path with the lowest cost by identifying the path point with the lowest cost corresponding to each coordinate value in the first direction, thereby planning the optimal path with lower resource consumption.
[0102] See Figure 11 As shown, an embodiment of the present invention discloses a path planning device, comprising:
[0103] The detour area determination module 11 is used to determine the detour space area corresponding to the obstacle in the target coordinate system if an obstacle is detected on the current path during driving; the coordinates of each coordinate point in the target coordinate system include the vehicle driving speed, the coordinate value in the first direction and the coordinate value in the second direction; the first direction is parallel to the vehicle's front direction when the obstacle is detected, and the second direction is perpendicular to the vehicle's front direction;
[0104] The start and end point determination module 12 is used to determine the new path start point and path end point of the vehicle when an obstacle is detected in the target coordinate system;
[0105] The path planning module 13 is used to determine, in the target coordinate system, the path planning area from the path starting point to the detour space area and the path detour space area to the path ending point, respectively, and to plan the target path from the path starting point to the path ending point based on the path planning area and the detour space area.
[0106] Therefore, this application constructs a target coordinate system based on vehicle speed, coordinate values in a first direction, and coordinate values in a second direction. The coordinate values in the first direction represent the vehicle's longitudinal position in a direction parallel to the vehicle's front direction when an obstacle is detected, while the coordinate values in the second direction represent the vehicle's lateral position in a direction perpendicular to the vehicle's front direction. By performing path planning within the target coordinate system, combining lateral and longitudinal planning, the determined target path has practical physical meaning. It can simultaneously plan the shape of the path and the vehicle's speed at various points along the path, making the determined target path more accurate. Furthermore, this application performs path planning within the target coordinate system based on the detour space region corresponding to the obstacle, thus avoiding path planning across the entire coordinate system and reducing the computational load of path planning by minimizing the planning area.
[0107] In some specific embodiments, the path planning module 13 includes:
[0108] A spatial point determination unit is used to determine, from the bypass space region, a first spatial point with the smallest coordinate value in the first direction and a second spatial point with the largest coordinate value;
[0109] The planning area determination unit is used to determine a first path planning area in the target coordinate system based on a first line connecting the starting point of the path to the first spatial point, and to determine a second path planning area based on a second line connecting the second spatial point to the ending point of the path.
[0110] In some specific embodiments, the path planning module 13 includes:
[0111] The first point-scattering unit is used to scatter points in the first path planning area based on the first connecting line, and determine the first sub-path based on the cost value of each path point obtained from the scattering; and to scatter points in the second path planning area based on the second connecting line, and determine the second sub-path based on the cost value of each path point obtained from the scattering.
[0112] The second point-spraying unit is used to spray points in the bypass space area based on a preset horizontal and vertical acceleration and deceleration threshold, so as to determine the third sub-path from the first space point to the second space point based on the cost of each path point obtained by the point-spraying.
[0113] The first target path determination unit is used to determine a target path from the starting point of the path to the ending point of the path based on the first sub-path, the second sub-path and the third sub-path.
[0114] In some specific embodiments, the second dotting unit includes:
[0115] The motion plane determination unit is used to determine the first spatial point as the current target spatial point and trigger a plane determination operation to determine the current motion plane at the current target spatial point per unit time based on a preset horizontal and vertical acceleration and deceleration threshold.
[0116] The sub-path determination unit is used to scatter points in the overlapping area of the bypass space region and the current motion plane, and determine the path point with the smallest cost value among the several path points obtained by scattering points as the new current target space point. Then, it jumps to the plane determination operation until the current target space point is the second space point, so as to determine the third sub-path based on all target space points.
[0117] In some specific embodiments, the path planning device further includes:
[0118] The cost value determination unit is used to determine the cost value of the path point based on the distance and speed parameters at the path point, the width of the lane where the path point is located, and the time loss corresponding to the path point.
[0119] The distance parameters include a first distance from the path point to the path endpoint, a second distance between the vehicle and the lane line at the path point, and minimum lateral and longitudinal distances from surrounding obstacles; the speed parameters include preset lateral and longitudinal acceleration / deceleration thresholds, a road speed limit, the vehicle's lateral and longitudinal acceleration at the path point, and the vehicle's speed; the time loss is the difference between the travel time from the path start point to the path endpoint and the travel time along the current path from the path start point to the path endpoint.
[0120] In some specific embodiments, the path planning module 13 includes:
[0121] An extreme point determination unit is used to determine the extreme path point with the largest offset from the initial path if the initial path planned based on the path planning area and the detour space area from the starting point of the path to the ending point of the path is offset relative to the current path in the second direction.
[0122] A smooth path planning unit is used to perform path planning in a first planar region determined in the target coordinate system based on the extreme path point, the path starting point, and the initial path to obtain a first smooth path, and to perform path planning in a second planar region determined in the target coordinate system based on the extreme path point, the path ending point, and the initial path to obtain a second smooth path.
[0123] The second target path determination unit is used to determine the target path based on the first smooth path and the second smooth path.
[0124] In some specific embodiments, the path planning device further includes:
[0125] The adjacent lane endpoint determination unit is used to determine the adjacent lane endpoint corresponding to the path endpoint in the adjacent lane if the extreme path point is located in the adjacent lane of the lane where the path endpoint is located.
[0126] The adjacent lane path determination unit is used to plan a first adjacent lane path from the extreme path point to the end point of the adjacent lane, and to determine the adjacent lane path based on the first adjacent lane path and a second adjacent lane path on the target path from the starting point of the path to the extreme path point;
[0127] The optimal path selection unit is used to select the path with the minimum path cost from the adjacent lane paths and the target path as the optimal path, so as to control the vehicle to travel along the optimal path.
[0128] In some specific embodiments, the detour area determination module 11 includes:
[0129] The detour area determination unit is used to determine the speed difference between the travel speed of the obstacle and the travel speed of the vehicle corresponding to the starting point of the path, and to determine the detour space area corresponding to the obstacle in the target coordinate system based on the speed difference.
[0130] Furthermore, embodiments of this application also disclose an electronic device, Figure 12 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0131] Figure 12 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the path planning method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0132] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0133] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0134] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the path planning method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0135] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed path planning method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0136] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0137] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0138] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0139] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0140] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A path planning method, It is characterized in that include: If an obstacle is detected on the current path during driving, a detour space area corresponding to the obstacle is determined in the target coordinate system; The coordinates of each coordinate point in the target coordinate system include the vehicle speed, the coordinate value in the first direction, and the coordinate value in the second direction; the first direction is parallel to the direction of the front of the vehicle when the obstacle is detected, and the second direction is perpendicular to the direction of the front of the vehicle; Determining, in the target coordinate system, a new path start point and a path end point of the ego vehicle when an obstacle is detected; In the target coordinate system, path planning areas from the path starting point to the detour space area and from the detour space area to the path end point are respectively determined, and a target path from the path starting point to the path end point is planned based on the path planning area and the detour space area.
2. The path planning method according to claim 1, It is characterized in that The determining, in the target coordinate system, respectively the path planning area from the path starting point to the detour space area and from the detour space area to the path ending point includes: Determine, from the bypass space area, a first spatial point with the smallest coordinate value and a second spatial point with the largest coordinate value in the first direction; In the target coordinate system, a first path planning area is determined based on a first line from the path starting point to the first spatial point, and a second path planning area is determined based on a second line from the second spatial point to the path ending point.
3. The path planning method according to claim 2, It is characterized in that The planning of a target path from the path starting point to the path ending point based on the path planning area and the detour space area includes: In the first path planning area, points are scattered based on the first connection line, and a first sub-path is determined based on the cost value of each path point obtained by the scattered points; in the second path planning area, points are scattered based on the second connection line, and a second sub-path is determined based on the cost value of each path point obtained by the scattered points; Based on preset lateral and longitudinal acceleration and deceleration thresholds, points are scattered in the detour space area, so as to determine a third sub-path from the first spatial point to the second spatial point based on the cost value of each path point obtained by the scattered points; A target path from the path start point to the path end point is determined based on the first sub-path, the second sub-path, and the third sub-path.
4. The path planning method according to claim 3, It is characterized in that The step of scattering points in the detour space area based on preset lateral and longitudinal acceleration and deceleration thresholds to determine a third sub-path from the first spatial point to the second spatial point based on the cost value of each path point obtained by scattering the points includes: Determine the first spatial point as the current target spatial point, and trigger a plane determination operation to determine a current motion plane within a unit time at the current target spatial point based on preset lateral and longitudinal acceleration and deceleration thresholds; Points are scattered in the overlapping area of the bypass space area and the current motion plane, and the path point with the smallest cost value among the several path points obtained by scattering the points is determined as the new current target space point, and then the plane determination operation is jumped to until the current target space point is the second space point, so as to determine the third sub-path based on all target space points.
5. The path planning method according to claim 3, It is characterized in that Also includes: Determine a cost value of the waypoint based on a distance parameter and a speed parameter at the waypoint, a width of a lane where the waypoint is located, and a time loss corresponding to the waypoint; Among them, the distance parameters include a first distance from the path point to the path end point, a second distance from the lane line when the vehicle is at the path point, and the minimum lateral and longitudinal distances from surrounding obstacles; the speed parameters include the preset lateral and longitudinal acceleration and deceleration thresholds, the upper limit of the road speed, the lateral and longitudinal acceleration of the vehicle at the path point, and the vehicle speed; the time loss is the difference between the driving time from the path starting point to the path end point through the path point and the driving time from the path starting point to the path end point along the current path.
6. The path planning method according to claim 1, It is characterized in that The planning of a target path from the path starting point to the path ending point based on the path planning area and the detour space area includes: If the initial path from the path starting point to the path ending point planned based on the path planning area and the detour space area is offset in the second direction relative to the current path, determining an extreme path point with the largest offset from the initial path; Performing path planning in a first plane region determined in the target coordinate system based on the extreme path point, the path starting point, and the initial path to obtain a first smooth path, and performing path planning in a second plane region determined in the target coordinate system based on the extreme path point, the path ending point, and the initial path to obtain a second smooth path; The target path is determined based on the first smooth path and the second smooth path.
7. The path planning method according to claim 6, It is characterized in that Also includes: If the extreme value path point is located on an adjacent lane of the lane where the path end point is located, then determining an adjacent lane end point corresponding to the path end point on the adjacent lane; Planning a first adjacent lane path from the extreme path point to the adjacent lane end point, and determining the adjacent lane path based on the first adjacent lane path and a second adjacent lane path on the target path from the path start point to the extreme path point; A path with the smallest path cost is selected from the adjacent lane path and the target path as the optimal path, so as to control the vehicle to travel along the optimal path.
8. The path planning method according to any one of claims 1 to 7, It is characterized in that The step of determining the detour space area corresponding to the obstacle in the target coordinate system includes: A speed difference between a travel speed of the obstacle and a travel speed of the vehicle corresponding to the path starting point is determined, and a detour space area corresponding to the obstacle is determined in a target coordinate system based on the speed difference.
9. A path planning device, It is characterized in that include: A detour area determination module, configured to determine a detour space area corresponding to the obstacle in a target coordinate system if an obstacle is detected on the current path during driving; The coordinates of each coordinate point in the target coordinate system include the vehicle speed, the coordinate value in the first direction, and the coordinate value in the second direction; the first direction is parallel to the direction of the front of the vehicle when the obstacle is detected, and the second direction is perpendicular to the direction of the front of the vehicle; A starting and ending point determination module, used to determine the new path starting point and path ending point of the vehicle in the target coordinate system when an obstacle is detected; A path planning module is used to determine the path planning areas from the path starting point to the detour space area and from the detour space area to the path end point in the target coordinate system, and plan the target path from the path starting point to the path end point based on the path planning areas and the detour space area.
10. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the path planning method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the path planning method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Automatic parking method, device and system
CN115605930A
Vehicle control method and device, electronic equipment and computer storage medium
CN116424319A
Path planning method and device, vehicle and storage medium
CN117091615A
Transverse path planning method and device and unmanned vehicle
CN117664167A
Method and apparatus for planning vehicle driving path, intelligent vehicle, and storage medium
WO2022088761A1
