Collision detection method, control device, readable storage medium and driving equipment

By obtaining the horizontal and vertical coupling trajectories and obstacle prediction trajectories in the Cartesian coordinate system, conducting time dimension collision checks, and combining cubic spline curve fitting and the separation axis theorem, the problems caused by the shape deformation of obstacles in the horizontal and vertical decoupling planning are solved. The problem of false collisions and missed collisions improves the trajectory safety of autonomous driving equipment.

CN118107575BActive Publication Date: 2024-08-30NEOLIX TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410537674.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-30
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

In the existing technology, horizontally and vertically decoupled trajectory planning causes the shape of obstacles to deform during collision inspection, leading to false collisions and missed collisions, affecting trajectory safety.

Method used

Obtain the horizontal and vertical coupling planning trajectory and obstacle prediction trajectory in the Cartesian coordinate system, perform collision detection based on the time dimension, use cubic spline curves to fit the trajectory, and combine the separation axis theorem for accurate collision detection.

Benefits of technology

It ensures the accuracy of the shapes of obstacles and driving equipment, avoids false collision problems, improves the safety of trajectory planning, and obtains more accurate collision detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118107575B
    Figure CN118107575B
Patent Text Reader

Abstract

The present application relates to the field of autonomous driving technology, and specifically provides a collision check method, a control device, a readable storage medium, and a driving device, aiming to solve the problem of how to effectively perform collision checks on trajectory planning results under Cartesian coordinates, thereby improving the safety of the trajectory. To this end, the present application obtains the transverse and longitudinal coupling planning trajectory of the driving device under the Cartesian coordinate system, as well as the obstacles and obstacle prediction trajectories of the driving device within a preset inspection boundary, performs a time-based collision check on the transverse and longitudinal coupling planning trajectory and the obstacle prediction trajectory, and obtains a collision check result, which can ensure the accuracy of the obstacle shape and the shape of the driving device during the collision check, obtain a more accurate collision detection result, avoid the possible false collision problem of the transverse and longitudinal coupling planning trajectory, and improve the safety of the driving device trajectory planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and specifically provides a collision detection method, a control device, a readable storage medium and a driving device. Background Art

[0002] In unmanned driving technology, how to judge whether an unmanned vehicle collides with an obstacle during driving is very important and is an important part of motion planning. It is the basis for ensuring the safe driving of unmanned vehicles.

[0003] Decoupled lateral and longitudinal trajectory planning refers to dividing the vehicle's motion trajectory planning into two independent sub-problems: lateral motion and longitudinal motion, and planning them separately to achieve more efficient vehicle planning, but this simplification of the problem often leads to a reduction in safety.

[0004] Decoupled lateral and longitudinal collision checking refers to independent collision detection for lateral and longitudinal motions during the trajectory planning process of a vehicle or robot. This method allows the problem of collision detection in time and space to be decomposed into two relatively simple sub-problems, allowing the collision risks in two directions to be considered separately. Although this method better combines vehicle motion with the coordinate system, it also leads to a certain degree of lack of planning safety. This is because the shape of obstacles is usually approximated by obstacle corner points, and in the SL coordinate system, since the coordinate axis is a curved axis, in the case of curved driving, only sampling corner points to represent the shape of obstacles will cause serious deformation of the obstacle shape. This deformation will cause certain false collisions and missed collisions in collision checks. False collisions are generally not a concern, but missed collisions have a greater impact and will have a greater impact on the safety of the trajectory.

[0005] Accordingly, the art needs a new collision checking solution to solve the above problems. Summary of the invention

[0006] In order to overcome the above-mentioned defects, the present application is proposed to provide a solution or at least partially solve the problem of how to effectively perform collision check on trajectory planning results under Cartesian coordinates, thereby improving the safety of the trajectory.

[0007] In a first aspect, the present application provides a collision detection method, which is applied to a driving device, and comprises:

[0008] Obtaining a lateral and longitudinal coupled planning trajectory of the driving device in a Cartesian coordinate system;

