Automatic driving simulation method, system, electronic device and readable storage medium

The data output by the autonomous driving simulation software is converted into a common vehicle-machine format through data adaptation rules, which solves the problem of inconsistency between the autonomous driving algorithm and the real vehicle data format, and improves the simulation test accuracy and the smoothness of algorithm transplantation.

CN115113542BActive Publication Date: 2024-09-06CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210761286.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-09-06
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

During the autonomous driving simulation test, the autonomous driving algorithm is inconsistent with the real vehicle data format, resulting in low compatibility between the simulation environment and the real environment, and reducing the test accuracy.

Method used

By obtaining the driving simulation software, automatic driving algorithm and data adaptation rules, the data conversion between the simulation system format and the common format of the vehicle is realized, ensuring that the data sending and receiving format of the automatic driving algorithm is consistent with the real vehicle, thereby improving the closeness of the simulation environment to reality environment.

Benefits of technology

It improves the accuracy of autonomous driving simulation test results, makes the transplantation of autonomous driving algorithms to real vehicles smoother, and reduces simulation complexity and software usage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113542B
    Figure CN115113542B
Patent Text Reader

Abstract

The present invention relates to the field of simulation test technology, and discloses an automatic driving simulation method, system, electronic device and readable storage medium. The method obtains driving simulation software, automatic driving algorithm and data adaptation rules, converts driving simulation data output by the driving simulation software into a universal format for vehicle computers according to the data adaptation rules, and then performs calculations according to the automatic driving algorithm, and converts vehicle control instructions of the automatic driving algorithm into a simulation system format according to the data adaptation rules, and then sends them to the driving simulation software. Data communication between the automatic driving algorithm and the driving simulation software is achieved through the data adaptation rules. The data sent and received by the automatic driving algorithm are all in a universal format for vehicle computers that is consistent with a real vehicle, so that the automatic driving simulation environment is closer to the real environment, the test accuracy of the automatic driving simulation test results is improved, and the automatic driving algorithm under test is transplanted to the real vehicle computer more smoothly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation testing technology, and in particular to an autonomous driving simulation method, system, electronic device and readable storage medium. Background Art

[0002] In recent years, as the degree of automobile intelligence has become higher and higher, the complexity of autonomous driving (also known as intelligent assisted driving) has also increased. Since the autonomous driving algorithm is a crucial link in autonomous driving, it is necessary to effectively test the autonomous driving algorithm, so that the potential safety line of the autonomous driving algorithm under extreme working conditions is widely used in major suppliers and car companies. Among them, the simulation test technology of the autonomous driving algorithm usually needs to use the autonomous driving simulation software developed by the computer to simulate the physical environment of the real world, build an environmental perception system based on sensors, and simulate real sensors by processing perception data and map information and digital modeling. Combined with sensor simulation technology, complete the functional testing and verification of the algorithm, obtain planning and control decisions, and thus control the speed and direction of the car.

[0003] At present, the internal software of real vehicles usually uses C language or C++, but the interface format of the autonomous driving algorithm connected to the autonomous driving simulation software is different, resulting in the data format received by the autonomous driving algorithm under test being completely different from the data format of the real vehicle. As a result, the autonomous driving simulation environment is not completely the same as the real environment, and the compatibility is very low, which in turn reduces the test accuracy of the autonomous driving simulation test results. Summary of the invention

[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0005] In view of the shortcomings of the prior art mentioned above, the present invention discloses an autonomous driving simulation method, system, electronic device and readable storage medium to make the autonomous driving simulation environment closer to the real environment, thereby improving the test accuracy of the autonomous driving simulation test results.

[0006] The present invention discloses an automatic driving simulation method, comprising: obtaining driving simulation software, an automatic driving algorithm and a data adaptation rule, wherein the data adaptation rule is used to realize data conversion between a simulation system format and a vehicle-computer universal format; performing driving scene simulation through the driving simulation software to obtain driving simulation data corresponding to the simulation system format, converting the driving simulation data into the vehicle-computer universal format according to the data adaptation rule to obtain converted simulation data; calculating the converted simulation data according to the automatic driving algorithm to obtain a vehicle control instruction corresponding to the vehicle-computer universal format, converting the vehicle control instruction into the simulation system format according to the data adaptation rule to obtain a converted control instruction; and sending the converted control instruction to the driving simulation software to control a virtual vehicle in the monitoring simulation software to perform automatic driving.

