U-turn trajectory planning method and device
By monitoring and optimizing the detection of obstacles in the U-turn area of autonomous vehicles, safe arc curves and reference trajectories are generated, which solves the problem of poor flexibility in U-turn planning in the existing technology and improves the U-turn efficiency and safety of autonomous vehicles.
Patent Information
- Application Number
- CN202210088729.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-25
AI Technical Summary
The existing autonomous vehicle U-turn planning method has poor flexibility and is difficult to deal with long-term stationary obstacles on narrow roads, affecting operating efficiency.
By monitoring whether the target vehicle drives to the U-turn area, an arc curve is generated that matches the vehicle, and static and dynamic obstacle collision detection is performed to optimize the U-turn reference trajectory to ensure safe driving.
It realizes the automatic search for the starting point of U-turn, improves the real-time and flexibility of U-turn planning, avoids parking planning, and improves operating efficiency.
Smart Images

Figure CN114355950B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous driving, and in particular to a method and device for planning a U-turn trajectory. Background Art
[0002] With the development of autonomous driving technology, more and more autonomous driving vehicles are gradually integrated into and improving people's lives. Moreover, in appropriate scenarios, autonomous driving products can effectively save labor costs and increase work efficiency. In public road operations, in order to choose an efficient global path, active U-turns are usually required; at the same time, passive U-turns are also required in dead-end roads, narrow roads and other operating environments.
[0003] In the existing U-turn schemes, when planning a U-turn for an autonomous driving vehicle, a reference line is often used to plan the U-turn route in advance. However, the U-turn route planned in this way is often a fixed route with poor flexibility. When a long-term static obstacle appears on the U-turn route in a narrow road, only an obstacle-stopping strategy can be adopted, which seriously affects the operating efficiency. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a method and device for planning a U-turn trajectory to alleviate the above-mentioned technical problems.
[0005] In a first aspect, an embodiment of the present invention provides a method for planning a U-turn trajectory, comprising: monitoring whether the target vehicle travels to a U-turn area during its driving process; if so, generating a circular arc curve matching the target vehicle based on the U-turn area; performing a static obstacle collision detection on the circular arc curve, and if the detection passes, determining the circular arc curve as a target circular arc curve; obtaining the current self-vehicle positioning information of the target vehicle, and generating a U-turn reference trajectory of the target vehicle based on the self-vehicle positioning information and the target circular arc curve; performing a dynamic obstacle collision detection on the U-turn reference trajectory, and if the detection passes, determining the U-turn reference trajectory as the U-turn trajectory of the target vehicle, so that the target reference vehicle makes a U-turn based on the U-turn trajectory.
[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the above method also includes: obtaining pre-set map information, wherein the map information carries road environment information of a preset area; generating a driving reference line for the target vehicle based on the map information and the pre-set starting point and target point of the target vehicle, so that the target vehicle travels from the starting point to the target point along the driving reference line; wherein the driving reference line includes road information from the starting point to the target point; judging whether the driving reference line contains a U-turn area based on the road information; if so, monitoring whether the target vehicle travels to the boundary of the U-turn area during the driving of the target vehicle; if so, determining that the target vehicle travels to the U-turn area.
[0007] In combination with the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein, after generating a circular arc curve matching the target vehicle based on the U-turn area, the method further includes: discretizing the circular arc curve to generate a path point set corresponding to the circular arc curve; wherein the path point set includes multiple path points on the circular arc curve, each of the path points carries configuration information, and the configuration information includes at least one of the following information: posture information of the path point and curvature information of the path point.
[0008] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the step of performing static obstacle collision detection on the circular arc curve includes: obtaining obstacle information contained in the U-turn area stored in advance; judging whether the area where the circular arc curve is located contains a static obstacle according to the obstacle information; if not, determining that the static obstacle collision detection of the circular arc curve passes; if yes, extracting envelope information of the static obstacle; judging whether the envelope information of the static obstacle overlaps with the pre-stored envelope information of the target vehicle when the target vehicle travels along the circular arc curve to the position corresponding to the static obstacle; if not, determining that the static obstacle collision detection of the circular arc curve passes.
[0009] In combination with the third possible implementation of the first aspect, an embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the above method also includes: if the static obstacle collision detection of the circular arc curve fails, controlling the target vehicle to continue traveling along the driving reference line.
[0010] In combination with the second possible implementation of the first aspect, an embodiment of the present invention provides a fifth possible implementation of the first aspect, wherein the above-mentioned step of generating the U-turn reference trajectory of the target vehicle based on the self-vehicle positioning information and the target circular arc curve includes: extracting the state information of the target vehicle at the current moment included in the self-vehicle positioning information, wherein the state information includes at least one of the following information: the current positioning coordinates, orientation information, speed information and steering wheel angle of the target vehicle; generating trajectory points corresponding to each path point in the target circular arc curve based on the state information and a pre-set kinematic model; wherein the trajectory points include the configuration information of the path points, and the time information generated according to the kinematic model; generating the U-turn reference trajectory of the target vehicle according to the trajectory points.
[0011] In combination with the fifth possible implementation of the first aspect, an embodiment of the present invention provides a sixth possible implementation of the first aspect, wherein the step of performing dynamic obstacle collision detection on the U-turn reference trajectory includes: obtaining dynamic obstacle information contained in the U-turn area at the current moment, wherein the dynamic obstacle information includes a predicted trajectory of the dynamic obstacle and envelope information of the dynamic obstacle; the predicted trajectory of the dynamic obstacle is generated based on the motion state of the obstacle after the target vehicle detects the dynamic obstacle; judging whether the envelope information of the target vehicle overlaps with the envelope information of the dynamic obstacle when the target vehicle travels along the U-turn reference trajectory and the dynamic obstacle travels according to the predicted trajectory; if not, determining that the dynamic obstacle collision detection of the U-turn reference trajectory passes.
[0012] In combination with the sixth possible implementation of the first aspect, an embodiment of the present invention provides a seventh possible implementation of the first aspect, wherein the above method also includes: if the dynamic obstacle collision detection of the U-turn reference trajectory fails, marking the overlapping position of the envelope information of the target vehicle and the envelope information of the dynamic obstacle as a collision point; taking the current position of the target vehicle as the starting point, the collision point is the parking position to control the target vehicle to slow down.
[0013] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides an eighth possible implementation of the first aspect, wherein the above method also includes: during the driving of the target vehicle, if the driving reference line does not include a U-turn area, controlling the target vehicle to drive along the driving reference line to the target point.
[0014] In a second aspect, an embodiment of the present invention further provides a U-turn trajectory planning device, comprising: a monitoring module, used to monitor whether the target vehicle travels to a U-turn area during the driving process of the target vehicle; a first generating module, used to generate a circular arc curve matching the target vehicle according to the U-turn area when the monitoring result of the monitoring module is yes; a first detection module, used to perform static obstacle collision detection on the circular arc curve, and if the detection passes, the circular arc curve is determined as a target circular arc curve; a second generating module, used to obtain the current self-vehicle positioning information of the target vehicle, and generate a U-turn reference trajectory of the target vehicle according to the self-vehicle positioning information and the target circular arc curve; a second detection module, used to perform dynamic obstacle collision detection on the U-turn reference trajectory, and if the detection passes, the U-turn reference trajectory is determined as the U-turn trajectory of the target vehicle, so that the target reference vehicle makes a U-turn based on the U-turn trajectory.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to perform the method described in the first aspect.
[0017] The embodiments of the present invention bring the following beneficial effects:
[0018] The U-turn trajectory planning method and device provided by the embodiment of the present invention can generate an arc curve matching the target vehicle according to the U-turn area when the target vehicle is detected to be traveling to the U-turn area during the driving process; then perform static obstacle collision detection on the arc curve, and determine the arc curve as the target arc curve if the detection passes; and further obtain the current vehicle positioning information of the target vehicle, and generate the U-turn reference trajectory of the target vehicle according to the vehicle positioning information and the target arc curve; after the U-turn reference trajectory passes the dynamic obstacle collision detection, the U-turn reference trajectory can be determined as the U-turn trajectory of the target vehicle, so that the target reference vehicle can make a U-turn based on the U-turn trajectory. The entire U-turn trajectory planning process uses the optimization method of the arc curve, which can automatically find the U-turn starting point of the target vehicle, which is not only highly real-time, but also highly flexible, and does not require the target vehicle to perform parking planning, effectively ensuring the operating efficiency of the target vehicle.
[0019] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 A flow chart of a method for planning a U-turn trajectory provided by an embodiment of the present invention;
[0023] Figure 2 A flowchart of another method for planning a U-turn trajectory provided by an embodiment of the present invention;
[0024] Figure 3 A driving route map of a U-turn area provided by an embodiment of the present invention;
[0025] Figure 4 Another driving route map of a U-turn area provided by an embodiment of the present invention;
[0026] Figure 5 A schematic diagram of a U-turn trajectory planning device provided by an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] At present, the U-turn planning of autonomous driving vehicles is mostly based on reference lines, or mostly based on open space planning methods. However, although the planning method based on reference lines does not require special processing for U-turn scenarios, it will result in a fixed U-turn route. When a long-term static obstacle appears on the U-turn route in a narrow road, only the obstacle-stopping strategy can be adopted, which seriously affects the operating efficiency. Although the planning method based on open space can adapt to more complex environments, the search-based heuristic method is often time-consuming and related to the size of the open space. In addition, all static obstacles must be considered in the optimization, which is often time-consuming and difficult to meet real-time planning. If a pre-stop planning method is adopted, it will also affect the operating efficiency. Based on this, a U-turn trajectory planning method and device provided in an embodiment of the present invention can effectively alleviate the above-mentioned technical problems.
[0030] To facilitate understanding of this embodiment, a U-turn trajectory planning method disclosed in an embodiment of the present invention is first introduced in detail.
[0031] In a possible implementation, an embodiment of the present invention provides a U-turn trajectory planning method, which is applied to an autonomous driving vehicle and is used to enable the autonomous driving vehicle to effectively perform a U-turn task on a public road. Specifically, Figure 1 A flow chart of a method for planning a U-turn trajectory is shown, the method comprising the following steps:
[0032] Step S102, monitoring whether the target vehicle travels to a U-turn area during the driving process of the target vehicle;
[0033] Step S104, if yes, generating an arc curve matching the target vehicle according to the U-turn area;
[0034] In actual use, the target vehicle in the embodiments of the present invention generally refers to an autonomous driving vehicle, including private cars, work vehicles on public roads, etc., and in order to realize the autonomous driving function of the target vehicle, usually, an intelligent operating system and information collection equipment matching the intelligent operating system are provided on the target vehicle, such as video cameras, radar sensors, and laser rangefinders, etc., so that the target vehicle can rely on the coordinated cooperation of artificial intelligence, visual computing, radar, monitoring devices, and positioning systems to realize automatic and safe operation of motor vehicles to realize autonomous driving without any active human operation.
[0035] Furthermore, according to the above-mentioned intelligent operating system, the target vehicle can plan its route based on pre-stored map information, and continuously collect surrounding environmental information during driving to understand surrounding traffic conditions, etc. Therefore, in the above-mentioned step S102, it is possible to monitor whether the target vehicle reaches a U-turn area during driving, and, in step S104, generate an arc curve.
[0036] In specific implementation, the arc curve in the above step S104 is usually generated based on the U-turn area. The target vehicle can obtain detailed geographical information of the U-turn area based on the pre-stored map information, such as the diameter information and area size of the U-turn area, and generate the above arc curve in combination with the occupied space of the target vehicle itself. For example, a semicircle can be drawn based on the diameter information of the U-turn area, and then the semicircle is used as the arc curve in this application, etc. In addition, the arc curve can also be generated based on the area size of the U-turn area and the overall area of the open area where it is located, etc., which can be set according to the actual use situation, and the embodiment of the present invention does not limit this.
[0037] Step S106, performing static obstacle collision detection on the circular arc curve, and if the detection passes, determining the circular arc curve as the target circular arc curve;
[0038] In specific implementation, the static obstacle collision detection process in this step is actually a pre-judgment process, which is used to determine whether the target vehicle will collide with the static obstacle on the circular curve when traveling along the circular curve. Since the circular curve is generated in the above step S104 based on the target vehicle traveling to the U-turn area, it is actually a process of constantly trying to find the starting point of the U-turn. Therefore, when generating the circular curve, the problem of surrounding obstacles is not considered, but the above step S106 and the collision detection process of the following step S110 are further used to further determine whether the generated circular curve can be used as a U-turn trajectory.
[0039] Step S108, obtaining the current vehicle positioning information of the target vehicle, and generating a U-turn reference trajectory of the target vehicle according to the vehicle positioning information and the target arc curve;
[0040] Step S110, performing a dynamic obstacle collision detection on the U-turn reference trajectory, if the detection passes, the U-turn reference trajectory is determined as the U-turn trajectory of the target vehicle, so that the target reference vehicle performs a U-turn based on the U-turn trajectory.
[0041] In actual use, the arc curve generated in step S104 is usually used as a heuristic result to determine whether the arc curve will collide with a static obstacle in step S106. If it collides, then this point should not be used as the starting point of the U-turn, that is, if the static obstacle collision detection in step S106 fails, then the vehicle still drives along the existing driving reference line. If it passes, it means that the arc curve is temporarily safe, and the arc curve is used as a warm start of the subsequent optimization method, that is, the above steps S108 and S110 are continued to be executed, so as to further optimize the U-turn trajectory.
[0042] The method for planning a U-turn trajectory provided by an embodiment of the present invention can generate an arc curve matching the target vehicle according to the U-turn area when the target vehicle is detected to be traveling to the U-turn area during the driving process; then perform static obstacle collision detection on the arc curve, and determine the arc curve as the target arc curve if the detection passes; and further obtain the current vehicle positioning information of the target vehicle, and generate a U-turn reference trajectory of the target vehicle according to the vehicle positioning information and the target arc curve; after the U-turn reference trajectory passes the dynamic obstacle collision detection, the U-turn reference trajectory can be determined as the U-turn trajectory of the target vehicle, so that the target reference vehicle makes a U-turn based on the U-turn trajectory. The entire U-turn trajectory planning process uses an arc curve optimization method, which can automatically find the U-turn starting point of the target vehicle, which is not only highly real-time, but also highly flexible, and does not require the target vehicle to perform parking planning, effectively ensuring the operating efficiency of the target vehicle.
[0043] In actual use, the target vehicle first drives on the road according to a pre-planned driving reference line. The driving reference line is usually a driving route from a starting point to a target point generated by the target vehicle based on map information. If there is no need to turn around on the driving reference line, the target vehicle directly drives to the target point along the driving reference line. If there is an area on the driving reference line that requires a U-turn, the U-turn trajectory planning process can be performed according to the U-turn trajectory planning method provided in an embodiment of the present invention.
[0044] Therefore, the U-turn trajectory planning method provided by the embodiment of the present invention further includes the following steps:
[0045] (1) Obtaining pre-set map information;
[0046] Among them, the map information carries road environment information of a preset area; usually, the map information refers to a high-precision map pre-stored for the target vehicle, including detailed road environment information, such as road conditions, traffic facilities, landforms, and even weather conditions, as well as traffic activities of other traffic participants, etc.
[0047] (2) generating a driving reference line for the target vehicle based on the map information and the preset starting point and target point of the target vehicle, so that the target vehicle travels from the starting point to the target point along the driving reference line;
[0048] The driving reference line includes the road information from the starting point to the target point, such as the actual route from the starting point to the target point, the alternative routes, and the road environment information on each route.
[0049] (3) judging whether the driving reference line contains a U-turn area based on the road information;
[0050] (4) If yes, during the driving process of the target vehicle, monitor whether the target vehicle drives to the boundary of the U-turn area; if yes, determine that the target vehicle drives to the U-turn area.
[0051] Furthermore, during the driving process of the target vehicle, if the driving reference line does not include a U-turn area, the target vehicle is controlled to drive along the driving reference line to the target point. If there is a U-turn area and the target vehicle has not driven to the boundary of the U-turn area, the target vehicle will continue to drive along the driving reference line until it reaches the boundary of the U-turn area. After the target vehicle reaches the boundary of the U-turn area, the U-turn trajectory planning method recorded in the embodiment of the present invention can be used to plan the U-turn trajectory, that is, after entering the U-turn area, a circular arc curve matching the target vehicle is generated.
[0052] In actual use, for the above circular arc curve, when generating a U-turn trajectory, it is necessary to first discretize the circular arc curve to generate a path point set corresponding to the circular arc curve, and then further generate the U-turn trajectory based on the path point set.
[0053] The path point set of the circular arc curve includes multiple path points on the circular arc curve, that is, the continuous circular arc curve is discretized into multiple path points, each path point carries position information, specifically, the position information of each path point includes at least one of the following information: the position information of the path point, the curvature information of the path point, etc., wherein the position information of the path point further includes the coordinates and the heading angle of the path point. After the circular arc curve is discretized into multiple path points, the subsequent U-turn trajectory can be further generated.
[0054] For ease of understanding, Figure 1 On the basis of Figure 2 A flowchart of another method for planning a U-turn trajectory is also shown, and the planning process of the U-turn trajectory is further explained. Figure 2 As shown, the following steps are included:
[0055] Step S202, monitoring whether the target vehicle reaches a U-turn area during the driving process of the target vehicle; if yes, executing step S204;
[0056] Step S204, generating an arc curve matching the target vehicle according to the U-turn area;
[0057] Among them, the process of step S202 and step S204 is consistent with the above-mentioned step S102 and step S104, and will not be repeated again.
[0058] Step S206, whether the static obstacle collision detection of the arc curve passes, if yes, execute step S208, if no, execute step S222;
[0059] Among them, the static obstacle collision detection in this step is actually to judge whether the target vehicle will collide with the static obstacle based on the arc curve. If a collision occurs, the arc curve at this location should not be used as the starting point of the U-turn curve, and the target vehicle still travels along the driving reference line. If it is safe, that is, the static obstacle collision detection passes, then continue to execute the following steps.
[0060] Specifically, the process of performing static obstacle collision detection on the arc curve generally includes the following steps:
[0061] (1) Obtaining the obstacle information contained in the pre-stored U-turn area;
[0062] The obstacle information obtained in this step is usually provided by the obstacle monitoring system of the target vehicle. Specifically, the obstacle information may be obstacle information pre-input by the driver based on driving experience, including the specific geographical location of the static obstacle, and the envelope information of the obstacle, etc. In addition, it may also be static obstacle information collected by the monitoring system of the vehicle through visual observation, such as a video camera, a radar sensor, and a laser rangefinder, etc., and input into the obstacle monitoring system for static obstacle collision detection. The specific obstacle information acquisition method may be set according to actual usage, and the embodiment of the present invention does not limit this.
[0063] (2) Determine whether the area where the circular arc curve is located contains a static obstacle based on the obstacle information; if not, directly determine that the static obstacle collision detection of the circular arc curve has passed; if yes, further extract the envelope information of the static obstacle; and determine whether the envelope information of the static obstacle overlaps with the pre-stored envelope information of the target vehicle when the target vehicle travels along the circular arc curve to the position corresponding to the static obstacle; if not, it means that it is safe even if there is a static obstacle, that is, the static obstacle collision detection of the circular arc curve has passed. If yes, it means that the target vehicle will collide with the static obstacle, that is, the static obstacle collision detection of the circular arc curve has not passed. At this time, step S222 will also be executed, that is, if the static obstacle collision detection of the circular arc curve has not passed, the target vehicle is controlled to continue to travel along the driving reference line.
[0064] Step S208, determining the arc curve as the target arc curve;
[0065] Step S210, obtaining the current vehicle positioning information of the target vehicle, and extracting the current state information of the target vehicle included in the vehicle positioning information;
[0066] The state information in the embodiment of the present invention includes at least one of the following information: the current positioning coordinates, orientation information, speed information and steering wheel angle of the target vehicle; wherein the orientation information refers to the orientation angle of the target vehicle, and the speed information includes speed and acceleration.
[0067] Step S212, generating a trajectory point corresponding to each path point in the target arc curve based on the state information and a preset kinematic model;
[0068] Among them, the trajectory points include the configuration information of the path points and the time information generated according to the kinematic model;
[0069] Step S214, generating a U-turn reference trajectory of the target vehicle according to the trajectory points;
[0070] Specifically, in an embodiment of the present invention, the path point is the discretization result of the circular arc curve, and each path point can be represented by a vector, for example, a posture vector (x, y, theta, kappa), wherein x, y are the two-dimensional coordinates of the path point, theta is the orientation of the vehicle when the target vehicle reaches the path point, and kappa is the curvature of the position of the path point. In combination with the above-mentioned path points, as well as the current positioning coordinates, orientation information, speed information and steering wheel angle of the target vehicle, trajectory points with time information can be generated according to the kinematic model constraints. In actual use, the above-mentioned process of generating trajectory points is actually an optimization problem, and its optimization variable is the trajectory point. Each path point in the target circular arc curve obtained above is the hot start of the optimization problem, and then the trajectory point with time information is generated according to the kinematic model constraints, and at the same time, the posture of each trajectory point is as close to the path point as possible. Furthermore, the state of each generated trajectory point can be expressed as (x, y, theta, v, steer, a, t), where x, y, theta are consistent with the path point, and can also be understood as the position of the state in the map coordinate system, v is the linear velocity of the trajectory point, steer is the front wheel angle, a is the acceleration, and t is the time to reach the trajectory point. Each trajectory starts from 0. At this time, a loss function is also required for constraint, where the loss function is the deviation of the coordinates of each trajectory point and the corresponding path point, and the similarity between the linear velocity of each trajectory point and the reference velocity of the target vehicle. Further considering that the generated trajectory point cannot exceed the boundary of the U-turn area, the above optimization problem of generating trajectory points also needs to use a constraint function, where the constraint function is that each trajectory point needs to satisfy the vehicle dynamics parameters, and each trajectory point cannot exceed the boundary of the U-turn area, so as to generate the above trajectory points by using this optimization problem.
[0071] In specific implementation, the optimization algorithm used for the above kinematic model and trajectory point optimization problem can be implemented with reference to related technologies, and the embodiment of the present invention does not limit this.
[0072] Step S216, whether the dynamic obstacle collision detection of the U-turn reference trajectory passes, if yes, execute step S218, if not, execute step S220.
[0073] Among them, the dynamic obstacle collision detection in step S216 is actually to detect whether the envelopes generated by the target vehicle and the dynamic obstacle on their respective trajectories overlap. Since the trajectory points for generating the U-turn reference trajectory are accompanied by time information, that is, each trajectory point has a relative time, it is possible to check whether the envelopes of the target vehicle and the dynamic obstacle overlap according to the corresponding time.
[0074] Specifically, the dynamic obstacle collision detection process includes the following steps:
[0075] (1) Obtaining the dynamic obstacle information contained in the U-turn area at the current moment;
[0076] The dynamic obstacle information in the embodiment of the present invention includes the predicted trajectory of the dynamic obstacle and the envelope information of the dynamic obstacle; and the predicted trajectory of the dynamic obstacle is generated based on the motion state of the obstacle after the target vehicle detects the dynamic obstacle; specifically, the dynamic obstacle information in this step is usually also provided by the obstacle monitoring system of the target vehicle. For example, when the target vehicle is driving, the dynamic obstacles around the target vehicle can be monitored by a video camera, a radar sensor, a laser rangefinder, etc., and then the predicted trajectory of the dynamic obstacle on the current road is predicted based on the motion speed of the dynamic obstacle, and the predicted trajectory is saved so as to provide the required dynamic obstacle information when performing dynamic obstacle collision detection.
[0077] (2) Determine whether the envelope information of the target vehicle overlaps with the envelope information of the dynamic obstacle when the target vehicle travels along the U-turn reference trajectory and the dynamic obstacle travels along the predicted trajectory; if not, determine that the dynamic obstacle collision detection of the U-turn reference trajectory passes; at this time, continue to execute the following step S218; if yes, it means that the target vehicle will collide with the dynamic obstacle when traveling along the U-turn reference trajectory, and at this time, it also means that the dynamic obstacle collision detection fails, and then continue to execute the process of step S210.
[0078] Step S218, determining the U-turn reference trajectory as the U-turn trajectory of the target vehicle, so that the target reference vehicle performs a U-turn based on the U-turn trajectory;
[0079] Step S220, rewriting the parking speed according to the collision position.
[0080] Specifically, step S220 is performed when the dynamic obstacle collision detection fails, that is, if the dynamic obstacle collision detection of the U-turn reference trajectory fails, at this time, the overlapping position of the envelope information of the target vehicle and the envelope information of the dynamic obstacle can be marked as the collision point; then the current position of the target vehicle is used as the starting point, and the collision point is used as the parking position to control the target vehicle to decelerate. For example, when it is determined that the target vehicle will collide with the dynamic obstacle, the collision point can be used as the parking position, and the position of the target vehicle can be used as the starting point to control the target vehicle to rewrite the speed according to the uniform deceleration movement until the target vehicle stops, and then a prompt is issued to the driver or the controller of the target vehicle to intervene in the driving process of the target vehicle.
[0081] For ease of understanding, Figure 3 A driving route map of a U-turn area is shown, and a target vehicle is an unmanned urban sanitation vehicle as an example for explanation, and it is assumed that the dotted line is a pre-planned driving reference line of the target vehicle.
[0082] Before entering the U-turn area, the target vehicle travels along the driving reference line shown by the dotted line. Without U-turn planning, when the target vehicle is traveling along the driving reference line, it encounters the stationary obstacles obs1 and obs2, which will completely block the target vehicle, thereby triggering the target vehicle to stop. If the obstacle remains stationary for a long time, the target vehicle will be stuck here until the driver or control personnel intervene manually. Even if the open space planning is triggered at this time, it will still affect the operating efficiency of the target vehicle.
[0083] further, Figure 4 Another driving route map of a U-turn area is shown, showing the driving situation of the target vehicle in the U-turn area after using the U-turn trajectory planning method provided by an embodiment of the present invention. Specifically, Figure 4 As shown, at time T1, after the target vehicle enters the U-turn area, it starts to try to turn around and generates arc path1. Path1 fails the collision detection because it collides with obstacle obs3. At this time, it continues to drive along the driving reference line and continues to try to turn around at time T2 to generate arc path2. At this time, the collision detection passes, and the U-turn trajectory is optimized, trajectory points are generated, and finally a U-turn trajectory is generated. Therefore, the U-turn trajectory planning method provided by the embodiment of the present invention will continuously try the U-turn trajectory in the U-turn area, and the U-turn trajectory will be optimized as long as a collision-free route appears, that is, the original driving reference curve, so as to avoid the occurrence of Figure 3 The situation where the road is blocked by a long-term stationary obstacle.
[0084] In summary, the U-turn trajectory planning method provided by the embodiment of the present invention is actually a flexible and efficient U-turn method, which can not only meet the needs of real-time planning, but also retain the original driving reference line as redundancy for lightweight optimization problems, support continuous attempts, and realize adaptive U-turn.
[0085] In another possible implementation, the embodiment of the present invention provides a U-turn trajectory planning device, such as Figure 5 A schematic diagram of a U-turn trajectory planning device is shown, the device comprising:
[0086] A monitoring module 50, used for monitoring whether the target vehicle travels to a U-turn area during the driving process of the target vehicle;
[0087] A first generating module 52, for generating a circular arc curve matching the target vehicle according to the U-turn area when the monitoring result of the monitoring module is yes;
[0088] A first detection module 54 is used to perform static obstacle collision detection on the circular arc curve, and if the detection passes, the circular arc curve is determined as a target circular arc curve;
[0089] A second generating module 56 is used to obtain the current vehicle positioning information of the target vehicle, and generate a U-turn reference trajectory of the target vehicle according to the vehicle positioning information and the target arc curve;
[0090] The second detection module 58 is used to perform dynamic obstacle collision detection on the U-turn reference trajectory. If the detection passes, the U-turn reference trajectory is determined as the U-turn trajectory of the target vehicle, so that the target reference vehicle performs a U-turn based on the U-turn trajectory.
[0091] The U-turn trajectory planning device provided in the embodiment of the present invention has the same technical features as the U-turn trajectory planning method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0092] Furthermore, an embodiment of the present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement Figure 1 or Figure 2 The method shown.
[0093] Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement Figure 1 or Figure 2 The method shown.
[0094] Furthermore, an embodiment of the present invention also provides a schematic diagram of the structure of an electronic device, such as Figure 6 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 61 and a memory 60, the memory 60 stores computer executable instructions that can be executed by the processor 61, and the processor 61 executes the computer executable instructions to implement the above-mentioned U-turn trajectory planning method.
[0095] exist Figure 6 In the illustrated embodiment, the electronic device further includes a bus 62 and a communication interface 63 , wherein the processor 61 , the communication interface 63 and the memory 60 are connected via the bus 62 .
[0096] Among them, the memory 60 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 62 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 62 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] The processor 61 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 61 or the instructions in the form of software. The above processor 61 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 61 reads the information in the memory and completes the U-turn trajectory planning method of the aforementioned embodiment in combination with its hardware.
[0098] The computer program product of the U-turn trajectory planning method and device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0100] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0101] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0102] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0103] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and 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 planning method, characterized in that: include: During the driving process of the target vehicle, monitoring whether the target vehicle drives to a U-turn area; If yes, a circular arc curve matching the target vehicle is generated according to the U-turn area; wherein the target vehicle obtains detailed geographic information of the U-turn area according to pre-stored map information and generates the circular arc curve in combination with the occupied space of the target vehicle itself; Performing static obstacle collision detection on the circular arc curve, and if the detection passes, determining the circular arc curve as a target circular arc curve; Acquire the current self-vehicle positioning information of the target vehicle, and generate a U-turn reference trajectory of the target vehicle according to the self-vehicle positioning information and the target arc curve; A dynamic obstacle collision detection is performed on the U-turn reference trajectory. If the detection passes, the U-turn reference trajectory is determined as the U-turn trajectory of the target vehicle, so that the target vehicle performs a U-turn based on the U-turn trajectory.
2. The method according to claim 1, characterized in that The method further comprises: Acquiring preset map information, wherein the map information carries road environment information of a preset area; Generate a driving reference line for the target vehicle based on the map information and the preset starting point and target point of the target vehicle, so that the target vehicle travels from the starting point to the target point along the driving reference line; wherein the driving reference line includes road information from the starting point to the target point; Determining whether the driving reference line includes a U-turn area according to the road information; If yes, monitoring whether the target vehicle reaches the boundary of the U-turn area during the driving of the target vehicle; If yes, it is determined that the target vehicle travels to the U-turn area.
3. The method according to claim 1, characterized in that After generating a circular arc curve matching the target vehicle according to the U-turn area, the method further includes: The circular arc curve is discretized to generate a path point set corresponding to the circular arc curve; wherein the path point set includes multiple path points on the circular arc curve, each of the path points carries configuration information, and the configuration information includes at least one of the following information: posture information of the path point and curvature information of the path point.
4. The method according to claim 2, characterized in that The step of performing static obstacle collision detection on the arc curve comprises: Obtaining pre-stored obstacle information contained in the U-turn area; Determining whether the area where the arc curve is located contains a static obstacle according to the obstacle information; If not, determining that the static obstacle collision detection of the circular arc curve passes; If yes, extracting envelope information of the static obstacle; Determining whether the envelope information of the static obstacle overlaps with the pre-stored envelope information of the target vehicle when the target vehicle travels along the circular arc curve to the position corresponding to the static obstacle; If not, it is determined that the static obstacle collision detection of the circular arc curve passes.
5. The method according to claim 4, characterized in that The method further comprises: If the static obstacle collision detection of the circular arc curve fails, the target vehicle is controlled to continue traveling along the driving reference line.
6. The method according to claim 3, characterized in that The step of generating a U-turn reference trajectory of the target vehicle according to the self-vehicle positioning information and the target arc curve comprises: Extracting the state information of the target vehicle at the current moment included in the self-vehicle positioning information, wherein the state information includes at least one of the following information: the current positioning coordinates, orientation information, speed information and steering wheel angle of the target vehicle; Generate a trajectory point corresponding to each of the path points in the target arc curve based on the state information and a preset kinematic model; wherein the trajectory point includes the configuration information of the path point and time information generated according to the kinematic model; A U-turn reference trajectory of the target vehicle is generated according to the trajectory points.
7. The method according to claim 6, characterized in that The step of performing dynamic obstacle collision detection on the U-turn reference trajectory comprises: Acquiring dynamic obstacle information contained in the U-turn area at the current moment, wherein the dynamic obstacle information includes a predicted trajectory of the dynamic obstacle and envelope information of the dynamic obstacle; the predicted trajectory of the dynamic obstacle is generated based on the motion state of the obstacle after the target vehicle detects the dynamic obstacle; Determining whether the envelope information of the target vehicle overlaps with the envelope information of the dynamic obstacle when the target vehicle travels along the U-turn reference trajectory and the dynamic obstacle travels according to the predicted trajectory; If not, it is determined that the dynamic obstacle collision detection of the U-turn reference trajectory passes.
8. The method according to claim 7, characterized in that The method further comprises: If the dynamic obstacle collision detection of the U-turn reference trajectory fails, marking the overlapping position of the envelope information of the target vehicle and the envelope information of the dynamic obstacle as a collision point; The target vehicle is controlled to decelerate by taking the current position of the target vehicle as the starting point and the collision point as the parking position.
9. The method according to claim 2, characterized in that: The method further comprises: During the driving process of the target vehicle, if the driving reference line does not include a U-turn area, the target vehicle is controlled to drive along the driving reference line to the target point.
10. A U-turn trajectory planning device, characterized in that: include: A monitoring module, used for monitoring whether the target vehicle has traveled to a U-turn area during the driving process of the target vehicle; A first generating module, for generating a circular arc curve matching the target vehicle according to the U-turn area when the monitoring result of the monitoring module is yes; wherein the target vehicle obtains detailed geographical information of the U-turn area according to pre-stored map information, and generates the circular arc curve in combination with the occupied space of the target vehicle itself; A first detection module is used to perform static obstacle collision detection on the circular arc curve, and if the detection passes, the circular arc curve is determined as a target circular arc curve; The second generating module is used to obtain the current vehicle positioning information of the target vehicle, and generate a U-turn reference trajectory of the target vehicle according to the vehicle positioning information and the target circular arc curve; The second detection module is used to perform dynamic obstacle collision detection on the U-turn reference trajectory. If the detection passes, the U-turn reference trajectory is determined as the U-turn trajectory of the target vehicle, so that the target vehicle performs a U-turn based on the U-turn trajectory.
