CN114924967A - Simulation test method, device, equipment and system for automatic driving algorithm - Google Patents

Simulation test method, device, equipment and system for automatic driving algorithm Download PDF

Info

Publication number
CN114924967A
CN114924967A CN202210579234.0A CN202210579234A CN114924967A CN 114924967 A CN114924967 A CN 114924967A CN 202210579234 A CN202210579234 A CN 202210579234A CN 114924967 A CN114924967 A CN 114924967A
Authority
CN
China
Prior art keywords
simulation
target
target user
resource
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210579234.0A
Other languages
Chinese (zh)
Inventor
陈兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Intelligent Control Beijing Technology Co Ltd
Original Assignee
Guoqi Intelligent Control Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoqi Intelligent Control Beijing Technology Co Ltd filed Critical Guoqi Intelligent Control Beijing Technology Co Ltd
Priority to CN202210579234.0A priority Critical patent/CN114924967A/en
Publication of CN114924967A publication Critical patent/CN114924967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a simulation test method, a simulation test device, simulation test equipment and a simulation test system for an automatic driving algorithm, wherein the method comprises the following steps: the simulation control console system receives a simulation resource acquisition request sent by terminal equipment of a target user, the simulation resource acquisition request comprises an identification of the target user and an identification of a target automatic driving algorithm, a target user role corresponding to the identification of the target user is acquired according to the identification of the target user and a mapping relation, a target simulation resource corresponding to the identification of the target automatic driving algorithm is determined from simulation resources corresponding to the target user role, and a simulation test instruction is sent to the vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm. In the technical scheme, the target simulation resource can be a simulation test case written by other users in advance, so that the user independent writing process can be omitted, the labor cost is saved, and the simulation test efficiency, the utilization rate of server resources and the system safety are improved.

Description