[0007] Optionally, a driving scene simulation is performed through the driving simulation software to obtain driving simulation data corresponding to the simulation system format, including: allocating physical ports to the driving simulation software to obtain a first port and a second port corresponding to the driving simulation software; sending a preset simulation start instruction to the driving simulation software to trigger the driving simulation software to perform a driving scene simulation; receiving state parameters for describing a virtual vehicle and scene parameters for describing a virtual scene through the first port, and receiving sensor parameters for describing a vehicle sensor through the second port, wherein the vehicle sensor is arranged on the virtual vehicle; and determining the state parameters, the scene parameters and the sensor parameters as driving simulation data.

[0008] Optionally, the simulation start instruction is obtained by the following method: obtaining a scenario file, determining simulation information based on the scenario file, wherein the simulation information includes at least one of destination information, simulation end conditions, and sensor start status; and generating a simulation start instruction based on the scenario file and the simulation information.

[0009] Optionally, sending a preset simulation start instruction to the driving simulation software includes at least one of the following: the driving simulation software includes a display interface, receiving a selection instruction corresponding to the display interface, executing the selection instruction through the display interface, and obtaining a simulation start instruction corresponding to the selection instruction; allocating a physical port to the driving simulation software, obtaining a third port corresponding to the driving simulation software, and sending the preset simulation start instruction to the third port.

[0010] Optionally, sending the conversion control instruction to the driving simulation software includes: sending the conversion control instruction to a first port of the driving simulation software.

[0011] Optionally, before calculating the conversion simulation data according to the autonomous driving algorithm, the method further includes: establishing an algorithm port corresponding to the autonomous driving algorithm according to the vehicle-computer universal format, wherein the algorithm port is used to transmit the conversion simulation data and the vehicle control instructions.

[0012] Optionally, after performing driving scenario simulation through the driving simulation software to obtain driving simulation data corresponding to the simulation system format, the method further includes: obtaining evaluation indicators, calculating the driving simulation data or the conversion simulation data according to the evaluation indicators to obtain indicator values ​​corresponding to the evaluation indicators; and generating an evaluation report according to the evaluation indicators and the indicator values ​​corresponding to the evaluation indicators.

[0013] Optionally, the driving simulation data or the conversion simulation data is calculated according to the evaluation index to obtain an index value corresponding to the evaluation index, including: the evaluation index includes at least one of an operation index, a safety index and a comfort index; data extraction is performed on the driving simulation data or the conversion simulation data according to the operation index to obtain an operation parameter corresponding to the operation index, and the operation parameter is calculated according to a preset operation index formula to obtain an index value corresponding to the operation index, wherein the operation parameter includes at least one of mileage, simulation time and destination arrival status; data extraction is performed on the driving simulation data or the conversion simulation data according to the safety index to obtain a safety parameter corresponding to the safety index. number, calculating the safety parameter according to a preset safety index formula to obtain an index value corresponding to the safety index, wherein the safety parameter includes at least one of the number of vehicle collisions, the number of vehicles driving in the wrong direction, the number of pedestrians giving way, the number of red light running, the number of speeding, the number of lane keeping, the number of solid line pressing, the number of vehicle distances being too large, and the number of vehicle distances being too small; extracting data from the driving simulation data or the conversion simulation data according to the comfort index to obtain a comfort parameter corresponding to the comfort index, calculating the comfort parameter according to a preset comfort index formula to obtain an index value corresponding to the comfort index, wherein the comfort parameter includes at least one of the number of emergency braking, the number of emergency acceleration, the number of emergency turns, and the number of smooth starts.

[0014] The present invention discloses an automatic driving simulation system, comprising: an acquisition module, used to acquire driving simulation software, an automatic driving algorithm and a data adaptation rule, wherein the data adaptation rule is used to realize data conversion between a simulation system format and a vehicle-computer universal format; a driving simulation module, used to perform driving scene simulation through the driving simulation software, and obtain driving simulation data corresponding to the simulation system format; an algorithm module, used to calculate the converted simulation data according to the automatic driving algorithm, and obtain a vehicle control instruction corresponding to the vehicle-computer universal format; an adaptation module, used to convert the driving simulation data into the vehicle-computer universal format according to the data adaptation rule, and obtain the converted simulation data; convert the vehicle control instruction into the simulation system format according to the data adaptation rule, and obtain a conversion control instruction; and send the conversion control instruction to the driving simulation software to control a virtual vehicle in the monitoring simulation software to perform automatic driving.

[0015] The present invention discloses an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above method.

[0016] The present invention discloses a computer-readable storage medium, on which a computer program is stored: when the computer program is executed by a processor, the above method is implemented.

[0017] Beneficial effects of the present invention:

[0018] By obtaining driving simulation software, autonomous driving algorithms and data adaptation rules, the driving simulation data output by the driving simulation software is converted into a universal format for the vehicle according to the data adaptation rules, and then calculated according to the autonomous driving algorithm, and the vehicle control instructions of the autonomous driving algorithm are converted into a simulation system format according to the data adaptation rules, and then sent to the driving simulation software. In this way, data communication between the autonomous driving algorithm and the driving simulation software is realized through data adaptation rules, and the data sent and received by the autonomous driving algorithm are all in the universal format for the vehicle consistent with the real vehicle, making the autonomous driving simulation environment closer to the real environment, improving the test accuracy of the autonomous driving simulation test results, and making it smoother to transplant the autonomous driving algorithm under test to the real vehicle.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 is a flow chart of an automatic driving simulation method in an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of an evaluation indicator in an embodiment of the present invention;

[0023] Figure 3 is a flow chart of another automatic driving simulation method in an embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of a flow chart of an automatic driving simulation system in an embodiment of the present invention;

[0025] Figure 5 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other without conflict.

[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0028] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0029] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0030] Unless otherwise stated, the term "plurality" means two or more.

[0031] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0032] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0033] First of all, it should be explained that the relevant technologies of autonomous driving simulation testing are usually achieved through the cooperation of multiple third-party software to form a more realistic simulation environment. The third-party software includes VTD (Virtual Drive Test) simulation platform, CARSIM (a simulation software specifically for vehicle dynamics) software, SIMULINK (a visual simulation tool) tool, ROS (Robot Operating System) platform, etc. Among them, the VTD simulation platform is used to establish multi-scenario iterative tests, CARSIM software is used to simulate actual vehicle dynamics, SIMULINK tool is used to implement cross-platform communication interface, and ROS platform is used for algorithm integration. The driving scene simulation of the autonomous driving algorithm is carried out through the cooperation of multiple third-party software, and the test is carried out according to the collected simulation data. However, since the real car computer cannot use software such as SIMULINK interface, the authenticity of the simulation environment is greatly reduced.

[0034] Combination Figure 1 As shown, the embodiment of the present disclosure provides an automatic driving simulation method, including:

[0035] Step S101, obtaining driving simulation software, automatic driving algorithm and data adaptation rules;

[0036] Among them, the data adaptation rules are used to realize the data conversion between the simulation system format and the vehicle computer universal format;

[0037] Step S102, performing driving scene simulation through driving simulation software to obtain driving simulation data corresponding to the simulation system format;

[0038] Step S103, converting the driving simulation data into a universal format for a vehicle computer according to a data adaptation rule to obtain converted simulation data;

[0039] Step S104, calculating the converted simulation data according to the automatic driving algorithm to obtain a vehicle control instruction corresponding to the vehicle computer universal format;

[0040] Step S105, converting the vehicle control instruction into a simulation system format according to the data adaptation rule to obtain a converted control instruction;

[0041] Step S106, sending the conversion control instruction to the driving simulation software to control the virtual vehicle in the monitoring simulation software to perform automatic driving.

[0042] The automatic driving simulation method provided by the embodiment of the present disclosure is adopted. By acquiring the driving simulation software, the automatic driving algorithm and the data adaptation rules, the driving simulation data output by the driving simulation software is converted into a universal format for the vehicle according to the data adaptation rules, and then the calculation is performed according to the automatic driving algorithm, and the vehicle control instructions of the automatic driving algorithm are converted into a simulation system format according to the data adaptation rules, and then sent to the driving simulation software. In this way, data communication between the automatic driving algorithm and the driving simulation software is realized through the data adaptation rules, and the data sent and received by the automatic driving algorithm are all in the universal format for the vehicle consistent with the real vehicle, making the automatic driving simulation environment closer to the real environment, improving the test accuracy of the automatic driving simulation test results, and making it smoother to transplant the automatic driving algorithm under test to the real vehicle.

[0043] In some embodiments, the driving simulation software includes a VTD simulation platform; the VTD simulation platform is used to simulate driving scenarios and sensors through OpenDrive (a high-precision map format) format and OpenScenario (a dynamic scenario planning format) format files;

[0044] In some embodiments, the simulation system format includes an RDB (Runtime Data Bus) format, which describes the current status of each participant in the simulation through different data packet formats. Third-party components usually use RDB to interact with the simulation engine during simulation operation.

[0045] In some embodiments, the autonomous driving algorithm is used to plan and decide on the driving path of the simulated vehicle in the driving simulation software based on the converted simulation data, and to control the dynamic parameters of the driving vehicle in the driving simulation software through vehicle control instructions, wherein the dynamic parameters include one or more of the steering wheel angle, vehicle speed acceleration, etc.

[0046] In some embodiments, the universal format of the vehicle computer includes one or more formats such as C language, C++, Protobuf (protocol buffer, structured language data), etc., among which Protobuf is a mixed language data standard that serializes structured data to obtain a language-independent, platform-independent, and extensible serialized structured data format in the fields of communication protocols and data storage.

[0047] Optionally, a driving scene simulation is performed through driving simulation software to obtain driving simulation data corresponding to the simulation system format, including: allocating physical ports to the driving simulation software to obtain a first port and a second port corresponding to the driving simulation software; sending a preset simulation start instruction to the driving simulation software to trigger the driving simulation software to perform a driving scene simulation; receiving state parameters for describing a virtual vehicle and scene parameters for describing a virtual scene through the first port, and receiving sensor parameters for describing a vehicle sensor through the second port, wherein the vehicle sensor is arranged on the virtual vehicle; and determining the state parameters, scene parameters and sensor parameters as the driving simulation data.

[0048] In some embodiments, the VTD simulation platform outputs driving simulation data in the form of a RDB format data stream, wherein the acquisition frequency of the RDB format data stream includes 60-120 Hz, for example, 60 Hz.

[0049] In some embodiments, the state parameters include one or more of vehicle speed information, direction information, etc.; the scene parameters include one or more of surrounding vehicle information, pedestrian information, traffic light information, etc.; the sensor information includes one or more of lane line sensing information, pedestrian sensing information, road object sensing information, etc.

[0050] Optionally, the simulation start instruction is obtained by the following method: obtaining a scenario file, determining simulation information according to the scenario file, wherein the simulation information includes at least one of destination information, simulation end conditions, and sensor start status; and generating a simulation start instruction according to the scenario file and the simulation information.

[0051] In some embodiments, the destination information includes one or more of an X coordinate of the destination, a Y coordinate of the destination, and a destination error radius.

[0052] In some embodiments, the simulation end condition is used to control whether the driving simulation software stops the simulation after the virtual vehicle reaches the end point.

[0053] Optionally, sending a preset simulation start instruction to the driving simulation software includes at least one of the following: the driving simulation software includes a display interface, receiving a selection instruction corresponding to the display interface, executing the selection instruction through the display interface, and obtaining a simulation start instruction corresponding to the selection instruction; allocating a physical port to the driving simulation software, obtaining a third port corresponding to the driving simulation software, and sending the preset simulation start instruction to the third port.

[0054] In this way, the simulation can be started through the display interface, and the simulation can also be started by triggering the driving simulation software through the physical port, which improves the flexibility of starting the simulation driving module.

[0055] In some embodiments, the VTD simulation platform has no requirement for having a display interface; select a scene file and click a start button through the display interface to start the simulation; send scene setting instructions and simulation start instructions in SCP (Simulation Control Protocol, a simulation control protocol used by a third-party component to control the simulation process under non-real-time conditions) format through a third port to start the simulation; enable the sensors provided by the VTD simulation platform to use the simulation simulator to identify road objects and lane lines in the simulation environment.

[0056] Optionally, sending the conversion control instruction to the driving simulation software includes: sending the conversion control instruction to a first port of the driving simulation software.

[0057] In this way, by setting a physical interface for the driving simulation software, sending and receiving data through the first port and the second port, and receiving the simulation start instruction through the third port, the secondary development of the driving simulation software is realized. Compared with using a variety of third-party simulation software, the driving simulation software developed through secondary development only relies on the VTD simulation platform, which reduces the complexity of the simulation. At the same time, it reduces the number of simulation software and reduces the cost of software use.

[0058] In some embodiments, the VTD simulation platform is deployed in a server, and the physical interface of the server is opened to the VTD simulation platform, wherein the first port of the VTD simulation platform is port 48190, the second port of the VTD simulation platform is port 48195, and the third port of the VTD simulation platform is port 48179.

[0059] Optionally, before calculating the converted simulation data according to the autonomous driving algorithm, the method also includes: establishing an algorithm port corresponding to the autonomous driving algorithm according to a general format of a vehicle computer, wherein the algorithm port is used to transmit the converted simulation data and vehicle control instructions.

[0060] In this way, by receiving and converting simulation data and sending vehicle control instructions through the unified interface of the autonomous driving algorithm, there is no need to distinguish between the simulation environment and the real environment, which improves the test accuracy of the autonomous driving simulation test results and makes it smoother to transplant the autonomous driving algorithm under test to the real vehicle computer.

[0061] In some embodiments, since the autonomous driving algorithm has multiple algorithm languages, the algorithm port corresponding to the autonomous driving algorithm is designed and defined through Protobuf technology, which can automatically identify codes of various programming language types, and use the identified code to fill, publish and receive data under the unified algorithm port definition, making it possible for simulation and real vehicles to use the same interface definition.

[0062] In some embodiments, the algorithm interface transmits and converts simulation data and vehicle control instructions based on TCP (Transmission Control Protocol) technology.

[0063] Optionally, after simulating the driving scene through driving simulation software and obtaining driving simulation data corresponding to the simulation system format, the method also includes: obtaining evaluation indicators, calculating the driving simulation data or converting the simulation data according to the evaluation indicators to obtain indicator values ​​corresponding to the evaluation indicators; and generating an evaluation report based on the evaluation indicators and the indicator values ​​corresponding to the evaluation indicators.

[0064] In some embodiments, driving simulation data in RDB signal format is read through the first port, parsed according to the format provided by the VTD official document, and the indicator value corresponding to the evaluation indicator is obtained based on the parsed driving simulation data, wherein the parsed driving simulation data includes one or more of vehicle information, vehicle speed information, lane line information, pedestrian information and traffic light information, and the evaluation indicators include one or more of the average speed of the vehicle, total mileage, number of vehicle collisions, whether the end point is reached, lane keeping, speed limit, compaction line, driving smoothness and other indicators.

[0065] In some embodiments, the evaluation report is output in HTML (HyperText Mark-up Language), PDF (Portable Document Format) or DOC (Document) format for viewing by algorithm developers or simulation testers.

[0066] Combination Figure 2As shown, the driving simulation data or the conversion simulation data is calculated according to the evaluation index to obtain the index value corresponding to the evaluation index, including: the evaluation index includes at least one of the operation index 201, the safety index 202 and the comfort index 203; the driving simulation data or the conversion simulation data is extracted according to the operation index to obtain the operation parameter corresponding to the operation index, and the operation parameter is calculated according to the preset operation index formula to obtain the index value corresponding to the operation index, wherein the operation parameter includes at least one of the mileage, the simulation time, the destination arrival status, etc.; the driving simulation data or the conversion simulation data is extracted according to the safety index to obtain the safety parameter corresponding to the safety index, The safety parameters are calculated according to a preset safety index formula to obtain an index value corresponding to the safety index, wherein the safety parameters include at least one of the number of vehicle collisions, the number of vehicles driving in the wrong direction, the number of pedestrians giving way, the number of red light violations, the number of speeding, the number of lane keeping, the number of solid line crossings, the number of vehicle distances being too large, the number of vehicle distances being too small, etc.; data extraction is performed on the driving simulation data or the conversion simulation data according to the comfort index to obtain a comfort parameter corresponding to the comfort index, and the comfort parameter is calculated according to a preset comfort index formula to obtain an index value corresponding to the comfort index, wherein the comfort parameter includes at least one of the number of emergency braking, the number of emergency acceleration, the number of emergency turns, the number of smooth starts, etc.

[0067] Optionally, the method also includes: the number of autonomous driving algorithms includes multiple; establishing a driving simulation module according to the driving simulation software, the driving simulation module is used to simulate the driving scene through the driving simulation software, and obtain driving simulation data corresponding to the simulation system format; establishing an adaptation module according to the data adaptation rule, the adaptation module is used to realize data conversion between the simulation system format and the vehicle-computer universal format through the data adaptation rule; establishing an algorithm module corresponding to each autonomous driving algorithm, the algorithm module is used to calculate the converted simulation data according to the autonomous driving algorithm, and obtain the vehicle control instruction corresponding to the vehicle-computer universal format; establishing a simulation test module, the simulation test module is used to calculate the driving simulation data or the converted simulation data according to the evaluation index, and obtain the indicator value corresponding to the evaluation index, and generate an evaluation report according to the evaluation index and the indicator value corresponding to the evaluation index; establishing a test container corresponding to each algorithm module according to the adaptation module, the simulation test module and each algorithm module; integrating the driving simulation software into the simulation server, and integrating each test container into the cloud server or the local server respectively.

[0068] In this way, the driving simulation software is integrated into the simulation server, and each test container is integrated into the cloud server or the local server respectively, so as to realize the execution of multiple simulation test tasks and improve the efficiency of simulation test.

[0069] Combination Figure 3As shown, the embodiment of the present disclosure provides an automatic driving simulation method, including:

[0070] Step S301, the driving simulation module performs driving scene simulation through driving simulation software to obtain driving simulation data corresponding to the simulation system format;

[0071] Step S302, the driving simulation module sends the driving simulation data to the adaptation module;

[0072] Step S303, the adaptation module converts the driving simulation data into a universal format for the vehicle computer according to the data adaptation rule to obtain converted simulation data;

[0073] Step S304, the adaptation module sends the converted simulation data to the algorithm module;

[0074] Step S305, the algorithm module calculates the converted simulation data according to the automatic driving algorithm to obtain the vehicle control instructions corresponding to the vehicle universal format;

[0075] Step S306, the algorithm module sends the vehicle control instruction to the adaptation module;

[0076] Step S307, the adaptation module converts the vehicle control instruction into a simulation system format according to the data adaptation rule to obtain a conversion control instruction;

[0077] Step S308, the adaptation module sends a conversion control instruction to the driving simulation software;

[0078] Step S309: the driving simulation module sends the driving simulation data to the simulation test module.

[0079] Step S310: The simulation test module calculates the driving simulation data or the conversion simulation data according to the evaluation index to obtain an index value corresponding to the evaluation index.

[0080] The automatic driving simulation method provided by the embodiment of the present disclosure obtains the driving simulation software, the automatic driving algorithm and the data adaptation rule, converts the driving simulation data output by the driving simulation software into a universal format for the vehicle according to the data adaptation rule, and then performs calculation according to the automatic driving algorithm, and converts the vehicle control instructions of the automatic driving algorithm into a simulation system format according to the data adaptation rule, and then sends them to the driving simulation software, which has the following advantages:

[0081] 1. Data communication between the autonomous driving algorithm and the driving simulation software is achieved through data adaptation rules. The data sent and received by the autonomous driving algorithm are in the universal format of the vehicle computer that is consistent with the real vehicle, making the autonomous driving simulation environment closer to the real environment, improving the test accuracy of the autonomous driving simulation test results, and making it smoother to transplant the autonomous driving algorithm under test to the real vehicle computer;

[0082] 2. By setting a physical interface for the driving simulation software, sending and receiving data through the first port and the second port, and receiving the simulation start command through the third port, the secondary development of the driving simulation software is realized. Compared with using a variety of third-party simulation software, the secondary developed driving simulation software only relies on the VTD simulation platform, which reduces the complexity of the simulation. At the same time, it reduces the number of simulation software and reduces the cost of software use;

[0083] 3. The simulation can be started through the display interface, and the driving simulation software can be triggered through the physical port to start the simulation, which improves the flexibility of starting the simulation driving module;

[0084] 4. Receive and convert simulation data and send vehicle control instructions through the unified interface of the autonomous driving algorithm, without distinguishing between the simulation environment and the real environment, improve the test accuracy of the autonomous driving simulation test results, and make it smoother to transplant the autonomous driving algorithm under test to the real vehicle machine;

[0085] 5. Integrate the driving simulation software into the simulation server, and integrate each test container into the cloud server or local server, so as to realize the execution of multiple simulation test tasks and improve the efficiency of simulation test.

[0086] Combination Figure 4 As shown, the embodiment of the present disclosure provides an automatic driving simulation system, including: an acquisition module 401, a driving simulation module 402, an algorithm module 403 and an adaptation module 404, wherein the acquisition module 401 is respectively connected to the driving simulation module 402, the algorithm module 403 and the adaptation module 404, and the adaptation module 404 is respectively connected to the driving simulation module 402 and the algorithm module 403, wherein the acquisition module 401 is used to acquire driving simulation software, automatic driving algorithm and data adaptation rules, wherein the data adaptation rules are used to realize data conversion between the simulation system format and the vehicle computer universal format; the driving simulation module Block 402 is used to simulate the driving scene through the driving simulation software to obtain driving simulation data corresponding to the simulation system format; the algorithm module 403 is used to calculate the converted simulation data according to the automatic driving algorithm to obtain the vehicle control instructions corresponding to the universal format of the vehicle computer; the adaptation module 404 is used to convert the driving simulation data into the universal format of the vehicle computer according to the data adaptation rules to obtain the converted simulation data; convert the vehicle control instructions into the simulation system format according to the data adaptation rules to obtain the conversion control instructions; send the conversion control instructions to the driving simulation software to control the virtual vehicle in the monitoring simulation software to perform automatic driving.

[0087] The automatic driving simulation method provided by the embodiment of the present disclosure is adopted. By acquiring the driving simulation software, the automatic driving algorithm and the data adaptation rules, the driving simulation data output by the driving simulation software is converted into a universal format for the vehicle according to the data adaptation rules, and then the calculation is performed according to the automatic driving algorithm, and the vehicle control instructions of the automatic driving algorithm are converted into a simulation system format according to the data adaptation rules, and then sent to the driving simulation software. In this way, data communication between the automatic driving algorithm and the driving simulation software is realized through the data adaptation rules, and the data sent and received by the automatic driving algorithm are all in the universal format for the vehicle consistent with the real vehicle, making the automatic driving simulation environment closer to the real environment, improving the test accuracy of the automatic driving simulation test results, and making it smoother to transplant the automatic driving algorithm under test to the real vehicle.

[0088] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0089] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0090] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0091] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0092] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0093] The embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in the embodiments is implemented.

[0094] The computer-readable storage medium in the embodiments of the present disclosure can be understood by ordinary technicians in the field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the execution includes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0095] The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the electronic device executes each step of the above method.

[0096] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0097] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0098] The above description and accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of a stated sub-sample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0099] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0100] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0101] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. An automatic driving simulation method, characterized in that: include: Acquire driving simulation software, autonomous driving algorithm and data adaptation rules, wherein the data adaptation rules are used to realize data conversion between the simulation system format and the vehicle computer universal format; Perform driving scene simulation through the driving simulation software to obtain driving simulation data corresponding to the simulation system format, and convert the driving simulation data into the vehicle computer universal format according to the data adaptation rule to obtain converted simulation data; Calculating the converted simulation data according to the automatic driving algorithm to obtain a vehicle control instruction corresponding to the vehicle universal format, and converting the vehicle control instruction into the simulation system format according to the data adaptation rule to obtain a converted control instruction; Sending the conversion control instruction to the driving simulation software to control the virtual vehicle in the driving simulation software to perform automatic driving; The driving simulation software is used to perform driving scene simulation to obtain driving simulation data corresponding to the simulation system format, including: allocating physical ports to the driving simulation software to obtain a first port and a second port corresponding to the driving simulation software; sending a preset simulation start instruction to the driving simulation software to trigger the driving simulation software to perform driving scene simulation; receiving state parameters for describing a virtual vehicle and scene parameters for describing a virtual scene through the first port, and receiving sensor parameters for describing a vehicle sensor through the second port, wherein the vehicle sensor is arranged on the virtual vehicle; and determining the state parameters, the scene parameters and the sensor parameters as driving simulation data.

2. The method according to claim 1, characterized in that: Get the simulation start command by the following method: Acquire a scenario file, and determine simulation information according to the scenario file, wherein the simulation information includes at least one of destination information, simulation end condition, and sensor start state; A simulation start instruction is generated according to the scene file and the simulation information.

3. The method according to claim 1, characterized in that Sending a preset simulation start instruction to the driving simulation software includes at least one of the following: The driving simulation software includes a display interface, receiving a selection instruction corresponding to the display interface, executing the selection instruction through the display interface, and obtaining a simulation start instruction corresponding to the selection instruction; A physical port is allocated to the driving simulation software to obtain a third port corresponding to the driving simulation software, and a preset simulation start instruction is sent to the third port.

4. The method according to claim 1, characterized in that: Sending the conversion control instruction to the driving simulation software includes: The conversion control instruction is sent to the first port of the driving simulation software.

5. The method according to claim 1, characterized in that Before calculating the converted simulation data according to the autonomous driving algorithm, the method further includes: An algorithm port corresponding to the autonomous driving algorithm is established according to the vehicle-computer universal format, wherein the algorithm port is used to transmit the conversion simulation data and the vehicle control instructions.

6. The method according to any one of claims 1 to 5, characterized in that: After performing driving scene simulation by the driving simulation software to obtain driving simulation data corresponding to the simulation system format, the method further includes: Acquire an evaluation index, and calculate the driving simulation data or the conversion simulation data according to the evaluation index to obtain an index value corresponding to the evaluation index; An evaluation report is generated according to the evaluation indicators and the indicator values ​​corresponding to the evaluation indicators.

7. The method according to claim 6, characterized in that Calculating the driving simulation data or the conversion simulation data according to the evaluation index to obtain an index value corresponding to the evaluation index includes: The evaluation index includes at least one of an operation index, a safety index and a comfort index; Extracting data from the driving simulation data or the conversion simulation data according to the operation index to obtain an operation parameter corresponding to the operation index, and calculating the operation parameter according to a preset operation index formula to obtain an index value corresponding to the operation index, wherein the operation parameter includes at least one of driving mileage, simulation duration, and destination arrival status; Extracting data from the driving simulation data or the conversion simulation data according to the safety index to obtain a safety parameter corresponding to the safety index, and calculating the safety parameter according to a preset safety index formula to obtain an index value corresponding to the safety index, wherein the safety parameter includes at least one of the number of vehicle collisions, the number of vehicles driving in the wrong direction, the number of pedestrians giving way, the number of red light violations, the number of speeding, the number of lane keeping, the number of solid line crossing, the number of excessive vehicle distances, and the number of insufficient vehicle distances; Data extraction is performed on the driving simulation data or the conversion simulation data according to the comfort index to obtain a comfort parameter corresponding to the comfort index, and the comfort parameter is calculated according to a preset comfort index formula to obtain an index value corresponding to the comfort index, wherein the comfort parameter includes at least one of the number of emergency braking, the number of emergency acceleration, the number of emergency turns, and the number of smooth starts.

8. An automatic driving simulation system, characterized in that: include: An acquisition module, used to acquire driving simulation software, autonomous driving algorithms and data adaptation rules, wherein the data adaptation rules are used to achieve data conversion between the simulation system format and the vehicle computer universal format; A driving simulation module, used to simulate driving scenarios through the driving simulation software to obtain driving simulation data corresponding to the simulation system format; An algorithm module, used to calculate the converted simulation data according to the automatic driving algorithm to obtain a vehicle control instruction corresponding to the vehicle universal format; An adaptation module, configured to convert the driving simulation data into the vehicle-computer universal format according to the data adaptation rule to obtain the converted simulation data; convert the vehicle control instruction into the simulation system format according to the data adaptation rule to obtain a converted control instruction; and send the converted control instruction to the driving simulation software to control the virtual vehicle in the driving simulation software to perform automatic driving; The driving simulation software is used to perform driving scene simulation to obtain driving simulation data corresponding to the simulation system format, including: allocating physical ports to the driving simulation software to obtain a first port and a second port corresponding to the driving simulation software; sending a preset simulation start instruction to the driving simulation software to trigger the driving simulation software to perform driving scene simulation; receiving state parameters for describing a virtual vehicle and scene parameters for describing a virtual scene through the first port, and receiving sensor parameters for describing a vehicle sensor through the second port, wherein the vehicle sensor is arranged on the virtual vehicle; and determining the state parameters, the scene parameters and the sensor parameters as driving simulation data.

9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.