Modular scene construction method and system for automatic driving test
Through modular scene construction methods and systems, algorithms are used to build a variety of road modules and simulation environment model libraries, which solves the problems of high cost and low efficiency in autonomous driving testing, realizes efficient custom scene modeling and complex scene generation, covering Scenarios that cannot be realized in real vehicles improve test efficiency and safety.
Patent Information
- Application Number
- CN202410857625.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-24
AI Technical Summary
Field testing of existing autonomous driving test vehicles is high-cost and inefficient. It is difficult to quickly build and test special scenarios, lacks flexible custom scene modeling capabilities, and is difficult to interact with efficient autonomous driving test scenarios.
A modular scene construction method and system is proposed. By building a variety of road modules and simulation environment model libraries based on algorithms, the customized construction and modification of road scenes can be achieved, including straight roads, curves, loops, tunnels, bridges and other modules. As well as traffic lights and environment models, vector methods and universal coordinate transformations are used to reduce the amount of data calculation and improve tool versatility.
It achieves highly efficient custom scene modeling, reduces costs, can quickly generate complex scenes, covers dangerous scenes that cannot be achieved by real vehicles, and improves the efficiency and safety of autonomous driving tests.
Smart Images

Figure CN118690465A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road simulation scene construction, and in particular to a modular scene construction method and system for autonomous driving testing. Background Art
[0002] With the rapid development of artificial intelligence technology and chips, autonomous driving testing has received widespread attention. It can effectively reduce traffic accidents caused by driver fatigue and inattention, and can predict and avoid potential dangers. Road testing is a way for autonomous driving test vehicles to accumulate test data and thus improve algorithm performance.
[0003] However, traditional real vehicle testing has great limitations, long test mileage and test cycle, complex scenarios, difficult to reproduce dangerous scenarios, and low test efficiency. Therefore, virtual simulation is particularly important. By building a real static environment and dynamic traffic scene, allowing virtual vehicles to drive in user-defined simulation scenes to test the autonomous driving test algorithm, the density of dangerous scenes with high training value can be effectively increased in the limited virtual test mileage, which can speed up the autonomous driving test process, reduce the cost and time of the test while ensuring the safety of the test personnel, and can cover dangerous scene experiments that cannot be carried out on real vehicles, so that defects and faults in the test algorithm can be discovered in time.
[0004] At present, the application scenario modeling used for autonomous driving testing is based on specific scenario selection, which lacks flexibility and cannot meet the requirements of specific special scenarios. Summary of the invention
[0005] In order to solve the problems of high cost and low efficiency in field testing of existing autonomous driving test vehicles, difficulty in testing various special scenarios at any time, and rare high-efficiency customized scenario modeling and autonomous driving test scenario interaction that can reconstruct high-precision maps and perform joint simulation with other platforms, the present invention proposes a modular scenario construction method and system for autonomous driving testing to meet the testing requirements.
[0006] According to one aspect of the present invention, a modular scenario construction method for autonomous driving testing is proposed, the method comprising the following steps:
[0007] Build multiple road modules based on different algorithms, including straight road module, straight road curve S curve module, loop module, tunnel module, bridge module, overpass module, viaduct module, pedestrian bridge module, three-way intersection module, fork road module, crossroad module, lane line module, traffic light module, and traffic element prop insertion module;
[0008] Establishing an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module;
[0009] The multiple road modules and the autonomous driving test simulation environment model library are used to build and modify road scenes.
[0010] Furthermore, the construction algorithm corresponding to the straight road module includes: based on the three basic parameters of the road center starting point, end point and road width, constructing the direction vector and normal vector operation to obtain the spatial position coordinates of the road edge vertex, and creating it using the three-point modeling function; wherein the direction vector and normal vector are:
[0011] t=(x,y)=(cosθ,sinθ)
[0012] v=(cos(θ+90°),sin(θ+90°))=(-sinθ,cosθ)=(-y,x)
[0013] Among them, t is the direction vector; v is the normal vector; x is the horizontal coordinate of the end point of the straight path module; y is the vertical coordinate of the end point of the straight path module; θ is the angle between the straight path module and the positive direction of the x-axis.
[0014] Furthermore, the building algorithms corresponding to the straight road, curved S-curve module include: two-point modeling and three-point modeling. The number of input points is determined according to the number of bytes of the input coordinates. If there are two points, the building algorithm corresponding to the straight road module is directly run; if there are three points, the slopes of the two front and rear points are judged. If they are equal, the building algorithms corresponding to the straight road module are run in sequence. If they are not equal, curve modeling is performed. The curve modeling includes calculating the radius of the tangent circular curve of the two straight lines through the angle of the corner at a fixed distance, and obtaining the coordinates of the key points at the intersection of the straight line and the tangent circular curve and the coordinates of the center of the tangent circle through vector calculation. The trajectory point set of the circular curve is calculated using the coordinate information of the points and the point connection is drawn.
[0015] Furthermore, the construction algorithm corresponding to the loop module includes: according to the given node coordinates, starting from the starting node, executing a loop for every three points, the loop content is to first connect the three points in sequence with two straight lines, determine the length of the two straight lines before and after the connection, and assume that the length of the previous section is shorter, then take half of the short side as the radius of the inscribed arc, and at the same time take a point half the distance from the short side in the long side direction, and the point and the midpoint of the short side can form an inscribed circle with a radius length of half the short side; after the arc is drawn in the latter section, a straight line is drawn from the position where the arc is drawn to the midpoint of the long side, and a loop is completed, and the given node coordinates are traversed in sequence to complete the construction of the loop module;
[0016] The construction algorithm corresponding to the tunnel module includes: drawing four points of the road according to the center line, first calculating the coordinates of the center line vector, and then calculating the normal vector perpendicular to the center line vector and parallel to the road plane, and calculating the four endpoints of the road that needs to be drawn on the basis of this; drawing the road plane according to the four points of the road, and constructing two triangles to form a quadrilateral road surface; drawing the semicircular ring of the tunnel opening: firstly divide the inner and outer circles that constitute the ring in a way that the corresponding central angles are equal, and then select two adjacent points of the inner circle and the corresponding two points of the outer circle, and draw a trapezoid according to the four-point road plane drawing algorithm; drawing the semi-cylinder of the tunnel body: using the adjacent two points obtained by dividing the points in the process of drawing the front and rear tunnel openings as four points to draw the inner and outer semi-cylindrical planes; drawing the tunnel slope arc segment: taking the left and right end points of the two ends of the tunnel as the starting point, draw arcs tangent to the tunnel respectively, and the ends of the arcs are parallel to the tangent line in the horizontal plane.
[0017] Furthermore, the construction algorithm corresponding to the bridge module includes: constructing a bridge matrix, a bridge column base, and a bridge cable, generating a bridge deck across the bridge according to the given three-dimensional coordinates of the starting point and the end point and the road width through the construction algorithm corresponding to the straight road module, taking the four boundary points of the bridge deck scene as fulcrums, performing vertical vector calculations, and sequentially generating the first and second bridge matrix models below the bridge deck, dividing the longitudinal distance of the bridge deck into five equal parts according to the coordinate position difference between the starting point and the end point, and drawing bridge columns at the second and fourth sections; calculating the center point position according to the length of the bridge deck to generate the center positive column of the bridge, and connecting it to the bridge deck to draw and generate cable-stayed cables;
[0018] The construction algorithm corresponding to the interchange module includes: drawing the branch road connection between the main road and the right-turn ramp, constructing the local coordinate system, and generating the positive spiral surface of the circular ramp;
[0019] The construction algorithm corresponding to the viaduct module includes: additionally establishing a box girder model at the bottom of the road surface, and when the three-dimensional coordinates of the starting point and the end point of the viaduct are input, a box girder model composed of a rectangle and a trapezoid is automatically generated at the cross section according to a preset ratio;
[0020] The construction algorithm corresponding to the pedestrian bridge module includes: according to the three input points, using the vector method to calculate the coordinates of each boundary geometric point of the pedestrian bridge composed of the bridge body, stairs and guard plate, and using the construction algorithm corresponding to the straight road module to perform splicing processing to form the pedestrian bridge.
[0021] Furthermore, the construction algorithm corresponding to the three-way intersection module includes: designing the construction algorithm corresponding to the straight road module according to the road center points and road widths of the three straight roads P1P2, P3P4, P5P6; and calculating the road edge point P according to the road center points of the three pre-set roads using a vector calculation method. 1l , P 1r , P2l , P 2r , P 3l , P 3r , P 4l , P 4r , P 5l , P 5r , P 6l , P 6r The location of each road is close to the side, that is, P 1l P 2l , P 3r P 4r The intersection point Q1 is calculated from the two straight lines, and Q2 and Q3 are calculated in turn; 2l , P 2r , Q1, Q2 to establish a straight extension section, and then establish the straight extension sections of the other two roads in turn; according to the intersection points Q1, Q2, Q3 of the three road edge points, establish the middle triangle connection area module, so far the design and drawing of the trunk part is completed; the edge parts of the two intersecting roads are rounded transition processed, from the intersection points Q1, P 2l , P 4r The center O1 of the rounded transition area and its corresponding arc curve are calculated, and a road model is created for the arc triangle, thereby realizing the complete design and drawing of the three-way intersection;
[0022] The construction algorithm corresponding to the fork road module includes: taking a point on a known road, extending a road outside the road, and realizing a smooth connection between the main road and the fork road;
[0023] The construction algorithm corresponding to the intersection module includes: determining whether two straight road models intersect when establishing them. If the two straight lines intersect, modifying the straight road module model to generate an intersection road scene model instead; obtaining the geometric structure parameters of the intersection, including the road starting point, end point, and road width information, calculating the two direction vectors of the intersection by vector method, and calculating their corresponding normal vectors in turn, calculating the geometric position of the boundary point of the road structure by the given road endpoint position and the corresponding vector, and creating an intersection road scene model.
[0024] Furthermore, the construction algorithm corresponding to the lane line module includes: construction of one-way lane lines, circular one-way lane lines, and dotted lane lines, wherein the construction algorithm of the straight one-way lane line is the same as that of the straight module, the circular one-way lane line construction algorithm is to take points at equal intervals on the circular ring, and the dotted lane line construction algorithm includes application when splicing straight lines and circular arc roads, judging whether there will be a situation where the dotted line intersects with the boundary at the end position, and ensuring that the cumulative length of the last dotted line segment of the previous section of the road and the dotted line segment is consistent with the length of a single dotted line segment;
[0025] The construction algorithm corresponding to the traffic light module includes: taking the center of the circle as the origin coordinate, calculating the coordinates of each key point in the traffic light pattern through coordinate transformation, combining each point into a basic geometric figure, using four points to form a plane function for drawing and design, and setting the transparency of each node to 0 or 1 to realize the display and hiding of the node;
[0026] The construction algorithm corresponding to the traffic element prop insertion module includes three calling modes: single point insertion, linear insertion and polygonal surface insertion. The position and orientation of the inserted props are calculated, including the conversion of Euler angles and direction cosine matrices. The direction cosine matrix represents the posture of the model through the conversion matrix of model coordinates and world coordinates. Then, the coordinates of the interpolation points are calculated in linear insertion, and the polygonal area is constructed in polygonal surface insertion to select the interpolation points. After determining the position and orientation of the inserted props, the optimized linear equation method is used to determine the relationship between the point and the polygon position, and then determine whether the point meets the condition of being within the area when the polygonal surface is inserted.
[0027] Further, the modification in the construction and modification of the road scene using the multiple road modules and the autonomous driving test simulation environment model library includes road connection, road cutting, and road addition; wherein the road connection includes: judging whether the position relationship of two straight roads intersects and generates a road overlap area according to the position and structural parameters of the two roads, and if there is no road overlap, solving the position parameters of the connection point according to the starting point and end point parameters of the two roads to achieve the connection of non-intersecting straight roads; if the roads overlap, calculating the structural parameters of the intersecting area, removing it, and processing it as non-intersecting roads;
[0028] Road cutting includes: straight road module and arc road cutting. In the straight road module, interpolation and new node method is used for cutting; in the arc road, intermediate interpolation and new node are used to generate arc road for cutting.
[0029] Road adding includes: adding the number of roads based on the constructed road model, and for the constructed road model, determining the number of roads to be added on one side by extracting the starting point and end point coordinates of the road centerline to determine the vertical vector, and at the same time determining the position of the road centerline according to the number of roads to be added to ensure that the position of the straight road before the road is added does not change.
[0030] Furthermore, the method also includes: modifying and reading the attributes of the constructed road module, and listing the data information as a parameter list and sending it to the front-end user and the simulation test platform respectively.
[0031] According to another aspect of the present invention, a modular scenario construction system for autonomous driving testing is provided, the system comprising:
[0032] A road model building module, which is configured to build multiple road modules based on different algorithms, wherein the multiple road modules include a straight road module, a straight road bend S-curve module, a loop road module, a tunnel module, a bridge module, an overpass module, an elevated bridge module, a pedestrian bridge module, a three-way intersection module, a fork road module, a crossroads module, a lane line module, a traffic light module, and a traffic element prop insertion module;
[0033] An environment model building module, which is configured to establish an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module;
[0034] A road scene building module is configured to build and modify road scenes using the multiple road modules and the autonomous driving test simulation environment model library.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The present invention uses a few control points and a vector method and a general coordinate transformation method to construct various road modules, reduces the amount of data calculation, classifies various situations, improves the versatility of the tool, and can achieve efficient custom scene modeling. The present invention uses an interactive interface and a public parameter library to easily modify the parameters of the custom scene modeling scene, easily generate complex scenes, and make various scenes that cannot be obtained at will in reality convenient to obtain in the simulation scene, reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention can be better understood by referring to the description given below in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification, and are used to further illustrate the preferred embodiments of the present invention and explain the principles and advantages of the present invention.
[0038] Figure 1 A flowchart of a modular scenario construction method for autonomous driving testing according to an embodiment of the present invention;
[0039] Figure 2 A flow chart of the algorithm for building a tunnel module in an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of a tunnel module in an embodiment of the present invention is drawn;
[0041] Figure 4 A flow chart of the algorithm for building a bridge module in an embodiment of the present invention;
[0042] Figure 5 A schematic diagram of a fork module in an embodiment of the present invention is drawn;
[0043] Figure 6 An algorithm flow chart for constructing a traffic element prop insertion module in an embodiment of the present invention;
[0044] Figure 7 A flowchart of the linear equation method in the traffic element prop insertion module construction algorithm in an embodiment of the present invention;
[0045] Figure 8 Schematic diagram of the road connection algorithm model in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, exemplary implementations or embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described implementations or embodiments are only implementations or embodiments of a part of the present invention, not all of them. Based on the implementations or embodiments of the present invention, all other implementations or embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present invention.
[0047] The embodiment of the present invention proposes a modular scenario construction method for autonomous driving testing, such as Figure 1 As shown, the method comprises the following steps:
[0048] Step 1: Build multiple road modules based on different algorithms, including straight road module, straight road curve S curve module, loop module, tunnel module, bridge module, overpass module, viaduct module, pedestrian bridge module, three-way intersection module, fork road module, crossroad module, lane line module, traffic light module, and traffic element prop insertion module;
[0049] Step 2: Establish an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module;
[0050] Step three: Use the multiple road modules and the autonomous driving test simulation environment model library to build and modify road scenes.
[0051] The method starts from step 1. In step 1, multiple road modules are built based on different algorithms. The attribute parameters of key points of different road modules can be modified, so as to meet the needs of users to select different road module tools according to actual needs and realize customized road scene construction.
[0052] According to the embodiment of the present invention, in the road module, modeling algorithms in different scenarios are used for construction, and all road modules are expanded based on the straight road module algorithm.
[0053] 1) The construction algorithm corresponding to the straight road module includes: based on the three basic parameters of the road center starting point, end point and road width, construct the direction vector and normal vector operation to obtain the spatial position coordinates of the road edge vertex, which are created using the three-point modeling function, where the direction vector and normal vector are:
[0054] t=(x,y)=(cosθ,sinθ)
[0055] v=(cos(θ+90°),sin(θ+90°))=(-sinθ,cosθ)=(-y,x)
[0056] Wherein t is the direction vector, v is the normal vector, x is the abscissa of the end point of the straight path module, y is the ordinate of the end point of the straight path module, and θ is the angle between the straight path module and the positive direction of the x-axis.
[0057] 2) The construction algorithm corresponding to the straight road, curved road and S-curve module includes: it is mainly divided into two-point modeling and three-point modeling. After the user inputs the coordinate number, the number of input points is determined according to the number of bytes input. If there are two points, the straight road module algorithm is directly run. If there are three points, the slopes of the two front and rear points are judged. If they are equal, the straight road module modeling can be carried out in turn. If they are not equal, the curved road modeling is carried out.
[0058] If the coordinates of three points are known and the slopes of adjacent lines are calculated to be unequal, the curve model can be built at the intersection of the two lines. The key calculation steps are: calculate the radius of the common tangent circle curve of the two lines by the angle of the angle at a fixed distance, and obtain the coordinates of the key points at the intersection of the straight line and the common tangent circle curve and the coordinates of the center of the common tangent circle by vector calculation, and use the coordinate information of the points to calculate the trajectory point set of the circle curve and connect the points to draw.
[0059] 3) The construction algorithm corresponding to the loop module includes: according to the given important node coordinates, starting from the starting node, the following modeling cycle steps are performed between every three points. First, the three points are connected in sequence with two straight lines, and then the length of the two straight lines before and after the connection is determined. Assuming that the length of the first section is shorter, half of the short side is taken as the radius of the inscribed arc. At the same time, a point half the distance from the short side is taken in the long side direction. This point and the midpoint of the short side can form an inscribed circle with a radius of half the short side. Since the latter section is longer, after the arc is drawn, a straight line is drawn from the position where the arc is drawn to the midpoint of the long side. At this point, a cycle is completed until the cycle reaches the starting position, and the loop is constructed.
[0060] 4) Refer to the attached Figure 2 As shown, the construction algorithm corresponding to the tunnel module includes:
[0061] S11, drawing four points of the road according to the center line, first calculating the center line vector coordinates, and then calculating the normal vector perpendicular to the center line vector and parallel to the road plane, and based on this, calculating the four endpoints of the road that needs to be drawn;
[0062] S12, drawing a road plane according to the four points of the road, constructing two triangular faces respectively, and then forming a quadrilateral road surface;
[0063] S13, the tunnel entrance semicircle is drawn. Using the differential idea, the inner and outer circles constituting the ring are first divided and points are taken in a way that the corresponding central angles are equal. Then two adjacent points of the inner circle and two corresponding points of the outer circle are selected, and a trapezoid is drawn according to the four-point road plane drawing algorithm;
[0064] S14. Draw the semi-cylinder of the tunnel body. Use the differential idea to draw the inner and outer semi-cylinder planes based on the two adjacent points obtained by splitting the points in the process of drawing the front and rear tunnel openings as four points;
[0065] S15. Draw the tunnel slope arc segment. Take the left and right endpoints of both ends of the tunnel as the starting point and draw arcs tangent to the tunnel respectively. The ends of the arcs and the tangents are parallel to the horizontal plane.
[0066] The semi-cylindrical shape of the tunnel is drawn as shown in the attached figure. Figure 3 As shown, the cylindrical surface is differentiated into several rectangles, and the inner and outer semi-cylinders need to be drawn separately. Taking the outer cylinder as an example, a rectangle is drawn with two adjacent points of the outer circle of the starting ring and two corresponding points of the outer circle of the end ring as endpoints; the number of divisions is the number of loops, and the new endpoint values are calculated by updating the center angle β, and then a rectangle is drawn based on the four endpoints.
[0067] 5) Refer to the attached Figure 4 As shown, the construction algorithm corresponding to the bridge module includes: a bridge matrix, a bridge column base, and a bridge cable. The bridge module modeling script generates a spanning bridge deck according to the three-dimensional coordinates of the starting point and the end point given by the user and the road width through the construction algorithm corresponding to the straight road module, takes the four boundary points of the bridge deck scene as fulcrums, calculates the vertical vector, and generates the first and second bridge matrix models under the bridge deck in turn. According to the coordinate position difference between the starting point and the end point, the longitudinal distance of the bridge deck is divided into five equal parts, and the bridge columns are drawn at the second and fourth sections. The center point position is calculated according to the length of the bridge deck to generate the center positive column of the bridge, and it is connected to the bridge deck to draw and generate the cable-stayed rope.
[0068] 6) The construction algorithm corresponding to the overpass module includes: drawing the branch road connection between the main road and the right-turn ramp, constructing the local coordinate system, and generating the positive spiral surface of the circular ramp;
[0069] Draw the branch road connection between the main road and the right-turn ramp: by determining the four points of the slope, constructing four direction vectors, and finding the coordinates of the two intersection points of the four direction vectors and the horizontal branch road, and at the same time determining the coordinates of the two points at the transition end point of the slope connection section, and then calling the road drawing module algorithm to draw the right-turn ramp of the overpass.
[0070] Construction of local coordinate system: The main purpose is to perform coordinate transformation and design and implement the circular ramp in the overpass coordinate system. Set the origin of the local coordinate system as the midpoint of the lower road surface, define the positive direction of the x' axis of the local coordinate system as the starting point pointing to the end point, the z' axis is in the same direction as the world coordinate system, and the y' axis is determined according to the right-hand rule. This local coordinate system is parallel to the plane of the world coordinate system and can be regarded as a coordinate transformation of a two-dimensional plane.
[0071] Design and generation of the positive helicoid surface of the circular ramp: The positive helicoid surface equation can be expressed as:
[0072] x=r·cosθ
[0073] y=r·sinθ
[0074] z=k·θ
[0075] Where (x, y, z) are the coordinates of the discrete point, r is the radius of the spiral, and θ is the range of the spiral.
[0076] The design and construction of the positive helicoid includes the following steps:
[0077] S21, taking a fixed step length Δθ, establishing an array to store the inner and outer spiral coordinates through the positive spiral surface equation;
[0078] S22, sequentially taking four points in the inner and outer spiral arrays to draw a quadrilateral plane, and repeating the process in sequence;
[0079] S23, use symmetry to draw the remaining three spiral surfaces in sequence;
[0080] By discretizing θ, the design of the inner and outer spiral lines is realized, thus forming the four spiral surfaces of the overpass.
[0081] 7) The construction algorithm corresponding to the viaduct module includes: additionally building a box girder model at the bottom of the road surface. When the user inputs the three-dimensional coordinates of the starting point and the end point of the viaduct, a box girder model composed of a rectangle and a trapezoid is automatically generated at the cross section according to a preset ratio; when the viaduct module is designed, an additional box girder model will be built at the bottom of the road surface to distinguish it from ordinary roads. When the user inputs the three-dimensional coordinates of the starting point and the end point of the viaduct, the ordinary road is automatically generated according to the road module algorithm, and at the cross section, according to the road boundary point, a box girder model composed of a rectangle and a trapezoid is automatically generated according to a preset ratio.
[0082] 8) The construction algorithm corresponding to the pedestrian bridge module includes: according to the three points input by the user, the vector method is used to find the coordinates of each boundary geometric point of the pedestrian bridge composed of the three parts of the bridge body, the stairs, and the guard plate, and the construction algorithm corresponding to the straight road module is used to splice and process to form a pedestrian bridge. When setting the parameters of the pedestrian bridge module, the user needs to set three points according to the predetermined assumptions, two of which need to be on one side of the road, and the third point on the other side of the road. Considering that the road for creating a pedestrian bridge generally has no slope, one of the two points on one side is selected as the coordinate origin to establish a coordinate system, in which the z-axis is consistent with the world coordinate system, the x-axis points to the other side of the road, and the y-axis follows the right-hand coordinate system. After determining the initial point, the vector method is used to find the coordinates of each boundary geometric point of the pedestrian bridge composed of the three parts of the bridge body, the stairs, and the guard plate, and the construction algorithm corresponding to the straight road module is used to splice and process to form a pedestrian bridge.
[0083] 9) The construction algorithm corresponding to the three-way intersection module includes: the main function is to build a common connection part at the end of roads one, two and three, and the main method used is extension and splicing; the algorithm includes the following steps:
[0084] S31. First, the construction algorithm corresponding to the straight road module is designed according to the road center points and road widths of the three straight roads P1P2, P3P4, and P5P6.
[0085] S32, using the vector calculation method to find the road edge point P according to the road center points of the three roads pre-set by the user 1l , P 1r , P 2l , P 2r , P 3l , P 3r , P 4l , P 4r , P 5l , P 5r , P 6l , P 6r The location of each road is close to the side, that is, P 1l P 2l , P 3r P 4r The intersection point Q1 of the two straight lines is calculated, and Q2 and Q3 are calculated in turn.
[0086] S33, by P 2l , P 2r A straight extension section is established in the area enclosed by Q1 and Q2, and straight extension sections of the other two roads are established in sequence.
[0087] S34. According to the intersection points Q1, Q2, and Q3 of the three road edge points, an intermediate triangle connection area module is established, and the design and drawing of the trunk part is completed.
[0088] S35, perform rounded transition processing on the edge portions of the two intersecting roads, from the intersection points Q1, P 2l , P 4r The center O1 of the rounded transition area and its corresponding arc curve are calculated, and a road model is created for the arc triangle, thereby realizing the entire design and drawing of the three-way intersection.
[0089] 10) The construction algorithm corresponding to the fork road module includes: taking a point on a known road, extending a road outside the road, and realizing a smooth connection between the main road and the fork road; Figure 5 As shown, construct circles O1 and O2 so that the two circles are tangent to the nearby roads. Assume that the angle between the main road and the fork road is θ, θ = 2∠O1AB, the radius of O1 is r1, the radius of O2 is r2, point B is the intersection of O1O2 and the center line of the fork road, AB = r, and the width of the road is d. According to plane geometry, r1 = r·tan(θ / 2)-d / 2, r2 = r / tan(θ / 2)-d / 2. Then according to the coordinates of point A set by the user (x A ,y A ) can calculate the coordinates of the circle center.
[0090]
[0091]
[0092] in, are the coordinates of the center O1, O2.
[0093] 11) The construction algorithm corresponding to the intersection module includes: determining whether two straight road models intersect when establishing them. If the two straight lines intersect, modifying the straight road module model to generate an intersection road scene model instead; obtaining the geometric structure parameters of the intersection, including the road starting point, end point, and road width information, calculating the two direction vectors of the intersection by the vector method, and calculating their corresponding normal vectors in turn, calculating the geometric position of the boundary points of the road structure by the given road endpoint position and the corresponding vector, and creating an intersection road scene model.
[0094] Specifically, when the user creates two straight road models in the graphical interface, the program should determine whether they intersect. If the two straight lines intersect, the algorithm will automatically modify the straight road model after determining that there is an intersection point, and generate a crossroads road scene model instead. When the algorithm obtains the intersection modeling instruction or determines that two straight roads intersect, it will also obtain some geometric structure parameters of the intersection, including the starting point and end point of Road 1 and Road 2, and road width information. After that, the algorithm will calculate the two direction vectors of the intersection through the vector method, and calculate their corresponding normal vectors in turn, and calculate the geometric position of the boundary point of the road structure through the road endpoint position and the corresponding vector given by the user. When creating the intersection scene model, the intersection is decomposed into five parts, namely the four branches and the part where the roads intersect and overlap, and the common elements of the intersection, such as zebra crossings, street lights and flower beds, are created together.
[0095] In the modeling design of the road center overlap area, when two intersecting straight roads are not perpendicular to each other, the road center overlap area is a parallelogram, and the initial parameters are the AB, BC, CD, and AD vectors of the two intersecting roads. According to the angle between the four vectors and the road widths d1 and d2, the side length of the parallelogram area is calculated. Combined with the two direction vectors, the spatial position coordinates of the four points A, B, C, and D in the road center overlap area can be finally obtained. The road center area can be constructed through the road module modeling algorithm.
[0096] 12) The lane line module corresponding to the construction algorithm includes: straight one-way lane line construction, circular one-way lane line construction, dotted lane line construction; the straight one-way lane line construction algorithm is the same as the straight module, and the circular one-way lane line construction is to take points at equal intervals on the circle, and the corresponding point coordinate formula is:
[0097] x=a+r·cos(nθ)
[0098] y=b+r·sin(nθ)
[0099] Among them, a and b are the horizontal and vertical coordinates of the center of the circle, r is the radius of the circular lane line, and n is the number of cycles.
[0100] In the construction of dotted lane lines, it is mainly used when splicing straight lines and circular roads. It is necessary to calculate how many dotted line segments need to be drawn in the straight line and the circular arc, and then determine whether the dotted line and the boundary will intersect at the end position. If they do not intersect, the remaining part is calculated, and a part is left in advance in the next straight line or circular arc road to ensure that the intervals between the dotted lines are consistent; if they intersect, after completing the drawing of the last dotted line segment of the road, start constructing a dotted line in the next road segment to ensure that the cumulative length of the last dotted line segment of the previous road segment and the dotted line segment is consistent with the length of a single dotted line segment.
[0101] 13) The construction algorithm corresponding to the traffic light module includes:
[0102] Taking the center of the circle as the origin coordinate, the coordinates of each key point in the traffic light pattern are calculated through coordinate transformation, and the points are combined into basic geometric shapes such as rectangles, parallelograms, circles, trapezoids, etc. The function of four points forming a plane is used for drawing and design. At the same time, the transparency of each node is set to 0 or 1 to realize the display and hiding of the node, thereby achieving the effect of controlling the traffic light.
[0103] 14) Refer to the attached Figure 6 As shown, the construction algorithm corresponding to the traffic element prop insertion module includes three calling modes: single point insertion, linear insertion and polygonal insertion. According to the number of insertion points and the slope relationship between the line segments formed by the insertion points, it is judged as single point model insertion, straight road modeling insertion, curve modeling insertion and random insertion in the surface. First, in the process of single point model insertion for a single model at a point, the position and orientation of the inserted props need to be calculated, which involves the conversion of Euler angles and direction cosine matrix. The direction cosine matrix represents the posture of the model through the conversion matrix of model coordinates and world coordinates. The specific expression of the matrix conversion relationship is as follows:
[0104]
[0105]
[0106]
[0107]
[0108] in is the roll angle, θ is the pitch angle, ψ is the yaw angle, R is the Euler angle matrix, is the x-axis transformation matrix, R θ is the y-axis transformation matrix, R ψ is the z-axis transformation matrix. Through the above transformation, the props can be converted from the direction cosine matrix to the Euler angle to represent the orientation.
[0109] After determining the position and orientation of the inserted prop, the optimized linear equation method is used to determine the relationship between the point and the polygon position and then determine whether the point meets the condition of being in the area when the polygon is inserted. Figure 7 As shown, after inputting the vertex coordinate array of the convex polygon and the point to be tested, the two adjacent vertices p of the convex polygon are read in sequence. i-1 (x i-1 ,y i-1 ), p i (x i ,y i), and construct the linear equation satisfied by the current edge, and at the same time construct the linear equation satisfied by the straight line parallel to the current edge and the point to be tested. Select p in the counterclockwise direction. i-1 (x i-1 ,y i-1 ), construct the linear equation satisfied by the straight line parallel to the point and the current edge, and find the vertical intercept. After judgment, if the point to be tested is adjacent to point p i (x i ,y i ) is located on both sides of the current edge, "error" is returned, otherwise "correct", and then the loop is entered until the convex polygon vertex coordinate array is read.
[0110] In the construction algorithm corresponding to the insertion module, the optimized linear equation method proposed in the present invention completes the function of plane area point inclusion judgment. Compared with the existing ray method, it solves the problem that it cannot fully discuss various singular points, avoids the wrong judgment of points within the polygon, and does not require prior classification discussion, thereby improving the efficiency of custom scene modeling.
[0111] Then execute step 2. In step 2, establish an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module.
[0112] According to an embodiment of the present invention, the autonomous driving test simulation environment model library is designed and drawn according to the functions required by the user, so as to meet the needs of combining with the road scene constructed by the road module tool by dragging and dropping, thereby realizing a fast and customized rich simulation test environment.
[0113] Then execute step three. In step three, the road scene is constructed and modified using the multiple road modules and the autonomous driving test simulation environment model library; the modification mainly includes road connection, road cutting, and road addition.
[0114] According to the embodiment of the present invention, Figure 8As shown, the road connection includes: first, according to the position and structural parameters of the two roads read from the memory, determine whether the position relationship of the two straight roads intersects to generate a road overlap area. If there is no road overlap, then according to the starting point and end point parameters of the two roads, the direction vectors of the roads are obtained respectively, and the intersection of the road extension lines is obtained according to the position of the road endpoints to be connected and the road vectors. The two road endpoints and intersection points are used as basic parameters, combined with the connection arc radius parameters preset by the user, a strip model is constructed to connect the two roads, thereby realizing the connection of non-intersecting straight roads; if the roads overlap, first, according to the road centerline structural parameters obtained by the program, the position of the road intersection point and the size of the intersection area are calculated, and the intersecting part is removed, and the two intersecting roads are simplified into two non-intersecting roads. On the basis of the non-intersecting roads, the above method is used to construct a smooth connection model of the two non-intersecting roads to replace the original two intersecting straight road models to realize road connection.
[0115] Road cutting includes: cutting of straight road models and curved roads, and applying different algorithms according to different roads. In the straight road model, the cutting mainly adopts the method of interpolation to find new nodes. According to the point selected by the user, it is projected onto the center line of the road, and the position parameters of the inserted node are obtained. Combined with the initial starting point and end point of the road, the straight road model is divided into two sections, and then the straight road modeling algorithm is called to rebuild the two straight road models; in the curved road cutting, the main body also uses the algorithm of intermediate interpolation to find new nodes to generate arc roads. According to the position of the cutting point selected by the user, it is projected onto the curved road to determine the starting point, end point and center position of the two arcs, and then the curve modeling algorithm is called to rebuild the two curve models. When it is determined that the user needs to operate on the S-shaped road, the S-shaped road is divided into multiple straight roads and curved roads for preprocessing, and the center line parameters of each road section are extracted to achieve the cutting of the S-shaped road.
[0116] Road addition includes: adding the number of roads based on the constructed road module. The user selects a constructed road and chooses the number of roads to be added on the left or right side to achieve the function of adding roads while keeping the original road position unchanged. For the constructed road model, extract the starting point and end point coordinates of the road centerline, determine the vertical vector by the number of roads to be added on one side determined in advance, and determine the position of the road centerline according to the number of roads to be added to ensure that the position of the straight road before the road is added does not change. By obtaining the new road centerline position, the road model generation algorithm can be called to complete the road addition.
[0117] Furthermore, after step three, step four is also included: modifying and reading the attributes of the constructed road module, and listing the data information as a parameter list and sending it to the front-end user and the simulation test platform respectively.
[0118] According to an embodiment of the present invention, the attributes of each road module tool in the constructed road scene are modified and the attribute data are read, specifically: the basic elements of each road module tool in the constructed road scene are extracted, and the road module tool as a whole is translated, rotated, and scaled. At the same time, after the attribute data of the road module tool is read, a parameter list can be formed and sent to the front-end user and the simulation test platform respectively, and the user can modify the attribute interface of different road module tools.
[0119] Furthermore, sysplore in the Mworks software can be used to write data to the dynamic elements in the model library in the constructed road scene, including logical information data, behavioral information data, dynamic information data, and posture information data.
[0120] Another embodiment of the present invention provides a modular scenario construction system for autonomous driving testing, the system comprising:
[0121] A road model building module, which is configured to build multiple road modules based on different algorithms, wherein the multiple road modules include a straight road module, a straight road bend S-curve module, a loop road module, a tunnel module, a bridge module, an overpass module, an elevated bridge module, a pedestrian bridge module, a three-way intersection module, a fork road module, a crossroads module, a lane line module, a traffic light module, and a traffic element prop insertion module;
[0122] An environment model building module, which is configured to establish an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module;
[0123] A road scene building module is configured to build and modify road scenes using the multiple road modules and the autonomous driving test simulation environment model library.
[0124] The functions of a modular scenario construction system for autonomous driving testing described in this embodiment can be described by the aforementioned modular scenario construction method for autonomous driving testing. Therefore, for the parts not described in detail in this embodiment, please refer to the above method embodiments and will not be repeated here.
[0125] The modular scene construction method for autonomous driving testing described in the embodiment of the present invention is applied to road scene simulation, and the specific application process includes:
[0126] According to the construction method described in the above embodiment, a road module is created and packaged, and an interface design is performed. According to the user's assignment of various scenarios according to the requirements, a road module tool is generated in the simulation system; parameters are extracted for the elements of each basic road module, and the element and parameter lists are stored, and communication with the Mworks software is performed at the same time. The variable mapping technology is mainly used, that is, interface variables with the same name as the Mworks interface variables are defined in the simulation system. When the simulation system starts to communicate with the Mworks software, the interface variables defined in the simulation system will be synchronized to the Mworks software for joint simulation;
[0127] According to the construction method described in the above embodiment, multiple manually drawn basic autonomous driving test simulation environment model libraries are pre-created, and the model library includes railings, houses, grass, street lights, and traffic signs. Model library components, and users can import new basic autonomous driving test simulation environment model libraries as needed;
[0128] According to the conversion function design of the autonomous driving test simulation environment; calibrate the elements in the autonomous driving test simulation environment, obtain the predecessors and successors of the elements, use the parsing library to parse them, and then reconstruct the interface of the high-precision map, store the road model parameters in the public area, and call the public area data to reconstruct the high-precision map; and jointly simulate with other model libraries based on Mworks software, write Mworks system objects or Sysplore models to define participants, adjust the parameters defined for autonomous driving test simulation in Mworks and Sysplore according to the scene-associated actors, and control the simulation according to the model built by Mworks in Modelica language, and use data logging to check the simulation results.
[0129] For example, for the reconstruction of road scenes in autonomous driving test simulation scenarios, after the road models are created, the parameters of each road can be extracted and stored in a public area. Then, the public area data is used to calibrate the elements in the autonomous driving test simulation environment. Considering the connection relationship between roads, a search algorithm is used to traverse and generate identification numbers for all roads to complete the calibration. Then, a reference line is taken into account for each road, and the road is extended according to the reference line. The predecessor and successor of the road can be obtained within the road element, and the identification number, type, speed limit and other contents are defined inside the lane.
[0130] Conduct joint simulation with the Mworks software model library; specifically, according to the joint simulation requirements, the vehicle model built by the Mworks vehicle dynamics model library is jointly debugged with the modularly constructed autonomous driving test scenario. First, write the Sysplore model in Mworks to define the participant actor, and then associate the actor in the modularly constructed autonomous driving test scenario. You can choose different publishing participant actors, and then adjust the parameters defined in the Sysplore of Mworks for the autonomous driving test simulation, mainly the vehicle's dynamic parameters. Use the autonomous driving test scenario software user interface to simulate the scenario, set the sensor module and the road reference line signal module, and realize the real-time collection of custom scene information and feedback for the vehicle dynamics model in Sysplore. During the joint simulation process, the autonomous driving test vehicle model will read the actor's data, extract its real-time dynamic parameter feedback, set the autonomous driving test algorithm according to the reference line signal module and the sensor module, and realize the closed-loop control of the vehicle through the input signal of the algorithm and the output signal of the vehicle dynamics model; finally, use data logging to check the simulation results.
[0131] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments are contemplated within the scope of the invention thus described. The disclosure of the present invention is intended to be illustrative rather than restrictive of the scope of the invention, which is defined by the appended claims.
Claims
1. A modular scenario construction method for autonomous driving testing, It is characterized in that The following steps are involved: Build multiple road modules based on different algorithms, including straight road module, straight road curve S curve module, loop module, tunnel module, bridge module, overpass module, viaduct module, pedestrian bridge module, three-way intersection module, fork road module, crossroad module, lane line module, traffic light module, and traffic element prop insertion module; Establishing an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module; The multiple road modules and the autonomous driving test simulation environment model library are used to build and modify road scenes.
2. A modular scenario construction method for autonomous driving testing according to claim 1, It is characterized in that The construction algorithm corresponding to the straight road module includes: based on the three basic parameters of the road center starting point, end point and road width, construct the direction vector and normal vector operation to obtain the spatial position coordinates of the road edge vertex, and create it using the three-point modeling function; the direction vector and normal vector are: t=(x,y)=(cosθ,sinθ) v=(cos(θ+90°),sin(θ+90°))=(-sinθ,cosθ)=(-y,x) Among them, t is the direction vector; v is the normal vector; x is the horizontal coordinate of the end point of the straight path module; y is the vertical coordinate of the end point of the straight path module; θ is the angle between the straight path module and the positive direction of the x-axis.
3. A modular scenario construction method for autonomous driving testing according to claim 2, It is characterized in that The building algorithms corresponding to the straight road, curved S-curve module include: two-point modeling and three-point modeling. The number of input points is determined according to the number of bytes of the input coordinates. If there are two points, the building algorithm corresponding to the straight road module is directly run; if there are three points, the slopes of the two front and rear points are judged. If they are equal, the building algorithms corresponding to the straight road module are run in sequence. If they are not equal, curve modeling is performed. The curve modeling includes calculating the radius of the tangent circle curve of the two straight lines through the angle of the corner at a fixed distance, and obtaining the coordinates of the key points at the intersection of the straight line and the tangent circle curve and the coordinates of the center of the tangent circle through vector calculation. The trajectory point set of the circular curve is calculated using the coordinate information of the points and the point connection is drawn.
4. A modular scenario construction method for autonomous driving testing according to claim 3, It is characterized in that The construction algorithm corresponding to the loop module includes: according to the given node coordinates, starting from the starting node, executing a loop for every three points, the loop content is to first connect the three points in sequence with two straight lines, determine the length of the two straight lines before and after the connection, and assume that the length of the previous section is shorter, then take half of the short side as the radius of the inscribed arc, and at the same time take a point half the distance from the short side in the long side direction, and the point and the midpoint of the short side can form an inscribed circle with a radius length of half the short side; after the arc is drawn in the latter section, a straight line is drawn from the position where the arc is drawn to the midpoint of the long side, and a loop is completed, and the given node coordinates are traversed in sequence to complete the construction of the loop module; The construction algorithm corresponding to the tunnel module includes: drawing four points of the road according to the center line, first calculating the coordinates of the center line vector, and then calculating the normal vector perpendicular to the center line vector and parallel to the road plane, and calculating the four endpoints of the road that needs to be drawn on the basis of this; drawing the road plane according to the four points of the road, and constructing two triangles to form a quadrilateral road surface; drawing the semicircular ring of the tunnel opening: firstly divide the inner and outer circles that constitute the ring in a way that the corresponding central angles are equal, and then select two adjacent points of the inner circle and the corresponding two points of the outer circle, and draw a trapezoid according to the four-point road plane drawing algorithm; drawing the semi-cylinder of the tunnel body: using the adjacent two points obtained by dividing the points in the process of drawing the front and rear tunnel openings as four points to draw the inner and outer semi-cylindrical planes; drawing the tunnel slope arc segment: taking the left and right end points of the two ends of the tunnel as the starting point, draw arcs tangent to the tunnel respectively, and the ends of the arcs are parallel to the tangent line in the horizontal plane.
5. A modular scenario construction method for autonomous driving testing according to claim 4, It is characterized in that The construction algorithm corresponding to the bridge module includes: building a bridge matrix, a bridge column base, and a bridge cable, generating a bridge deck across the bridge according to the given three-dimensional coordinates of the starting point and the end point and the road width through the construction algorithm corresponding to the straight road module, taking the four boundary points of the bridge deck scene as fulcrums, performing vertical vector calculation, and sequentially generating the first and second bridge matrix models below the bridge deck, dividing the longitudinal distance of the bridge deck into five equal parts according to the coordinate position difference between the starting point and the end point, and drawing bridge columns at the second and fourth sections; calculating the center point position according to the length of the bridge deck to generate the center positive column of the bridge, and connecting it to the bridge deck to draw and generate the cable-stayed rope; The construction algorithm corresponding to the interchange module includes: drawing the branch road connection between the main road and the right-turn ramp, constructing the local coordinate system, and generating the positive spiral surface of the circular ramp; The construction algorithm corresponding to the viaduct module includes: additionally establishing a box girder model at the bottom of the road surface, and when the three-dimensional coordinates of the starting point and the end point of the viaduct are input, a box girder model composed of a rectangle and a trapezoid is automatically generated at the cross section according to a preset ratio; The construction algorithm corresponding to the pedestrian bridge module includes: according to the three input points, using the vector method to calculate the coordinates of each boundary geometric point of the pedestrian bridge composed of the bridge body, stairs and guard plate, and using the construction algorithm corresponding to the straight road module to perform splicing processing to form the pedestrian bridge.
6. A modular scenario construction method for autonomous driving testing according to claim 5, It is characterized in that The construction algorithm corresponding to the three-way intersection module includes: 1 P 2 , P 3 P 4 , P 5 P 6 The road center point and road width are designed using the construction algorithm corresponding to the straight road module; the road edge point P is calculated using the vector calculation method based on the road center points of the three pre-set roads. 1l , P 1r , P 2l , P 2r , P 3l , P 3r , P 4l , P 4r , P 5l , P 5r , P 6l , P 6r The location of each road is close to the side, that is, P 1l P 2l , P 3r P 4r The intersection point Q is obtained by calculating the two straight lines 1 , calculate Q 2 , Q 3 ; by P 2l , P 2r , Q 1 , Q 2 The straight extension section is established in the enclosed area, and the straight extension sections of the other two roads are established in turn; according to the intersection point Q of the three road edge points 1 , Q 2 , Q 3 , establish the middle triangle connection area module, and thus complete the design and drawing of the trunk part; perform rounded transition processing on the edges of the two intersecting roads, from the intersection point Q 1 , P 2l , P 4r Calculate the center O of the rounded transition area 1 and its corresponding arc curves, create a road model for the arc triangle, thereby realizing the design and drawing of the three-way intersection; The construction algorithm corresponding to the fork road module includes: taking a point on a known road, extending a road outside the road, and realizing a smooth connection between the main road and the fork road; The construction algorithm corresponding to the intersection module includes: determining whether two straight road models intersect when establishing them. If the two straight lines intersect, modifying the straight road module model to generate an intersection road scene model instead; obtaining the geometric structure parameters of the intersection, including the road starting point, end point, and road width information, calculating the two direction vectors of the intersection by vector method, and calculating their corresponding normal vectors in turn, calculating the geometric position of the boundary point of the road structure by the given road endpoint position and the corresponding vector, and creating an intersection road scene model.
7. A modular scenario construction method for autonomous driving testing according to claim 6, It is characterized in that The construction algorithm corresponding to the lane line module includes: construction of one-way lane lines, circular one-way lane lines, and dotted lane lines. The construction algorithm of the straight one-way lane line is the same as that of the straight module. The construction algorithm of the circular one-way lane line is to take points at equal intervals on the circle. The construction algorithm of the dotted lane line includes the application of the splicing of straight and circular roads to determine whether there is a situation where the dotted line intersects with the boundary at the end position, and ensure that the cumulative length of the last dotted line segment of the previous section of the road and the dotted line segment is consistent with the length of a single dotted line segment; The construction algorithm corresponding to the traffic light module includes: taking the center of the circle as the origin coordinate, calculating the coordinates of each key point in the traffic light pattern through coordinate transformation, combining each point into a basic geometric figure, using four points to form a plane function for drawing and design, and setting the transparency of each node to 0 or 1 to realize the display and hiding of the node; The construction algorithm corresponding to the traffic element prop insertion module includes three calling modes: single point insertion, linear insertion and polygonal surface insertion. The position and orientation of the inserted props are calculated, including the conversion of Euler angles and direction cosine matrices. The direction cosine matrix represents the posture of the model through the conversion matrix of model coordinates and world coordinates. Then, the coordinates of the interpolation points are calculated in linear insertion, and the polygonal area is constructed in polygonal surface insertion to select the interpolation points. After determining the position and orientation of the inserted props, the optimized linear equation method is used to determine the relationship between the point and the polygon position, and then determine whether the point meets the condition of being within the area when the polygonal surface is inserted.
8. A modular scenario construction method for autonomous driving testing according to claim 7, It is characterized in that The modification in the construction and modification of the road scene using the multiple road modules and the autonomous driving test simulation environment model library includes road connection, road cutting, and road addition; wherein the road connection includes: judging whether the position relationship of two straight roads intersects and generates a road overlap area according to the position and structural parameters of the two roads, and if there is no road overlap, solving the position parameters of the connection point according to the starting point and end point parameters of the two roads to achieve the connection of non-intersecting straight roads; if the roads overlap, calculating the structural parameters of the intersecting area, removing it, and processing it as non-intersecting roads; Road cutting includes: straight road module and arc road cutting. In the straight road module, interpolation and new node method is used for cutting; in the arc road, intermediate interpolation and new node are used to generate arc road for cutting. Road adding includes: adding the number of roads based on the constructed road model, and for the constructed road model, determining the number of roads to be added on one side by extracting the starting point and end point coordinates of the road centerline to determine the vertical vector, and at the same time determining the position of the road centerline according to the number of roads to be added to ensure that the position of the straight road before the road is added does not change.
9. A modular scenario construction method for autonomous driving testing according to claim 8, It is characterized in that The method also includes: modifying and reading the attributes of the constructed road module, and listing the data information as a parameter list and sending it to the front-end user and the simulation test platform respectively.
10. A modular scenario building system for autonomous driving testing, It is characterized in that include: A road model building module, which is configured to build multiple road modules based on different algorithms, wherein the multiple road modules include a straight road module, a straight road bend S-curve module, a loop road module, a tunnel module, a bridge module, an overpass module, an elevated bridge module, a pedestrian bridge module, a three-way intersection module, a fork road module, a crossroads module, a lane line module, a traffic light module, and a traffic element prop insertion module; An environment model building module, configured to establish an autonomous driving test simulation environment model library, wherein the autonomous driving test simulation environment model library includes a traffic sign module, a road marking module, a street light module, a house module, a vegetation module, and a guardrail module; A road scene building module is configured to build and modify road scenes using the multiple road modules and the autonomous driving test simulation environment model library.
Citation Information
Cited By
Roundabout background traffic flow modeling method based on attention mechanism and application thereof
CN120087045A
Roundabout traffic flow modeling method based on attention mechanism and application thereof
CN120087045B