Simulation test method, device, equipment and system for automatic driving algorithm
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a simulation test method, device, equipment, and system for an automatic driving algorithm.
Background
The automatic driving automobile is an intelligent automobile which can realize unmanned driving through a computer system, and after the automatic driving function of the intelligent automobile is started, the intelligent automobile can be controlled to run according to a planned route by combining real-time road conditions, so that a user can be safely sent to a set target place. The automatic driving function frees the driver from some driving related responsibilities, and effectively reduces traffic accidents and traffic jam. Therefore, the smart car with the automatic driving function is the mainstream development direction of the future car.
At present, the development of the automatic driving function follows the process from a simulation test to a real vehicle test, the simulation test is used as a zero-risk, fast iterative and reproducible test method, a solid foundation is laid for the road test of the automatic driving technology, and the simulation test can quickly and effectively test the accuracy and the performance of an automatic driving algorithm. In the prior art, the simulation test of the automatic driving function is mainly performed by a developer after logging in an automobile simulation system, and performing the simulation test of the automatic driving function through the automobile simulation system according to a simulation test case pre-stored by the developer, and acquiring a simulation test result. Wherein, the simulation test case is edited and developed by the developer.
However, in the prior art, developers need to edit simulation test cases respectively for each part algorithm of the automatic driving function, and the problem of low simulation test efficiency exists.
Disclosure of Invention
The application provides a simulation test method, a simulation test device, simulation test equipment and a simulation test system of an automatic driving algorithm, and aims to solve the problem that the simulation test efficiency is low in the prior art.
In a first aspect, an embodiment of the present application provides a simulation test method for an automatic driving algorithm, which is applied to a simulation console system, and the method includes:
receiving a simulation resource acquisition request sent by terminal equipment of a target user, wherein the simulation resource acquisition request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
acquiring a target user role corresponding to the identification of the target user according to the identification of the target user and a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the identification of the user and the user role;
determining a target simulation resource corresponding to the identification of the target automatic driving algorithm from simulation resources corresponding to the target user role, wherein the simulation resources corresponding to the target user role comprise a plurality of simulation test cases which are respectively compiled by a plurality of users according to the plurality of automatic driving algorithms in advance, and each user can compile at least one simulation test case;
and sending a simulation test instruction to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm.
In one possible design of the first aspect, the sending simulation test instructions to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm includes:
sending the target simulation resource to the terminal equipment of the target user;
receiving the simulation test instruction sent by the terminal equipment of the target user, wherein the simulation test instruction is generated according to the target simulation resource and the identification of the target automatic driving algorithm;
and sending the simulation test instruction to the vehicle simulation system.
Optionally, the sending the simulation test instruction to the vehicle simulation system includes:
storing the simulated test instructions into first message queue middleware to enable the vehicle simulation system to consume the simulated test instructions from the first message queue middleware, the first message queue middleware being configured to store the simulated test instructions.
Optionally, the method further includes:
acquiring a simulation test result from second message queue middleware, wherein the second message queue middleware is used for storing the simulation test result;
and sending the simulation test result to the terminal equipment of the target user.
Optionally, after the storing the simulation test instruction in the first message queue middleware, the method further includes:
and starting timing through a timeout device, and releasing the resources of the first message queue middleware and the resources of the second message queue middleware after the preset time length of the timeout device is reached.
In another possible design of the first aspect, before the receiving the request for acquiring the simulation resource sent by the terminal device of the target user, the method further includes:
receiving a target user registration request sent by terminal equipment of the target user, wherein the target user registration request carries target user information;
registering the target user according to the target user registration request to acquire the identifier of the target user;
associating the identification of the target user with the role of the target user according to the information of the target user;
and returning the registration result to the terminal equipment of the user.
Optionally, the method further includes:
and if the simulation resource carried by the simulation test instruction is the edited target simulation resource, storing the edited target simulation resource, and establishing a corresponding relation between the edited target simulation resource and a target user.
In a second aspect, an embodiment of the present application provides a simulation testing apparatus for an automatic driving algorithm, which is applied to a simulation console system, and the apparatus includes:
the system comprises a receiving module, a simulation resource obtaining module and a simulation resource obtaining module, wherein the receiving module is used for receiving a simulation resource obtaining request sent by terminal equipment of a target user, and the simulation resource obtaining request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
the processing module is used for acquiring a target user role corresponding to the target user identifier according to the target user identifier and a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the user identifier and the user role;
the processing module is further configured to determine a target simulation resource corresponding to the identifier of the target automatic driving algorithm from simulation resources corresponding to the target user role, where the simulation resource corresponding to the target user role includes a simulation test program written by a plurality of users in advance according to the automatic driving algorithm;
and the sending module is used for sending a simulation test instruction to the vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm.
In a possible design of the second aspect, the sending module is specifically configured to:
sending the target simulation resource to the terminal equipment of the target user;
receiving the simulation test instruction sent by the terminal equipment of the target user, wherein the simulation test instruction is generated according to the target simulation resource and the identification of the target automatic driving algorithm;
and sending the simulation test instruction to the vehicle simulation system.
Optionally, the sending module is specifically configured to:
storing the simulated test instructions into first message queue middleware to enable the vehicle simulation system to consume the simulated test instructions from the first message queue middleware, the first message queue middleware being configured to store the simulated test instructions.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring a simulation test result from second message queue middleware, and the second message queue middleware is used for storing the simulation test result;
the sending module is further configured to send the simulation test result to the terminal device of the target user.
Optionally, after the simulation test instruction is stored in the first message queue middleware, the processing module is further configured to:
and starting timing through a timeout device, and releasing the resources of the first message queue middleware and the resources of the second message queue middleware after the preset time length of the timeout device is reached.
In another possible design of the second aspect, before the receiving of the simulation resource acquisition request sent by the terminal device of the target user, the receiving module is further configured to receive a target user registration request sent by the terminal device of the target user, where the target user registration request carries target user information;
the acquisition module is further used for registering the target user according to the target user registration request to acquire the identifier of the target user;
the processing module is also used for associating the identification of the target user with the role of the target user according to the information of the target user;
and the sending module is also used for returning the registration result to the terminal equipment of the user.
Optionally, the processing module is further configured to:
and if the simulation resource carried by the simulation test instruction is the edited target simulation resource, storing the edited target simulation resource, and establishing a corresponding relation between the edited target simulation resource and a target user.
In a third aspect, an embodiment of the present application provides a simulation console system, including:
the system comprises a front-end user interface UI layer, a simulation resource acquisition layer and a simulation resource management layer, wherein the front-end user interface UI layer is used for receiving a simulation resource acquisition request sent by terminal equipment of a target user, and the simulation resource acquisition request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
the data layer is used for acquiring a target user role corresponding to the target user identifier according to the target user identifier and a mapping relation, and the mapping relation is used for representing the corresponding relation between the user identifier and the user role;
the service layer is used for determining a target simulation resource corresponding to the identifier of the target automatic driving algorithm from the simulation resources corresponding to the target user role, and the simulation resources corresponding to the target user role comprise simulation test programs written by a plurality of users in advance according to the automatic driving algorithm;
the front-end user interface UI layer is also used for sending a simulation test instruction to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm;
and the application layer is used for storing the mapping relation.
In a fourth aspect, an embodiment of the present application provides a computing device, including: a processor, a transceiver, a memory and computer program instructions stored on the memory and executable on the processor for implementing the method of the first aspect and each possible design provides when the processor executes the computer program instructions.
In a fifth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the method provided by the first aspect and each possible design when executed by a processor.
In a sixth aspect, embodiments of the present application provide a computer program product comprising a computer program that, when executed by a processor, is configured to implement the method of the first aspect and the various possible designs.
According to the simulation test method, the simulation test device, the simulation test equipment and the simulation test system for the automatic driving algorithm, a simulation control console system receives a simulation resource obtaining request sent by a terminal device of a target user, the simulation resource obtaining request comprises an identification of the target user and an identification of the target automatic driving algorithm, a target user role corresponding to the identification of the target user is obtained according to the identification of the target user and a mapping relation, a target simulation resource corresponding to the identification of the target automatic driving algorithm is determined from the simulation resources corresponding to the target user role, and a simulation test instruction is sent to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm. In the scheme, the target simulation resource is obtained according to the identification of the target user and the mapping relation, and the target simulation resource can be a simulation test case compiled by other users in advance, so that the user independent compiling process is omitted, the labor cost and the simulation resource cost are saved, the complexity of the simulation test is simplified, and the simulation test efficiency, the server resource utilization rate and the system safety are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic architecture diagram of a first simulation console system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a second simulation console system according to an embodiment of the present application;
fig. 3 is a schematic flow chart of data processing of a controller layer provided in an embodiment of the present application;
fig. 4 is a schematic architecture diagram of a third simulation console system according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a first simulation testing method of an autopilot algorithm according to an embodiment of the present application;
fig. 6 is a schematic diagram of a mapping relationship provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of a second simulation testing method of an autopilot algorithm according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a third embodiment of a simulation test method of an autopilot algorithm according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a simulation testing apparatus for an autopilot algorithm according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before introducing the embodiments of the present application, an explanation will be given to the application context of the embodiments of the present application:
the simulation test technology is mainly characterized in that the application scene of automatic driving is digitally restored in a mathematical modeling mode, a system model which is as close to the real world as possible is established, and the automatic driving algorithm can be subjected to simulation test through the system model, so that the aim of testing and verifying the correctness and performance of the automatic driving algorithm is fulfilled. In the prior art, the system model is obtained by a developer through editing and developing according to an automatic driving algorithm in advance, and the system model is a simulation test case in the application.
However, because the content related to the autopilot algorithm is more, and developers of algorithms related to autopilot can update the related algorithms according to the use experience of users, the developers need to edit simulation test cases respectively for each part of algorithms of the autopilot function, and the problem of low simulation test efficiency exists.
Therefore, the embodiment of the application provides a simulation test method, a simulation test device, a simulation test equipment and a simulation test system for an automatic driving algorithm, wherein a simulation console system can pre-establish a mapping relation between a user identifier and a user role according to user information, and then associate a simulation test case which is pre-compiled by a user according to the respective automatic driving algorithm with the user role corresponding to the user, so that each user role can correspond to a plurality of simulation test cases which are compiled by a plurality of users, and each user can compile at least one simulation test case. Then, after the simulation resource acquisition request is received by the simulation console system, the target user role corresponding to the target user identifier in the simulation resource acquisition request can be determined according to the target user identifier in the simulation resource acquisition request and the mapping relation, and the target simulation resource can be determined from the simulation resource corresponding to the target user role, and can be a simulation test case written by other users in advance, so that the user self-writing process is omitted, the labor cost is saved, and the simulation test efficiency is improved.
For example, the simulation test method of the autopilot algorithm provided by the embodiment of the present application may be applied to the architecture schematic diagram of a simulation console system shown in fig. 1. Fig. 1 is a schematic diagram of an architecture of a first simulation console system according to an embodiment of the present disclosure, so as to solve the above technical problem. As shown in fig. 1, the simulation console system may include: a front-end User Interface (UI) layer, a data layer, a service layer and an application layer.
The front-end UI layer is used for receiving a simulation resource acquisition request sent by terminal equipment of a target user, wherein the simulation resource acquisition request comprises an identifier of the target user and an identifier of a target automatic driving algorithm; and the simulation test system is also used for sending a simulation test instruction to the vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm.
The front end UI layer may include Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), React, and corresponding files. The front-end UI layer processes page logic through the React, requests a scheduling data layer and a service layer through a hypertext Transfer Protocol (HTTP), and indirectly schedules an application layer. The front-end UI layer can also be used for increasing log records and managing user authority control, so that the scheduling, sharing, management and the like of simulation resources are realized. Wherein, React is a JavaScript library for constructing a user interface.
The simulation resource acquisition request received by the front-end UI layer may be a POST request or a Get request.
The data layer can realize a transaction processing function and a database reading and writing function, and is used for acquiring a target user role corresponding to the identification of the target user according to the identification of the target user and a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the identification of the user and the user role.
The service layer is used for determining a target simulation resource corresponding to the identification of the target automatic driving algorithm from simulation resources corresponding to the target user role, and the simulation resources corresponding to the target user role comprise simulation test programs written by a plurality of users in advance according to the automatic driving algorithm.
The business layer can realize each business function through the java code, and the business function comprises at least one item of user registration login, simulation test task creation, system management, simulation resource management and system log.
The simulation console system can also realize a log recording function and an authority control function through a service layer and a data layer.
The application layer is mainly used for storing the mapping relation between the user identification and the user role.
And the application layer can be provided with a relational database management system (MySQL) database and records and manages simulation related information. Application software such as KS8 (kubernets), a JVM (Java Virtual machine) Virtual machine, a rabbitmq message queue and the like can be installed, the JVMs can be deployed in a multi-node distributed mode, when one JVM node is down, the continuous operation service of other JVM nodes can not be influenced, the distributed disaster tolerance is realized, and the high availability of a simulation control console system is ensured.
Optionally, in fig. 1, the simulation console system may further include: an operating system layer.
Wherein, the operating system layer is a Linux server.
Optionally, fig. 2 is a schematic architecture diagram of a second simulation console system provided in the embodiment of the present application. As shown in fig. 2, the simulation console system may include a front-end server and a back-end server, and the back-end server includes a controller layer, a service layer, a mapper layer, and an application layer. The front-end server is configured to provide a front-end UI layer in the embodiment shown in fig. 1, a service layer is equivalent to a service layer in the embodiment shown in fig. 1, and a mapper layer is equivalent to a data layer in the embodiment shown in fig. 1.
The front-end server uses a react development rendering page, and after receiving an HTTP request (simulation resource acquisition request) sent by a user through the page, the front-end server forwards the HTTP request to the back-end server. The backend server calls the interface to forward the HTTP request to different service layers through the controller layer (fig. 2 is illustrated with only one service layer) so that the different service layers process different services. The backend Server then calls the mapper layer, persists to the mysql database, or persists to elk (for log processing, acronyms for elastic search, logstack, and Kibana), rabbitmq, and Remote Dictionary service (Redis), among others.
Based on the foregoing embodiments, fig. 3 is a schematic flow chart of controller layer data processing provided in an embodiment of the present application. As shown in fig. 3, when the front-end server forwards the received simulation resource acquisition request to the back-end server, the method is mainly implemented by the following steps:
calling a processor mapper (HandlerMapping) through a Springmvc front-end controller (Dispatcherservet), identifying a Uniform Resource Locator (URL) of the simulation resource acquisition request, and acquiring a corresponding HandlerChain according to the URL, wherein the HandlerChain comprises a processor object (handler) and a processor Interceptor (Interreceptor). And then calling a processor adapter (Handleradapter), executing HandlerChain, completing request parameter encapsulation and Joson format conversion, and acquiring ModelAndView. Furthermore, the ViewReserver is called to analyze a View object according to the ModelAndView, and then the request forwarding or redirection is completed.
Optionally, jsp (java server pages) rendering data may be called to the HTML, and the rendered HTML content is output to the browser, so as to complete the response to the simulation resource acquisition request.
Based on the embodiments shown in fig. 2 and/or fig. 3, for example, fig. 4 is a schematic architecture diagram of a third embodiment of the simulation console system provided in the embodiment of the present application, and as shown in fig. 4, the simulation console system includes a front-end server, a back-end server, and nginx (engine x). The front-end server may forward the HTTP request to the back-end server via the nginx forwarding algorithm. When the data volume of the HTTP request is overlarge, the resource scheduling is carried out on the scheduling resources with a queuing mechanism, so that the response speed and stability of the simulation console system are effectively improved, the purposes of load balancing and high availability are achieved, and the utilization rate of the system resources is improved.
The technical solution of the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 5 is a schematic flowchart of a first embodiment of a simulation test method of an autopilot algorithm according to an embodiment of the present application. The simulation test method of the automatic driving algorithm is applied to a simulation console system, and as shown in fig. 5, the simulation test method of the automatic driving algorithm may include the following steps:
s501, receiving a simulation resource obtaining request sent by terminal equipment of a target user.
In the embodiment of the application, a communication connection is pre-established between the terminal device of the user and the simulation console system, and the user can access the simulation console system through a browser of the terminal device, so that information interaction between the terminal device and the simulation console system can be realized through the communication connection.
For example, the terminal device may be a mobile phone, a computer, a tablet computer, or other terminal devices, and the specific type of the terminal device is not limited in the embodiments of the present application.
Wherein, the target user is a developer with simulation test requirements.
The simulation resource obtaining request comprises an identification of a target user and an identification of a target automatic driving algorithm. The identifier of the target user may be generated when the target user performs user registration in the simulation console system in advance. The identifier of the target user may be a user name of the target user, a telephone number of the target user, an identity card number of the target user, and the like, which is not specifically limited in the embodiment of the present application.
The simulation resources are test resources required for performing simulation test on the automatic driving algorithm. The simulation resources may include simulation test cases written by each user for each automatic driving algorithm in advance, and optionally, the simulation resources may further include simulation files, simulation environments, server resources, and the like. It should be understood that the content included in the simulation resource is not limited in the embodiments of the present application.
S502, according to the identification of the target user and the mapping relation, the target user role corresponding to the identification of the target user is obtained.
The mapping relationship is used for representing the corresponding relationship between the user identification and the user role.
The user roles are used for representing the roles of the user in the simulation console system, and different user roles correspond to different simulation resources. Optionally, different user roles may also have different permissions, such as data permissions, interface permissions, and menu permissions.
Exemplarily, fig. 6 is a schematic diagram of a mapping relationship provided in the embodiment of the present application. As shown in FIG. 6, user 1, user 2, and user 3 correspond to user role 1; user 3 corresponds to user role 1 and user role 2. The user role 1 corresponds to a menu authority 1, an interface authority 2 and a data authority 2, and the user role 2 corresponds to the menu authority 1, the menu authority 2, the interface authority 1, the interface authority 2, the interface authority 3, the data authority 1, the data authority 2 and the data authority 3.
The data authority is used for managing the simulation resources, and different data authorities can call different simulation resources.
Illustratively, the user role can be employee, management, manager, etc.; the simulation system can also be a simulation 1 part, a simulation 2 part and a simulation 3 part; the system can also be a simulation testing part, an algorithm writing part, a system management part and the like, and the embodiment of the application does not limit the specific names and actual contents of the user roles.
It should be understood that the mapping relationship may be stored in the database of the simulation console system in advance by a technician corresponding to the simulation console system, or may be obtained from a database external to the simulation console system in advance, and this is not particularly limited in this embodiment of the application.
For example, the mapping relationship can be represented by table 1.
TABLE 1
Figure BDA0003663217740000111
Taking the mapping relationship shown in table 1 as an example, if the identifier of the target user is the identifier 1 of the user, the target user roles corresponding to the identifiers of the target user can be determined as the user role 1 and the user role 2 according to the mapping relationship.
Before S501, a simulation test case sent by a user may also be received, and the simulation test case is associated with a user role corresponding to the user.
S503, determining the target simulation resource corresponding to the identification of the target automatic driving algorithm from the simulation resources corresponding to the target user role.
The simulation resources corresponding to the target user roles comprise a plurality of simulation test cases which are respectively written by a plurality of users according to a plurality of automatic driving algorithms in advance, and each user can write at least one simulation test case.
That is to say, the target simulation resource determined from the simulation resource corresponding to the target user role may be obtained by the target user through pre-editing with respect to the target automatic driving algorithm, or may be obtained by other users through pre-editing with respect to the target automatic driving algorithm.
In a possible implementation manner, according to the data authority corresponding to the role of the target user, the corresponding simulation resource under the data authority is obtained, so that the target simulation resource is determined from the simulation resources.
The target simulation resource may include a plurality of simulation resources, or may also include one simulation resource, and the number of simulation resources included in the target simulation resource is not limited in the embodiment of the present application.
S504, according to the target simulation resource and the identification of the target automatic driving algorithm, a simulation test instruction is sent to the vehicle simulation system.
The vehicle simulation system is used for carrying out simulation test on a target automatic driving algorithm through the target simulation resource according to the simulation test instruction.
After acquiring the target simulation resource, the simulation console system can interact with the terminal device of the user, so that the user can send a simulation test instruction to the simulation console system through the terminal device according to the received target simulation resource. For the simulation console system, after receiving the simulation test instruction, the simulation test instruction is forwarded to the vehicle simulation system.
The specific implementation manner and implementation principle of this step may refer to the embodiment shown in fig. 7, and are not described herein again.
According to the simulation test method of the automatic driving algorithm, a simulation control console system receives a simulation resource obtaining request sent by a terminal device of a target user, the simulation resource obtaining request comprises an identification of the target user and an identification of the target automatic driving algorithm, a target user role corresponding to the identification of the target user is obtained according to the identification of the target user and a mapping relation, a target simulation resource corresponding to the identification of the target automatic driving algorithm is determined from the simulation resources corresponding to the target user role, and a simulation test instruction is sent to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm. In the scheme, the target simulation resource is obtained according to the identification of the target user and the mapping relation, and the target simulation resource can be a simulation test case compiled by other users in advance, so that the user independent compiling process is omitted, the labor cost and the simulation resource cost are saved, the complexity of the simulation test is simplified, and the simulation test efficiency, the server resource utilization rate and the system safety are improved.
On the basis of any of the above embodiments, fig. 7 is a schematic flow chart of a second simulation test method of an autopilot algorithm provided in the embodiments of the present application. As shown in fig. 7, S504 may be implemented by:
s701, the simulation console system sends the target simulation resource to the terminal equipment of the target user.
Correspondingly, the terminal equipment of the target user receives the target simulation resource sent by the simulation console system.
For the terminal equipment, the simulation test instruction can be generated in response to the operation of a user.
The user operation may be a selection operation on a simulation resource in the target simulation resource or an editing operation on the target simulation resource.
That is, the simulation test instructions are generated based on the target simulation resources and the identification of the target autopilot algorithm.
S702, the simulation console system receives a simulation test instruction sent by the terminal equipment of the target user.
Optionally, if the simulation resource carried by the simulation test instruction is the edited target simulation resource, the edited target simulation resource is stored, and a corresponding relationship between the edited target simulation resource and the target user is established, so that the edited target simulation resource can be obtained again in the subsequent simulation test request, and the efficiency of the simulation test is further improved.
That is, the simulation console system may update the mapping relationship according to the edited target simulation resource.
And S703, sending the simulation test instruction to a vehicle simulation system.
Optionally, in some embodiments, the simulation test instructions may be further stored in the first message queue middleware to enable the vehicle simulation system to consume the simulation test instructions from the first message queue middleware, where the first message queue middleware is configured to store the simulation test instructions.
In the above embodiment, by storing the simulation test instruction into the first message queue middleware, application coupling can be achieved, and at the same time, asynchronous processing and current-limited peak clipping can be performed on the simulation test instruction, thereby improving the robustness and usability of the system.
Optionally, the first message queue middleware may be rabbitmq.
Optionally, in some embodiments, the vehicle simulation system processes the simulation test instruction, may generate a simulation test result, and sends the simulation test result to the second message queue middleware. For the simulation console system, the simulation test result may be obtained from the second message queue middleware, and then the simulation test result may be sent to the terminal device of the target user, so that the user may view the simulation test result through the terminal device. And the second message queue middleware is used for storing simulation test results.
In the embodiment, the simulation console system interacts with the simulation test result of the vehicle simulation system through the second message queue middleware, so that the robustness and the usability of the system are improved. Meanwhile, the simulation console system sends the simulation test result to the terminal equipment of the target user after acquiring the simulation test result, so that the target user can timely perform the next processing according to the simulation test result.
Optionally, when the test result indicates that the simulation resource used for executing the simulation test instruction has a problem, the user may modify the simulation resource according to the test result, so as to send the modified simulation test instruction to the simulation console system, so that the simulation console system forwards the modified simulation test instruction to the vehicle simulation system.
Optionally, in some embodiments, the timer may start timing, and after a preset duration of the timer is reached, the resources of the first message queue middleware and the resources of the second message queue middleware are released.
For example, the preset time period may be 6 hours, 12 hours, or 1 day, 2 days, 3 days, and the like, and may be determined according to the actual data size, which is not specifically limited in this embodiment of the present application.
In the embodiment of the application, the resource of the first message queue middleware and the resource of the second message queue middleware are released through the timeout device, so that the problem of data backlog of the first message queue middleware and the second message queue middleware can be solved, and the problem that the simulation resource acquisition request cannot be processed in time due to the data backlog is avoided.
On the basis of any of the above embodiments, fig. 8 is a schematic flow chart of a third embodiment of the simulation test method of the automatic driving algorithm provided in the embodiment of the present application. As shown in fig. 8, before S501, the simulation test method of the automatic driving algorithm may further include:
s801, receiving a target user registration request sent by a terminal device of a target user.
The target user registration request carries target user information.
Optionally, the target user information may be information such as a name, a position, a department, and the like, and may also be information such as a birthday, an identity card, a residence place, and the like, and the content included in the target user information is not specifically limited in the application.
Optionally, the target user registration request may also carry a user name and a password.
S802, registering the target user according to the target user registration request, and acquiring the identification of the target user.
In a possible implementation manner, user registration may be performed according to a user name and a password in the target user registration request, and after the registration is completed, an identifier of the target user is generated.
In another possible implementation manner, user registration may be performed according to the target user registration request, and after the registration is completed, the user name, the password, and the identifier of the target user are generated.
And S803, associating the identifier of the target user with the role of the target user according to the information of the target user.
In a possible implementation manner, the target user role corresponding to the target user may be determined according to the position, department, and other information in the target user information, so as to associate the identifier of the target user with the target user role.
That is, the mapping relationship between the user identifier and the user role may be established and/or updated according to the target user information.
And S804, returning a registration result to the terminal equipment of the user.
Illustratively, the registration result may be "registration success" or "registration failure".
In the embodiment of the application, the target user is registered according to the target user registration request, and the mapping relation between the user identifier and the user role is established and/or updated after registration, so that the simulation test case compiled by the target user can be subsequently associated with the target user role according to the mapping relation, and the target simulation resource can be obtained according to the mapping relation, thereby laying a foundation for the subsequent simulation test.
Optionally, in some embodiments, a user login instruction sent by the terminal device of the target user may also be received, where the user login instruction includes an account and a password of the target user, login processing is performed according to the user login instruction, and a page after login is rendered to the terminal device of the user.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 9 is a schematic structural diagram of a simulation testing apparatus for an autopilot algorithm according to an embodiment of the present application. As shown in fig. 9, the simulation test apparatus for an automated driving algorithm is applied to a simulation console system, and includes:
a receiving module 91, configured to receive a simulation resource acquisition request sent by a terminal device of a target user, where the simulation resource acquisition request includes an identifier of the target user and an identifier of a target automatic driving algorithm;
the processing module 92 is configured to obtain a target user role corresponding to the identifier of the target user according to the identifier of the target user and a mapping relationship, where the mapping relationship is used to represent a corresponding relationship between the identifier of the user and the user role;
the processing module 92 is further configured to determine a target simulation resource corresponding to the identifier of the target automatic driving algorithm from the simulation resources corresponding to the target user role, where the simulation resource corresponding to the target user role includes a simulation test program written by a plurality of users in advance according to the automatic driving algorithm;
and the sending module 93 is configured to send a simulation test instruction to the vehicle simulation system according to the target simulation resource and the identifier of the target automatic driving algorithm.
In one possible design of the embodiment of the present application, the sending module 93 is specifically configured to:
sending the target simulation resource to the terminal equipment of the target user;
receiving a simulation test instruction sent by terminal equipment of a target user, wherein the simulation test instruction is generated according to a target simulation resource and an identifier of a target automatic driving algorithm;
and sending the simulation test instruction to a vehicle simulation system.
Optionally, the sending module 93 is specifically configured to:
storing the simulated test instructions into a first message queue middleware to enable the vehicle simulation system to consume the simulated test instructions from the first message queue middleware, the first message queue middleware to store the simulated test instructions.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring a simulation test result from the second message queue middleware, and the second message queue middleware is used for storing the simulation test result;
and the sending module 93 is further configured to send the simulation test result to the terminal device of the target user.
Optionally, after storing the simulation test instruction in the first message queue middleware, the processing module 92 is further configured to:
and starting timing through the overtime device, and releasing the resources of the first message queue middleware and the resources of the second message queue middleware after the preset time length of the overtime device is reached.
In another possible design of the embodiment of the present application, before receiving the simulation resource acquisition request sent by the terminal device of the target user, the receiving module 91 is further configured to receive a target user registration request sent by the terminal device of the target user, where the target user registration request carries target user information;
the acquisition module is also used for registering the target user according to the target user registration request and acquiring the identification of the target user;
the processing module 92 is further configured to associate the identifier of the target user with the role of the target user according to the information of the target user;
the sending module 93 is further configured to return a registration result to the terminal device of the user.
Optionally, the processing module 92 is further configured to:
and if the simulation resource carried by the simulation test instruction is the edited target simulation resource, storing the edited target simulation resource, and establishing a corresponding relation between the edited target simulation resource and the target user.
The simulation test device for the autopilot algorithm provided by the embodiment of the application can be used for executing the simulation test method for the autopilot algorithm in any embodiment, and the implementation principle and the technical effect are similar, so that the details are not repeated.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can all be implemented in the form of software invoked by a processing element; or can be implemented in the form of hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
Fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 10, the computer apparatus may include: a processor 1001, a transceiver 1002, a memory 1003 and computer program instructions stored on the memory 1003 and executable on the processor 1001, the processor 1001 when executing the computer program instructions realizes the simulation test method of the automatic driving algorithm provided by any one of the foregoing embodiments.
Optionally, the above devices of the computer apparatus may be connected by a system bus.
The memory 1003 may be a separate storage unit or may be a storage unit integrated into the processor. The number of processors is one or more.
Optionally, the computer device may also include an interface to interact with other devices.
The transceiver 1002 is used to communicate with other computers, and the transceiver 1002 constitutes a communication interface.
Optionally, in terms of hardware implementation, in the embodiment shown in fig. 9: the receiving module 91 and the transmitting module 93 correspond to the transceiver 1002 in the present embodiment, and the processing module 92 in the embodiment shown in fig. 9 described above corresponds to the processor 1001 in the present embodiment.
It should be understood that the Processor 1001 may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
The system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus. The memory may include Random Access Memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk memory.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (optical disc), and any combination thereof.
The computer device provided in the embodiment of the present application may be configured to execute the simulation test method for an autopilot algorithm provided in any one of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
An embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are run on a computer, the computer is enabled to execute the simulation test method of the automatic driving algorithm.
The computer readable storage medium may be any type of volatile or non-volatile storage device or combination thereof, such as static random access memory, electrically erasable programmable read only memory, magnetic storage, flash memory, magnetic or optical disk. A readable storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
Alternatively, a readable storage medium may be coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Embodiments of the present application further provide a computer program product, which includes a computer program stored in a computer-readable storage medium, from which the computer program can be read by at least one processor, and when the computer program is executed by the at least one processor, the simulation testing method for the autopilot algorithm can be implemented.
It will be understood that the present disclosure is not limited to the precise arrangements 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 disclosure is limited only by the appended claims.