[0009] Obtaining obstacles within a preset inspection boundary range of the driving device and obstacle prediction trajectories of the obstacles in a Cartesian coordinate system;

[0010] According to the lateral and longitudinal coupled planned trajectory and the obstacle predicted trajectory, a collision check based on the time dimension is performed to obtain a collision check result.

[0011] In a technical solution of the above-mentioned collision checking method, the step of obtaining the lateral and longitudinal coupled planning trajectory of the driving device in a Cartesian coordinate system includes:

[0012] Performing trajectory planning on the driving device to obtain a lateral trajectory planning result and a longitudinal trajectory planning result in an SL coordinate system;

[0013] Performing trajectory sampling based on a preset time interval on the lateral trajectory planning result and the longitudinal trajectory planning result respectively, so as to obtain a lateral trajectory sampling result and a longitudinal trajectory sampling result respectively;

[0014] Trajectory coupling is performed according to the lateral trajectory sampling result and the longitudinal trajectory sampling result to obtain the lateral and longitudinal coupled planning trajectory.

[0015] In a technical solution of the above-mentioned collision checking method, performing trajectory coupling according to the lateral trajectory sampling result and the longitudinal trajectory sampling result to obtain the lateral and longitudinal coupled planning trajectory includes:

[0016] According to the lateral trajectory sampling result, a cubic spline curve is applied for fitting to obtain a lateral path fitting result of the driving device;

[0017] According to the longitudinal trajectory sampling result, a cubic spline curve is applied for fitting to obtain a longitudinal trajectory fitting result of the driving device;

[0018] The lateral path fitting result and the longitudinal trajectory fitting result are coupled to obtain the lateral and longitudinal coupled planning trajectory.

[0019] In a technical solution of the above-mentioned collision checking method, the step of obtaining obstacles of the driving device within a preset checking boundary range includes:

[0020] According to the current movement speed of the driving device, obtaining the inspection boundary range;

[0021] Obstacles within the inspection boundary range are acquired according to the inspection boundary range and the inspection time interval of the obstacle.

[0022] In a technical solution of the above-mentioned collision checking method, obtaining the checking boundary range according to the current moving speed of the driving device includes:

[0023] According to the current movement speed of the driving device, the time and distance required for the driving device to uniformly decelerate and stop at a preset acceleration are obtained;

[0024] The inspection boundary range is acquired according to the time and the distance.

[0025] In a technical solution of the above collision checking method, the method further comprises setting a checking time interval according to the following steps:

[0026] Setting the inspection time interval according to the volume of the obstacle;

[0027] Wherein, the volume is proportional to the inspection time interval.

[0028] In a technical solution of the above-mentioned collision check method, performing a collision check based on the time dimension according to the lateral and longitudinal coupling planned trajectory and the obstacle predicted trajectory to obtain a collision check result includes:

[0029] For each obstacle, the obstacle prediction trajectory of the obstacle at each moment and the horizontal and vertical coupling planning trajectory at the corresponding moment are respectively converted into two-dimensional polygons;

[0030] A collision check is performed based on the converted two-dimensional polygon to obtain the collision check result.

[0031] In a technical solution of the above-mentioned collision check method, performing collision check according to the converted two-dimensional polygon to obtain the collision check result includes:

[0032] According to the two-dimensional polygon, based on the separating axis theorem, a collision check is performed to obtain a collision check result.

[0033] In a technical solution of the above-mentioned collision checking method, the method further includes:

[0034] When the inspection result shows that there is a collision, the trajectory of the driving device is replanned.

[0035] In a second aspect, a control device is provided, which includes at least one processor and at least one storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the collision checking method described in any one of the technical solutions of the above-mentioned collision checking method.

[0036] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute the collision checking method described in any one of the technical solutions of the above-mentioned collision checking method.

[0037] In a fourth aspect, a driving device is provided, the driving device comprising the control device described in the technical solution of the control device.

[0038] The above one or more technical solutions of the present application have at least one or more of the following beneficial effects:

[0039] In the technical solution for implementing the present application, the present application obtains the transverse and longitudinal coupling planning trajectory of the driving device in the Cartesian coordinate system, as well as the obstacles and obstacle prediction trajectories of the driving device within the preset inspection boundary range, and performs a collision check based on the time dimension on the transverse and longitudinal coupling planning trajectory and the obstacle prediction trajectory to obtain a collision check result. Through the above configuration, the present application can perform a collision check on the transverse and longitudinal coupling trajectory and the obstacle prediction trajectory in the Cartesian coordinate system, and can ensure the accuracy of the obstacle shape and the shape of the driving device during the collision check. Further, the transverse and longitudinal coupling trajectory and the obstacle prediction trajectory are subjected to a collision check based on the time dimension, and a more accurate collision detection result can be obtained, thereby avoiding the possible false collision problem of the transverse and longitudinal coupling planning trajectory and improving the safety of the driving device trajectory planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The disclosure of the present application will become easier to understand with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. Among them:

[0041] Figure 1 It is a schematic flow chart of the main steps of a collision checking method according to an embodiment of the present application;

[0042] Figure 2 It is a schematic diagram of the possible deformation of an object in the SL coordinate system;

[0043] Figure 3 It is a schematic flow chart of the main steps of a collision checking method according to an implementation method of an embodiment of the present application;

[0044] Figure 4 is a schematic diagram of a check boundary range for obtaining obstacles according to an implementation of an embodiment of the present application;

[0045] Figure 5 It is a schematic diagram of an application scenario according to an embodiment of the present application.

[0046] Reference numerals list :

[0047] 1: Driving equipment; 2: Obstacles. DETAILED DESCRIPTION

[0048] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.

[0049] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.

[0050] Here we first explain some terms involved in this application.

[0051] Cartesian coordinates (French: les coordonnées cartésiennes) is a general term for rectangular coordinates and oblique coordinates. Two number axes intersecting at the origin form a plane affine coordinate system.

[0052] The SL coordinate system is also called the frenet frame. It takes the road centerline as a reference, S represents the direction of the road centerline, and L represents the direction perpendicular to the road centerline.

[0053] The Separating Axis Theorem, abbreviated as SAT (Separating Axis Theorem), is a method used to determine whether two convex polygons collide.

[0054] A cubic spline is a smooth curve interpolation method commonly used in computer graphics, mathematical modeling, and engineering. It is a curve defined by a series of interpolation points, and is often used to create a continuous smooth curve between these points. The name of the cubic spline comes from its characteristic: it is composed of multiple cubic polynomial segments. The cubic spline has the following mathematical characteristics:

[0055] 1) Smoothness: The segments of the cubic spline curve have continuous first-order and second-order derivatives, so the curve is very smooth at the interpolation point without sharp inflection points.

[0056] 2) Interpolation: The cubic spline curve will pass through the given interpolation points, ensuring that the curve passes through these points.

[0057] 3) Segmentality: A cubic spline curve is usually composed of multiple adjacent cubic polynomial segments, each of which is defined between adjacent interpolation points.

[0058] The smoothness of the cubic spline curve can provide good second-order continuity for the fitting trajectory. This is reflected in the planned trajectory. On the one hand, it provides continuity of velocity and acceleration of the trajectory in the longitudinal direction, which can better meet the kinematic characteristics of the vehicle; on the other hand, it provides good smoothness for the lateral PATH curve.

[0059] The cubic spline curve can be calculated by the following process:

[0060] Assume that there are n + 1 known data points on the interval [a, b]. Divide into n subintervals, [x0,x1], [x1, x2], …, [xn-1, xn],

[0061] in

[0062]

[0063] For each subinterval, assume that the fitting function satisfies the following formula (1):

[0064] (1)

[0065] There are four unknowns in each subinterval, representing the coefficients of the fitting polynomial.

[0066] So there are a total of 4n unknown parameters that need to be solved.

[0067] Since all points on the curve in the entire interval [a, b] must satisfy the interpolation condition, the following formula (2) can be satisfied:

[0068] (2)

[0069] You can get Equations.

