Automatic driving simulation test method for interactive mapping of real vehicle and virtual vehicle

文档序号:1951709 发布日期:2021-12-10 浏览:27次 中文

阅读说明:本技术 一种实车与虚拟车交互映射的自动驾驶仿真测试方法 (Automatic driving simulation test method for interactive mapping of real vehicle and virtual vehicle ) 是由 鲁光泉 汤认京 王兆杰 谭海天 于 2021-08-19 设计创作,主要内容包括:本发明针对自动驾驶车辆在真正落地之前必须经过大量的测试这一需求,提出了一种实车与虚拟车交互映射的自动驾驶仿真测试方法。首先按照真实测试场地测绘数据在仿真软件中搭建一套虚拟测试场景。当真实车辆在实验场地行进的同时,在虚拟场景中仿真出虚拟车辆同时运行,真实场景与虚拟场景交互映射。测试系统将虚拟场景中的虚拟车辆数据与真实测试车辆数据融合在一起,组成综合数据测试场景。在测试运行过程中,虚拟车辆会仿真真实车辆的动作,虚拟车辆与真实测试车辆之间相互影响,通过虚拟场景、虚拟车辆辅助完成真实测试车辆的测试过程。(The invention provides an automatic driving simulation test method for interactive mapping of a real vehicle and a virtual vehicle, aiming at the requirement that the automatic driving vehicle needs to be subjected to a large number of tests before actually landing. Firstly, a set of virtual test scenes is set up in simulation software according to real test site mapping data. When the real vehicle travels in the experimental site, the virtual vehicle is simulated in the virtual scene to run simultaneously, and the real scene and the virtual scene are mapped interactively. The test system fuses virtual vehicle data in the virtual scene with real test vehicle data to form a comprehensive data test scene. In the test running process, the virtual vehicle can simulate the action of the real vehicle, the virtual vehicle and the real test vehicle are mutually influenced, and the test process of the real test vehicle is completed through the assistance of the virtual scene and the virtual vehicle.)

1. An automatic driving simulation test method for interactive mapping of real vehicles and virtual vehicles is characterized by comprising the following steps:

step 1, constructing a test scene in simulation software, and then randomly selecting two corresponding points to determine a coordinate transformation relation between an actual test site and a simulation road network;

step 2, based on the test scene constructed in the step 1, realizing data interaction between the real vehicle and the simulated vehicle through a database, constructing a digital twin body corresponding to the real vehicle in the simulation software according to the transmitted data, wherein the running state of the digital twin body in the simulation software is consistent with that of the real vehicle;

step 3, performing conflict judgment according to the information of other vehicles obtained by data interaction in the step 2, generating corresponding resolution strategies, and controlling the real vehicle according to the generated resolution strategies, so as to achieve the purpose of mutual influence between the virtual vehicle and the real test vehicle;

and 4, storing the track data in the running process of the real vehicle into a database, and analyzing the track data of the actual running of the real vehicle so as to verify and evaluate the actual effect of various control algorithms in the simulation software.

2. The method as claimed in claim 1, wherein step 1 is to select any actual road according to the test requirement, construct a matched simulation road network in the simulation software according to the geometric data, collect the GPS coordinates of any two points in the test site, convert the GPS coordinates into coordinates in the gaussian plane coordinate system, and determine the coordinate conversion relationship between the actual coordinates and the simulation coordinates through the coordinate system transformation formula in combination with the coordinates of the two points in the simulation road network.

3. The method as claimed in claim 1, wherein in step 2, the real vehicle collects position, speed, acceleration and course angle data through sensors mounted on the vehicle, and transmits the data to the table in the database after necessary conversion according to the coordinate conversion relation, the simulation vehicle in the simulation software also continuously converts the vehicle state data and transmits the data to the table in the database during operation, and then the real vehicle and the simulation program respectively read the data from the two tables to complete data interaction between the real vehicle and the simulation vehicle.

4. The method according to claim 1, wherein in the operation process, the simulation software continuously reads the position, speed, acceleration, heading angle, vehicle length and vehicle width data of the real vehicle from the database, and generates the digital twin of the real vehicle on the simulation road network in real time according to the data, the motion state of the digital twin is consistent with the motion state of the real vehicle, and the program on the real vehicle also continuously reads the relevant data of the simulation vehicle from the database, stores the data into the state linked list of the other vehicle, then performs conflict judgment according to the information of the other vehicle, generates a corresponding resolution strategy, and controls the real vehicle according to the generated resolution strategy, thereby achieving the purpose of mutual influence between the virtual vehicle and the real test vehicle.

5. The method as claimed in claim 1, wherein step 4 is to evaluate the control algorithm in the simulation software by analyzing the position, speed, acceleration, and course angle of the real vehicle, comparing the position, speed, acceleration, and course angle with the target position, speed, acceleration, and course angle of the control algorithm in the simulation software, and evaluating the control algorithm in the simulation software by the deviation between the actual data and the target position, speed, acceleration, and course angle.

Technical Field

The invention relates to the field of intelligent transportation, automatic driving, digital twinning and in-loop simulation, in particular to an automatic driving simulation test method for interactive mapping of a real vehicle and a virtual vehicle

Background

With the rapid development of technologies such as artificial intelligence, wireless communication, informatization and the like in recent years, the development of automatic driving is greatly promoted. However, the automatic driving automobile must be subjected to a large number of tests to actually realize the landing. At present, three methods are mainly used for testing an automatic driving vehicle, namely a software virtual test, a hardware-in-loop simulation test and a real road test. The methods have some defects, a large number of mathematical models are required to be constructed in the software virtual test, the mathematical models are complicated to construct and cannot truly reflect the dynamic characteristics of the vehicle, and the hardware-in-loop simulation test is mainly to fix the vehicle in the loop; the acceleration and deceleration process of the vehicle cannot be truly simulated, and the test platform is expensive to manufacture. The real road test needs to build a road test site, and enterprises cannot bear the economic cost and the time cost. Therefore, some economic and effective test methods are urgently needed for the automatic driving technology to finally realize the application.

The Digital Twin (DT) is also translated into Digital Twin, Digital image, or Digital mapping, which is driven by new generation information technology and manufacturing technology, fully utilizes data such as physical model, sensor update, operation history and the like, integrates simulation processes of multidisciplinary, multi-physical quantity, multi-scale and multi-probability, and completes mapping in virtual space, thereby reflecting the whole life cycle process of corresponding entity equipment. The digital twin is used as a digital copy of the physical system, the whole life cycle of the operating system can be simulated, synchronous mapping is carried out on the digital twin and the physical twin, and related data of the physical entity and the digital entity are interacted in real time, so that simulation related applications such as analysis, prediction, decision and the like are supported. The digital twin provides a new idea for the analysis and solution of the traffic problem.

Disclosure of Invention

The invention provides an automatic driving simulation test method for interactive mapping of a real vehicle and a virtual vehicle, which is used for testing an automatic driving vehicle and aims at solving the problems of high cost, long time consumption, low precision, difficulty in repeatedly realizing the same scene and the like of the traditional automatic driving vehicle test method. The method creatively introduces a digital twin technology, and firstly builds a set of virtual test scenes matched with a real scene 1:1 in a simulation environment according to geometric data of a real test site. A wide field can be selected for experiment, when a real vehicle travels in the actual field, a digital twin body of the real vehicle is constructed in simulation software, and the digital twin body runs synchronously. In the test process, the virtual vehicle can simulate the action of the real vehicle and influence the operation of other virtual vehicles in the simulation environment, the virtual vehicle in the simulation environment can also influence the operation state of the real vehicle, the interactive mapping of a real scene and a virtual scene is realized, and the aim of testing the automatic driving vehicle is finally achieved.

In order to realize the automatic driving simulation test method for interactive mapping of the real vehicle and the virtual vehicle, the following technical scheme is adopted:

firstly, selecting an actual test road and obtaining geometric data of the actual test road according to the automatic driving test requirement, and then constructing a set of simulation scenes matched with a real test scene 1:1 in simulation software according to the geometric data. When the automatic driving test is carried out, only one open field is needed to be selected, two points in the open field are selected, the longitude and latitude information of the two points is obtained through a GPS, and then the longitude and latitude information is converted into coordinates in a Gaussian plane coordinate system. Coordinates of two corresponding points in the simulated road network are obtained, and a coordinate conversion relation between the actual coordinates and the simulated coordinates is determined through the following coordinate system conversion formula.

In the formula (x)i,yi) The coordinate position of the ith point in the actual test scene in the Gaussian plane coordinate system is defined, wherein (x, y) is the coordinate position of the coordinate point corresponding to the ith point in the actual test scene in the simulation coordinate system, and (delta x (i), (delta y (i)), alpha (i)) is the position and the rotation angle of the Gaussian plane coordinate system relative to the xoy coordinate system in the simulation scene.

And (2) acquiring the position, speed, acceleration and course angle data of the vehicle through a sensor on the real vehicle, and storing the data into the state member variable of the current vehicle after Kalman filtering. And (3) converting the real vehicle state data according to the coordinate conversion relation established in the step (1) when the vehicle state information is read, and sending the converted real vehicle state data to the database. Meanwhile, the simulation vehicle in the simulation software continuously converts the position, the speed, the acceleration, the course angle, the length, the width and the timestamp data of data acquisition of the vehicle with the coordinate conversion relation established in the step (1) in the running process, and sends the converted data to the database. Therefore, data interaction between the real vehicle and the simulated vehicle is realized.

And (3) continuously reading the position, speed, acceleration, course angle, vehicle length and vehicle width data of the real vehicle from the database by simulation software, and generating a digital twin of the real vehicle on a simulation road network in real time according to the data, wherein the motion state of the digital twin is consistent with the motion state of the real vehicle. In addition, the program on the real vehicle continuously reads the relevant data of the simulated vehicle from the database, stores the data into the state linked list of other vehicles, then carries out conflict judgment according to the information of other vehicles, generates a corresponding resolution strategy, and controls the real vehicle according to the generated resolution strategy. Therefore, the purpose of mutual influence between the virtual vehicle and the real test vehicle is achieved.

And (4) analyzing the position, the speed, the acceleration and the course angle of the real vehicle. And comparing the target position, speed, acceleration and course angle of a control algorithm in the simulation software. And evaluating a control algorithm in the simulation software according to the deviation between the actual data and the target position, speed, acceleration and course angle.

Drawings

FIG. 1 is an overall block diagram of the present invention

FIG. 2 is a schematic diagram of a simulated road network

FIG. 3 is a schematic diagram of a coordinate transformation input interface

FIG. 4 is a diagram of a vehicle _ status list element

FIG. 5 is a diagram of the elements of the car _ status table

FIG. 6 is a schematic diagram of simulation operation

FIG. 7 is a schematic view of an operation interface of an actual vehicle

Detailed Description

The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that this example is intended to illustrate the invention only and is not intended to limit the scope of the invention. The overall block diagram of the automatic driving simulation test method for interactive mapping of real vehicles and virtual vehicles provided by the invention is shown in fig. 1, and the specific implementation method comprises the following steps:

firstly, according to the test requirement of the automatic driving vehicle, a certain cross-shaped actual road comprising an intersection is selected, and the intersection is a typical four-inlet intersection. Each inlet comprises two inlet lanes and three outlet lanes. According to the measured geometric data of the cross road, a simulation road network matched with 1:1 as shown in fig. 2 is constructed in simulation software TSimitor. When the automatic driving test is performed, an open field is selected, any two points on the open field are selected, the GPS coordinates of the two points are measured, the coordinates of the two points in the simulated road network are obtained, the input is performed on the interface shown in fig. 3, and the determination is performed by clicking. The program converts the automatic GPS coordinates into coordinates in a gaussian plane coordinate system, and determines the coordinate conversion relationship between the actual coordinates and the simulated coordinates through the following coordinate system conversion formula.

And (2) acquiring the position, speed, acceleration and course angle data of the vehicle by a sensor loaded on the vehicle in the advancing process of the real vehicle, and storing the data into the state member variables of the current vehicle after Kalman filtering. Converting the real vehicle state data according to the coordinate conversion relation established in the step (1) when reading the vehicle state information, the data information is transmitted to a table named vehicle _ status in the database, and specifically, the transmitted data information includes vehiid (ID of vehicle), bSimulator (whether it is a real vehicle), time (time stamp), roadID (ID of road), edgeID (ID of edge), laned (ID of lane), positionOnLane (position of vehicle from the start point of lane), positionLat (lateral position of vehicle on lane), x (x coordinate of vehicle in simulation coordinate system), y (y coordinate of vehicle in simulation coordinate system), z (z coordinate of vehicle in simulation coordinate system), yaw (heading angle), vx (component of speed in x-axis direction), vy (component of speed in y-axis direction), ax (component of acceleration in x-axis direction), and acceleration (component of ay in y-axis direction), as shown in fig. 4. Meanwhile, the simulation vehicle in the simulation software TSestimator continuously converts the data related to the virtual vehicle during the operation process, and sends the data to the car _ status table in the database. As shown in fig. 5, the transmitted specific information includes card ID (ID of virtual vehicle), TimeOfStatus (time stamp), card length (length of virtual vehicle), card width (width of virtual vehicle), Gauss _ X (X in gaussian plane coordinate system), Gauss _ Y (Y in gaussian plane coordinate system), Speed _ X (Speed in X axis direction), Speed _ Y (Speed in Y axis direction), Accel _ X (acceleration in X axis direction), Accel _ Y (acceleration in Y axis direction), card Accel (acceleration of vehicle), TurnSig (turning or not), and yawng (heading angle). And then the program and the simulation software on the vehicle respectively read data from the corresponding tables, so that data interaction between the real vehicle and the simulation software TSimactor is realized.

And (3) continuously reading the position, speed, acceleration, heading angle, vehicle length and vehicle width data of the real vehicle from the database by the TSimarator, and generating a digital twin of the real vehicle on the simulation road network in real time according to the data, wherein as shown in fig. 6, the vehicle circled in the figure is the digital twin of the real vehicle, and the motion state of the digital twin in the simulation software is consistent with the motion state of the real vehicle. In addition, the program on the real vehicle also continuously reads the relevant data of the simulated vehicle from the database, stores the data into the state linked list of the other vehicle, then performs conflict judgment according to the information of the other vehicle, generates a corresponding resolution strategy, and controls the real vehicle according to the generated resolution strategy, wherein the interface when the real vehicle runs is shown in fig. 7. Therefore, the purpose of mutual influence between the virtual vehicle and the real test vehicle is achieved.

And (4) analyzing the position, the speed, the acceleration and the course angle of the real vehicle. And comparing the target position, speed, acceleration and course angle of a control algorithm in the simulation software. And evaluating a control algorithm in the simulation software according to the deviation between the actual data and the target position, speed, acceleration and course angle.

The above steps describe the implementation of the present invention in detail, but the present invention is not limited to the details of the above embodiments. Within the scope of the inventive concept, it should not be excluded from the scope of the invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种面向水陆两栖飞机的海上搜救任务仿真评估方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!