Claims (11)

1. A simulation test method of an automatic driving algorithm is characterized by being applied to a simulation console system, and the method comprises the following steps:
receiving a simulation resource acquisition request sent by terminal equipment of a target user, wherein the simulation resource acquisition request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
acquiring a target user role corresponding to the identification of the target user according to the identification of the target user and a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the identification of the user and the user role;
determining a target simulation resource corresponding to the identification of the target automatic driving algorithm from simulation resources corresponding to the target user role, wherein the simulation resources corresponding to the target user role comprise a plurality of simulation test cases which are respectively compiled by a plurality of users according to the plurality of automatic driving algorithms in advance, and each user can compile at least one simulation test case;
and sending a simulation test instruction to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm.
2. The method of claim 1, wherein said sending simulation test instructions to a vehicle simulation system based on said target simulation resource and said identification of said target autopilot algorithm comprises:
sending the target simulation resource to the terminal equipment of the target user;
receiving the simulation test instruction sent by the terminal equipment of the target user, wherein the simulation test instruction is generated according to the target simulation resource and the identification of the target automatic driving algorithm;
and sending the simulation test instruction to the vehicle simulation system.
3. The method of claim 2, wherein said sending the simulation test instructions to the vehicle simulation system comprises:
storing the simulated test instructions into a first message queue middleware to enable the vehicle simulation system to consume the simulated test instructions from the first message middleware, the first message queue middleware to store the simulated test instructions.
4. The method of claim 3, further comprising:
acquiring a simulation test result from second message queue middleware, wherein the second message queue middleware is used for storing the simulation test result;
and sending the simulation test result to the terminal equipment of the target user.
5. The method of claim 4, wherein after said storing the emulation test instructions into first message queue middleware, the method further comprises:
and starting timing through a timeout device, and releasing the resources of the first message queue middleware and the resources of the second message queue middleware after the preset time length of the timeout device is reached.
6. The method according to claim 1, wherein before the receiving the request for acquiring emulated resource sent by the terminal device of the target user, the method further comprises:
receiving a target user registration request sent by terminal equipment of the target user, wherein the target user registration request carries target user information;
registering the target user according to the target user registration request to acquire the identification of the target user;
associating the identification of the target user with the role of the target user according to the information of the target user;
and returning the registration result to the terminal equipment of the user.
7. The method of claim 2, further comprising:
and if the simulation resource carried by the simulation test instruction is the edited target simulation resource, storing the edited target simulation resource and establishing the corresponding relation between the edited target simulation resource and the target user.
8. A simulation test device of an automatic driving algorithm is characterized in that the simulation test device is applied to a simulation console system, and the device comprises:
the system comprises a receiving module, a simulation resource obtaining module and a simulation resource obtaining module, wherein the receiving module is used for receiving a simulation resource obtaining request sent by terminal equipment of a target user, and the simulation resource obtaining request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
the processing module is used for acquiring a target user role corresponding to the target user identifier according to the target user identifier and a mapping relation, wherein the mapping relation is used for representing the corresponding relation between the user identifier and the user role;
the processing module is further configured to determine a target simulation resource corresponding to the identifier of the target automatic driving algorithm from simulation resources corresponding to the target user role, where the simulation resource corresponding to the target user role includes a simulation test program written by a plurality of users in advance according to the automatic driving algorithm;
and the sending module is used for sending a simulation test instruction to the vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm.
9. A simulation console system, comprising:
the system comprises a front-end User Interface (UI) layer, a simulation resource acquisition layer and a control layer, wherein the front-end UI layer is used for receiving a simulation resource acquisition request sent by terminal equipment of a target user, and the simulation resource acquisition request comprises an identifier of the target user and an identifier of a target automatic driving algorithm;
the data layer is used for acquiring a target user role corresponding to the target user identifier according to the target user identifier and a mapping relation, and the mapping relation is used for representing the corresponding relation between the user identifier and the user role;
the service layer is used for determining a target simulation resource corresponding to the identification of the target automatic driving algorithm from simulation resources corresponding to the target user role, and the simulation resources corresponding to the target user role comprise simulation test programs which are written by a plurality of users in advance according to the automatic driving algorithm;
the front-end user interface UI layer is also used for sending a simulation test instruction to a vehicle simulation system according to the target simulation resource and the identification of the target automatic driving algorithm;
and the application layer is used for storing the mapping relation.
10. A computing device, comprising: a processor, a transceiver, a memory, and computer program instructions stored on the memory and executable on the processor, wherein the processor when executing the computer program instructions is configured to implement a simulation test method for an autopilot algorithm according to any of claims 1 to 7.
11. A computer-readable storage medium having computer-executable instructions stored thereon for implementing a simulation test method of an autopilot algorithm according to any one of claims 1 to 7 when executed by a processor.
CN202210579234.0A 2022-05-26 2022-05-26 Simulation test method, device, equipment and system for automatic driving algorithm Pending CN114924967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210579234.0A CN114924967A (en) 2022-05-26 2022-05-26 Simulation test method, device, equipment and system for automatic driving algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210579234.0A CN114924967A (en) 2022-05-26 2022-05-26 Simulation test method, device, equipment and system for automatic driving algorithm