[0070] Due to the existence of the curve continuity condition, it means that at the endpoint The function values ​​on both sides are equal, as shown in formula (3):

[0071] (3)

[0072] So we can get Equations.

[0073] Since the curve is required to be smooth in the entire interval, it means that the first-order derivative and the second-order derivative on both sides of the endpoint exist and are equal, as shown in formula (4):

[0074] (4)

[0075] It is equivalent to formula (5)

[0076] (5)

[0077] A total of Equations.

[0078] The above can be obtained equations to be solved There are two unknowns and two equations are needed. You can consider adding endpoint boundary conditions. The following three boundary conditions are common.

[0079] 1. Natural boundary: The second-order derivative of the endpoint is required to be 0.

[0080] 2. Fixed boundary: artificially specify the first-order boundary value of the endpoint.

[0081] 3. Non-node boundary: Force the third-order derivative value of the first interpolation point to be equal to the third-order derivative value of the second point, and finally the third-order derivative value of the first point to be equal to the third-order derivative value of the second-to-last point.

[0082] then There are unknown Just combine the equations and solve them.

[0083] At present, the traditional trajectory planning with decoupled lateral and longitudinal motion is that the vehicle's motion trajectory planning is divided into two independent sub-problems: lateral motion and longitudinal motion, which are planned separately to achieve more efficient vehicle planning, but this simplification of the problem often leads to a reduction in safety.

[0084] Decoupled lateral and longitudinal collision checking refers to independent collision detection for lateral and longitudinal motions during the trajectory planning process of a vehicle or robot. This method allows the problem of collision detection in time and space to be decomposed into two relatively simple sub-problems, allowing the collision risks in two directions to be considered separately. Although this method better combines vehicle motion with the coordinate system, it also leads to a certain degree of lack of planning safety. This is because the shape of obstacles is usually approximated by obstacle corner points, and in the SL coordinate system, since the coordinate axes are curved axes, in the case of curved driving, only sampling corner points to represent the shape of obstacles will cause serious deformation of the obstacle shape. Please refer to the attached Figure 2 , Figure 2 This is a schematic diagram of the possible deformation of an object in the SL coordinate system. Figure 2 As shown, a rectangle that can be fully represented by corner points in the Cartesian coordinate system will have a large discrepancy between the represented shape and the actual shape in the SL coordinate system. This discrepancy will cause certain false collisions and missed collisions in the collision check. False collisions are generally not a concern, but missed collisions have a greater impact. This application mainly solves the missed collision problem caused in this scenario.

[0085] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart of the main steps of a collision checking method according to an embodiment of the present application. Figure 1 As shown, the collision checking method in the embodiment of the present application is applied to a driving device, and the collision checking method mainly includes the following steps S101 to S103.

[0086] Step S101: Obtain the lateral and longitudinal coupled planning trajectory of the driving device in the Cartesian coordinate system.

[0087] In this embodiment, the lateral and longitudinal coupling planning trajectory of the driving device in the Cartesian coordinate system can be obtained. Since the key to the collision check process is the geometric shape check, the shape of the driving device needs to be accurate and there should not be unreasonable deviation from the actual shape, so it is necessary to obtain the lateral and longitudinal coupling planning trajectory in the Cartesian coordinate system.

[0088] In one implementation, the driving device may be a smart car, an unmanned vehicle, or other device.

[0089] Step S102: Obtain obstacles within a preset inspection boundary range of the driving device and obstacle prediction trajectories of the obstacles in a Cartesian coordinate system.

[0090] In this embodiment, obstacles within a preset inspection boundary of the driving device can be obtained, and the obstacle prediction trajectory of the obstacle in a Cartesian coordinate system can be obtained. Similarly, in order to ensure the accuracy of the shape of the obstacle, the obstacle prediction trajectory also needs to be in a Cartesian coordinate system.

[0091] In one embodiment, the inspection boundary range may include a time range and a distance range, and the time range and the distance range may be determined based on the speed of the driving device itself. Generally speaking, the inspection boundary range is a range within which the driving device can stop safely at the current speed without collision.

[0092] Step S103: Perform a collision check based on the time dimension according to the lateral and longitudinal coupling planning trajectory and the obstacle prediction trajectory to obtain a collision check result.

[0093] In this embodiment, a collision check based on the time dimension may be performed according to the lateral and longitudinal coupling planning trajectory and the obstacle prediction trajectory in the Cartesian coordinate system, thereby obtaining a collision check result.

[0094] In one implementation, when the check result shows that there is a collision, it means that the trajectory planning result of the current driving device is not safe enough, and the trajectory planning of the driving device needs to be re-performed.

[0095] Based on the above steps S101 to S103, the embodiment of the present application obtains the transverse and longitudinal coupling planning trajectory of the driving device in the Cartesian coordinate system, as well as the obstacles and obstacle prediction trajectories of the driving device within the preset inspection boundary range, and performs a collision check based on the time dimension on the transverse and longitudinal coupling planning trajectory and the obstacle prediction trajectory to obtain a collision check result. Through the above configuration method, the embodiment of the present application can perform a collision check on the transverse and longitudinal coupling trajectory and the obstacle prediction trajectory in the Cartesian coordinate system, and can ensure the accuracy of the obstacle shape and the shape of the driving device during the collision check. Further, the transverse and longitudinal coupling trajectory and the obstacle prediction trajectory are subjected to a collision check based on the time dimension, and a more accurate collision detection result can be obtained, thereby avoiding the possible false collision problem of the transverse and longitudinal coupling planning trajectory and improving the safety of the driving device trajectory planning.

[0096] Steps S101 to S103 are further described below.

[0097] In one implementation of the embodiment of the present application, step S101 may further include the following steps S1011 to S1013:

[0098] Step S1011: Perform trajectory planning on the driving device to obtain the lateral trajectory planning results and the longitudinal trajectory planning results in the SL coordinate system.

[0099] In this embodiment, the driving device can be trajectory planned to generate a trajectory planning result with lateral and longitudinal decoupling in the SL coordinate system. The lateral trajectory planning result is the path that the driving device can travel, and the longitudinal trajectory planning result is the speed information such as the speed, acceleration, and rate of change of acceleration (jerk) of the driving device at a specified position on the path. The trajectory planning result can be ensured to be collision-free in the SL coordinate system by setting a safety buffer for obstacles.

[0100] In one implementation, a graph search algorithm may be used to perform trajectory planning for a driving device.

[0101] Step S1012: performing trajectory sampling based on a preset time interval on the lateral trajectory planning result and the longitudinal trajectory planning result respectively, so as to obtain a lateral trajectory sampling result and a longitudinal trajectory sampling result respectively.

[0102] In this embodiment, the lateral trajectory planning result and the longitudinal trajectory planning result can be sampled based on a preset time interval, thereby obtaining a lateral trajectory sampling result and a longitudinal trajectory sampling result. Those skilled in the art can set the value of the time interval according to the needs of the actual application.

[0103] Step S1013: performing trajectory coupling according to the lateral trajectory sampling result and the longitudinal trajectory sampling result to obtain a lateral and longitudinal coupled planning trajectory.

[0104] In this implementation, step S1013 may further include the following steps S10131 to S10133:

[0105] Step S10131: According to the lateral trajectory sampling result, a cubic spline curve is applied for fitting to obtain a lateral path fitting result of the driving device.

[0106] In this embodiment, for the n data points of the lateral trajectory sampling result, , each point represents the value of the coordinate axis in the SL coordinate system. The cubic spline can be used to fit the curve relationship , which indicates the change of the planned lateral position as the longitudinal position of the driving device changes, thereby obtaining the lateral path fitting result.

[0107] Step S10132: According to the longitudinal trajectory sampling result, a cubic spline curve is applied for fitting to obtain the longitudinal trajectory fitting result of the driving device.

[0108] In this embodiment, the n data points corresponding to the longitudinal trajectory sampling result , each point represents the value under the ST coordinate axis. The cubic spline can be used to fit the curve relationship , represents the change of the longitudinal position of the driving device over time, thereby obtaining the longitudinal trajectory fitting result.

[0109] Step S10133: coupling the lateral path fitting result and the longitudinal trajectory fitting result to obtain a lateral and longitudinal coupled planning trajectory.

[0110] In this embodiment, the lateral path fitting result and the longitudinal trajectory fitting result can be coupled to obtain a lateral and longitudinal coupled planning trajectory in a Cartesian coordinate system. The lateral and longitudinal coupled planning trajectory represents the lateral and longitudinal position information of the driving device at each time t, as shown in the following formula (6):

[0111] (6)

[0112] In one implementation, the planning time for the driving device to perform trajectory planning is 5 seconds, and the preset time interval is 0.1 seconds.

[0113] In one implementation of the embodiment of the present application, step S102 may further include the following steps S1021 and S1022:

[0114] Step S1021: Obtain the inspection boundary range according to the current movement speed of the driving device.

[0115] In this implementation, step S1021 may further include the following steps S10211 and S10212:

[0116] Step S10211: According to the current movement speed of the driving device, the time and distance required for the driving device to uniformly decelerate and stop at a preset acceleration are obtained.

[0117] Step S10212: Obtain the inspection boundary range based on time and distance.

[0118] In this embodiment, the time t0 required for the driving device to decelerate and stop at a preset acceleration is obtained according to the following formula (7), and the distance S0 required for the driving device to decelerate and stop at a preset acceleration is obtained according to the following formula (8):

[0119] (7)

[0120] (8)

[0121] in, , is the coefficient, The current speed of the driving device. is the preset acceleration, It is the vehicle model coefficient, which is configured according to different vehicle models.

[0122] Step S1022: Obtain obstacles within the inspection boundary range according to the inspection boundary range and the inspection time interval of the obstacles.

[0123] In this embodiment, obstacles within the inspection boundary may be acquired based on the inspection boundary and the inspection time intervals of different obstacles.

[0124] In one implementation, the inspection time interval may be set according to the volume of the obstacle; wherein the volume is proportional to the inspection time interval.

[0125] In this embodiment, in order to improve the efficiency of obtaining obstacles, the inspection time interval can be appropriately adjusted according to the size of the obstacle. For example, for small obstacles such as pedestrians, the inspection interval needs to be as small as possible; while for large obstacles such as vehicles, the inspection interval needs to be appropriately increased. In this application, the obstacle inspection time interval g can be set according to the following formula (9):

[0126] (9)

[0127] in, are the length and width of obstacle i, respectively. The speed of the driving device.

[0128] In one implementation, when performing collision checking, the uncertainty of the perception results needs to be considered. = 0 means there is a collision and no confidence is given. That is, the inspection results within a smaller time period can be filtered out. In this application, it can be set When the collision check result is less than 0.3, the collision is a false collision and can be ignored.

[0129] In one implementation, after setting the obstacle inspection boundary range and inspection time interval and filtering out false collisions, an obstacle list can be obtained. Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a check boundary range for obtaining obstacles according to an implementation of an embodiment of the present application. Figure 4 As shown in the figure, the effective inspection area is the area obtained based on the inspection boundary range. The filtered obstacle list is , represents the total number of obstacles. The obstacle prediction trajectory can be expressed by the following formula (10):

[0130] (10)

[0131] In one implementation of the embodiment of the present application, step S103 may further include the following steps S1031 and S1032:

[0132] Step S1031: for each obstacle, the obstacle prediction trajectory of the obstacle at each moment and the horizontal and vertical coupling planning trajectory at the corresponding moment are converted into two-dimensional polygons respectively.

[0133] In this embodiment, each obstacle can be traversed, and the trajectory points of the obstacle prediction trajectory at each moment of the obstacle and the trajectory points of the horizontal and vertical coupling planning trajectory at the corresponding moment are converted into two-dimensional polygons that conform to their respective shapes.

[0134] Step S1032: Perform a collision check based on the converted two-dimensional polygon to obtain a collision check result.

[0135] In this implementation, step S1032 may be further configured as follows:

[0136] According to the two-dimensional polygon, based on the separating axis theorem, a collision check is performed to obtain the collision check result. That is, the separating axis theorem is applied at every moment to perform a collision check on the two-dimensional polygon corresponding to the obstacle and the driving device. During the check process, no buffer extension is set for the two-dimensional polygon. If the collision check result obtained is that there is a collision, it means that the current trajectory planning is not safe enough and the trajectory of the driving device needs to be replanned.

[0137] In one embodiment, please refer to the attached Figure 3 , Figure 3 FIG. 1 is a flow chart of the main steps of a collision checking method according to an implementation of an embodiment of the present application. Figure 3 As shown, the collision checking method may include the following steps S201 to S204:

[0138] Step S201: Obtaining a trajectory planning result of a driving device based on a planning method.

[0139] Step S202: re-sampling the trajectory planning result based on a preset time interval to obtain a lateral and longitudinal coupled planning trajectory in a Cartesian coordinate system.

[0140] Step S203: When an obstacle is detected, the obstacle within the inspection boundary is obtained, and the predicted trajectory of the obstacle is obtained.

[0141] Step S204: performing a collision check based on the geometric shape relationship in the time dimension on the obstacle prediction trajectory and the lateral and longitudinal coupling planning trajectory of the driving device.

[0142] Please refer to the attached Figure 5 , Figure 5is a schematic diagram of an application scenario according to an embodiment of the present application. Figure 5 The shapes of the ego vehicle (i.e., driving device) and the other vehicle (i.e., obstacle) corresponding to t1 represent the shape matching error of the ego vehicle caused by the lateral s sampling error. The source of this error is that in the case of lateral and longitudinal decoupling, the longitudinal direction uses the lateral sampled s as the reference point, and the lateral result s is generally fixed at intervals. However, after adding the speed information generated in the longitudinal direction, the influence of the speed will cause an error of up to twice the sampling accuracy. If the s sampling accuracy is 0.2m during lateral planning, the maximum possible s direction error is 0.4m in the extreme case. In short, since the matching is done through s, the position boundary of the ego vehicle matched by s at this time may be any of the dotted boxes of the lateral results at the two moments t1 in the figure. When the predicted position of the other vehicle is close to the ego vehicle at the same time, more false collisions and missed collisions may occur. However, for collision checks on the lateral and longitudinal coupled planning trajectory in the Cartesian coordinate system, this problem does not exist because the ego vehicle shape is regenerated based on s after cubic spline sampling.

[0143] against Figure 5 The shapes of the ego vehicle and the other vehicle at time t2 represent the missed collision problem caused by the deformation in the SL coordinate system. It can be seen that the distortion of the ego vehicle shape at time t2 will result in no collision with the other vehicle. In actual situations, the shape of the other vehicle will also be distorted, which will further increase the probability of missed collision. Using the lateral and longitudinal coupled planning trajectory in the Cartesian coordinate system for collision checking can avoid this problem because there will be no deformation of obstacles.

[0144] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.

[0145] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0146] Furthermore, the present application also provides a control device. In a control device embodiment according to the present application, the control device includes a processor and a storage device, the storage device can be configured to store a program for executing the collision check method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the collision check method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The control device can be a control device device formed by various electronic devices.

[0147] In the embodiment of the present application, the control device may be a control device device formed by various electronic devices. In some possible implementations, the control device may include multiple storage devices and multiple processors. The program for executing the collision checking method of the above method embodiment can be divided into multiple subprograms, each of which can be loaded and run by the processor to execute different steps of the collision checking method of the above method embodiment. Specifically, each subprogram can be stored in different storage devices, and each processor can be configured to execute programs in one or more storage devices to jointly implement the collision checking method of the above method embodiment, that is, each processor executes different steps of the collision checking method of the above method embodiment, to jointly implement the collision checking method of the above method embodiment.

[0148] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned control device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned control device may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.

[0149] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the collision checking method of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned collision checking method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

