Automatic driving system test method and device

By defining the configuration files of functional modules in the autonomous driving system and using message middleware technology for data collection and back-injection, the problem of ineffective utilization of real vehicle data is solved, the rapid testing and iteration requirements of the autonomous driving system are realized, and the reduction of test cost and time.

CN118733424APending Publication Date: 2024-10-01CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310335700.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The real vehicle data back-injection test of the autonomous driving system has the problems of data waste, high test cost, and low efficiency, mainly due to the inability to effectively utilize the data and the need for additional hardware equipment support.

Method used

By defining the configuration files of vehicle function modules, message middleware technology is used to implement data collection and back-injection. Function modules communicate with each other through the publish and subscribe model, save and forward data, and reduce dependence on hardware devices.

Benefits of technology

It realizes the effective utilization of all data of the autonomous driving system, reduces the testing cost and time, improves the testing efficiency and accuracy, and meets the needs of rapid testing and iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733424A_ABST
    Figure CN118733424A_ABST
Patent Text Reader

Abstract

The invention provides an automatic driving system testing method and device. Defining a configuration file corresponding to each functional module of the vehicle, and setting an identifier of first theme data published by the functional module and an identifier of second theme data subscribed by the functional module in the configuration file; the function modules communicate with each other through the message middleware technology, so that the message middleware can determine the first theme data collected from the function modules through the configuration file and store the first theme data in the preset storage space, and when the function modules execute the test, the first theme data is stored in the preset storage space. The target second theme data of the preset storage space can be obtained through the message-oriented middleware technology, communication between the function modules is more convenient through the communication technology of the message-oriented middleware, data collection and reinjection are carried out on the software system level through the message-oriented middleware technology, the use method is simple, and the application range is wide. Extra hardware equipment is not needed for assistance, the testing efficiency is improved, and the testing cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The safety of autonomous driving systems is an important topic in the field of autonomous driving. When testing a real vehicle, a large amount of real vehicle data will be recorded, which can be used to perform back-injection testing on various functional modules of the autonomous driving system.

[0003] When performing data reinjection testing using real vehicle data, since the real vehicle data contains a lot of content, a lot of data is not effectively utilized, resulting in data waste. At the same time, data reinjection testing in related technologies requires the configuration of corresponding hardware equipment, which increases the cost of testing and reduces the efficiency of testing. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide an automatic driving system testing method, device, electronic device and readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present application discloses a method for testing an autonomous driving system, the method comprising:

[0006] Define a configuration file corresponding to each functional module of the vehicle, wherein the configuration file is provided with an identifier of the first subject data published by the functional module and an identifier of the second subject data subscribed by the functional module;

[0007] Collecting data content corresponding to the identifier of the first subject data from the functional module, and storing the data content in a preset storage space of the message middleware;

[0008] In response to a request from a functional module to obtain subscribed second topic data, if target second topic data exists in the data content of the preset storage space, forwarding the target second topic data to the functional module through the message middleware, so that the functional module performs a test based on the target second topic data and generates a test result;

[0009] Obtain the test result sent by the functional module.

[0010] In a second aspect, an embodiment of the present application discloses an automatic driving system testing device, the device comprising:

[0011] A definition module, used to define configuration files corresponding to each functional module of the vehicle, wherein the configuration files are provided with an identifier of the first subject data published by the functional module and an identifier of the second subject data subscribed by the functional module;

[0012] A collection module, used for collecting data content corresponding to the identifier of the first subject data from the function module, and storing the data content in a preset storage space of the message middleware;

[0013] a forwarding module, configured to respond to a request by a functional module to obtain the subscribed second subject data, and, if the target second subject data exists in the data content of the preset storage space, forward the target second subject data to the functional module through the message middleware, so that the functional module can perform a test based on the target second subject data and generate a test result;

[0014] The acquisition module is used to acquire the test result sent by the functional module.