Publications (1)

Publication Number Publication Date
CN114924967A true CN114924967A (en) 2022-08-19

Family

ID=82810992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210579234.0A Pending CN114924967A (en) 2022-05-26 2022-05-26 Simulation test method, device, equipment and system for automatic driving algorithm

Country Status (1)

Country Link
CN (1) CN114924967A (en)

Similar Documents

Publication Publication Date Title
US11556348B2 (en) Bootstrapping profile-guided compilation and verification
CN108287708B (en) Data processing method and device, server and computer readable storage medium
US20170085653A1 (en) Method, device and system for message distribution
CN110737425B (en) Method and device for establishing application program of charging platform system
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN114443058A (en) Method for creating private mirror image in public cloud and related equipment
CN114995859A (en) Page hot updating method, device, equipment and storage medium
CN111338716A (en) Data processing method and device based on rule engine and terminal equipment
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN114489939A (en) Component deployment method, system and computer readable medium
US20210349855A1 (en) Method of data structuring for difference between old and new data and device thereof
CN115336237A (en) Predictive provisioning of remotely stored files
CN112286622A (en) Virtual machine migration processing and strategy generating method, device, equipment and storage medium
CN114924967A (en) Simulation test method, device, equipment and system for automatic driving algorithm
CN111737223B (en) File copying method, device, equipment and storage medium
WO2023169815A1 (en) In-band instantiation configuration for application workloads
CN116382713A (en) Method, system, device and storage medium for constructing application mirror image
CN117667169A (en) Application program updating method and device, electronic equipment and storage medium
WO2021232860A1 (en) Communication method, apparatus and system
CN114840307A (en) Container loading method, device, equipment and storage medium
CN113220296A (en) Android system interaction method and device
CN113542323A (en) Service processing method, device, equipment and computer readable storage medium
US20210200891A1 (en) Geography Aware File Dissemination
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
CN117762564A (en) Function processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination