Turn-around trajectory generation method, device and equipment based on automatic driving and medium
Through discrete sampling and path planning of the vehicle's U-turn space, the problem that autonomous driving technology is difficult to generate a successful U-turn trajectory in complex road conditions is solved, and the efficiency and safety of vehicle U-turn are achieved.
Patent Information
- Application Number
- CN202410959069.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Existing autonomous driving technology is difficult to flexibly generate successful U-turn trajectories in complex road conditions, leading to traffic congestion and safety hazards.
By discretely sampling the vehicle U-turn space to obtain sampling points, the vehicle adjustment space is constructed, and combined with the current position of the vehicle and the road conditions of the lane to be entered, a preset path planning method is used to generate a vehicle U-turn trajectory, adapting to different road conditions to generate feasible U-turn trajectories.
It significantly improves the efficiency of vehicle U-turns, avoids traffic jams caused by unsmooth U-turns, and ensures vehicle safety and traffic efficiency.
Smart Images

Figure CN118665486A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous driving, and in particular to a method, device, equipment and medium for generating a U-turn trajectory based on autonomous driving. Background Art
[0002] With the rapid progress of the times, autonomous driving technology has emerged, among which the generation of U-turn trajectories is one of its core functions. However, in the actual vehicle U-turn process, the U-turn position is often full of various obstacles, such as illegally parked vehicles, street vendors, etc. These factors often lead to complex road conditions such as narrow roads and congestion. However, current technologies often rely only on the purely static environment of the road structure when generating U-turn trajectories. This results in the fact that in actual complex and changeable road conditions, the generated U-turn trajectory is often difficult to successfully complete the U-turn in one go, and it is even possible to get stuck at the U-turn position, causing traffic congestion and safety hazards. This not only affects the traffic efficiency of vehicles, but also brings additional pressure to the entire transportation system. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for generating a U-turn trajectory based on automatic driving, aiming to solve the problem that the U-turn trajectory cannot be flexibly generated in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a method for generating a U-turn trajectory based on automatic driving, and the method is applied to an automatic driving system of a vehicle, and comprises: when the vehicle travels to a preset U-turn section, discrete sampling of the U-turn space is performed to obtain sampling points, wherein the U-turn space is a space where a U-turn can be made between the lane where the vehicle is currently located and the opposite lane, and the sampling points are positions on the center line of the U-turn space where the vehicle passes when making a U-turn; a vehicle adjustment space is constructed according to the sum of the widths of the lane where the vehicle is currently located and the opposite lane and the length of the U-turn space; and a vehicle U-turn trajectory is generated by a preset path planning method according to the current position of the vehicle, the sampling points, the vehicle adjustment space, and the road conditions of the lane to be entered.
[0005] In the second aspect, an embodiment of the present invention further provides a U-turn trajectory generation device based on automatic driving, comprising: a sampling unit, for discretely sampling the U-turn space to obtain sampling points when the vehicle travels to a preset U-turn section, wherein the U-turn space is a space where a U-turn can be made between the lane where the vehicle is currently located and the opposite lane, and the sampling points are positions on the center line of the U-turn space that the vehicle must pass through when making a U-turn; a construction unit, for constructing a vehicle adjustment space according to the sum of the widths of the lane where the vehicle is currently located and the opposite lane and the length of the U-turn space; a planning unit, for generating a vehicle U-turn trajectory through a preset path planning method according to the current position of the vehicle, the sampling points and the vehicle adjustment space, and the road conditions of the lane to be entered.
[0006] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions can implement the above method when executed by a processor.
[0008] The embodiment of the present invention provides a method, device, equipment and medium for generating a U-turn trajectory based on automatic driving. The method is applied to an automatic driving system of a vehicle, and comprises: when the vehicle travels to a preset U-turn section, discrete sampling is performed on the U-turn space to obtain sampling points, wherein the U-turn space is a space between the lane where the vehicle is currently located and the opposite lane where a U-turn can be performed, and the sampling point is a position on the center line of the U-turn space where the vehicle passes when turning around; constructing a vehicle adjustment space according to the sum of the widths of the lane where the vehicle is currently located and the opposite lane and the length of the U-turn space; generating a vehicle U-turn trajectory through a preset path planning method according to the current position of the vehicle, the sampling points and the vehicle adjustment space, and the road conditions of the lane to be entered. The embodiment of the present invention samples the U-turn space that can be turned around to obtain sampling points, so as to generate U-turn trajectories with different curvatures according to the sampling points, and constructs a vehicle adjustment space to limit the space occupied by the vehicle adjustment to avoid causing traffic congestion. The vehicle U-turn trajectory is generated by a preset path planning method according to the road condition of the lane to be entered and the sampling points and other information, so as to flexibly generate a vehicle U-turn trajectory that can be turned around according to different road conditions, which significantly improves the efficiency of vehicle U-turns and can avoid traffic congestion caused by unsmooth U-turns. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of a flow chart of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0011] Figure 2 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0012] Figure 3 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0013] Figure 4 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0014] Figure 5 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0015] Figure 6 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0016] Figure 7 A schematic diagram of a sub-process of a method for generating a U-turn trajectory based on automatic driving provided in an embodiment of the present invention;
[0017] Figure 8 A schematic block diagram of a U-turn trajectory generation device based on automatic driving provided by an embodiment of the present invention;
[0018] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0020] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0021] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0022] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0023] See also Figure 1 , Figure 1 A flow chart of a method for generating a U-turn trajectory based on autonomous driving provided in an embodiment of the present invention. The method for generating a U-turn trajectory based on autonomous driving in this embodiment can be applied to vehicles with autonomous driving technology. If a U-turn path is generated in a traditional way, it may lead to problems such as failure to successfully turn around once and thus affecting traffic. This method can intelligently plan the best U-turn trajectory, so that the autonomous driving vehicle can smoothly and safely complete the U-turn action, thereby effectively improving road traffic efficiency and safety.
[0024] Figure 1 1 is a flow chart of a method for generating a U-turn trajectory based on automatic driving provided by an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-S130.
[0025] S110. When the vehicle travels to a preset U-turn section, discrete sampling is performed on the U-turn space to obtain sampling points, wherein the U-turn space is a space between the lane where the vehicle is currently located and the opposite lane where a U-turn can be made, and the sampling point is a position on the center line of the U-turn space that the vehicle passes when making a U-turn.
[0026] In this embodiment, the preset U-turn section is a position where the vehicle can make a U-turn as identified by the semantic map carried by the automatic driving system of the vehicle. Among them, the semantic map has been marked with rich road information, such as lane centerline, roadbed, road markings and other information. The discrete sampling is a process of obtaining a number of sampling points according to a preset discrete interval. It can be understood that in the road section where the vehicle is allowed to make a U-turn, a space for U-turn is usually divided between the current lane and the opposite lane, and this space is the U-turn space. At the center line of the U-turn space or the dividing line between the current lane and the object lane, sampling points are obtained one by one according to the preset discrete intervals. The sampling point is the position where the vehicle passes through the center line or the dividing line when making a U-turn. By obtaining the sampling points, it is convenient to more accurately and richly depict the path trajectory of different curvatures of the vehicle when performing the U-turn action according to the sampling points, thereby ensuring the smoothness and safety of the U-turn process.
[0027] S120: construct a vehicle adjustment space according to the sum of the widths of the lane currently located by the vehicle and the opposite lane and the length of the U-turn space.
[0028] In this embodiment, the vehicle adjustment space is a space where the vehicle can reverse and maneuver back and forth at will at the U-turn, without strictly following the road network. The main purpose is to be able to adjust the vehicle body posture in this free space to make a U-turn. The vehicle adjustment space is a rectangular space, wherein the length of the vehicle adjustment space is the length of the U-turn space, and the width is the sum of the widths of the lane where the vehicle is currently located and the opposite lane. It can be understood that the vehicle adjustment space is also divided into many small spaces, and each lane can be a small space. When controlling the vehicle to adjust its posture, it is best to move in the smallest range of space as much as possible to avoid affecting the driving of vehicles in normal lanes. By constructing the vehicle adjustment space according to the U-turn space and the lane width to limit the space for the vehicle to adjust its own posture, it is avoided that the vehicle occupies too much space and causes road congestion or U-turn failure.
[0029] S130, generating a vehicle U-turn trajectory through a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space, and the road condition of the lane to be entered.
[0030] In this embodiment, the preset path planning method is an algorithm for calculating the path from one posture to another posture of the vehicle under the condition of a fixed turning radius, for example, hybridA*, RS curve and other path planning methods. Specifically, the hybridA* algorithm can generate several vehicle U-turn trajectories to the lane to be entered according to the current vehicle position and the sampling point and the road conditions of the lane to be entered. Among them, the hybridA* algorithm combines the efficient search characteristics of the A algorithm with the flexibility of dynamic programming, and can take into account the dynamic constraints of the vehicle (such as maximum steering angle, acceleration limit, etc.) in a complex environment, so as to generate a trajectory that is more in line with actual driving conditions. And select the trajectory that can complete the vehicle posture adjustment in the vehicle adjustment space as the spare vehicle U-turn trajectory in the generated vehicle U-turn trajectory, that is, to ensure that the vehicle will not exceed its physical limitations or conflict with other road users when performing a U-turn. And according to the road conditions of the lane to be entered, select the path with the shortest time or the shortest path as the target U-turn trajectory in the spare vehicle U-turn trajectory, so that the vehicle performs a vehicle U-turn according to the target U-turn trajectory. The vehicle U-turn trajectory is generated according to the current position of the vehicle, the sampling point and the vehicle adjustment space, the road condition of the lane to be entered, and a preset path planning method to ensure accurate tracking of the trajectory and smooth completion of the U-turn action.
[0031] In one embodiment, if Figure 2 As shown, the step S130 also includes steps S131-S132.
[0032] S131. If there is an obstacle in the lane to be entered, obtain the volume of the obstacle by performing volume prediction based on the central coordinates of the obstacle and a projection of the obstacle;
[0033] S132. Generate a vehicle U-turn trajectory that bypasses the obstacle through the preset path planning method according to the current position of the vehicle, the volume of the obstacle, the sampling point, and the vehicle adjustment space.
[0034] In this embodiment, the obstacle is an object that affects the driving or U-turn of the vehicle, such as illegal parking, small vendors setting up stalls, etc. The obstacle can be identified by the laser radar and camera carried by the vehicle body. The automatic driving system will perceive the real-time position of the obstacle in the environment in real time, and then obtain the volume of the obstacle according to the perceived projection and coordinates. The specific method for obtaining the volume is not limited as long as the obstacle volume can be obtained. The vehicle U-turn trajectory is generated by the preset path planning method according to the current position of the vehicle, the volume of the obstacle, the sampling point and the vehicle adjustment space. Specifically, the shortest trajectory can be planned at each sampling point in combination with vehicle kinematics through hybridA* and other methods to connect to the opposite lane. Among them, if the curvature cannot be met due to an obstacle, it will be filtered out first, and it will be recorded that the U-turn cannot be successfully made after passing the sampling point. If a U-turn can be directly made to connect to the opposite lane, the successfully planned trajectory will be returned to generate a vehicle U-turn trajectory that bypasses the obstacle. By generating a vehicle U-turn trajectory that bypasses the obstacle based on the current position of the vehicle, the volume of the obstacle and other information and the preset path planning method, the vehicle can be helped to successfully make a U-turn, thereby achieving the purpose of generating a U-turn trajectory with flexible planning characteristics.
[0035] In one embodiment, if Figure 3 As shown, the step S130 also includes steps S133-S136.
[0036] S133, judging whether the lane to be entered is a congested lane according to the number of vehicles and the driving speed of the lane to be entered;
[0037] S134. If the lane is a congested lane, a non-congested lane in the same direction as the lane to be entered is determined as a new lane to be entered;
[0038] S135, determining a lane entry position in the new lane to be entered according to the current position of the vehicle and a preset posture angle;
[0039] S136. Generate the vehicle U-turn trajectory through the preset path planning method according to the current position of the vehicle, the lane cut-in position, the sampling point, and the vehicle adjustment space.
[0040] In this embodiment, the number of vehicles is the total number of vehicles on each lane within a certain range of the lane to be entered, and the driving speed is the driving speed of each vehicle. Whether the lane to be entered is a congested lane is determined based on the number of vehicles and the driving speed of the lane to be entered. Specifically, the traffic density within the range is obtained based on the number of vehicles within a preset driving range and the length of the corresponding vehicle. For example, the difference is obtained by subtracting the sum of the lengths of each vehicle within the range from the distance from the first vehicle to the last vehicle within the preset driving range, and the vehicle density is obtained by dividing the difference by the total number of vehicles. It is determined that the vehicle density and the driving speed are significantly less than the preset vehicle density and the preset average driving speed. If both are less than, it can be determined that the lane to be entered is a congested lane. If the lane to be entered is a congested lane, a non-congested lane in the same direction as the lane to be entered is determined as the new lane to be entered. For example, the third left lane is the lane to be entered, but the second left lane and / or the third left lane are congested lanes. At this time, the first left lane in the same direction as the third left lane is a non-congested lane, or the congestion level is lower than the third left lane and the second left lane. In this case, the first left lane can be positioned as the new lane to be entered. The lane entry position is determined in the new lane to be entered according to the current position of the vehicle and the preset attitude angle. For example, the angle between the preset attitude angle and the direction of the opposite lane can be 40 degrees. The vehicle U-turn trajectory is generated by the preset path planning method according to the current position of the vehicle, the lane cut-in position, the sampling point and the vehicle adjustment space. Specifically, each vehicle U-turn trajectory that passes through each sampling point to the lane cut-in position can be planned from the current position of the vehicle through trajectory planning methods such as hybridA* and RS curve, and then the optimal vehicle driving trajectory is selected from each vehicle U-turn trajectory according to the preset selection criteria. For example, the trajectory with the shortest driving distance or the fewest gear shifting times can be selected as the optimal vehicle driving trajectory. When the lane to be entered is a congested lane, a non-congested lane in the same direction as the lane to be entered is selected as the new lane to be entered to flexibly deal with vehicle congestion, and the vehicle U-turn trajectory that can be reversed and rubbed in the vehicle adjustment space is generated by the preset path planning method according to the lane cut-in position and sampling point information, so that the vehicle can flexibly and smoothly perform a vehicle U-turn to avoid affecting traffic.
[0041] In one embodiment, if Figure 4 As shown, step S133 also includes steps S1331-S1333.
[0042] S1331. If the lane to be entered is a congested lane, perform vertical projection processing on the lane to be entered according to the length of the U-turn space to obtain a search point;
[0043] S1332, searching for other vehicles in front of the lane to be entered according to the search point and recording the search distance, and if the search distance is greater than a preset search distance, determining a queuing point according to the last vehicle of the lane to be entered;
[0044] S1333. Generate the vehicle U-turn trajectory through the preset path planning method according to the current position of the vehicle, the queuing point, the sampling point and the vehicle adjustment space.
[0045] In this embodiment, the search point is the starting point for searching for vehicles. Specifically, when the lane to be entered is a congested lane, the lane to be entered can be vertically projected according to the length of the U-turn space to obtain the search point. Specifically, one end of the U-turn space can be taken to make a vertical line to the lane line of the lane to be entered. At this time, there is an intersection between the vertical line and the lane line. This intersection is the search point, and the vehicle search is performed in front of the lane to be entered according to the search point until the first vehicle in front is found, and the search distance is returned. If the search distance is greater than the preset search distance, it is considered that although the lane to be entered is congested, there is a certain distance between vehicles. At this time, a queuing point can be found behind the last vehicle in the congested lane. Among them, the preset search distance is a pre-set distance that can be used for queuing. The vehicle U-turn trajectory is generated by the preset path planning method according to the current position of the vehicle, the queuing point, the sampling point and the vehicle adjustment space. Specifically, a suitable trajectory is planned to reach the queuing point according to the current position and speed of the vehicle through the preset path planning method. The shortest trajectory can be selected from the generated vehicle U-turn trajectory as the target trajectory, and the vehicle is controlled to go to the last queuing point in the congested queue according to the target trajectory to make a U-turn. The queuing point is obtained according to the search point to determine whether the lane to be entered is only a congested area. If it is a congested area, it will go around to the queuing point after the congestion to queue, avoiding forcibly cutting in with the U-turn vehicle at the current position. The vehicle U-turn trajectory is generated according to the queuing point to flexibly realize the vehicle U-turn.
[0046] In one embodiment, if Figure 5 As shown, the step S130 also includes steps S137-S138.
[0047] S137: If the current driving lane is a congested lane, identify the vehicle to be turned among the vehicles ahead by comparing the position and orientation of the vehicle ahead;
[0048] S138. Predicting a predicted U-turn trajectory of the vehicle to be turned by a preset trajectory prediction method, and performing a U-turn of the vehicle according to the predicted U-turn trajectory.
[0049] In this embodiment, the step of determining whether the current driving lane is a congested lane is specifically that the automatic driving system of the vehicle can determine whether the current lane is a congested lane according to the number of vehicles and the driving speed of the lane where the vehicle is currently located. If the current driving lane is a congested lane, the vehicle adjustment space and the U-turn space are compressed, resulting in the inability to freely reverse in the space to adjust the posture. Therefore, it is necessary to identify the vehicle to be turned in the front vehicle according to the position and orientation of the front vehicle. For example, the orientation of the front vehicle can be compared with the orientation of the non-U-turn vehicle. If the orientation of the front vehicle is different from the orientation of the non-U-turn vehicle and is biased towards the U-turn space, the front vehicle can be identified as the vehicle to be turned. The vehicles to be turned can form a U-turn queue, and then a plurality of U-turn trajectories of the queue are generated by a preset path planning method such as an RS curve. The vehicle can select the optimal U-turn trajectory for the main vehicle from the U-turn trajectory of the U-turn queue to make a U-turn. For example, an optimal trajectory can be selected according to the condition of the least number of expected gear shifts to make a U-turn. By identifying a vehicle to be turned among the vehicles ahead when the current lane is congested, and performing a U-turn according to a predicted U-turn trajectory of the vehicle to be turned, the vehicle U-turn can be achieved without causing traffic congestion.
[0050] In one embodiment, if Figure 6 As shown, the step S130 also includes steps S139-S1310.
[0051] S139, if the vehicle U-turn trajectory cannot be generated according to the sampling points, expanding the driving range that can enter the lane to be entered, and reducing the sampling point density to obtain the latest sampling points;
[0052] S1310: Perform trajectory planning on the latest sampling point and the driving range through the preset path planning method until the vehicle U-turn trajectory is generated.
[0053] In this embodiment, the sampling point density refers to the density of the sampling points. Discrete sampling is performed at the center line of the U-turn space to obtain the sampling points, and the vehicle U-turn trajectory is generated based on the sampling points and other information. If the vehicle U-turn trajectory cannot be generated, it proves that the U-turn cannot be completed directly, and it is necessary to adjust the vehicle body posture by reversing and other actions to solve the dilemma of the vehicle being stuck in the U-turn space to complete the vehicle U-turn. At this time, it is necessary to expand the range to search for the position that can enter the lane to be entered, and generate a trajectory that can reverse through a preset path planning method such as hybridA*. And when the U-turn cannot be completed directly, there is no need to obtain the sampling points closely to find a vehicle U-turn trajectory that can directly perform a U-turn. Therefore, the subsequent sampling point density is reduced to re-sample and obtain the latest sampling points, and a relatively reasonable trajectory is planned to the opposite lane based on the latest sampling points and the driving range, and reverse in the vehicle adjustment space to complete the vehicle U-turn. When the vehicle U-turn trajectory cannot be generated, the driving range is expanded and the sampling point density is reduced to perform trajectory planning until the vehicle U-turn trajectory is generated, so as to generate a trajectory that can be turned around by reversing or other operations when a trajectory that can be directly turned around cannot be generated, so as to help the vehicle to realize the vehicle U-turn.
[0054] In one embodiment, if Figure 7 As shown, step S130 also includes steps S1301-S1302.
[0055] S1301, if it is detected that there are other vehicles making a U-turn in the U-turn space, predicting the U-turn trajectory of the other vehicles through a preset neural network to obtain a predicted U-turn path of the other vehicles;
[0056] S1302: Delete a number of vehicle U-turn trajectories that intersect with the predicted U-turn path.
[0057] In this embodiment, the preset neural network is a neural network that combines a map network and vehicle kinematics, such as a convolutional neural network, a recurrent neural network, etc., which is not limited to this, and can predict the predicted U-turn path of other vehicles. If the radar and camera of the automatic driving system detect that there are other vehicles turning around in the U-turn space, the trajectory of the main vehicle turning around needs to bypass the trajectory of other vehicles turning around, otherwise it will cause a traffic accident. Therefore, after generating the U-turn trajectory of the vehicle, the U-turn trajectory of other vehicles will be predicted by the preset neural network to obtain the predicted U-turn path of other vehicles. Specifically, the neural network can predict the predicted U-turn path of other vehicles through the posture angle and position of other vehicles, and project the predicted U-turn path at the U-turn position. Delete the trajectories that intersect with the predicted U-turn path in the generated several U-turn trajectories of the vehicle to bypass the motion path of other vehicles. And a suitable path can be found in the remaining trajectories for vehicle U-turn. For example, the optimal trajectory is found in the remaining vehicle U-turn trajectories based on the conditions of the shortest driving distance, the shortest completion time, and the least number of gear shifts. By predicting the U-turn path of other vehicles according to the preset neural network and deleting the tracks that intersect with the predicted U-turn path, collisions with other vehicles that are making U-turns can be avoided, thereby effectively avoiding traffic accidents.
[0058] In one embodiment, after the step of generating a vehicle U-turn trajectory by a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space and the road condition of the lane to be entered, the step further includes:
[0059] Generate an estimated U-turn time of the vehicle U-turn trajectory according to the congestion of the lane, and generate a global path and obtain the corresponding global U-turn time through the preset global planning method;
[0060] The estimated U-turn time is compared with the global U-turn time, and if the estimated U-turn time is less than the global U-turn time, the vehicle U-turn is performed according to the global path.
[0061] In this embodiment, the preset global planning method is a static planning algorithm, which performs path planning based on the existing map information, and searches for an optimal path from the starting point to the target point under the maximum curvature that meets the vehicle kinematic requirements. If the estimated U-turn time is less than the global U-turn time, it indicates that the time consumed by the generated vehicle U-turn trajectory to be completed is too long and is far less than the time consumed by re-detour, then the vehicle will be detoured according to the global path to achieve the U-turn.
[0062] In addition, in this embodiment, when the vehicle makes a U-turn by reversing, a new U-turn trajectory is planned according to the current position of the vehicle, wherein the new U-turn trajectory is generated according to the driving conditions of the remaining vehicles in the current vehicle adjustment space. If the vehicle stuck in front of the vehicle just starts to drive away, a new U-turn trajectory can be generated according to the remaining space. And the efficiency of the currently selected vehicle reversing trajectory and the new U-turn trajectory is continuously compared. If the efficiency of the new U-turn trajectory is higher, there is no need to continue to reverse, and the U-turn can be performed according to the new U-turn trajectory. By continuously comparing the efficiency of the vehicle's U-turn trajectory with other U-turn paths, the vehicle is helped to select a more efficient path for vehicle U-turn, so as to solve the problem that the U-turn trajectory cannot be flexibly generated in the prior art.
[0063] Figure 8 is a schematic block diagram of a U-turn trajectory generation device 200 based on automatic driving provided by an embodiment of the present invention. Figure 8 As shown, corresponding to the above U-turn trajectory generation method based on automatic driving, the present invention also provides a U-turn trajectory generation device based on automatic driving. The U-turn trajectory generation device based on automatic driving includes a unit for executing the above U-turn trajectory generation method based on automatic driving, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Figure 8 The U-turn trajectory generation device based on automatic driving includes a sampling unit 210, a construction unit 220 and a planning unit 230.
[0064] The sampling unit 210 is used to discretely sample the U-turn space to obtain sampling points when the vehicle travels to a preset U-turn section, wherein the U-turn space is a space where a U-turn can be made between the lane where the vehicle is currently located and the opposite lane, and the sampling point is a position on the center line of the U-turn space that the vehicle must pass through when making a U-turn.
[0065] The construction unit 220 is used to construct the vehicle adjustment space according to the sum of the widths of the lane where the vehicle is currently located and the opposite lane and the length of the U-turn space.
[0066] The planning unit 230 is used to generate a vehicle U-turn trajectory through a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space, and the road conditions of the lane to be entered.
[0067] In one embodiment, the planning unit 230 includes a volume prediction unit and a first generation subunit.
[0068] A volume prediction unit, configured to obtain the volume of an obstacle by performing volume prediction based on the central coordinates of the obstacle and a projection of the obstacle if there is an obstacle in the lane to be entered;
[0069] The first generating subunit is used to generate a vehicle U-turn trajectory bypassing the obstacle through the preset path planning method according to the current position of the vehicle, the volume of the obstacle, the sampling point and the vehicle adjustment space.
[0070] In one embodiment, the planning unit 230 includes a judgment unit, a lane determination unit, a position determination unit, and a second generation subunit.
[0071] A judging unit, configured to judge whether the lane to be entered is a congested lane according to the number of vehicles and the driving speed of the lane to be entered;
[0072] a lane determination unit, configured to determine a non-congested lane in the same direction as the lane to be entered as a new lane to be entered if the lane is a congested lane;
[0073] A position determination unit, configured to determine a lane cut-in position in the new lane to be entered according to the current position of the vehicle and a preset attitude angle;
[0074] The second generating subunit is used to generate the vehicle U-turn trajectory through the preset path planning method according to the current position of the vehicle, the lane cut-in position, the sampling point and the vehicle adjustment space.
[0075] In one embodiment, the planning unit 230 includes a searching unit, a queuing unit, and a third generating sub-unit.
[0076] A searching unit, configured to perform a vertical projection process on the lane to be entered according to the length of the U-turn space to obtain a search point if the lane to be entered is a congested lane;
[0077] a queuing unit, configured to search for other vehicles in front of the lane to be entered according to the search point and record the search distance, and determine the queuing point according to the last vehicle of the lane to be entered if the search distance is greater than a preset search distance;
[0078] The third generating subunit is used to generate the vehicle U-turn trajectory through the preset path planning method according to the current position of the vehicle, the queuing point, the sampling point and the vehicle adjustment space.
[0079] In one embodiment, the planning unit 230 includes a U-turn prediction unit and a U-turn unit.
[0080] A U-turn prediction unit, used to identify a vehicle to be turned among the vehicles ahead by comparing the position and orientation of the vehicle ahead if the current driving lane is a congested lane;
[0081] The U-turn unit is used to predict the predicted U-turn trajectory of the vehicle to be turned by a preset trajectory prediction method, and perform a U-turn of the vehicle according to the predicted U-turn trajectory.
[0082] In one embodiment, the planning unit 230 includes an acquisition unit and a planning unit.
[0083] an acquisition unit, configured to, if the vehicle U-turn trajectory cannot be generated according to the sampling points, expand the driving range that can enter the lane to be entered, and reduce the density of sampling points to obtain the latest sampling points;
[0084] A planning unit is used to perform trajectory planning on the latest sampling point and the driving range through the preset path planning method until the vehicle U-turn trajectory is generated.
[0085] In one embodiment, the planning unit 230 includes a trajectory prediction unit and a deletion unit.
[0086] a trajectory prediction unit, configured to predict the U-turn trajectory of other vehicles by using a preset neural network to obtain a predicted U-turn path of other vehicles if it is detected that other vehicles are making a U-turn in the U-turn space;
[0087] The deleting unit is used to delete the trajectories of the vehicle U-turn that intersect with the predicted U-turn path.
[0088] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned U-turn trajectory generation device 200 based on automatic driving and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0089] The above-mentioned U-turn trajectory generation device based on automatic driving can be implemented in the form of a computer program. The computer program can be used in Fig. 9 Runs on the computer device shown.
[0090] See also Fig. 9 , Fig. 9 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0091] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0092] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a U-turn trajectory generation method based on automatic driving.
[0093] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0094] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for generating a U-turn trajectory based on automatic driving.
[0095] The network interface 505 is used to communicate with other devices over the network. Fig. 9 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0096] The processor 502 is used to run a computer program 5032 stored in the memory to implement the steps of the above method.
[0097] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0098] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0099] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the steps of the above method.
[0100] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0101] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0102] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0103] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0105] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A U-turn trajectory generation method based on autonomous driving, It is characterized in that The method comprises: When the vehicle travels to a preset U-turn section, discrete sampling is performed on the U-turn space to obtain sampling points, wherein the U-turn space is a space between the lane where the vehicle is currently located and the opposite lane where a U-turn can be made, and the sampling point is a position on the center line of the U-turn space where the vehicle passes when making a U-turn; Constructing a vehicle adjustment space according to the sum of the widths of the lane where the vehicle is currently located and the opposite lane and the length of the U-turn space; A vehicle U-turn trajectory is generated by a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space, and the road condition of the lane to be entered.
2. The method according to claim 1, It is characterized in that The step of generating a vehicle U-turn trajectory by a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space and the road condition of the lane to be entered comprises: If there is an obstacle in the lane to be entered, the volume of the obstacle is obtained by performing volume prediction based on the central coordinates of the obstacle and the projection of the obstacle; A vehicle U-turn trajectory that bypasses the obstacle is generated by the preset path planning method according to the current position of the vehicle, the volume of the obstacle, the sampling point, and the vehicle adjustment space.
3. The method according to claim 1, It is characterized in that The step of generating a vehicle U-turn trajectory by a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space and the road condition of the lane to be entered comprises: Determining whether the lane to be entered is a congested lane according to the number of vehicles and the driving speed of the lane to be entered; If it is a congested lane, a non-congested lane in the same direction as the lane to be entered is determined as a new lane to be entered; Determining a lane cut-in position in the new lane to be entered according to the current position of the vehicle and a preset attitude angle; The vehicle U-turn trajectory is generated by the preset path planning method according to the current position of the vehicle, the lane cut-in position, the sampling point and the vehicle adjustment space.
4. The method according to claim 3, It is characterized in that After the step of judging whether the lane to be entered is a congested lane according to the number of vehicles and the driving speed of the lane to be entered, the method further comprises: If the lane to be entered is a congested lane, performing vertical projection processing on the lane to be entered according to the length of the U-turn space to obtain a search point; Searching for other vehicles in front of the lane to be entered according to the search point and recording the search distance, and if the search distance is greater than a preset search distance, determining a queuing point according to the last vehicle of the lane to be entered; The vehicle U-turn trajectory is generated by the preset path planning method according to the current position of the vehicle, the queuing point, the sampling point and the vehicle adjustment space.
5. The method according to any one of claims 1 to 3, It is characterized in that The step of generating a vehicle U-turn trajectory further includes: If the current driving lane is a congested lane, the vehicle to be turned is identified by comparing the position and direction of the vehicle in front; The predicted U-turn trajectory of the vehicle to be turned is predicted by a preset trajectory prediction method, and the vehicle is turned according to the predicted U-turn trajectory.
6. The method according to any one of claims 1 to 3, It is characterized in that The step of generating a vehicle U-turn trajectory further includes: If the vehicle U-turn trajectory cannot be generated according to the sampling points, then the driving range that can enter the lane to be entered is expanded, and the sampling point density is reduced to obtain the latest sampling points; The latest sampling point and the driving range are subjected to trajectory planning through the preset path planning method until the vehicle U-turn trajectory is generated.
7. The method according to any one of claims 1 to 3, It is characterized in that After the step of generating the vehicle U-turn trajectory, the method further includes: If it is detected that other vehicles are making a U-turn in the U-turn space, the U-turn trajectory of other vehicles is predicted by a preset neural network to obtain a predicted U-turn path of other vehicles; Delete a number of vehicle U-turn trajectories that intersect with the predicted U-turn path.
8. A U-turn trajectory generation device based on automatic driving, It is characterized in that The device comprises: a sampling unit, configured to discretely sample a U-turn space to obtain sampling points when the vehicle travels to a preset U-turn section, wherein the U-turn space is a space between a lane where the vehicle is currently located and an opposite lane where a U-turn can be made, and the sampling points are positions on the center line of the U-turn space that the vehicle must pass through when making a U-turn; A construction unit, configured to construct a vehicle adjustment space according to the sum of the widths of the lane currently located by the vehicle and the opposite lane and the length of the U-turn space; A planning unit is used to generate a vehicle U-turn trajectory through a preset path planning method according to the current position of the vehicle, the sampling point and the vehicle adjustment space, and the road conditions of the lane to be entered.
9. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Apparatus and method for generating u-turn path of autonomous vehicle
CN113135195A
Path planning method suitable for turning around of automatic driving vehicle
CN113895463A
Method, device and equipment for planning U-turn path of vehicle
CN114834486A
Urban vehicle U-turn path planning method, storage medium and vehicle
CN114889609A
Turn-around trajectory planning method, device and equipment and storage medium
CN115716482A
Cited By
Control method and apparatus, and vehicle
WO2026114022A1
