Vehicle decision-making planning method, apparatus, device and medium
By converting grid obstacles to convex-hull obstacles and using lane decision semantic information, the method enhances obstacle decision-making in autonomous vehicles, improving efficiency and safety in dynamic environments.
Patent Information
- Application Number
- JP2024505119
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-17
- Filing Date
- 2022-04-22
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Autonomous driving systems face challenges in making obstacle decisions due to the difficulty in processing mixed types of obstacles, such as convex-hull and grid obstacles, which leads to inefficient and slow decision-making processes, especially in dynamic environments.
A method and apparatus that preprocesses grid obstacles to convert them into convex-hull obstacles, allowing for unified decision-making, and determines drivable areas based on environmental sensing information, including lane decision semantic information to accelerate obstacle avoidance.
This approach simplifies and speeds up the obstacle decision-making process by enabling quick and convenient handling of mixed obstacle types, ensuring both safety and passability in dynamic environments.
Smart Images

Figure 2024531084000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the technical field of unmanned driving, and in particular to a vehicle decision-making planning method, apparatus, device and medium.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS This disclosure claims priority to a Chinese patent application filed with the China Patent Office on August 25, 2021, bearing application number 202110984268.3 and entitled "Obstacle avoidance decision-making method, apparatus, device and medium," and to a Chinese patent application filed with the China Patent Office on September 17, 2021, bearing application number 202111095293.2 and entitled "Vehicle drivable area generation method, apparatus, device and medium," the entire contents of which are incorporated herein by reference. [Background technology]
[0003] With the development of vehicle intelligence technology, unmanned vehicle automatic control technology has gradually become a hotspot in the field of vehicle research. The autonomous driving system needs to plan a smooth, safe and passable route to prevent the vehicle from colliding with obstacles.
[0004] Typically, the sensing module of an autonomous driving system outputs two types of obstacles: convex hull obstacles that contain rich semantic information, and grid obstacles that do not contain semantic information. For convex hull obstacles, the decision-making planning module can make obstacle decision-making more conveniently, but for grid obstacles that are highly discrete and numerous, it is difficult for the decision-making planning module to make obstacle decision-making conveniently and quickly, and as a result, it is difficult for the decision-making planning module to make obstacle decision-making for mixed types of obstacles. Summary of the Invention
[0005] In order to solve all or at least part of the above technical problems, the present disclosure provides a vehicle decision-making planning method, apparatus, device, and medium.
[0006] An embodiment of the present disclosure provides a vehicle decision-making planning method, comprising: generating a base coordinate system; generating a guideline under the basic coordinate system to determine a future outline travel trajectory of the vehicle; making obstacle decisions subject to the constraints of said guidelines; and generating a drivable area based on the obstacle decision-making.
[0007] In some embodiments, the obstacle determination may include: obtaining road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; pre-processing the first grid obstacles based on the road information and the first grid obstacle information to obtain second grid obstacles; transforming the second grid obstacle into a second convex hull obstacle; and making a decision to avoid the target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle, where the target convex hull obstacle includes the first convex hull obstacle and / or the second convex hull obstacle.
[0008] In some embodiments, generating a drivable area based on obstacle decision making includes: Obtaining environmental sensing information, where the environmental sensing information includes at least two of lane information, obstacle information, and host vehicle information, and the obstacle information includes static obstacle information and / or dynamic obstacle information; determining lane decision-making semantic information for each lane based on the environmental sensing information, where the lane decision-making semantic information includes a transit time cost and a safety cost; generating a drivable area based on the lane decision-making semantics.
[0009] An embodiment of the present disclosure provides a vehicle decision-making planning device, a base coordinate system generating unit for generating a base coordinate system; a guideline generating unit for generating a guideline under the basic coordinate system and determining a future approximate traveling trajectory of a vehicle; an obstacle decision making unit for making obstacle decisions under the constraints of the guidelines; The vehicle further includes a driving space generating unit for generating a driving area based on the obstacle decision-making.
[0010] In some embodiments, the obstacle decision-maker comprises: an information acquiring module for acquiring road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; a pre-processing module for pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information, where a number of the second grid obstacles is smaller than a number of the first grid obstacles; a type conversion module for converting the second grid obstacle into a second convex hull obstacle; and an avoidance decision-making module for making a decision to avoid a target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle, where the target convex hull obstacle includes the first convex hull obstacle and / or the second convex hull obstacle.
[0011] In some embodiments, the travel space generation unit: a sensing information acquisition module for acquiring environmental sensing information, where the environmental sensing information includes at least two of lane information, obstacle information, and host vehicle information, and the obstacle information includes static obstacle information and / or dynamic obstacle information; a lane decision-making semantic information determination module for determining lane decision-making semantic information of each lane based on the environmental sensing information, where the lane decision-making semantic information includes a passing time cost and a safety cost; and a drivable area generation module for generating a drivable area based on the lane decision-making semantic information.
[0012] An embodiment of the present disclosure provides an electronic device, A memory and one or more processors, Here, the memory is communicatively connected to the one or more processors, the memory stores instructions executable by the one or more processors, and when the instructions are executed by the one or more processors, the electronic device is used to realize a vehicle decision-making planning method provided by any embodiment of the present disclosure.
[0013] An embodiment of the present disclosure provides a computer-readable storage medium having computer-executable instructions stored thereon, the computer-executable instructions, when executed by a computing device, implementing the vehicle decision-making planning method provided by any embodiment of the present disclosure.
[0014] Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages:
[0015] 1. After the first grid obstacle is pre-processed to obtain the second grid obstacle, the second grid obstacle is converted into a second convex hull obstacle, i.e., the grid type obstacle is converted into a convex hull type obstacle, and unified decision-making for two types of obstacles, grid type and convex hull type (i.e., mixed type obstacles), is realized, so that the obstacle decision-making process of the mixed type obstacles is simplified and the obstacle decision-making process is accelerated, and the decision-making planning module can conveniently and quickly make obstacle decision.
[0016] 2. Determine lane decision-making semantic information for each lane based on environmental sensing information, and convert the lane decision-making semantic information into a constraint boundary of the drivable area to achieve both traversability and safety, quickly generate a drivable area with high traversability and safety, accelerate the generation of driving trajectory, and realize rapid avoidance of obstacles. At the same time, the passing cost of dynamic obstacles can be characterized by time cost and safety cost, and the passing cost of static obstacles can be characterized by passing time cost. Therefore, the technical solution disclosed herein can generate a drivable area based on the passing time cost and safety cost, and simultaneously realize passing plans for dynamic obstacles and static obstacles, and can be applied to handling obstacles in dynamic environments. [Brief description of the drawings]
[0017] The accompanying drawings herein are incorporated in and constitute a part of this specification, illustrate embodiments in accordance with the present disclosure, and are used in conjunction with the specification to explain the principles of the present disclosure.
[0018] In order to more clearly describe the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly describes the accompanying drawings that need to be used in the description of the embodiments or the prior art, and obviously, those skilled in the art can obtain other drawings based on these accompanying drawings without creative labor. [Figure 1] 1 is a schematic flowchart of a vehicle decision-making planning method provided by an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of functional modules of a decision-making planning module provided by an embodiment of the present disclosure. [Diagram 3] FIG. 1 is a schematic diagram of an application scenario of a vehicle decision-making planning method provided by an embodiment of the present disclosure. [Figure 4] 1 is a partial schematic flowchart of a vehicle decision-making planning method provided by an embodiment of the present disclosure. [Diagram 5] FIG. 2 is a block diagram of functional modules of an obstacle decision-making unit provided by an embodiment of the present disclosure. [Figure 6] FIG. 2 is a schematic diagram of a road encircling box provided by an embodiment of the present disclosure. [Figure 7] FIG. 1 is a diagram illustrating a scenario when making an avoidance decision according to an embodiment of the present disclosure. [Figure 8] 4 is a partial schematic flowchart of another vehicle decision-making planning method provided by an embodiment of the present disclosure. [Figure 9] FIG. 13 is a scenario diagram corresponding to lane passing time costs provided by an embodiment of the present disclosure. [Figure 10] FIG. 1 is an ST diagram of lane safety judgment provided by an embodiment of the present disclosure. [Figure 11] FIG. 2 is a schematic diagram of a discretization of a drivable region boundary provided by an embodiment of the present disclosure. [Figure 12] FIG. 13 is a scenario diagram corresponding to lane width travel costs provided by an embodiment of the present disclosure. [Figure 13] FIG. 1 is a schematic diagram of updating a drivable area based on preset traffic rules provided by an embodiment of the present disclosure. [Figure 14] FIG. 2 is a schematic diagram of updating the drivable area based on vehicle kinematics and dynamics constraints provided by an embodiment of the present disclosure; [Figure 15] FIG. 1 is a schematic diagram of updating the drivable area based on obstacle semantic information and preset safety area provided by an embodiment of the present disclosure; [Figure 16] FIG. 2 is a schematic diagram of the generation of a frenet bounding box provided by an embodiment of the present disclosure. [Figure 17] 1 is a schematic diagram of updating the drivable area based on static obstacle information, obstacle decision-making semantic information and ray tracing algorithm provided by an embodiment of the present disclosure; [Figure 18] FIG. 2 is a block diagram of functional modules of an obstacle decision-making unit in a vehicle decision-making planning device provided by an embodiment of the present disclosure; [Figure 19] FIG. 2 is a block diagram of functional modules of a driving space generation unit in a vehicle decision-making planning device provided by an embodiment of the present disclosure. [Figure 20] FIG. 2 is a structural schematic diagram of an electronic device suitable for implementing an embodiment of the present disclosure provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] In order to more clearly understand the above objects, features and advantages of the present disclosure, the scheme of the present disclosure is further described below. It should be noted that, unless inconsistent, the embodiments and features of the embodiments of the present disclosure can be combined with each other.
[0020] In order to facilitate a thorough understanding of the present disclosure, numerous specific details are set forth in the following description; however, the present disclosure may be embodied in other ways different from those described herein, and it is apparent that the embodiments in the specification are merely some embodiments of the present disclosure, rather than all embodiments.
[0021] Fig. 1 is a schematic flow chart of a vehicle decision-making planning method provided by an embodiment of the present disclosure. The method is applicable to the case of obstacle decision-making and drivable area generation of an unmanned vehicle. As shown in Fig. 1, the method includes the following steps:
[0022] In step S110, a basic coordinate system is generated.
[0023] In step S120, a guide line is generated in the basic coordinate system to determine the approximate future travel trajectory of the vehicle.
[0024] In step S130, obstacle decision making is performed under the constraints of the guidelines.
[0025] In step S140, a drivable area is generated based on the obstacle decision-making.
[0026] In this embodiment, by generating a basic coordinate system, the subsequent guideline, obstacle determination data and drivable area are all generated under the basic coordinate system, providing a reference for vehicle and obstacle positioning. The basic coordinate system may be a Frenet coordinate system. After the guideline is generated, obstacle decision-making is performed for the obstacle on the outline travel trajectory indicated by the guideline to avoid the obstacle. Then, based on the obstacle decision-making, it is determined whether the vehicle passes the left side of the obstacle, passes the right side of the obstacle, or follows the obstacle, thereby determining the drivable area of the vehicle.
[0027] 2 is a block diagram of the functional modules of the decision planning module 1. As shown in FIG. 2, the decision planning module 1 includes a constraint generation unit 11, a trajectory generation unit 12 and a trajectory smoothing unit 13.
[0028] In some embodiments, the constraint generation unit 11 includes a basic coordinate system generation unit 111, a guideline generation unit 112, an obstacle decision-making unit 113, and a driving space generation unit 114. Here, the basic coordinate system generation unit 111 is used to generate a basic coordinate system such as a Frenet coordinate system, the guideline generation unit 112 is used to generate a guideline and decide a future outline driving trajectory of the vehicle, the obstacle decision-making unit 113 is used to make an obstacle decision, and the driving space generation unit is used to generate a driving area based on the obstacle decision-making. In some embodiments, the trajectory generation unit 12 is used to generate a driving trajectory of the unmanned vehicle based on the driving area, and the trajectory smoothing unit 13 is used to smooth the driving trajectory.
[0029] In some embodiments, the obstacle decision-making unit 113 is specifically used to obtain road information, first grid obstacle information of a first grid obstacle and first convex hull obstacle information of a first convex hull obstacle, pre-process the first grid obstacle to obtain a second grid obstacle based on the road information and the first grid obstacle information, convert the second grid obstacle into a second convex hull obstacle, and make an avoidance decision for the target convex hull obstacle based on the target convex hull obstacle information of the target convex hull obstacle.
[0030] In some embodiments, the driving space generation unit 114 is specifically used to obtain environmental sensing information, determine lane decision-making semantic information for each lane based on the environmental sensing information, and generate a drivable area based on the lane decision-making semantic information, where the lane decision-making semantic information includes a passing time cost and a safety cost.
[0031] Based on the above technical solution, the embodiment of the present disclosure provides a vehicle decision-making planning method, which is applied when an unmanned vehicle makes decisions on static and / or dynamic obstacles, such as grid obstacles and convex hull obstacles in a road environment. FIG. 3 shows an application scenario of the vehicle decision-making planning method. Referring to FIG. 3, there are convex hull obstacles 200 (including static and dynamic obstacles) and grid obstacles 300 in front of the unmanned vehicle 100, and the unmanned vehicle 100 can obtain the obstacle information of the convex hull obstacles 200 and the grid obstacles 300, and convert the type of the grid obstacle 300 into a convex hull type, thereby realizing unified decision-making of the convex hull obstacles 200 and the grid obstacles 300. The method is applicable to unmanned vehicles, and is specifically applicable to the decision-making planning module in the autonomous driving system of the unmanned vehicle. According to the vehicle decision-making planning method provided by the embodiment of the present disclosure, unified decision-making of mixed types of obstacles can be realized, and obstacle decision-making can be conveniently and quickly performed.
[0032] Based on the above technical solution, Fig. 4 is a partial schematic flowchart of a vehicle decision-making planning method provided by an embodiment of the present disclosure. As shown in Fig. 4, making obstacle decision-making (or obstacle avoidance decision-making method) includes the following steps:
[0033] In step S210, road information, first grid obstacle information of the first grid obstacle, and first convex hull obstacle information of the first convex hull obstacle are obtained.
[0034] In an embodiment of the present disclosure, the grid obstacles are grid type obstacles and the convex hull obstacles are convex hull type obstacles.
[0035] In some embodiments, road information is acquired through a high-precision map or an on-board camera, and the road information may include road boundary information and road curvature information, etc. At the same time, obstacle information is acquired through a vehicle sensing module (e.g., an on-board camera and a laser lidar, etc.) and a positioning module, and the obstacle information may include obstacle type information, obstacle size information, and obstacle position information, etc. Here, the obstacle type information may be an obstacle type identifier, and different obstacle type identifiers are predefined to distinguish obstacle types, and the obstacle type information may be an obstacle data format, and after the vehicle sensing module senses an obstacle, the obstacle data is processed and the data of different types of obstacles is stored in different obstacle data formats, and when the decision-making planning module acquires the obstacle information, the obstacle type is distinguished according to the obstacle data format, for example, the obstacle data format of the grid obstacle is ".ogm", and the obstacle data format of the convex hull obstacle is ".mot". In this way, a first grid obstacle and a first convex hull obstacle are determined based on the obstacle type information, and the first grid obstacle information and the first convex hull obstacle information are acquired.
[0036] In step S220, based on the road information and the first grid obstacle information, the first grid obstacle is pre-processed to obtain a second grid obstacle.
[0037] In step S230, the second grid obstacle is transformed into a second convex hull obstacle.
[0038] 5 is a block diagram of the functional modules of the obstacle decision-making unit 113. As shown in FIG. 5, the obstacle decision-making unit 113 includes a grid obstacle processor 1131, a travel mode decision unit 1132 and a convex hull obstacle filter unit 1133.
[0039] Here, the grid obstacle processor 1131 performs a step S220 of pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information, and performs a step S230 of converting the second grid obstacles into second convex hull obstacles.
[0040] In step S220, the first grid obstacles are pre-processed to reduce the amount of data calculation and simplify the obstacle decision-making process, and includes at least one of the following steps: generating a grid obstacle contour of the first grid obstacle, generating an obstacle bounding box of the first grid obstacle, filtering the first grid obstacles located outside the road, and aggregating the first grid obstacles located inside the road.
[0041] In some embodiments, the first grid obstacles may be pre-processed to facilitate obstacle calculation by downstream modules, such that the number of second grid obstacles obtained after pre-processing is smaller than the number of first grid obstacles.
[0042] The embodiments of the present disclosure may reduce the number of first grid obstacles by filtering out the first grid obstacles located outside the road. In some embodiments, pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information includes the following steps:
[0043] In step S221, the first grid obstacles located outside the road are filtered out based on the road information and the first grid obstacle information.
[0044] In some embodiments, filtering out first-grid obstacles located outside the road based on the road information and the first-grid obstacle information includes the following steps.
[0045] In step S2211, a road bounding box along the road traffic direction is generated based on the road information.
[0046] In some embodiments, the road boundary is discretized into boundary points based on the road information, and a road enclosing box is generated based on the boundary points. In the embodiments of the present disclosure, the shape of the road enclosing box is an axisymmetric enclosing box in the right-handed coordinate system of the unmanned vehicle body, as long as the road can be covered through the boundary points, so as to later determine whether the first grid obstacle is located outside the road.
[0047] Specifically, referring to FIG. 6 , a road boundary and a road boundary curvature are determined based on road information, the road boundary is discretized based on the road boundary curvature to obtain boundary point clouds arranged at intervals along the road traffic direction, and a rectangular frame b is generated for each boundary point in any two adjacent boundary point clouds based on any two adjacent boundary point clouds, and the rectangular frame b is used as a road bounding box, where each boundary point cloud includes corresponding left boundary point a and right boundary point a′ in a horizontal direction, where the horizontal direction is perpendicular to the road traffic direction.
[0048] In some embodiments, one of the two adjacent sides of the rectangular frame b is parallel to the ego-vehicle driving direction, i.e., the driving direction x of the unmanned vehicle 100, and the other is perpendicular to the ego-vehicle driving direction, i.e., the driving normal direction y of the unmanned vehicle 100. At the same time, the distance between two adjacent boundary points on the same road boundary is negatively correlated with the road boundary curvature, i.e., the higher the road boundary curvature, the greater the curvature, and the smaller the distance between two adjacent boundary points on the road boundary. In this way, it is possible to ensure that the road encircling box completely covers the road, and then to avoid the first grid obstacle, part of which is located inside the road, being determined to be located outside the road and filtered out, thereby avoiding the influence on obstacle decision-making.
[0049] In some embodiments, discretizing the road boundary based on the road boundary curvature to obtain boundary point clouds arranged at intervals along the road traffic direction includes: taking the current position of the vehicle as a start road point, obtaining one boundary point cloud corresponding to the start road point in a lateral direction, selecting a next road point along the road traffic direction based on the road boundary curvature, where the distance between two adjacent road points is negatively correlated with the road boundary curvature, taking the next road point as the start road point, and returning to obtaining one boundary point cloud corresponding to the start road point in a lateral direction until the distance from the next road point to the current position of the vehicle in the road traffic direction is greater than a preset distance threshold, and determining all the currently obtained boundary point clouds as the boundary point cloud, where the preset distance threshold may be determined based on a maximum obstacle sensing range of the vehicle.
[0050] Based on the above technical solution, in one specific embodiment of the present disclosure, one road bounding box B is created for every four boundary points (two adjacent boundary points on the left side of the road, and two corresponding adjacent boundary points on the right side of the road). R ={b min ,b max ,b left,0 ,b left,1 ,b right,0 ,b right,1}, where b min and b maxare the minimum and maximum coordinate points of the road bounding box, respectively, and b left,0 ,b left,1 ,b right,0 ,b right,1 are the coordinate points of the left and right sides of the road, respectively. The whole road is represented by n road bounding boxes, and the road bounding box sequence B road_list ={B R0 ,B R1 ,···,B Rn In the embodiment of the present disclosure, the road may be a line segment on a vehicle driving line, and the line segment on which the host vehicle is located may be determined based on the vehicle positioning information, and the road boundary may be discretized, i.e., the boundary of the line segment on which the host vehicle is located may be discretized. Illustratively, a list of road boundary points is defined as S, which is initialized as an empty table, and a road bounding box sequence B road_list is also initialized as empty, discretizes the road boundary from the line segment where the vehicle is located, obtains a first road point of the line segment (which may be the current position of the vehicle), then obtains a left boundary point and a right boundary point corresponding to the first road point in the horizontal direction, and adds the current left boundary point and right boundary point to list S. Selects a next road point along the road traffic direction based on the road boundary curvature, detects whether the distance from the first road point to the next road point along the road traffic direction is equal to or less than a preset distance threshold, and if the distance is equal to or less than the preset distance threshold, obtains a left boundary point and a right boundary point corresponding to the next road point in the horizontal direction and adds them to list S. Continues selecting a next road point along the road traffic direction based on the road boundary curvature, and stops obtaining the left boundary point and the right boundary point when the distance from the first road point to the next road point along the road traffic direction is greater than the preset distance threshold, and updates the road network bounding box sequence B based on the last updated list S. road_list Generate.
[0051] In step S2212, a grid obstacle bounding box for the first grid obstacle is generated based on the first grid obstacle information.
[0052] In some embodiments, a grid obstacle contour for the first grid obstacle is generated based on the first grid obstacle information, and a grid obstacle bounding box is generated based on the grid obstacle contour.
[0053] Specifically, based on the first grid obstacle information, the Suzuki contour following algorithm is adopted to generate a closed contour figure of the first grid obstacle, i.e., the grid obstacle contour. In this way, all the raw point cloud grid obstacle data processing can be avoided, and the hardware requirements of the processor and the sensor can be greatly reduced. Exemplarily, the grid obstacle contour Ω={P0,P1,...,P n}, P0 is a coordinate point of the grid obstacle contour, which consists of n coordinate points. min ,P max}, the four vertices of the grid obstacle bounding box are defined by two coordinate points P min =[x min ,y min ] and P max =[x max ,y max ], where:
number
[0054] In step S2213, a first grid obstacle located outside the road is determined based on the grid obstacle bounding box and the road bounding box.
[0055] In the embodiment of the present disclosure, the first grid obstacle can be subjected to two-stage collision detection, and the first grid obstacle located outside the road can be quickly and accurately determined. For example, a coarse collision detection is first performed on the grid obstacle, and the first grid obstacle located outside the road is quickly filtered, so as to reduce the calculation amount of the collision detection, and a fine collision detection is performed on the colliding first grid obstacle determined by the coarse collision detection, and the first grid obstacle located outside the road is further determined, so as to ensure that the remaining first grid obstacles after filtering are all located inside the road.
[0056] In some embodiments, for the rough collision detection, for each grid obstacle bounding box, a target road bounding box with the smallest Euclidean distance from the road bounding box to the grid obstacle bounding box is determined based on the grid obstacle bounding box and the road bounding box, and collision detection is performed for the grid obstacle bounding box and the corresponding target road bounding box, and if there is no collision between the grid obstacle bounding box and the corresponding target road bounding box, it is determined that the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road. When the Euclidean distance from the road bounding box to the grid obstacle bounding box is relatively small, it indicates that the collision probability between the road bounding box and the grid obstacle bounding box is large, but if the corresponding road bounding box and the grid obstacle bounding box do not collide when the Euclidean distance is small, the collision probability between the corresponding road bounding box and the grid obstacle is even less when the Euclidean distance is small. Therefore, the speed of obstacle determination can be accelerated by determining a target road bounding box with the smallest Euclidean distance from the road bounding box to the grid obstacle bounding box and performing collision detection with the grid obstacle bounding box to reduce the computational complexity of the collision detection. In some embodiments, it is sufficient to detect whether the vertices of the grid obstacle bounding box are located on the target road bounding box or inside the target road bounding box. For example, when all the vertices of the grid obstacle bounding box are located outside the target road bounding box, it is determined that the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road, and when the vertices of the grid obstacle bounding box are located on the target road bounding box or inside the target road bounding box, it is determined that the first grid obstacle corresponding to the grid obstacle bounding box is located inside the road.
[0057] Regarding the above-mentioned fine collision detection, in some embodiments, when the grid obstacle bounding box and the corresponding target road bounding box collide, it is determined whether the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road. In some embodiments, based on the boundary points of the target road bounding box and the grid obstacle bounding box, the collision detection is performed by a cross product of vectors to determine whether the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road. Specifically, the vector of the boundary point is determined, and the vector of the vertex of the grid obstacle bounding box is determined, and when the cross product of the vector of the vertex of the grid obstacle bounding box and the vector of the boundary point is greater than 0, it is determined that the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road. When the cross product of the vector of the vertex of the grid obstacle bounding box and the vector of the boundary point is less than or equal to 0, it is determined that the first grid obstacle corresponding to the grid obstacle bounding box is located inside the road. Here, the vector of the boundary point includes a left boundary vector composed of two left boundary points of the target road bounding box, and a right boundary vector composed of two right boundary points of the target road bounding box. The vector of the vertices of the grid obstacle bounding box is a vector composed of the vertices of the grid obstacle bounding box and the boundary points of the target road bounding box, and the boundary point is a boundary point corresponding to the vector of the boundary point participating in the cross product operation. For example, in the case of the cross product of the vector of the vertex and the right boundary vector, the boundary point in the vector of the vertex is a boundary point corresponding to the right boundary vector. For example, the grid obstacle bounding box is defined as B={P min ,P max}, the target road bounding box is B R ={b min ,b max ,b left,0 ,b left,1 ,b right,0 ,b right,1}, the left boundary vector v left =b left,1 -b left,0 , the right boundary vector v right =b right,1 -b right,0Then, traverse the four vertices of the grid obstacle bounding box B to form a vector of the four vertices, and cross-product the vector of the four vertices with the left boundary vector or the right boundary vector respectively, and determine that the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road based on the cross-product result. For example, one vertex P0 of B=[x min ,y min ], then the cross product of the right boundary vector and the vertex vector c1 = cross(P0-b right,0 ,v right ), and if c1>0, then vertex P0 is located to the right of the road right boundary; otherwise, vertex P0 is located on the road right boundary or to the left of the road right boundary. Similarly, other vertices of the grid obstacle bounding box are located on the road right boundary or to the left or right of the road right boundary. In this way, it can be determined whether the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road.
[0058] In step S2214, the first grid obstacle located outside the road is filtered.
[0059] In step S222, the remaining first grid obstacles are used as second grid obstacles.
[0060] In addition, in the embodiments of the present disclosure, the first grid obstacles located inside the road may be aggregated to reduce the number of the first grid obstacles. In some embodiments, pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information may include the following steps:
[0061] In step S223, a first grid obstacle located inside the road is determined based on the road information and the first grid obstacle information.
[0062] In this embodiment, the first grid obstacle located inside the road may be determined by the method of determining whether the first grid obstacle in the above embodiment is located outside the road, which will not be repeated here.
[0063] In step S224, the first grid obstacles located inside the road are counted.
[0064] In some embodiments, a first obstacle bounding box of a first grid obstacle is generated based on first grid obstacle information of a first grid obstacle located inside a road, and when the Euclidean distance between two adjacent first obstacle bounding boxes is less than the width of the vehicle, the two adjacent first obstacle bounding boxes are integrated to generate a second obstacle bounding box. When the Euclidean distance between the two adjacent first obstacle bounding boxes is less than the width of the vehicle, the second obstacle bounding box is taken as the first obstacle bounding box, and the process returns to generating a second obstacle bounding box by integrating the two adjacent first obstacle bounding boxes until the Euclidean distance between the second obstacle bounding box and the adjacent first obstacle bounding box is equal to or greater than the width of the vehicle or until there is no first obstacle bounding box adjacent to the second obstacle bounding box.
[0065] For example, create a CLOSED table, initialize it as an empty table, and store the first obstacle bounding box set contour Take the first obstacle bounding box from and add it to the CLOSED table, and define the set set contour Remove the first obstacle bounding box from the set contour Crossing and set contour If the Euclidean distance between the first obstacle bounding box in the CLOSED table and the first obstacle bounding box in the CLOSED table is less than the vehicle width, contourThe first obstacle bounding box of is added to the CLOSED table, aggregated to the first obstacle bounding box for Euclidean distance comparison in the CLOSED table, aggregated to a new first obstacle bounding box, and then added to the CLOSED table. contour In this way, the set contour By repeating this process until it is empty, the counting process for the first grid obstacle located inside the road can be completed.
[0066] S225, the first grid obstacle after the counting process is used as the second grid obstacle.
[0067] Furthermore, in the embodiment of the present disclosure, in addition to filtering out the first grid obstacles located outside the road based on the road information and the first grid obstacle information, the embodiment can also determine the first grid obstacles located inside the road based on the road information and the first grid obstacle information, and aggregate the first grid obstacles located inside the road, thus further reducing the number of the first grid obstacles.
[0068] According to the above embodiment, after obtaining the second grid obstacle, a fast convex hull algorithm can be adopted to convert the second grid obstacle into a second convex hull obstacle, thus realizing a unified decision-making for the grid obstacle and the convex hull obstacle.
[0069] In step S240, a decision is made to avoid the target convex hull obstacle based on the target convex hull obstacle information of the target convex hull obstacle.
[0070] This step may be performed by the travel mode determination unit 1132 in FIG. 5. In some embodiments, making a decision to avoid the target convex hull obstacle based on the target convex hull obstacle information of the target convex hull obstacle includes attaching an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies the preset filtering condition based on the target convex hull obstacle information. In the embodiment of the present disclosure, by attaching an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies the preset filtering condition, the trajectory generation unit 12 in FIG. 2 can ignore the target convex hull obstacle, which not only reduces the obstacle processing burden of the trajectory generation unit 12 and improves the trajectory generation speed, but also improves the rationality of the trajectory generation.
[0071] In some embodiments, the preset filtering conditions include at least one of the following: the target convex hull obstacle is located outside the road; the movement state of the target convex hull obstacle satisfies the lateral avoidance-free condition; and the target convex hull obstacle is located on the host vehicle guideline. Thus, assigning an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies the preset filtering conditions based on the target convex hull obstacle information includes: when the target convex hull obstacle is located outside the road, assigning an avoidance-free tag to the target convex hull obstacle; and when the movement state of the target convex hull obstacle satisfies the lateral avoidance-free condition or the target convex hull obstacle is located on the host vehicle guideline, assigning a lateral avoidance-free tag to the target convex hull obstacle. Exemplarily, referring to FIG. 7, when a target convex hull obstacle is located outside the road, such as obstacle 1, if the target convex hull obstacle has no effect on the normal driving of the unmanned vehicle 100, the target convex hull obstacle may be ignored and an avoidance-free tag may be assigned to the target convex hull obstacle. When the moving state of the target convex hull obstacle satisfies the lateral avoidance unnecessary condition, for example, when the target convex hull obstacle crosses a road, for example, when a pedestrian crosses a road, the unmanned vehicle 100 only needs to wait for the pedestrian to pass, and does not need to generate a trajectory that goes around to the pedestrian, and may assign a lateral avoidance unnecessary tag to the pedestrian. Also, when the target convex hull obstacle changes toward the host vehicle lane, or when the longitudinal speed of the target convex hull obstacle is greater than the host vehicle speed (for example, an obstacle moving at high speed in an adjacent lane), the host vehicle does not need to avoid it laterally without affecting the safety of the host vehicle lane, and an upward lateral avoidance unnecessary tag is assigned to the target convex hull obstacle. For example, when the target convex hull obstacle is located on the host vehicle guideline, such as when the obstacle 2 is located on the host vehicle guideline c, the unmanned vehicle 100 does not need to avoid the obstacle 2 laterally, and can select to follow the obstacle 2, and it can be understood that the obstacle 2 is a dynamic obstacle moving in the same direction as the unmanned vehicle 100.
[0072] In the above embodiment, the convex hull obstacle filtering unit 1133 in FIG. 5 may filter the target convex hull obstacles that satisfy the preset filtering condition. In some embodiments, the convex hull obstacle filtering unit 1133 may include at least one of an obstacle Frenet bounding box-based road network filtering unit, an action semantic information filtering unit, and a guideline filtering unit. Here, the obstacle Frenet bounding box-based road network filtering unit quickly filters the target convex hull obstacles located outside the road, the obstacle Frenet bounding box-based road network filtering unit filters the target convex hull obstacles located outside the road by the two-stage collision detection method in the above embodiment, the action semantic information filtering unit filters the target convex hull obstacles that do not need to be avoided and do not need to be avoided laterally based on the semantic information included in the target convex hull obstacle, and the guideline filtering unit filters the target convex hull obstacles that collide with the guideline.
[0073] In addition to determining that avoidance is not required by tagging the target convex hull obstacle with an avoidance-not-required tag and determining that lateral avoidance is not required by tagging the target convex hull obstacle with a lateral avoidance-not-required tag, in the embodiments of the present disclosure, avoidance decision-making of following, keeping left, or keeping right can be performed for the target convex hull obstacle. In some embodiments, tagging the target convex hull obstacle with an avoidance-up tag based on the target convex hull obstacle information and the host vehicle guideline includes: tagging the target convex hull obstacle with a follow tag when the target convex hull obstacle is located on the host vehicle guideline; and tagging the target convex hull obstacle with a keep right tag when the center of mass of the target convex hull obstacle is located on the left side of the host vehicle guideline when the target convex hull obstacle is not located on the host vehicle guideline; and tagging the target convex hull obstacle with a keep left tag when the center of mass of the target convex hull obstacle is located on the right side of the host vehicle guideline.
[0074] Continuing to refer to FIG. 7, when the obstacle 2 is located on the host vehicle guideline c, the unmanned vehicle 100 follows the obstacle 2 and assigns a following tag to the obstacle 2. When the obstacle 3 is not located on the host vehicle guideline c but is located inside the road and affects the lane safety of the unmanned vehicle 100, the unmanned vehicle 100 needs to pass the obstacle 3 from the left side or the right side in order to avoid the obstacle 3. Based on the technical solution disclosed herein, the relative position of the center of mass of the obstacle 3 and the host vehicle guideline c is detected, and when the center of mass of the obstacle 3 is located on the right side of the host vehicle guideline c (as shown in FIG. 7), the unmanned vehicle 100 passes the obstacle 3 from the left side and assigns a left-hand traffic tag to the obstacle 3, and when the center of mass of the obstacle 3 is located on the left side of the host vehicle guideline c, the unmanned vehicle 100 passes the obstacle 3 from the right side and assigns a right-hand traffic tag to the obstacle 3.
[0075] The vehicle decision-making planning method provided in the embodiments of the present disclosure pre-processes a first grid obstacle to obtain a second grid obstacle, and then converts the second grid obstacle into a second convex hull obstacle, i.e., converts a grid-type obstacle into a convex hull type obstacle, thereby realizing unified decision-making for two types of obstacles, grid-type and convex hull type (i.e., mixed-type obstacles), thereby simplifying the obstacle decision-making process of mixed-type obstacles and accelerating the obstacle decision-making process, and enabling the decision-making planning module to conveniently and quickly make obstacle decisions.
[0076] With the development of vehicle intelligent technology, unmanned vehicle automatic control technology has gradually become a hotspot in the field of vehicle research. Autonomous driving systems need to plan smooth, safe and vehicle-passable routes to prevent vehicles from colliding with obstacles. As an optimized planning algorithm, Julius Ziegler proposed an optimization method in Decal space, which can convert planning problems into optimization problems. However, the method significantly increases the computational burden of the planning module, cannot solve high-speed obstacle avoidance problems, and reduces the generation speed of trajectories, and the method cannot be applied to handling obstacles in dynamic environments.
[0077] In response to the above technical problem, Fig. 8 is a partial schematic flow chart of another vehicle decision-making planning method provided by an embodiment of the present disclosure. The method is applicable to the case of generating a drivable area for static obstacles and / or dynamic obstacles of an unmanned vehicle, and the method can be performed by a driving space generating unit. As shown in Fig. 8, generating a drivable area based on obstacle decision-making (or a vehicle drivable area generating method) includes the following steps:
[0078] In step S310, environmental sensing information is obtained.
[0079] Here, the environmental sensing information includes at least two of lane information, obstacle information, and host vehicle information, and the obstacle information includes static obstacle information and / or dynamic obstacle information. In some embodiments, the lane information includes lane line information and road boundary information, and may be acquired by an on-board camera. The obstacle information may include obstacle position information, obstacle size information, and obstacle movement information, where the obstacle position information may be acquired by a high-definition map and an on-board camera / razor rider, the obstacle size information may be acquired by an on-board camera, and the obstacle movement information may be acquired by an on-board camera and / or a laser rider. The host vehicle information may include host vehicle position information and host vehicle movement information, where the host vehicle position information may be acquired by a high-definition map and a host vehicle positioning module (e.g., GPS), and the host vehicle movement information may be acquired by a host vehicle movement sensor (e.g., a speed sensor and an acceleration sensor, etc.).
[0080] In step S320, lane decision-making semantic information for each lane is determined based on the environmental sensing information.
[0081] Here, the lane decision-making semantic information includes a passing time cost and a safety cost. The passing time cost is used to characterize the traffic condition of a lane, for example, if a vehicle can pass through a lane quickly, the passing time of the lane is fast, and the safety cost is used to characterize the safety of the lane.
[0082] In some embodiments, a passing time cost for each lane may be determined based on a magnitude relationship between the longitudinal speed of the ego vehicle and the longitudinal speed of the obstacle. Thus, when the lane decision-making semantic information includes a passing time cost, determining the lane decision-making semantic information for each lane based on the environmental sensing information includes: for each lane, determining a collision time between the ego vehicle and a first obstacle in front of the ego vehicle based on the environmental sensing information, and determining the collision time as the passing time cost.
[0083] Specifically, the environmental sensing information includes the host vehicle position information and the longitudinal speed information of the host vehicle, and the obstacle position information and the longitudinal speed information of the obstacle immediately ahead of the host vehicle on each lane. Based on the host vehicle position information and the obstacle position information, the longitudinal distance from the host vehicle to the immediately ahead obstacle of each lane is calculated respectively, and based on the longitudinal speed information of the host vehicle and the longitudinal speed information of the obstacle, it is determined whether the longitudinal speed of the obstacle is less than the longitudinal speed of the host vehicle. When the longitudinal speed of the obstacle is less than the longitudinal speed of the host vehicle, the collision time of the host vehicle and the forward obstacle is predicted based on the longitudinal distance, the longitudinal speed information of the host vehicle and the longitudinal speed information of the obstacle, and the collision time is determined as the passing time cost. In addition, when there is no obstacle in front of the host vehicle or the longitudinal speed of the first obstacle in front of the host vehicle is equal to or greater than the longitudinal speed of the host vehicle, the preset time is determined as the passing time cost. Based on the above technical solution, the passing time cost can be calculated using the following formula:
[0084]
number
[0085] For example, as shown in FIG. 9, in the same direction lane, the first obstacle in front of the host vehicle on the host vehicle lane is obstacle 1, and the first obstacle in front of the host vehicle on the adjacent lane is obstacle 2. The longitudinal speed of the host vehicle is 5 m / s, the longitudinal speed of obstacle 1 is 1 m / s, and the longitudinal speed of obstacle 2 is 10 m / s. For the host vehicle lane, the longitudinal speed of obstacle 1 is smaller than the longitudinal speed of the host vehicle, and the host vehicle collides with obstacle 1, at this time, it is determined that the distance D between the host vehicle and obstacle 1 is 16 m, and the collision time between the host vehicle and obstacle 1 is determined to be 4 s according to the above formula, so the passing time cost of the host vehicle lane is 4. For the adjacent lane, the longitudinal speed of obstacle 2 is larger than the longitudinal speed of the host vehicle, and the host vehicle does not collide with obstacle 2, and at this time, the passing time cost of the adjacent lane is a preset time, for example, 10000. This makes it possible to determine that the passing time cost of the adjacent lane is greater than the passing time cost of the host vehicle's lane, i.e., that the passing ability of the adjacent lane is good.
[0086] In some embodiments, in order to ensure the safety of the vehicle, it is necessary to determine the safety cost of each lane simultaneously. Therefore, when the lane decision-making semantic information includes a safety cost, determining the lane decision-making semantic information of each lane based on the environment sensing information includes: determining an ego-vehicle lane and other lanes based on the lane information and the ego-vehicle information; determining a first preset safety cost as the safety cost for the ego-vehicle lane; and determining a second preset safety cost as the safety cost for the other lanes when it is determined that an obstacle will enter the danger area of the ego-vehicle within a preset time based on the environment sensing information; and determining a first preset safety cost as the safety cost for the other lanes when it is determined that an obstacle will not enter the danger area of the ego-vehicle within a preset time based on the environment sensing information, where the second preset safety cost is different from the first preset safety cost.
[0087] Specifically, the environment sensing information includes lane information, host vehicle information, and obstacle information, and the host vehicle lane and other lanes are determined based on the lane information and the host vehicle information, and the host vehicle has absolute right of passage for the host vehicle lane as a default, i.e., the host vehicle lane has the highest safety. For other lanes, a safety judgment is performed for an obstacle in the host vehicle observation area, and if it is predicted that the obstacle in the host vehicle observation area will enter the host vehicle's danger area within a certain future period (i.e., a preset time), it means that the lane in which the obstacle is currently located is low in safety, and if it is predicted that the obstacle in the host vehicle observation area will not enter the host vehicle's danger area within a certain future period, it means that the lane in which the obstacle is currently located is high in safety.
[0088] It can be understood that the lane safety corresponding to the second preset safety cost is lower than the lane safety corresponding to the first preset safety cost. In some embodiments, the second preset safety cost is lower than the first preset safety cost. In some embodiments, a penalty mechanism is employed to assign values to the first preset safety cost and the second preset safety cost, for example, the first preset safety cost is 0 and the second preset safety cost is -100000.
[0089] Based on the above technical solution, the ST diagram (longitudinal displacement-time diagram) can be used to determine whether an obstacle in another lane will enter the danger area of the host vehicle within a certain period of time in the future. In some embodiments, based on the environmental sensing information, the host vehicle ST diagram curve and the obstacle ST diagram curve are determined, the host vehicle's danger area is determined based on the host vehicle ST diagram curve, and it is determined whether the obstacle ST diagram curve overlaps with the host vehicle's danger area within a preset time. If it is determined that the obstacle ST diagram curve overlaps with the host vehicle's danger area within the preset time, it is determined that the obstacle will enter the host vehicle's danger area within the preset time, otherwise, it is determined that the obstacle will not enter the host vehicle's danger area within the preset time. Exemplarily, as shown in FIG. 10, the host vehicle ST diagram curve is the curve indicated by the host vehicle in the diagram, and the obstacle ST diagram curve includes the curves indicated by each of obstacle 1, obstacle 2, obstacle 3, and obstacle 4 in the diagram. The danger area of the vehicle includes a danger area behind the vehicle (area corresponding to section L2) and a danger area in front of the vehicle (area corresponding to section L3), the vehicle observation area includes a danger area behind the vehicle (area corresponding to section L1) and a danger area in front of the vehicle (area corresponding to section L4), and the preset time is T_e. Selectable, L1 is 100 meters, L2 is 20 meters, L3 is 10 meters, L4 is 100 meters, and T_e is 6 seconds. Referring to FIG. 10, as can be seen from the host vehicle ST diagram curve and each obstacle ST diagram curve, the obstacle ST diagram curve corresponding to obstacle 2 in the observation area rear of the host vehicle overlaps with the dangerous area rear of the host vehicle within the preset time T_e, the obstacle ST diagram curve corresponding to obstacle 1 in the observation area rear of the host vehicle does not overlap with the dangerous area rear of the host vehicle within the preset time T_e, the obstacle ST diagram curve corresponding to obstacle 3 in the observation area forward of the host vehicle overlaps with the dangerous area ahead of the host vehicle within the preset time T_e, and the obstacle ST diagram curve corresponding to obstacle 4 in the observation area forward of the host vehicle does not overlap with the dangerous area ahead of the host vehicle within the preset time T_e.As can be seen from this, obstacle 2 and obstacle 3 enter the danger area of the host vehicle within the preset time, and the safety of the lane in which obstacle 2 and obstacle 3 are currently located is low, i.e., the safety cost of the corresponding lane is the second preset safety cost, and obstacle 1 and obstacle 4 do not enter the danger area of the host vehicle within the preset time, and the safety of the lane in which obstacle 1 and obstacle 4 are currently located is high, i.e., the safety cost of the corresponding lane is the first preset safety cost. Note that the obstacle ST diagram curve overlapping with the danger area of the host vehicle includes that the obstacle ST diagram curve is completely located within the danger area of the host vehicle or that a part of the obstacle ST diagram curve is located within the danger area of the host vehicle. In the above embodiment, in order to simplify the calculation, it is set that the obstacle moves at a constant speed, the obstacle ST diagram curve is a straight line, and the danger area of the host vehicle is a parallelogram, all of which are convex hull type figures, and then a collision detection algorithm based on the Gilbert-Johnson-Keerthi algorithm is used to quickly calculate whether the obstacle will enter the danger area of the host vehicle within the preset time T_e.
[0090] In step S330, a drivable area is generated based on the lane decision-making semantic information.
[0091] For each lane, an embodiment of the present disclosure can generate a drivable area based on transit time cost and safety cost simultaneously, thereby selecting a lane that balances traversability and safety.
[0092] In some embodiments, each cost in the lane decision-making semantic information may be weighted and summed, and the drivable area may be generated based on the weighted sum result. In this embodiment, the travel time cost and the safety cost are weighted and summed to obtain the weighted sum result. For example: f=w1f pass +w2f safe , where f is the weighted sum result (or weighted sum value), and f pass is the transit time cost, and f safeis the safety cost, w1 is the weight of the passing time cost, and w2 is the weight of the safety cost. w1 and w2 are obtained by simulation or real vehicle experiment. Based on the technical solution, the embodiment of the present disclosure determines the lane with the largest weighted sum as the drivable area.
[0093] In some embodiments, in order to facilitate the planning unit receiving the drivable area, the boundary of the drivable area is discretized to form drivable area boundary points including a left boundary point and a right boundary point. Exemplarily, the drivable area may be discretized with a fixed resolution based on a Fresnel coordinate system. As shown in FIG. 11, the left boundary and the right boundary of the drivable area are generated with a fixed resolution based on the lane determination information and a curved Fresnel coordinate system constructed at the lane center. The left boundary indicates the upper boundary of the L value in the Fresnel coordinate system, and the right boundary indicates the lower boundary of the L value in the Fresnel coordinate system. Here, the vertical distance between two adjacent left boundary points or two adjacent right boundary points is the above-mentioned fixed resolution. In FIG. 11, the vehicle is located in the right lane, and the lane determination result is also the right lane, so that the left boundary and the right boundary of the drivable area are shown in FIG. 11. If the lane determination result is a lane change, the drivable area at this time will include two lanes.
[0094] The vehicle drivable area generation method provided in the embodiment of the present disclosure determines the lane decision-making semantic information of each lane based on the environmental sensing information, converts the lane decision-making semantic information into the constraint boundary of the drivable area, and can quickly generate a drivable area with high drivability and safety, accelerate the generation of the driving trajectory, and realize the rapid avoidance of obstacles. At the same time, the passing time cost and the safety cost can both characterize the passing cost of dynamic obstacles, and the passing time cost can also characterize the passing cost of static obstacles, so the technical solution of the present disclosure generates a drivable area based on the passing time cost and the safety cost, can simultaneously realize the passing plan of dynamic obstacles and static obstacles, and can be applied to the handling of obstacles in a dynamic environment.
[0095] Based on the above technical solution, when the drivable area determined based on the lane decision-making semantic information includes at least two lanes, and static obstacles exist in at least two lanes, an optimal lane may be further selected based on a traffic width cost. In some embodiments, the lane decision-making semantic information further includes a traffic width cost, and determining the lane decision-making semantic information of each lane based on the environment sensing information includes determining a minimum traffic width of the lane based on the lane information and the static obstacle information, and taking the minimum traffic width as the traffic width cost. Here, the traffic width cost is used to characterize lane congestion caused by static obstacles ahead of the ego-vehicle. In some embodiments, determining the minimum traffic width of the lane based on the lane information and the static obstacle information includes determining a maximum traffic width of each static obstacle on the lane based on the lane information and the static obstacle information, and determining a minimum value of the maximum traffic widths of each static obstacle as the minimum traffic width of the lane.
[0096] Specifically, a Fresnel coordinate system is established, each static obstacle is projected into the Fresnel coordinate system, and an SL bounding box for each obstacle is generated. For each lane, the left and right traffic widths of each static obstacle are calculated, and the maximum traffic width of each static obstacle is determined from the left and right traffic widths. The smallest maximum traffic width among the maximum traffic widths of all static obstacles is selected as the minimum traffic width of the lane, and the minimum traffic width is determined as the traffic width cost. The larger the traffic width cost, the smaller the degree of lane congestion caused by the static obstacle. For example, as shown in FIG. 12, obstacle 1 and obstacle 2 are included on the vehicle lane, and obstacle 3 (obstacle 1, obstacle 2, and obstacle 3 are all static obstacles) is included on the adjacent lane, and the maximum traffic width of obstacle 1 is d1, the maximum traffic width of obstacle 2 is d2, and the maximum traffic width of obstacle 3 is d3. Here, d1 is less than d2, and d2 is less than d3, so the minimum traffic width of the vehicle lane is d1, that is, the traffic width cost of the vehicle lane is d1, and the minimum traffic width of the adjacent lane is d3, that is, the traffic width cost of the adjacent lane is d3. At this time, the obstacle congestion degree of the adjacent lane is smaller than the obstacle congestion degree of the vehicle lane. Therefore, the adjacent lane can be further selected to generate the drivable area.
[0097] Based on the above technical solution, if the optimal drivable area still cannot be determined based on each cost in the lane decision-making semantic information, it is preferable to select the ego-vehicle lane to generate the drivable area by adding a stability cost to the lane decision-making semantic information, so as to ensure the stability of the vehicle driving trajectory. Thus, in some embodiments, the lane decision-making semantic information further includes a stability cost, and determining the lane decision-making semantic information of each lane based on the environment sensing information includes: determining the ego-vehicle lane and other lanes based on the lane information and the ego-vehicle information; determining a first preset stability cost as the stability cost for the ego-vehicle lane; and determining a second preset stability cost as the stability cost for the other lanes, where the second preset stability cost is different from the first preset stability cost. In the technical solution, the first preset stability cost may be greater than the second preset stability cost, the first preset stability cost may be 100, and the second preset stability cost may be 0.
[0098] According to the above embodiments, each cost in the lane decision-making semantic information is weighted and summed to obtain a weighted sum result, which is calculated using the following formula: f=w1f pass +w2f safe +w3f narrow +w4f stable , where f narrow is the road width cost, and f stable is the stability cost, w3 is the weight of the corridor width cost, and w4 is the weight of the stability cost.
[0099] Based on the above technical solutions, in some embodiments, after generating a drivable area based on the lane decision-making semantic information, the method further comprises: Updating a drivable area based on preset traffic rules; updating a drivable region based on vehicle kinematics and dynamics constraints; Updating a drivable area based on the obstacle semantic information and the preset safety area, where the preset safety area is connected to the drivable area; updating the drivable area based on static obstacle information, obstacle decision-making semantic information and a ray tracing algorithm, the obstacle decision-making semantic information including obstacle left-side passing or obstacle right-side passing.
[0100] Specifically, in some embodiments, it is determined whether the drivable area violates a traffic rule based on a preset traffic rule, and the drivable area that violates the traffic rule is further trimmed to update the drivable area. In the embodiments of the present disclosure, the preset traffic rule may include general traffic rules such as yellow dotted lines and solid lines, white dotted lines and solid lines, and lane indicator lines. For example, as shown in FIG. 13, after the lane is determined, the vehicle selects a lane change, so first, the two lanes in the lane change process are used as the drivable area, i.e., the original drivable area. However, since the end of the lane is a solid line, the drivable area is trimmed based on the preset traffic rule to obtain the drivable area surrounded by the black circle points as the boundary points in FIG. 13, i.e., the updated drivable area.
[0101] In some embodiments, the technical solution of the present disclosure may update the drivable area based on the kinematics and dynamics constraints of the vehicle. Illustratively, based on the kinematics and dynamics constraints of the vehicle, the drivable area is updated by adding an additional drivable area when the vehicle is temporarily borrowed. As shown in FIG. 14, the included angle between the heading angle of the ego-vehicle and the heading angle of the road network is Δθ, and the curvature of the ego-vehicle lane position point of the ego-vehicle is k. r Since the L coordinate value in the Fresnel coordinate system of the host vehicle is d, the lateral velocity of the host vehicle relative to the Fresnel coordinate system is d according to the Fresnel kinematic equation. ’ =(1-k r d) tan(Δθ) and the lateral acceleration is
number
number
number
[0102] Specifically, an obstacle to be avoided laterally is determined based on the obstacle meaning information, and if the movement trajectory of the obstacle to be avoided laterally occupies a preset safety area, a part of the drivable area occupying the corresponding position of the preset safety area is trimmed. In this embodiment, the obstacle meaning information may include information for characterizing an obstacle movement state such as obstacle merging, obstacle crossing, obstacle parallel running, and reverse running. The host vehicle automatically determines whether or not lateral obstacle avoidance is necessary based on the obstacle meaning information. For example, if it is determined that an obstacle is merging based on the obstacle meaning information, the host vehicle does not need to avoid the obstacle laterally, and if it is determined that the obstacle is too close to the host vehicle lane based on the obstacle meaning information, the host vehicle needs to avoid the obstacle laterally. For example, as shown in FIG. 15, preset safety areas are added to both sides of the drivable area (if the drivable area is adjacent to a road boundary, the preset safety area may be added only inside the drivable area), and it is determined whether the movement trajectory of the obstacle output by the obstacle prediction module (a preceding module, not involved in this disclosure) occupies the preset safety area. If the movement trajectory occupies the preset safety area, a part of the drivable area that occupies a corresponding position of the preset safety area, for example, the cropping area in FIG. 15, is cropped to update the drivable area.
[0103] In some embodiments, the drivable area obtained in each of the above embodiments includes the area where the static obstacles are located and does not satisfy the obstacle avoidance constraint, so it is necessary to further update the drivable area by trimming the area where the static obstacles are located from the drivable area. In order to avoid the problem that the existing scheme uses a Fresnel bounding box to generate an approximate drivable area, which reduces vehicle traversability, the technical solution of the present disclosure can combine obstacle decision-making semantic information and a ray tracing algorithm to accurately determine the area where the static obstacles are located.
[0104] Specifically, updating the drivable area based on the static obstacle information, the obstacle decision-making semantic information, and the ray tracing algorithm includes determining a collision point between the ray and the obstacle based on the static obstacle information, the obstacle decision-making semantic information, and the ray tracing algorithm, the collision point being located within the drivable area, and updating the drivable area based on the collision point. In some embodiments, determining a collision point between the ray and the obstacle based on the static obstacle information, the obstacle decision-making semantic information, and the ray tracing algorithm includes determining a light source point and a ray casting direction based on the obstacle decision-making semantic information, determining a ray casting range based on the static obstacle information, ray scanning the obstacle based on the light source point, the ray casting direction, and the ray casting range, and determining a collision point between the ray and the obstacle. In some embodiments, the ray tracing algorithm adopts a ray casting algorithm based on the Gilbert-Johnson-Keerthi algorithm to improve the accuracy of the solution.
[0105] Exemplarily, the obstacle decision-making semantic information includes obstacle left-side passing or obstacle right-side passing. When the obstacle decision-making semantic information is obstacle left-side passing, it is determined that the light source point is located on the left side of the static obstacle, the light ray projection direction is perpendicular to the lane traffic direction, and is directed toward the static obstacle. When the obstacle decision-making semantic information is obstacle right-side passing, it is determined that the light source point is located on the right side of the static obstacle, the light ray projection direction is perpendicular to the lane traffic direction, and is directed toward the static obstacle. Based on the static obstacle information, for example, the position information and size information of the static obstacle, the location area of the static obstacle can be determined and the light ray projection range can be determined. After the collision points between the light ray and the obstacle are determined, the limited travelable area is trimmed at each collision point. In the embodiments of the present disclosure, the specific location of the light source point is not limited, and in some embodiments, the light source point may be located on the travelable area boundary point.
[0106] In a specific embodiment, as shown in FIG. 16, first, the Frenet bounding box of the static obstacle, box_sl={S_min, S_max, L_min, L_max}, is set, and the ID range of the static obstacle in the vertical direction of the drivable area is determined based on the Frenet bounding box. When the resolution of the drivable area boundary point is Δs, the above ID range is (id_start, id_end), that is, the ray casting range, where id_start=floor(s_min / Δs), id_end=ceil(s_max / Δs), floor indicates the integer operation of rounding down the floating point number, and ceil indicates the integer operation of rounding up the floating point number. It should be noted that the embodiment of the present disclosure can determine the ray casting range including the entire static obstacle by only using the Frenet bounding box to ensure the complete scanning of the obstacle by the ray, and the collision point determined afterwards is located on the static obstacle, not on the Frenet bounding box boundary. As shown in FIG. 17, the drivable area includes two static obstacles, namely, obstacle 1 and obstacle 2. It can be determined that the host vehicle passes through obstacle 1 from the right side based on the obstacle decision-making semantic information of obstacle 1, and that the host vehicle passes through obstacle 2 from the left side based on the obstacle decision-making semantic information of obstacle 2. Taking obstacle 1 as an example, it can be determined that the point light source is located at the right boundary point of the drivable area based on the obstacle decision-making semantic information of obstacle 1, and the point light source can scan obstacle 1 in sequence according to the ID range by determining the light ray projection range of obstacle 1 by the light source, that is, the above-mentioned ID range, based on the static obstacle information of obstacle 1. Specifically, when the light ray collides with obstacle 1, if the collision point is within the drivable area, the drivable area on the side away from the point light source of the collision point is trimmed until the scanning of the light ray projection range is completed. According to the above technical solution, when the drivable area satisfies the obstacle avoidance constraint, the accuracy of the solution of the occupied area of the static obstacle in the drivable area can be improved, and the vehicle's passability can be improved.
[0107] The embodiment of the present disclosure further provides a vehicle decision-making planning device. Referring to FIG. 2, the vehicle decision-making planning device includes: a basic coordinate system generating unit 111, a guideline generating unit 112, an obstacle decision-making unit 113 and a driving space generating unit 114.
[0108] Here, the basic coordinate system generation unit 111 is used to generate a basic coordinate system, the guideline generation unit 112 is used to generate guidelines under the basic coordinate system and determine the vehicle's future approximate driving trajectory, the obstacle decision-making unit 113 is used to make obstacle decision-making under the constraints of the guidelines, and the driving space generation unit 114 is used to generate a drivable area based on the obstacle decision-making.
[0109] 18 is a block diagram of the functional modules of the obstacle decision-making unit in the vehicle decision-making planning device provided by the embodiment of the present disclosure. As shown in FIG. 18, the obstacle decision-making unit (or the obstacle avoidance decision-making device) includes an information acquisition module 401, a pre-processing module 402, a type conversion module 403 and an avoidance decision-making module 404.
[0110] Wherein, the information acquisition module 401 is used to acquire road information, first grid obstacle information of a first grid obstacle and first convex hull obstacle information of a first convex hull obstacle; The pre-processing module 402 is used to pre-process the first grid obstacles to obtain second grid obstacles according to the road information and the first grid obstacle information, where the number of the second grid obstacles is smaller than the number of the first grid obstacles; A type conversion module 403 is used to convert the second grid obstacle into a second convex hull obstacle; The avoidance decision-making module 404 is used to make avoidance decisions regarding the target convex hull obstacles based on target convex hull obstacle information of the target convex hull obstacles, where the target convex hull obstacles include a first convex hull obstacle and / or a second convex hull obstacle.
[0111] In some embodiments, the pre-processing module 402 includes: An obstacle filtering unit is used to filter out the first grid obstacles located outside the road according to the road information and the first grid obstacle information, and make the remaining first grid obstacles into second grid obstacles; and / or The vehicle includes an obstacle counting unit that is used to determine a first grid obstacle located inside the road based on the road information and the first grid obstacle information, count the first grid obstacle located inside the road, and set the first grid obstacle after the counting process as a second grid obstacle.
[0112] In some embodiments, the obstacle filtering unit comprises: a road bounding box generating subunit, which is used to generate a road bounding box along a road traffic direction based on the road information; a grid obstacle bounding box generating subunit used to generate a grid obstacle bounding box of the first grid obstacle based on the first grid obstacle information; a first grid obstacle subunit used to determine a first grid obstacle located outside the road based on the grid obstacle bounding box and the road bounding box; and a first grid obstacle filtering subunit used for filtering a first grid obstacle located outside the road.
[0113] In some embodiments, the road bounding box generation subunit specifically includes: Based on the road information, the road boundaries are discretized into boundary points; Used to generate road bounding boxes based on the boundary points.
[0114] In some embodiments, the road bounding box generation subunit specifically includes: Determine road boundaries and road boundary curvatures based on the road information; Based on the road boundary curvature, the road boundary is discretized to obtain boundary point clouds spaced apart along the road traffic direction, where each boundary point cloud includes corresponding left and right boundary points in a lateral direction, the lateral direction being perpendicular to the road traffic direction.
[0115] In some embodiments, the road bounding box generation subunit specifically includes: Based on any two adjacent boundary point groups, a rectangular frame passing through each boundary point in any two adjacent boundary point groups is generated, and the rectangular frame is used as a road bounding box.
[0116] In some embodiments, the road bounding box generation subunit specifically includes: The current position of the vehicle is set as the starting road point, Obtain one boundary point group corresponding to the start road point in the horizontal direction; According to the road boundary curvature, select a next road point along the road traffic direction, where the distance between two adjacent road points is negatively correlated with the road boundary curvature; The next road point is taken as the starting road point, and the process returns to obtaining one boundary point group corresponding to the starting road point in the horizontal direction until the distance from the next road point to the current position of the vehicle in the road traffic direction is greater than the preset distance threshold, and all the currently obtained boundary point groups are used to determine the boundary point groups.
[0117] In some embodiments, the grid obstacle bounding box generation subunit specifically includes: generating a grid obstacle contour for the first grid obstacle based on the first grid obstacle information; It is used to generate a grid obstacle bounding box based on the grid obstacle contours.
[0118] In some embodiments, the first grid obstacle sub-unit specifically comprises: for each grid obstacle bounding box, determine a target road bounding box that has a minimum Euclidean distance from the road bounding box to the grid obstacle bounding box based on the grid obstacle bounding box and the road bounding box; Perform collision detection on the grid obstacle bounding box and the corresponding target road bounding box; If there is no collision between the grid obstacle bounding box and the corresponding target road bounding box, the first grid obstacle corresponding to the grid obstacle bounding box is used to determine that the first grid obstacle is located outside the road.
[0119] In some embodiments, the apparatus comprises: It further includes a first grid obstacle position determination module used to determine whether a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road when a collision occurs between the grid obstacle bounding box and the corresponding target road bounding box.
[0120] In some embodiments, the first grid obstacle location determination module is specifically configured to: According to the boundary points of the target road bounding box and the grid obstacle bounding box, collision detection is performed through vector cross product to determine whether the first grid obstacle corresponding to the grid obstacle bounding box is located outside the road.
[0121] In some embodiments, the first grid obstacle location determination module is specifically configured to: Determine the vectors of the boundary points, Determine the vectors of the vertices of the grid obstacle bounding box; If the cross product of the vectors of the vertices of the grid obstacle bounding box and the vector of the boundary point is greater than 0, the first grid obstacle corresponding to the grid obstacle bounding box is used to determine that the grid obstacle is located outside the road.
[0122] In some embodiments, the first grid obstacle location determination module is specifically configured to: Determine the vectors of the boundary points, Determine the vectors of the vertices of the grid obstacle bounding box; If the cross product of the vectors of the vertices of the grid obstacle bounding box and the vector of the boundary point is less than or equal to 0, the first grid obstacle corresponding to the grid obstacle bounding box is used to determine that the grid obstacle is located inside the road.
[0123] In some embodiments, the obstacle counting unit comprises: a first obstacle bounding box generating subunit, which is used to generate a first obstacle bounding box of the first grid obstacle according to the first grid obstacle information of the first grid obstacle located inside the road; a second obstacle bounding box generation subunit, which is used to merge two adjacent first obstacle bounding boxes to generate a second obstacle bounding box when a Euclidean distance between the two adjacent first obstacle bounding boxes is smaller than a width of the ego-vehicle; and a return execution unit which is used to return to and execute, with the second obstacle bounding box as the first obstacle bounding box, to generate a second obstacle bounding box by integrating two adjacent first obstacle bounding boxes when the Euclidean distance between the two adjacent first obstacle bounding boxes is smaller than the width of the host vehicle, until the Euclidean distance between the second obstacle bounding box and the adjacent first obstacle bounding box becomes equal to or greater than the width of the host vehicle or until there are no more first obstacle bounding boxes adjacent to the second obstacle bounding box.
[0124] In some embodiments, the avoidance decision-making module 404 includes: A first determining unit is used for assigning an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies the preset filtering condition based on the target convex hull obstacle information; and / or A second determination unit is used to assign an avoidance tag to the target convex hull obstacle based on the target convex hull obstacle information and the ego-vehicle guideline, where the avoidance tag includes a left-hand driving tag, a right-hand driving tag or a following tag.
[0125] In some embodiments, the preset filtering conditions include: The target convex hull obstacle is located outside the road. The moving state of the target convex hull obstacle satisfies the lateral avoidance unnecessary condition. The target convex hull obstacle is located on the ego-vehicle guideline.
[0126] In some embodiments, the first determining unit is specifically configured to: When the target convex hull obstacle is located outside the road, a tag indicating that no avoidance is required is added to the target convex hull obstacle. When the movement state of the target convex hull obstacle satisfies the lateral avoidance-free condition or the target convex hull obstacle is located on the host vehicle guideline, it is used to assign a lateral avoidance-free tag to the target convex hull obstacle.
[0127] In some embodiments, the no lateral avoidance condition is: Target convex hull obstacles crossing the road, The target convex hull obstacle changes into the vehicle lane. The longitudinal speed of the target convex hull obstacle is greater than the host vehicle speed.
[0128] In some embodiments, the second determining unit is specifically configured to: If the target convex hull obstacle is located on the vehicle guideline, a following tag is attached to the target convex hull obstacle; When the target convex hull obstacle is not located on the host vehicle guideline, if the center of mass of the target convex hull obstacle is located to the left of the host vehicle guideline, the target convex hull obstacle is tagged as a right-hand traffic tag, and if the center of mass of the target convex hull obstacle is located to the right of the host vehicle guideline, the target convex hull obstacle is tagged as a left-hand traffic tag.
[0129] 19 is a block diagram of functional modules of a driving space generation unit in a vehicle decision-making planning device provided by an embodiment of the present disclosure. As shown in FIG. 19, the driving space generation unit (or vehicle drivable area generation device) includes a sensing information acquisition module 501, a lane decision-making semantic information determination module 502 and a drivable area generation module 503.
[0130] Here, the sensing information acquisition module 501 is used to acquire environmental sensing information, where the environmental sensing information includes at least two of information among lane information, obstacle information and host vehicle information, and the obstacle information includes static obstacle information and / or dynamic obstacle information.
[0131] The lane decision-making semantic information determination module 502 is used to determine lane decision-making semantic information for each lane based on the environment sensing information, where the lane decision-making semantic information includes a passing time cost and a safety cost.
[0132] The drivable area generation module 503 is used to generate a drivable area based on the lane decision-making semantic information.
[0133] In some embodiments, when the lane decision-making semantic information includes a transit time cost, the lane decision-making semantic information determination module 502 may be specifically configured to: For each lane, determine a collision time between the host vehicle and a first obstacle in front of the host vehicle based on the environmental sensing information; The collision time is used to determine the transit time cost.
[0134] In some embodiments, the lane decision-making semantics determination module 502 further comprises: If it is determined based on the environmental sensing information that there is no obstacle in front of the host vehicle or the longitudinal speed of the first obstacle in front of the host vehicle is equal to or greater than the longitudinal speed of the host vehicle, the preset time is used to determine the passing time cost.
[0135] In some embodiments, when the lane decision-making semantics includes a safety cost, the lane decision-making semantics determination module 502 may be configured to: determining a host vehicle lane and other lanes based on lane information and host vehicle information; Determine a first preset safety cost as a safety cost for the ego vehicle lane; For other lanes, if it is determined based on the environmental sensing information that an obstacle will enter the danger area of the host vehicle within the preset time, a second preset safety cost is used to determine the safety cost; if it is determined based on the environmental sensing information that an obstacle will not enter the danger area of the host vehicle within the preset time, a first preset safety cost is used to determine the safety cost, where the second preset safety cost is different from the first preset safety cost.
[0136] In some embodiments, the lane decision-making semantic information determination module 502 specifically: Determine a host vehicle ST diagram curve and an obstacle ST diagram curve based on the environmental sensing information; Determine a danger area of the host vehicle based on the host vehicle ST diagram curve; Determine whether the obstacle ST diagram curve overlaps with the danger area of the host vehicle within a preset time; If the obstacle ST diagram curve overlaps with the danger area of the host vehicle within the preset time, it is used to determine that the obstacle will enter the danger area of the host vehicle within the preset time; otherwise, it is used to determine that the obstacle will not enter the danger area of the host vehicle within the preset time.
[0137] In some embodiments, the lane decision-making semantics further includes a passage width cost, and the lane decision-making semantics determination module 502 specifically: determining a minimum lane width based on the lane information and the static obstacle information; The minimum path width is used to determine the path width cost.
[0138] In some embodiments, the lane decision-making semantic information determination module 502 specifically: determining a maximum passage width of each static obstacle on the lane based on the lane information and the static obstacle information; The minimum of the maximum clearance widths of each static obstacle is used to determine the minimum clearance width of the lane.
[0139] In some embodiments, the lane decision-making semantics further includes a stability cost, and the lane decision-making semantics determination module 502 specifically: Determine the host vehicle lane and other lanes based on the lane information and the host vehicle information; Determine a first preset stability cost as a stability cost for the ego vehicle lane; For other lanes, a second preset stability cost is used to determine the stability cost, where the second preset stability cost is different from the first preset stability cost.
[0140] In some embodiments, the drivable area generation module 503 may be configured to: Weight each cost in the lane decision-making semantic information and sum it up, Based on the weighted sum result, it is used to generate a drivable area.
[0141] In some embodiments, the apparatus further comprises: The method further includes a discretization module that is used to discretize a boundary of the drivable area after generating the drivable area based on the lane decision-making semantic information.
[0142] In some embodiments, the apparatus further includes a drivable area update module, which, after generating a drivable area based on the lane decision-making semantic information, specifically: Updating a drivable area based on preset traffic rules; updating a drivable region based on vehicle kinematics and dynamics constraints; Updating a drivable area based on the obstacle semantic information and the preset safety area, where the preset safety area is connected to the drivable area; performing at least one of the following update operations: updating the drivable area based on static obstacle information, obstacle decision-making semantic information and a ray tracing algorithm, where the obstacle decision-making semantic information includes obstacle left-side passing or obstacle right-side passing.
[0143] In some embodiments, the drivable range update module may be configured to: Determining an obstacle to be avoided laterally based on the obstacle semantic information; When the movement trajectory of an obstacle to be avoided in the lateral direction occupies the preset safety area, it is used to trim the partial drivable area occupying the corresponding position of the preset safety area.
[0144] In some embodiments, the drivable range update module may be configured to: Based on the static obstacle information, the obstacle decision-making semantic information and the ray tracing algorithm, the collision point between the ray and the obstacle is determined, and the collision point is located within the drivable area; Used to update the drivable area based on collision points.
[0145] In some embodiments, the drivable range update module may be configured to: Determine a light source point and a light ray casting direction based on the obstacle decision-making semantic information; determining a ray casting range based on static obstacle information; Scanning the obstacle with a light beam based on the light source point, the light beam projection direction and the light beam projection range; Used to determine the collision point between a ray and an obstacle.
[0146] The vehicle decision-making planning apparatus disclosed in the above embodiments can implement the vehicle decision-making planning method disclosed in each of the above embodiments and have the same or corresponding beneficial effects, which will not be repeated here to avoid redundant description.
[0147] An embodiment of the present disclosure further provides an electronic device, comprising a memory and one or more processors, where the memory is communicatively coupled to the one or more processors, and the memory stores instructions executable by the one or more processors, and when the instructions are executed by the one or more processors, the electronic device is used to perform a method described in any embodiment of the present disclosure.
[0148] Fig. 20 is a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present disclosure. As shown in Fig. 20, the electronic device 600 includes a central processing unit (CPU) 601, and executes various processes in the above-mentioned embodiments based on a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 to a random access memory (RAM) 603. The RAM 603 stores various programs and data necessary for the operation of the electronic device 600. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0149] An input unit 606 such as a keyboard, a mouse, etc., an output unit 607 such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, a storage unit 608 such as a hard disk, etc., and a communication unit 609 such as a network interface card such as a LAN card, a model, etc. are connected to the I / O interface 605. The communication unit 609 executes communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, and a computer program read from the medium is loaded into the storage unit 608 as necessary.
[0150] In particular, according to embodiments of the present disclosure, the above-described methods may be implemented as computer software programs. For example, embodiments of the present disclosure include computer program products, including tangible computer programs carried on a readable medium, the computer programs including program code for performing the obstacle avoidance methods. In such embodiments, the computer programs may be downloaded and installed from a network via the communication unit 609 and / or installed from a removable medium 611.
[0151] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of the apparatus, method, and computer program product of various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams represents a module, program segment, or part of code, which includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions illustrated in the blocks may occur in a different order than that illustrated in the accompanying drawings. For example, depending on the related functionality, two connected blocks may be executed substantially in parallel, and may be executed in reverse order in some cases. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system for executing the specified function or operation, or by a combination of dedicated hardware and computer instructions.
[0152] The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The described units or modules may be provided in a processor, and the names of these units or modules do not limit the units or modules themselves in a particular case.
[0153] Furthermore, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiments, or may be a computer-readable storage medium that exists separately and is not integrated into the device, and which stores computer-executable instructions that, when executed by a computing device, can be used to implement the methods described in any of the embodiments of the present disclosure.
[0154] Generating a road bounding box along a road traffic direction based on the road information includes: discretizing road boundaries into boundary points based on the road information; and generating the road bounding box based on the boundary points.
[0155] discretizing road boundaries into boundary points based on the road information, determining a road boundary and a road boundary curvature based on the road information; and discretizing the road boundary based on the road boundary curvature to obtain a cloud of boundary points spaced apart along a road traffic direction, where each cloud of boundary points includes corresponding left and right boundary points in a lateral direction perpendicular to the road traffic direction.
[0156] generating the road bounding box based on the boundary points, The method includes generating a rectangular frame that passes through each boundary point in any two adjacent boundary point groups based on the any two adjacent boundary point groups, and setting the rectangular frame as the road bounding box.
[0157] discretizing the road boundary based on the road boundary curvature to obtain a cloud of boundary points arranged at intervals along a road traffic direction, A current position of the vehicle is set as a starting road point; Obtaining one boundary point group corresponding to the starting road point in a lateral direction; Selecting a next road point along a road travel direction based on a road boundary curvature, where the distance between two adjacent road points is negatively correlated with the road boundary curvature; The method includes: determining the next road point as the starting road point, obtaining one boundary point group corresponding to the starting road point in the horizontal direction until the distance from the next road point to the current position of the vehicle becomes greater than a preset distance threshold in the road traffic direction, and determining all currently obtained boundary point groups as the boundary point group.
[0158] generating a grid obstacle bounding box for the first grid obstacle based on the first grid obstacle information, generating a grid obstacle contour for the first grid obstacle based on the first grid obstacle information; generating the grid obstacle bounding box based on the grid obstacle contour.
[0159] determining the first grid obstacle located outside a road based on the grid obstacle bounding box and the road bounding box, determining, for each said grid obstacle bounding box, a target road bounding box that has a minimum Euclidean distance from said road bounding box to said grid obstacle bounding box based on said grid obstacle bounding box and said road bounding box; performing collision detection for the grid obstacle bounding box and the corresponding target road bounding box; and determining that a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road if the grid obstacle bounding box and the corresponding target road bounding box do not collide.
[0160] The method comprises: The method further includes determining whether a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road when the grid obstacle bounding box and the corresponding target road bounding box collide.
[0161] Determining whether a first grid obstacle corresponding to the grid obstacle bounding box is located outside a road includes: The method includes performing collision detection through a vector cross product based on the boundary points of a target road bounding box and the grid obstacle bounding box, and determining whether a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road.
[0162] Performing collision detection through vector cross-product based on the boundary points of the target road bounding box and the grid obstacle bounding box, and determining whether a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road, determining vectors of boundary points; determining vectors of vertices of a grid obstacle bounding box; and determining that a first grid obstacle corresponding to the grid obstacle bounding box is located outside the road if a cross product of the vectors of the vertices of the grid obstacle bounding box and the vector of the boundary point is greater than zero.
[0163] The method comprises: determining vectors of boundary points; determining vectors of vertices of a grid obstacle bounding box; The method further includes determining that a first grid obstacle corresponding to the grid obstacle bounding box is located inside the road if a cross product of the vectors of the vertices of the grid obstacle bounding box and the vector of the boundary point is less than or equal to 0.
[0164] The counting process of the first grid obstacles located inside the road includes: generating a first obstacle bounding box for the first grid obstacle based on the first grid obstacle information of the first grid obstacle located inside the road; When a Euclidean distance between two adjacent first obstacle bounding boxes is less than a width of the vehicle, the two adjacent first obstacle bounding boxes are integrated to generate a second obstacle bounding box; and when the Euclidean distance between two adjacent first obstacle bounding boxes is less than the vehicle width, merging the two adjacent first obstacle bounding boxes to generate a second obstacle bounding box, using the second obstacle bounding box as the first obstacle bounding box, until the Euclidean distance between the second obstacle bounding box and the adjacent first obstacle bounding box becomes equal to or greater than the vehicle width or until there are no first obstacle bounding boxes adjacent to the second obstacle bounding box.
[0165] Making a decision to avoid a target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle includes: Based on the target convex hull obstacle information, assigning an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies a preset filtering condition; and / or and assigning an avoidance tag to the target convex hull obstacle based on the target convex hull obstacle information and the host vehicle guideline, where the avoidance tag includes a left-hand traffic tag, a right-hand traffic tag, or a following tag.
[0166] The preset filtration conditions are: The target convex hull obstacle is located outside the road; The moving state of the target convex hull obstacle satisfies a lateral avoidance unnecessary condition; The target convex hull obstacle is located on the ego-vehicle guideline.
[0167] assigning an avoidance-free tag or a lateral avoidance-free tag to the target convex hull obstacle that satisfies a preset filtering condition based on the target convex hull obstacle information, When the target convex hull obstacle is located outside a road, the target convex hull obstacle is tagged as "no need to avoid"; When the movement state of the target convex hull obstacle satisfies a lateral avoidance-free condition or when the target convex hull obstacle is located on the host vehicle guideline, the method includes assigning the lateral avoidance-free tag to the target convex hull obstacle.
[0168] The lateral avoidance unnecessary condition is: the target convex hull obstacle crossing a road; The target convex hull obstacle changes into the host vehicle lane; The longitudinal speed of the target convex hull obstacle is greater than the host vehicle speed.
[0169] assigning an avoidance tag to the target convex hull obstacle based on the target convex hull obstacle information and the host vehicle guideline, When the target convex hull obstacle is located on the host vehicle guideline, the target convex hull obstacle is assigned the following tag; When the target convex hull obstacle is not located on the host vehicle guideline, if the center of mass of the target convex hull obstacle is located to the left of the host vehicle guideline, assigning the right-hand traffic tag to the target convex hull obstacle, and if the center of mass of the target convex hull obstacle is located to the right of the host vehicle guideline, assigning the left-hand traffic tag to the target convex hull obstacle.
[0170] The method comprises: The method further includes determining a preset time as the passing time cost when it is determined based on the environmental sensing information that there is no obstacle in front of the host vehicle or that the longitudinal speed of a first obstacle in front of the host vehicle is equal to or greater than the longitudinal speed of the host vehicle.
[0171] The method comprises: determining an ST diagram curve of an own vehicle and an ST diagram curve of an obstacle based on the environmental sensing information; determining a danger area of the host vehicle based on the ST diagram curve of the host vehicle; Determining whether the obstacle ST diagram curve overlaps with a danger area of the host vehicle within the preset time; If it is determined that the obstacle ST diagram curve overlaps with the danger area of the host vehicle within the preset time, it is determined that the obstacle will enter the danger area of the host vehicle within the preset time, and if not, it is determined that the obstacle will not enter the danger area of the host vehicle within the preset time.
[0172] The lane decision-making semantic information further includes a traffic width cost. Determining the lane decision-making semantic information of each lane based on the environmental sensing information includes: determining a minimum lane width based on the lane information and the static obstacle information; determining the minimum path width as the path width cost.
[0173] Determining a minimum lane width based on the lane information and the static obstacle information includes: determining a maximum passage width of each static obstacle on the lane based on the lane information and the static obstacle information; determining the minimum value among the maximum clearance widths of each static obstacle as the minimum clearance width of the lane.
[0174] The lane decision-making semantic information further includes a stability cost, and determining the lane decision-making semantic information of each lane based on the environmental sensing information includes: determining a host vehicle lane and other lanes based on the lane information and the host vehicle information; determining a first preset stability cost as the stability cost for the ego vehicle lane; and determining a second preset stability cost as the stability cost for the other lanes, where the second preset stability cost is different from the first preset stability cost.
[0175] Generating a drivable area based on the lane decision-making semantic information includes: weighting and summing each cost in the lane decision-making semantic information; and generating a drivable area based on the weighted sum result.
[0176] After generating a drivable area based on the lane decision-making semantic information, the method includes: The method further includes discretizing a boundary of the drivable region.
[0177] After generating a drivable area based on the lane decision-making semantic information, the method includes: updating the travelable area based on preset traffic rules; updating the drivable region based on vehicle kinematics and dynamics constraints; Updating the drivable area based on obstacle semantic information and a preset safety area, the preset safety area being connected to the drivable area; updating the drivable area based on the static obstacle information, obstacle decision-making semantic information and a ray tracing algorithm, wherein the obstacle decision-making semantic information includes obstacle left-side passing or obstacle right-side passing.
[0178] Updating the drivable area based on the obstacle semantic information and the preset safe area determining an obstacle to be laterally avoided based on the obstacle semantic information; When the movement trajectory of the obstacle to be avoided in the lateral direction occupies the preset safety area, trimming a partial drivable area occupying a corresponding position of the preset safety area is included.
[0179] updating the drivable area based on the static obstacle information, the obstacle decision-making semantic information, and a ray tracing algorithm; determining a collision point between a ray and an obstacle based on the static obstacle information, the obstacle decision-making semantic information and a ray tracing algorithm, and the collision point is located within the drivable area; and updating the drivable area based on the collision point.
[0180] determining a collision point between a ray and an obstacle based on the static obstacle information, the obstacle decision-making semantic information, and a ray tracing algorithm; determining a light source point and a light ray casting direction based on the obstacle decision-making semantic information; determining a ray projection range based on the static obstacle information; scanning an obstacle with a light beam based on the light source point, the light beam projection direction, and the light beam projection range; and determining a collision point between the ray and said obstacle.
[0181] The decision-making method for obstacle avoidance is Obtaining road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; pre-processing the first grid obstacles based on the road information and the first grid obstacle information to obtain second grid obstacles; Transforming the second grid obstacle into a second convex hull obstacle; and determining to avoid the target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle, where the target convex hull obstacle includes the first convex hull obstacle and / or the second convex hull obstacle.
[0182] The vehicle travelable area generating method includes: Obtaining environmental sensing information, the environmental sensing information including at least two of lane information, obstacle information, and host vehicle information, the obstacle information including static obstacle information and / or dynamic obstacle information; determining lane decision-making semantics for each lane based on the environmental sensing information, the lane decision-making semantics including a transit time cost and a safety cost; generating a drivable area based on the lane decision-making semantics.
[0183] The above are specific embodiments of the present disclosure, intended to enable those skilled in the art to understand or practice the present disclosure. Various modifications of these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Thus, the present disclosure is not limited to these embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0184] <Industrial Applicability> The present disclosure converts grid-type obstacles into convex hull-type obstacles and realizes unified decision-making for two types of obstacles, grid-type and convex hull-type, thereby simplifying the obstacle decision-making process for mixed types of obstacles and accelerating the obstacle decision-making process, so that the decision-making planning module can conveniently and quickly perform obstacle decision-making, and has high industrial practicality.
Claims
1. generating a base coordinate system; generating a guideline under the basic coordinate system to determine a future approximate travel trajectory of the vehicle; making obstacle decisions under the constraints of the guidelines; and generating a drivable area based on the obstacle decision-making.
2. Making obstacle decisions is Obtaining road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; pre-processing the first grid obstacle based on the road information and the first grid obstacle information to obtain a second grid obstacle; Transforming the second grid obstacle into a second convex hull obstacle; making an avoidance decision for the target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle; The method of claim 1 , wherein the target convex hull obstacle comprises the first convex hull obstacle and / or the second convex hull obstacle.
3. Pre-processing the first grid obstacle to obtain a second grid obstacle based on the road information and the first grid obstacle information includes: and / or, based on the road information and the first grid obstacle information, filtering out the first grid obstacles located outside the road and setting the remaining first grid obstacles as the second grid obstacles; 3. The method according to claim 2, further comprising: determining the first grid obstacle located inside the road based on the road information and the first grid obstacle information; aggregating the first grid obstacle located inside the road; and setting the first grid obstacle after the aggregating process as the second grid obstacle.
4. filtering the first grid obstacle located outside the road based on the road information and the first grid obstacle information, generating a road bounding box along a road traffic direction based on the road information; generating a grid obstacle bounding box for the first grid obstacle based on the first grid obstacle information; determining the first grid obstacle located outside a road based on the grid obstacle bounding box and the road bounding box; and filtering out the first grid obstacles located outside a road.
5. Generating a drivable area based on obstacle decision making Obtaining environmental sensing information, the environmental sensing information including at least two of lane information, obstacle information, and host vehicle information, the obstacle information including static obstacle information and / or dynamic obstacle information; determining lane decision-making semantics for each lane based on the environmental sensing information, the lane decision-making semantics including a transit time cost and a safety cost; and generating a drivable area based on the lane decision-making semantics.
6. When the lane decision-making semantic information includes a passing time cost, determining lane decision-making semantic information for each lane based on the environment sensing information includes: determining, for each lane, a time to collision between the host vehicle and a first obstacle ahead of the host vehicle based on the environmental sensing information; and determining said collision time as said transit time cost.
7. When the lane decision-making semantic information includes a safety cost, determining lane decision-making semantic information for each lane based on the environment sensing information includes: determining a host vehicle lane and other lanes based on the lane information and the host vehicle information; determining a first preset safety cost as the safety cost for the ego vehicle lane; For the other lane, when it is determined based on the environmental sensing information that an obstacle will enter a danger area of the host vehicle within a preset time, determining a second preset safety cost as the safety cost, and when it is determined based on the environmental sensing information that the obstacle will not enter the danger area of the host vehicle within the preset time, determining the first preset safety cost as the safety cost; 6. The method of claim 5, wherein the second preset safety cost is different from the first preset safety cost.
8. Obtaining road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; pre-processing the first grid obstacle based on the road information and the first grid obstacle information to obtain a second grid obstacle; Transforming the second grid obstacle into a second convex hull obstacle; making an avoidance decision for the target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle; The obstacle avoidance decision-making method, wherein the target convex hull obstacle includes the first convex hull obstacle and / or the second convex hull obstacle.
9. Pre-processing the first grid obstacle to obtain a second grid obstacle based on the road information and the first grid obstacle information includes: and / or, based on the road information and the first grid obstacle information, filtering out the first grid obstacles located outside the road and setting the remaining first grid obstacles as the second grid obstacles; 9. The method according to claim 8, further comprising: determining the first grid obstacle located inside the road based on the road information and the first grid obstacle information; aggregating the first grid obstacle located inside the road; and setting the first grid obstacle after the aggregating process as the second grid obstacle.
10. Obtaining environmental sensing information, the environmental sensing information including at least two of lane information, obstacle information, and host vehicle information, the obstacle information including static obstacle information and / or dynamic obstacle information; determining lane decision-making semantic information for each lane based on the environmental sensing information, the lane decision-making semantic information including a transit time cost and a safety cost; generating a drivable area based on the lane decision-making semantic information.
11. When the lane decision-making semantic information includes a passing time cost, determining lane decision-making semantic information for each lane based on the environment sensing information includes: determining, for each lane, a time to collision between the host vehicle and a first obstacle ahead of the host vehicle based on the environmental sensing information; and determining the collision time as the transit time cost.
12. When the lane decision-making semantic information includes a safety cost, determining lane decision-making semantic information for each lane based on the environment sensing information includes: determining a host vehicle lane and other lanes based on the lane information and the host vehicle information; determining a first preset safety cost as the safety cost for the ego vehicle lane; For the other lane, when it is determined based on the environmental sensing information that an obstacle will enter a danger area of the host vehicle within a preset time, determining a second preset safety cost as the safety cost, and when it is determined based on the environmental sensing information that the obstacle will not enter the danger area of the host vehicle within the preset time, determining the first preset safety cost as the safety cost; The method of claim 10 , wherein the second preset safety cost is different from the first preset safety cost.
13. a base coordinate system generating unit for generating a base coordinate system; a guideline generating unit for generating a guideline under the basic coordinate system and determining a future approximate traveling trajectory of a vehicle; an obstacle decision making unit for making obstacle decisions under the constraints of the guidelines; A vehicle decision-making and planning device comprising: a driving space generation unit for generating a driveable area based on obstacle decision-making.
14. The obstacle decision-making unit is an information acquiring module for acquiring road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; a pre-processing module for pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information, where a number of the second grid obstacles is smaller than a number of the first grid obstacles; a type conversion module for converting the second grid obstacle into a second convex hull obstacle; and an avoidance decision-making module for making avoidance decisions for a target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle, the target convex hull obstacle including the first convex hull obstacle and / or the second convex hull obstacle.
15. The driving space generation unit includes: A sensing information acquisition module for acquiring environmental sensing information, the environmental sensing information including at least two of lane information, obstacle information, and host vehicle information, the obstacle information including static obstacle information and / or dynamic obstacle information; a lane decision-making semantic information determination module for determining lane decision-making semantic information for each lane based on the environmental sensing information, the lane decision-making semantic information including a passing time cost and a safety cost; and a drivable area generation module for generating a drivable area based on the lane decision-making semantics.
16. an information acquiring module for acquiring road information, first grid obstacle information of a first grid obstacle, and first convex hull obstacle information of a first convex hull obstacle; a pre-processing module for pre-processing the first grid obstacles to obtain second grid obstacles based on the road information and the first grid obstacle information, where a number of the second grid obstacles is smaller than a number of the first grid obstacles; a type conversion module for converting the second grid obstacle into a second convex hull obstacle; an avoidance decision-making module for making an avoidance decision regarding a target convex hull obstacle based on target convex hull obstacle information of the target convex hull obstacle, the target convex hull obstacle including the first convex hull obstacle and / or the second convex hull obstacle.
17. A sensing information acquisition module for acquiring environmental sensing information, the environmental sensing information including at least two of lane information, obstacle information, and host vehicle information, the obstacle information including static obstacle information and / or dynamic obstacle information; a lane decision-making semantic information determination module for determining lane decision-making semantic information for each lane based on the environmental sensing information, the lane decision-making semantic information including a passing time cost and a safety cost; and a drivable area generation module for generating a drivable area based on the lane decision-making semantic information.
18. An electronic device comprising a memory and one or more processors, The memory is communicatively connected to the one or more processors, instructions executable by the one or more processors are stored in the memory, and when the instructions are executed by the one or more processors, the electronic device is adapted to realize a method according to any one of claims 1 to 12.
19. A computer-readable storage medium having stored thereon computer-executable instructions, the computer-executable instructions, when executed by a computing device, causing a method according to any one of claims 1 to 12 to be implemented.
Citation Information
Patent Citations
Route modification device
JP2014211759A
Travel support device and travel support method
JP2016017914A
Nearby article detection apparatus
JP2017187422A
Travel support device
JP2017187844A
Object recognition device
JP2018084987A
Cited By
Watermarking quantum models by leveraging metadata
US12645767B2