[0015] In a third aspect, an embodiment of the present application discloses an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0016] In a fourth aspect, an embodiment of the present application discloses a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] In an embodiment of the present application, a configuration file corresponding to each functional module of the vehicle is defined, and an identifier of the first topic data published by the functional module and an identifier of the second topic data subscribed by the functional module are set in the configuration file; the functional modules communicate with each other through the message middleware technology, so that the message middleware can determine the first topic data collected from the functional module through the configuration file, and save the first topic data in a preset storage space. When the functional module executes the test, the target second topic data of the preset storage space can be obtained through the message middleware technology. By utilizing the communication technology of the message middleware, the communication between the functional modules is more convenient, and data collection and injection are performed at the software system level through the message middleware technology. The method of use is simple, does not require additional hardware equipment for assistance, and can collect all the data in the autonomous driving system, and can make reasonable use of the full amount of data, which can meet the needs of rapid testing and iteration of the autonomous driving system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1is a flowchart of a method for testing an automatic driving system provided by an embodiment of the present invention;

[0019] Figure 2 This is a process for data communication based on message middleware technology provided by an embodiment of the present invention;

[0020] Figure 3 It is a data communication method between various functional modules in an automatic driving system provided by an embodiment of the present invention;

[0021] Figure 4 This is a flowchart of another method for testing an automatic driving system provided by an embodiment of the present invention;

[0022] Figure 5 This is a data collection flow chart provided by an embodiment of the present invention;

[0023] Figure 6 It is a data reinjection flow chart provided by an embodiment of the present invention;

[0024] Figure 7 An automatic driving system testing device provided by an embodiment of the present invention;

[0025] Figure 8 is a block diagram of an electronic device of the present application;

[0026] Fig. 9 is a block diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION

[0027] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0028] refer to Figure 1 , which shows a flowchart of the steps of an automatic driving system testing method provided in an embodiment of the present application, the method comprising:

[0029] Step 101 , defining configuration files corresponding to respective functional modules of the vehicle, wherein the configuration files are provided with identifiers of first subject data published by the functional modules and identifiers of second subject data subscribed by the functional modules.

[0030] The autonomous driving system is a system that realizes real-time and continuous control of trains based on communication, computer, network and control technology. Continuous test iterations are required during the development of the autonomous driving system to ensure the safety of the autonomous driving system. At present, the testing of the autonomous driving system is mainly divided into simulation testing and real vehicle testing. The simulation test is based on the actual vehicle operation scene. A virtual scene is built by simulating the actual scene through simulation software, and the test is carried out in the virtual scene. The simulation test is very convenient and fast, but due to the difference between the simulation environment and the actual environment, the simulation test can only do some preliminary verification tests. The real vehicle test is to test the test vehicle in a real environment to obtain the real vehicle test data. The real vehicle test data can be used for the injection test of the autonomous driving system. The existing acquisition injection test technology requires special equipment in the injection process, and the degree of customized development is high. If multiple tests are required, multiple devices need to be purchased, resulting in increased test time and economic costs, and complex process management.

[0031] In an embodiment of the present invention, the functional modules of the vehicle may include a combined inertial navigation module, an environment reconstruction module, a prediction module, a decision module, a planning module, a map module, a lidar module, a fusion module, a control module and other functional modules. Each functional module has a corresponding configuration file. The configuration file can define the identification of the data that needs to be collected by each functional module and the identification of the data that needs to be back-injected tested. Different identifications are used to represent different subject categories.

[0032] Furthermore, when collecting data, each functional module can collect data according to different subject categories. The data to be collected can be first subject data, and each functional module can define multiple first subject data of different subject categories. When performing back injection testing, the functional module can subscribe to multiple second subject data of different subject categories. For a functional module, the first subject data collected and published and the subscribed second subject data can be different data.

[0033] Step 102: Collect data content corresponding to the identifier of the first subject data from the functional module, and store the data content in a preset storage space of the message middleware.

[0034] In an embodiment of the present invention, functional modules can communicate with each other through the communication mode of message middleware. The message middleware can be DDS (Data Distribution Service), SOME / IP (scalable service-oriented middleware), ZMQ (Zero Message Queue, a multi-threaded network library based on message queues), etc. The message middleware is used to provide message communication services based on the publish-subscribe model. Taking DDS as an example, the Data Distribution Service (DDS) is a data-centric middleware protocol and API (Application Programming Interface) standard released by the Object Management Group. It adopts a distributed publish / subscribe architecture, provides communication services in the form of middleware, and emphasizes data-centricity. The application can use a simple topic name to specify the data it wants to read or write, and use a data-centric API to directly read and write data. The data-centric publish / subscribe model in DDS constructs the concept of a shared "global data space", in which all data objects exist, and distributed nodes can access these data objects through simple read and write operations.

[0035] refer to Figure 2 , Figure 2 A process of data communication based on message middleware technology is shown. Among them, Topic: is a data abstract concept, identified by a topic name, and associated with the data type of the corresponding data. The modules in the autonomous driving system publish / subscribe data through topics, and the data recording in the present invention is also based on topics. The data writer (DataWriter), similar to a cache, writes the topic data to be published from the application layer to the data writer (DataWriter). The data reader (DataReader), can also be understood as a cache, which obtains the topic data from the data subscriber and then passes it to the application layer. The data publisher (Publisher), publishes the topic data, is associated with at least one data writer, and sends the data by calling the relevant functions of the data writer. The data subscriber (Subscriber), subscribes to the topic data, is associated with at least one data reader, and when the data arrives, the data is obtained by calling the relevant functions of the data reader. As shown Figure 2, data publisher A can be associated with one data writer, data publisher B can be associated with two data writers, the data writer is used to publish the data of the topic in the message middleware, data subscriber E can be associated with one data reader, data subscriber F can be associated with two data readers, data subscriber E obtains the data packet of topic 1 through the associated data reader, and data subscriber F obtains the data packets of topic 2 and topic 3 respectively through the associated two data readers.

[0036] Furthermore, in the present application, a data service module based on a publish-subscribe model may be provided, the data service module is based on message middleware communication, and the data service module is used to implement data communication between various functional modules. Figure 3 , Figure 3 The data communication method between each functional module in an automatic driving system provided by the present application is shown. The data service module can collect the data content corresponding to the identifier of the first subject data from the functional module, and save the data content in the preset storage space of the data service module based on the message middleware communication, that is, the data of the combined inertial navigation module, the environment reconstruction module, the prediction module, the decision module, the planning module, the map module, the laser radar module, the fusion module, and the control module can be published in the data service module by the data writer. The published first subject data is saved in the preset storage space of the data service module. Similarly, the combined inertial navigation module, the environment reconstruction module, the prediction module, the decision module, the planning module, the map module, the laser radar module, the fusion module, and the control module can subscribe to data from the data service module.

[0037] Step 103, in response to the functional module's request to obtain the subscribed second topic data, when the target second topic data exists in the data content of the preset storage space, the target second topic data is forwarded to the functional module through the message middleware, so that the functional module can perform testing based on the target second topic data and generate test results.

[0038] In an embodiment of the present invention, an identifier of the second subject data is set in the configuration file of the functional module, and the identifier can be the name of the subject. When executing data injection and testing, the autonomous driving system will start the corresponding functional module that needs to be injected and tested. A data injection module can also be set in the present application. The data injection module is used to read the second subject data in the preset storage space of the data service module. After reading the second subject data, the data service module forwards the data subscribed by each functional module to each functional module based on the communication method of the message middleware, so that each functional module can be tested. Through such a workflow, the autonomous driving system test can be carried out conveniently and quickly, which greatly improves the accuracy of the test and greatly reduces the time cost and economic cost of the test. After obtaining the subscribed target second subject data, the functional module can perform the test based on the target second subject data to obtain the test results.

[0039] Step 104: Obtain the test result sent by the functional module.

[0040] In an embodiment of the present invention, the functional module for executing the test can be a test device configured with the same functional module as the actual vehicle for the actual vehicle test. During the test, the test device is connected to the industrial control console, and the target second subject data is input into the functional module for executing the test to obtain the test data of the functional module. Compared with the simulation environment test, which is tested under computer simulation throughout the process, the embodiment of the present application is closer to the real scene test environment. Compared with the road real scene test, the present embodiment does not need to build a real scene scene, which reduces the test cost, and the real vehicle data of the present embodiment is derived from the real data of the vehicle driving on the road. During multiple tests, each functional module can modify the configuration file and test different data each time, which reduces the cost of multiple tests. And the test method of the present application is closer to the driving environment of the autonomous driving vehicle, and the test results are more valuable, providing reference significance for the real scene test.