[0150] Furthermore, the present application also provides a driving device. In a driving device embodiment according to the present application, the driving device may include a control device in the control device embodiment.

[0151] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present application, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0152] It is understood by those skilled in the art that each module in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present application, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present application.

[0153] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims

1. A collision checking method, characterized in that: The method is applied to a driving device, and the method comprises: Obtaining a lateral and longitudinal coupled planning trajectory of the driving device in a Cartesian coordinate system; Obtaining obstacles within a preset inspection boundary range of the driving device and obstacle prediction trajectories of the obstacles in a Cartesian coordinate system; Performing a collision check based on the time dimension according to the lateral and longitudinal coupling planned trajectory and the obstacle predicted trajectory to obtain a collision check result; The obtaining of obstacles within a preset inspection boundary range of the driving device includes: According to the current movement speed of the driving device, obtaining the inspection boundary range; Obtain obstacles within the inspection boundary range according to the inspection boundary range and the inspection time interval of the obstacles; The obtaining the inspection boundary range according to the current movement speed of the driving device includes: According to the current movement speed of the driving device, the time and distance required for the driving device to uniformly decelerate and stop at a preset acceleration are obtained; Acquire the inspection boundary range according to the time and the distance; The method further comprises setting a check time interval according to the following steps: Setting the inspection time interval according to the volume of the obstacle; wherein the volume is proportional to the inspection time interval; The step of setting the inspection time interval according to the volume of the obstacle includes: in, is the inspection time interval, are the length and width of obstacle i, respectively. is the speed of the driving device.

2. The collision checking method according to claim 1, characterized in that: The step of obtaining the lateral and longitudinal coupled planning trajectory of the driving device in a Cartesian coordinate system includes: Performing trajectory planning on the driving device to obtain a lateral trajectory planning result and a longitudinal trajectory planning result in an SL coordinate system; Performing trajectory sampling based on a preset time interval on the lateral trajectory planning result and the longitudinal trajectory planning result respectively, so as to obtain a lateral trajectory sampling result and a longitudinal trajectory sampling result respectively; Trajectory coupling is performed according to the lateral trajectory sampling result and the longitudinal trajectory sampling result to obtain the lateral and longitudinal coupled planning trajectory.

3. The collision checking method according to claim 2, characterized in that: The performing trajectory coupling according to the lateral trajectory sampling result and the longitudinal trajectory sampling result to obtain the lateral and longitudinal coupled planning trajectory includes: According to the lateral trajectory sampling result, a cubic spline curve is applied for fitting to obtain a lateral path fitting result of the driving device; According to the longitudinal trajectory sampling result, a cubic spline curve is applied for fitting to obtain a longitudinal trajectory fitting result of the driving device; The lateral path fitting result and the longitudinal trajectory fitting result are coupled to obtain the lateral and longitudinal coupled planning trajectory.

4. The collision checking method according to claim 1, characterized in that: The performing of a collision check based on the time dimension according to the lateral and longitudinal coupling planning trajectory and the obstacle prediction trajectory to obtain a collision check result includes: For each obstacle, the obstacle prediction trajectory of the obstacle at each moment and the horizontal and vertical coupling planning trajectory at the corresponding moment are respectively converted into two-dimensional polygons; A collision check is performed based on the converted two-dimensional polygon to obtain the collision check result.

5. The collision checking method according to claim 4, characterized in that: The performing collision check according to the converted two-dimensional polygon to obtain the collision check result includes: According to the two-dimensional polygon, based on the separating axis theorem, a collision check is performed to obtain a collision check result.

6. The collision checking method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the inspection result shows that there is a collision, the trajectory of the driving device is replanned.

7. A control device, comprising at least one processor and at least one storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by the processor to execute the collision checking method according to any one of claims 1 to 6.

8. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the collision checking method according to any one of claims 1 to 6.

9. A driving device, characterized in that: The driving device comprises the control apparatus according to claim 7.

Citation Information

Patent Citations

  • Wharf environment based driving track generation system and method

    CN110341711A

  • Autonomous mobile robot trajectory planning method, system and device

    CN112099493A