[0041] In summary, in the embodiment of the present application, a configuration file corresponding to each functional module of the vehicle is defined, and an identifier of the first topic data published by the functional module and an identifier of the second topic data subscribed by the functional module are set in the configuration file; the functional modules communicate with each other through the message middleware technology, so that the message middleware can determine the first topic data collected from the functional module through the configuration file, and save the first topic data in a preset storage space. When the functional module executes the test, the target second topic data of the preset storage space can be obtained through the message middleware technology. By utilizing the communication technology of the message middleware, the communication between the functional modules is more convenient, and data collection and injection are performed at the software system level through the message middleware technology. The method of use is simple, does not require additional hardware equipment for assistance, and can collect all the data in the autonomous driving system, and can make reasonable use of the full amount of data, which can meet the needs of rapid testing and iteration of the autonomous driving system.

[0042] refer to Figure 4 , which shows a flowchart of the steps of another automatic driving system testing method provided in an embodiment of the present application, the method comprising:

[0043] Step 201 , defining configuration files corresponding to respective functional modules of the vehicle, wherein the configuration files are provided with identifiers of first subject data published by the functional modules and identifiers of second subject data subscribed by the functional modules.

[0044] This step may refer to step 101 and will not be described in detail here.

[0045] Optionally, step 201 specifically includes:

[0046] Sub-step 2011, according to preset test conditions, setting the identifier of the first subject data published by the functional module and the identifier of the second subject data subscribed by the functional module.

[0047] In an embodiment of the present invention, the configuration files corresponding to each functional file can be pre-set, and the settings may include setting the identifier of the first subject data collected by the functional module. The identifier of the first subject data may be a subject name. When acquiring the actual vehicle data of the functional module, data of different subject categories are stored in the form of separate data packets. The identifier of each subject may correspond to a data packet, and the data packet stores data of the corresponding subject category. The second subject data subscribed by the functional module may be data published in the data service module by other functional modules. By modifying the identifier of the second subject data subscribed in the configuration file, the functional module can conveniently and flexibly call the data stored in the data service module, thereby realizing multiple tests of the functional module.

[0048] Step 202: Based on the identifier of the first subject data, data content corresponding to the identifier of the first subject data is collected.

[0049] In the embodiment of the present invention, the identifier of the first topic data to be collected is defined in the configuration file of each functional module, and the identifier is the name of the topic. The data service module can collect the data content corresponding to the identifier of the first topic data based on the name of the first topic data. Data collection is based on the communication service of the message middleware.

[0050] Step 203: Store the data content corresponding to the identifier of the first subject data in a preset storage space of the message middleware in the form of a data file.

[0051] In the embodiment of the present invention, the data service module can record the corresponding subject data according to the identifier of the subject data set in the configuration file, and save it in the form of a data file to a preset storage space, which can be a pre-divided disk space.

[0052] refer to Figure 5 , Figure 5 A data collection flow chart provided in an embodiment of the present application is shown. After the automatic driving system is started, the data service module will read the corresponding configuration parameters in the configuration files of each functional module. The configuration parameters will mark which topics' data need to be collected according to the topic name. When the data of each functional module is published to the data service module, the data service module will record the corresponding topic data according to the configuration parameters and save it to the disk space in the form of a file. At the same time, the data service module will also detect whether the recorded data exceeds the maximum limit according to the maximum data record size set in the configuration parameters. When it is detected that the recorded data exceeds the limit, the data service module will determine which data packets are the earliest according to the data record timestamp, and cyclically detect and delete the data packets with the earliest timestamps, so that the recorded data will not exceed the maximum limit.

[0053] Optionally, receiving the first topic data written by the functional module into the preset storage space of the message middleware using the data writer;

[0054] In the embodiment of the present invention, the data writer writes the subject data to be published from the application layer to the DataWriter, that is, the first subject data of the functional module is written into the preset storage space of the message middleware through the data writer.

[0055] Step 204, in response to the functional module's request to obtain the subscribed second subject data, if the target second subject data exists in the data content of the preset storage space, the target second subject data is forwarded to the functional module, so that the functional module can perform testing based on the target second subject data and generate test results.

[0056] This step may refer to step 103 and will not be described again here.

[0057] Optionally, step 204 specifically includes:

[0058] Sub-step 2041, reading the data file of the preset storage space, and determining the target second theme data from the data file according to the identifier of the second theme data subscribed by the functional module.

[0059] Sub-step 2042, forwarding the target second subject data to the target functional module.

[0060] In an embodiment of the present invention, the data service module can obtain the target second theme data subscribed by the functional module through the data subscriber, and forward the target second theme data to the functional module. Specifically, the data injection module can be used to read the data file of the preset storage space, obtain the theme data of the data storage space, and when the functional module obtains the data that needs to be injected test by subscription, it can determine from the data service module whether the corresponding theme data is stored in the preset storage space of the data service module according to the identifier of the second theme data. If the target second theme data is stored in the preset storage space, then the target second theme data is forwarded to the functional module based on the technology of the message middleware, so that the functional module can perform the injection test. If the target second theme data is not stored in the preset storage space, then the injection test of the functional module is terminated, and it is necessary to wait until the corresponding data is stored in the data service module before continuing the injection test.

[0061] refer to Figure 6 , Figure 6A flow chart of the steps of a data reinsertion method provided by an embodiment of the present application is shown. When performing data reinsertion and testing, the autonomous driving system will start the corresponding functional module according to the configuration parameters. At the same time, the data reinsertion module will also read the corresponding configuration parameters. The configuration parameters will mark which topics' data need to be reinserted according to the topic name. Then, the data reinsertion module will publish the data that needs to be reinserted to the data service module. The data service module will forward the data to each functional module according to the data subscribed by each functional module. In this way, each functional module can be tested. Through such a workflow, the autonomous driving system test can be carried out very conveniently and quickly, which greatly improves the accuracy of the test and greatly reduces the time cost and economic cost of the test.

[0062] Step 205: Obtain the test result sent by the functional module.

[0063] This step may refer to step 104 and will not be described in detail here.

[0064] Optionally, the method further comprises:

[0065] Step 206: When the number of data files stored in the preset storage space exceeds the storage threshold, the data file with the earliest storage time is deleted.

[0066] In the embodiment of the present invention, the data service module can detect whether the recorded data exceeds the maximum limit according to the set maximum data record size. When it is detected that the recorded data exceeds the limit, the data service module will determine which data packets are the earliest data packets according to the data record timestamp, delete the earliest data packets, and delete the data packets with the earliest timestamps through cyclic detection, so that the recorded data will not exceed the maximum limit of the preset storage space. It is ensured that the newly collected subject data can be stored in the preset storage space for the functional module to subscribe.

[0067] Optionally, the functional modules include: any one of a combined inertial navigation module, an environment reconstruction module, a prediction module, a decision module, a planning module, a map module, a lidar module, a fusion module, and a control module.

[0068] In an embodiment of the present invention, the above-mentioned modules may be modules that perform different functions in an autonomous driving system. When the vehicle is running, each module generates its own corresponding real vehicle data. By collecting the data corresponding to each module and injecting the data back into the corresponding module, a back-injection test for the functional module is implemented.

[0069] Optionally, the message middleware includes: data distribution service and extensible service-oriented middleware.

[0070] In the embodiment of the present invention, the solution of the present application can be implemented through the technology of any message middleware, such as data distribution service (DSS), scalable service-oriented middleware (SOME / IP, providing service-oriented communication through the network, providing service publishing and subscription functions), ZMQ (a new layer in network communication, between the application layer and the transport layer (divided according to TCP / IP), which is a scalable layer, scattered among distributed systems. The sockets it provides can transmit messages in multiple protocols, such as between threads, between processes, TCP (Transmission Control Protocol), broadcast, etc. Sockets can be used to build many-to-many connection modes, such as publish / subscribe). Data exchange between software components can be realized through message middleware, so that decoupling between software components is achieved. In addition, the solution of the present application can be based on different operating systems: such as Linux, QNX and other operating systems, based on different hardware platforms: such as x86, Xavier, Orin and other hardware platforms for implementation, the embodiment of the present invention is not limited here.

[0071] In summary, in the embodiment of the present application, a configuration file corresponding to each functional module of the vehicle is defined, and an identifier of the first topic data published by the functional module and an identifier of the second topic data subscribed by the functional module are set in the configuration file; the functional modules communicate with each other through the message middleware technology, so that the message middleware can determine the first topic data collected from the functional module through the configuration file, and save the first topic data in a preset storage space. When the functional module executes the test, the target second topic data of the preset storage space can be obtained through the message middleware technology. By utilizing the communication technology of the message middleware, the communication between the functional modules is more convenient, and data collection and injection are performed at the software system level through the message middleware technology. The method of use is simple, does not require additional hardware equipment for assistance, and can collect all the data in the autonomous driving system, and can make reasonable use of the full amount of data, which can meet the needs of rapid testing and iteration of the autonomous driving system.

[0072] refer to Figure 7 , which shows an automatic driving system testing device provided by an embodiment of the present application, the device comprising:

[0073] A definition module 301, used to define configuration files corresponding to each functional module of the vehicle, wherein the configuration files are provided with an identifier of the first subject data published by the functional module and an identifier of the second subject data subscribed by the functional module;

[0074] A collection module 302, used to collect data content corresponding to the identifier of the first subject data from the function module, and store the data content in a preset storage space of the message middleware;

[0075] The forwarding module 303 is used to respond to the acquisition request of the functional module for the subscribed second topic data, and when the target second topic data exists in the data content of the preset storage space, forward the target second topic data to the functional module through the message middleware, so that the functional module can perform a test based on the target second topic data and generate a test result;

[0076] The acquisition module 304 is used to acquire the test result sent by the functional module.

[0077] Optionally, the acquisition module 302 includes:

[0078] A matching submodule, configured to collect data content corresponding to the identifier of the first subject data based on the identifier of the first subject data;

[0079] The storage submodule is used to store the data content corresponding to the identifier of the first subject data in the preset storage space of the message middleware in the form of a data file.

[0080] Optionally, the device further comprises:

[0081] The deleting submodule is used to delete the data file with the earliest storage time when the data files stored in the preset storage space exceed the storage threshold.

[0082] Optionally, the forwarding module 303 includes:

[0083] A reading submodule, used for reading a data file of the preset storage space, and determining the target second subject data from the data file according to an identifier of the second subject data subscribed by the functional module;

[0084] A forwarding submodule is used to forward the target second subject data to the target function module.

[0085] Optionally, the definition module includes:

[0086] The definition submodule is used to set the identifier of the first subject data published by the functional module and the identifier of the second subject data subscribed by the functional module according to the preset test conditions.

[0087] Optionally, the functional modules include: any one of a combined inertial navigation module, an environment reconstruction module, a prediction module, a decision module, a planning module, a map module, a lidar module, a fusion module, and a control module.

[0088] Optionally, the message middleware includes: data distribution service and extensible service-oriented middleware.

[0089] Optionally, the acquisition module includes:

[0090] A writing submodule, used for receiving the first topic data written by the functional module into the preset storage space of the message middleware using the data writer;

[0091] The forwarding submodule comprises:

[0092] The subscription submodule is used to obtain the target second topic data subscribed by the functional module through the data subscriber, and forward the target second topic data to the functional module.

[0093] In summary, in the embodiment of the present application, a configuration file corresponding to each functional module of the vehicle is defined, and an identifier of the first topic data published by the functional module and an identifier of the second topic data subscribed by the functional module are set in the configuration file; the functional modules communicate with each other through the message middleware technology, so that the message middleware can determine the first topic data collected from the functional module through the configuration file, and save the first topic data in a preset storage space. When the functional module executes the test, the target second topic data of the preset storage space can be obtained through the message middleware technology. By utilizing the communication technology of the message middleware, the communication between the functional modules is more convenient, and data collection and injection are performed at the software system level through the message middleware technology. The method of use is simple, does not require additional hardware equipment for assistance, and can collect all the data in the autonomous driving system, and can make reasonable use of the full amount of data, which can meet the needs of rapid testing and iteration of the autonomous driving system.

[0094] Figure 8 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0095] Reference Figure 8 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0096] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0097] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0098] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0099] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0100] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0101] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0102] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0103] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0104] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement an autonomous driving system testing method provided in an embodiment of the present application.

[0105] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0106] Fig. 9 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Fig. 9 , the electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732, for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform an automatic driving system testing method provided in an embodiment of the present application.

[0107] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0108] An embodiment of the present application also provides a computer program product, including a computer program, which implements the autonomous driving system testing method when executed by a processor.

[0109] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0110] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for testing an automatic driving system, characterized in that: The method comprises: Define a configuration file corresponding to each functional module of the vehicle, wherein the configuration file is provided with an identifier of the first subject data published by the functional module and an identifier of the second subject data subscribed by the functional module; Collecting data content corresponding to the identifier of the first subject data from the functional module, and storing the data content in a preset storage space of the message middleware; In response to a request from a functional module to obtain subscribed second topic data, if target second topic data exists in the data content of the preset storage space, forwarding the target second topic data to the functional module through the message middleware, so that the functional module performs a test based on the target second topic data and generates a test result; Obtain the test result sent by the functional module.

2. The method according to claim 1, characterized in that The step of collecting data content corresponding to the identifier of the first subject data from the functional module and storing the data content in a preset storage space of the message middleware includes: Based on the identifier of the first subject data, data content corresponding to the identifier of the first subject data is collected; The data content corresponding to the identifier of the first subject data is stored in a preset storage space of the message middleware in the form of a data file.

3. The method according to claim 2, characterized in that The method further comprises: When the number of data files stored in the preset storage space exceeds the storage threshold, the data file with the earliest storage time is deleted.

4. The method according to claim 2, characterized in that: When the target second subject data exists in the data content of the preset storage space, forwarding the target second subject data to the target function module includes: Reading a data file in the preset storage space, and determining the target second theme data from the data file according to an identifier of the second theme data subscribed by the functional module; The target second subject data is forwarded to the target functional module.

5. The method according to claim 1, characterized in that The configuration files corresponding to the functional modules of the vehicle are defined as follows: According to the preset test conditions, the identifier of the first subject data published by the functional module and the identifier of the second subject data subscribed by the functional module are set.

6. The method according to claim 1, characterized in that The functional modules include: any one of a combined inertial navigation module, an environment reconstruction module, a prediction module, a decision module, a planning module, a map module, a laser radar module, a fusion module, and a control module.

7. The method according to claim 1, characterized in that The message middleware includes: data distribution service and extensible service-oriented middleware.

8. The method according to claim 1, characterized in that The data content corresponding to the identifier of the first subject data collected from the functional module includes: Receiving the first topic data written by the functional module into the preset storage space of the message middleware using the data writer; The forwarding of the target second subject data to the functional module includes: The target second topic data subscribed by the function module through the data subscriber is obtained, and the target second topic data is forwarded to the function module.

9. An automatic driving system testing device, characterized in that: The device comprises: A definition module, used to define configuration files corresponding to each functional module of the vehicle, wherein the configuration files are provided with an identifier of the first subject data published by the functional module and an identifier of the second subject data subscribed by the functional module; A collection module, used for collecting data content corresponding to the identifier of the first subject data from the function module, and storing the data content in a preset storage space of the message middleware; a forwarding module, configured to respond to a request by a functional module to obtain the subscribed second subject data, and, if the target second subject data exists in the data content of the preset storage space, forward the target second subject data to the functional module through the message middleware, so that the functional module can perform a test based on the target second subject data and generate a test result; The acquisition module is used to acquire the test result sent by the functional module.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.