Virtual simulation test method and device, electronic equipment and storage medium
By establishing communication connections between the main workstation and the slave workstation, and collaborating on scenario simulation information, the problem of the multi-sensor virtual simulation test requirements of intelligent automobiles is solved, and efficient synchronous operation of virtual simulation tests is achieved.
Patent Information
- Application Number
- CN202411045286.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-08
AI Technical Summary
The prior art cannot meet the virtual simulation testing needs of smart cars when equipped with multiple sensors, and cannot effectively simulate the data of multiple sensors.
By establishing a communication connection between the main workstation and multiple slave workstations, the main workstation and the slave workstation's central control module and sensors work together to share data and achieve synchronous operation, processing and computing scene simulation information to generate sensor output results.
It realizes data sharing and synchronous operation between the master workstation and slave workstation in vehicle virtual simulation test, meeting the testing needs under multi-sensor conditions and improving testing efficiency and effect.
Smart Images

Figure CN118915697A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle engineering technology, and in particular to a method, device, electronic equipment and storage medium for virtual simulation testing. Background Art
[0002] It is a consensus in the industry that virtual simulation testing is the most important means of testing smart cars. In recent years, with the vigorous development of high-level intelligent driving, the number of sensors installed on smart cars has increased. Some smart cars need to be equipped with more than a dozen cameras or lidars, which also brings huge challenges to virtual simulation testing.
[0003] In the existing technology, a vehicle virtual simulation test is performed on a powerful workstation equipped with high-performance CPU and GPU hardware. It can simulate 3 to 5 sensors, but cannot simulate more sensors. When the car is equipped with more sensors, the existing solution can no longer meet the current needs of vehicle virtual simulation testing. Summary of the invention
[0004] In view of this, the present application provides a method, device, electronic device and storage medium for virtual simulation testing to solve the problem in the prior art that when a car is equipped with a large number of sensors, it cannot meet the current needs of car virtual simulation testing.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] The first aspect of the present application discloses a method for virtual simulation testing, which is applied to a master workstation, the master workstation including a central control module, a scene simulation program and a sensor, the master workstation is communicatively connected with N slave workstations, the slave workstations including the central control module and the sensor, N is a preset positive integer, wherein the method for virtual simulation testing includes:
[0007] If a test start instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are started;
[0008] Sending a single-step operation instruction to the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation;
[0009] Acquire the scene simulation information output by the scene simulation program, send the scene simulation information to each sensor, and receive the output result of each sensor; wherein the output result is the output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file; the engineering file includes: the sensor information required to be run by the master workstation, the sensor information required to be run by the slave workstation, the number of the slave workstations, the IP address of the slave workstation, and the sensor configuration information of each sensor;
[0010] If a test end instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are turned off.
[0011] Optionally, in the above method, the central control module of the master workstation is communicatively connected with the central control module of the slave workstation through a first link; the central control module of the master workstation controls the sensor of the master workstation through a second link; the central control module of the slave workstation controls the sensor of the slave workstation through the second link; the central control module of the master workstation is communicatively connected with the scene simulation program and sensors of the master workstation and the sensors of the slave workstation through a third link; wherein, the first link and the third link are communication links, and the second link is a control link.
[0012] Optionally, the above method, if a test start instruction is received, starting the scene simulation program and sensor of the master workstation and the sensor of the slave workstation, includes:
[0013] If a test instruction sent by the user is received, the scene simulation program and the sensor on the master workstation are started through the second link, and a start instruction is sent to the slave workstation through the first link to trigger the slave workstation to start the sensor on the slave workstation through the second link.
[0014] Optionally, the above method, if a test end instruction is received, shutting down the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation, comprises:
[0015] If a test end instruction is received, stop sending single-step run instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation, shut down the scene simulation program and sensors on the master workstation through the second link, and send a shutdown instruction to the slave workstation through the first link to trigger the slave workstation to shut down the sensors on the slave workstation through the second link.
[0016] Optionally, in the above method, the process of calculating the scene simulation information includes:
[0017] Get the traffic elements in the current test scenario;
[0018] For each of the traffic elements, the current traffic element is processed using a mathematical model corresponding to the current traffic element to obtain state information of the current traffic element;
[0019] The status information of each of the traffic elements is aggregated to generate the scene simulation information.
[0020] Optionally, in the above method, the sensor calculates the output result based on the scene simulation information and the sensor configuration information in the pre-configured engineering file, including:
[0021] Determine the sensor type of each sensor;
[0022] For each sensor, the scene simulation information and the sensor configuration information are processed using a sensor model corresponding to the sensor type of the current sensor to obtain an output result.
[0023] The second aspect of the present application discloses a virtual simulation test device, which is applied to a master workstation, the master workstation includes a central control module, a scene simulation program and a sensor, the master workstation is connected to communicate with N slave workstations, the slave workstation includes a central control module and a sensor, N is a preset positive integer, wherein the virtual simulation test method includes:
[0024] A starting unit, configured to start the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test start instruction is received;
[0025] A sending unit, used for sending a single-step running instruction to the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation;
[0026] A data transmission unit, used for acquiring the scene simulation information output by the scene simulation program, sending the scene simulation information to each sensor, and receiving the output result of each sensor; wherein the output result is an output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file; the engineering file includes: the sensor information required to be run by the master workstation, the sensor information required to be run by the slave workstation, the number of the slave workstations, the IP address of the slave workstation, and the sensor configuration information of each sensor;
[0027] The closing unit is used to close the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test end instruction is received.
[0028] Optionally, in the above-mentioned device, the central control module of the master workstation is communicatively connected with the central control module of the slave workstation through a first link; the central control module of the master workstation controls the sensor of the master workstation through a second link; the central control module of the slave workstation controls the sensor of the slave workstation through the second link; the central control module of the master workstation is communicatively connected with the scene simulation program and sensors of the master workstation and the sensors of the slave workstation through a third link; wherein, the first link and the third link are communication links, and the second link is a control link.
[0029] Optionally, in the above device, the starting unit comprises:
[0030] The startup subunit is used to start the scene simulation program and the sensor on the master workstation through the second link if a test instruction sent by the user is received, and send a startup instruction to the slave workstation through the first link to trigger the slave workstation to start the sensor on the slave workstation through the second link.
[0031] Optionally, in the above device, the closing unit comprises:
[0032] The shutdown subunit is used for stopping sending single-step running instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation if a test end instruction is received, and shutting down the scene simulation program and sensors on the master workstation through the second link, and sending a shutdown instruction to the slave workstation through the first link to trigger the slave workstation to shut down the sensors on the slave workstation through the second link.
[0033] Optionally, in the above device, the data transmission unit includes:
[0034] The acquisition subunit is used to obtain the traffic elements in the current test scenario;
[0035] A first processing subunit is used to process each of the traffic elements using a mathematical model corresponding to the current traffic element to obtain state information of the current traffic element;
[0036] The aggregation subunit is used to aggregate the status information of each of the traffic elements to generate the scene simulation information.
[0037] Optionally, in the above device, the data transmission unit includes:
[0038] A determination subunit, used to determine the sensor type of each sensor;
[0039] The second processing subunit is used to process the scene simulation information and the sensor configuration information for each sensor by using a sensor model corresponding to the sensor type of the current sensor to obtain an output result.
[0040] The third aspect of the present application discloses an electronic device, comprising:
[0041] one or more processors;
[0042] a storage device having one or more programs stored thereon;
[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.
[0044] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.
[0045] It can be seen from the above technical scheme that the method of virtual simulation test provided by the present application, if a test start instruction is received, the scene simulation program, sensor and sensor of the master workstation are started. Then a single-step run instruction is sent to the scene simulation program, sensor and sensor of the slave workstation of the master workstation. Then the scene simulation information output by the scene simulation program is obtained, and the scene simulation information is sent to each sensor, and the output result of each sensor is received, wherein the output result is the output result calculated by each sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file. Finally, if the test end instruction is received, the scene simulation program, sensor and sensor of the master workstation are closed. It can be seen from this that, using the method of the present application, a master workstation and N slave workstations are used for associated work. During the virtual simulation test of the vehicle, the master workstation and N slave workstations maintain a communication connection, can share data and realize the synchronous operation between the master workstation and the slave workstation, ensure the test effect, and can meet the test requirements under different conditions. It solves the problem that when there are many sensors on the car in the prior art, the current demand for automobile virtual simulation testing cannot be met. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0047] Figure 1 A flowchart of a virtual simulation test method disclosed in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a connection between a master workstation and a slave workstation disclosed in another embodiment of the present application;
[0049] Figure 3 A flowchart of an implementation of the process of calculating the scene simulation information in step S103 disclosed in another embodiment of the present application;
[0050] Figure 4 A schematic diagram of a virtual simulation test device disclosed in another embodiment of the present application;
[0051] Figure 5 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0054] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0055] As can be seen from the background technology, in the prior art, a vehicle virtual simulation test is performed through a powerful workstation, which is equipped with high-performance CPU and GPU hardware, and can simulate 3 to 5 sensors, but cannot simulate more sensors. When the vehicle is equipped with more sensors, the existing solution can no longer meet the current needs of vehicle virtual simulation testing.
[0056] In view of this, the present application provides a method, device, electronic device and storage medium for virtual simulation testing to solve the problem in the prior art that when a car is equipped with a large number of sensors, it cannot meet the current needs of car virtual simulation testing.
[0057] The embodiment of the present application provides a method for virtual simulation testing, which is applied to a master workstation, the master workstation includes a central control module, a scene simulation program and a sensor, and the master workstation is connected to communicate with N slave workstations, the slave workstations include a central control module and a sensor, and N is a preset positive integer, such as Figure 1 As shown, specifically including:
[0058] S101. If a test start instruction is received, the scene simulation program and sensor of the master workstation and the sensor of the slave workstation are started.
[0059] It should be noted that when a virtual simulation test of a car is required, the user clicks the Confirm or Test button through the front-end interface of the main workstation (hereinafter referred to as the master station) software to generate a test start instruction. After the central control module of the master station receives the test start instruction, it will use the system's built-in process management tool to start the scene simulation program and sensor program on the master station, and send a start instruction to the central control module of the slave workstation (hereinafter referred to as the slave station) to trigger the slave station central control module to start the sensor on the slave station after receiving the start instruction. Among them, the slave station is set to start the simulation software automatically when it is turned on, so after starting the slave station, the simulation software central control module on the slave station starts running.
[0060] Optionally, in another embodiment of the present application, the connection diagram of the master workstation and the slave workstation is as follows: Figure 2 As shown, it is assumed that the user configures two slave stations and nine sensors, among which sensors 1, 2, and 3 run on the master station, sensors 4, 5, and 6 run on slave station 1, and sensors 7, 8, and 9 run on slave station 2.
[0061] Among them, the central control module of the master workstation is communicated with the central control module of the slave workstation through the first link; the central control module of the master workstation controls the sensor of the master workstation through the second link; the central control module of the slave workstation controls the sensor of the slave workstation through the second link; the central control module of the master workstation is communicated with the scene simulation program, sensors of the master workstation and the sensors of the slave workstation through the third link; among them, the first link and the third link are communication links, and the second link is a control link.
[0062] The master station central control module can obtain the IP addresses of slave stations 1 and 2 through the pre-configured project file. The project file includes: the sensor information that the master workstation needs to run, the number and IP address of the slave workstation, the sensor information that the slave workstation needs to run, and the sensor configuration information of each sensor. The port number of the slave station central control module communication is predefined. After obtaining the slave station IP address and the port number of the slave station central control module, the master station central control module can establish network communication with the slave station central control module to generate the first link. Similarly, after obtaining the port number of the master station scene simulation program, the slave station IP address and the port number of the slave station sensor, the master station central control module can establish network communication with the master station scene simulation program and the slave station sensor to generate the third link. The master station central control module creates a control relationship between the scene simulation program and the sensor program on the master station, and the slave station central control module creates a control relationship between the sensor on the slave station to generate the second link.
[0063] The first link, the second link and the third link are used to realize data transmission and sharing between the master station and the slave station, and to control the modules on each workstation. Manual operation back and forth between several workstations is not required, thus improving the test efficiency.
[0064] Optionally, in another embodiment of the present application, an implementation of the above step S101 may include:
[0065] If a test instruction sent by the user is received, the scene simulation program and the sensor on the master workstation are started through the second link, and a start instruction is sent to the slave workstation through the first link to trigger the slave workstation to start the sensor on the slave workstation through the second link.
[0066] It should be noted that if the central control module of the master station receives a test start instruction, the scene simulation program and sensors on the master workstation are started through the second link, and a start instruction is sent to the central control modules of slave stations 1 and 2. After the central control modules of slave stations 1 and 2 receive the start instruction, they start the sensors of slave stations 1 and 2 respectively through the second link.
[0067] S102: Sending a single-step running instruction to the scene simulation program and sensor of the master workstation and the sensor of the slave workstation.
[0068] It should be noted that the master station central control module acts as a trigger source to synchronously trigger the scene simulation program and each sensor. The master station central control program periodically sends single-step running instructions to the scene simulation program and each sensor. The scene simulation program and each sensor run once each time they receive a single-step running instruction. In this way, the synchronous operation between the scene simulation program and each sensor can be guaranteed.
[0069] S103: Acquire scene simulation information output by the scene simulation program, send the scene simulation information to each sensor, and receive output results of each sensor.
[0070] Among them, the output result is the output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured project file; the project file includes: the sensor information that the master workstation needs to run, the sensor information that the slave workstation needs to run, the number of slave workstations, the IP address of the slave workstation and the sensor configuration information of each sensor.
[0071] It should be noted that each time the scenario simulation program receives a single-step run instruction, it will calculate the scenario simulation information under the current step, that is, the information of the test vehicle and the surrounding traffic environment. Among them, the scenario simulation program contains traffic elements such as vehicles, pedestrians, and traffic lights. Each traffic element corresponds to a mathematical model, and this mathematical model will calculate the state information of the element. Taking the vehicle as an example, the vehicle mathematical model will calculate the vehicle's position, speed, acceleration, posture, wheel speed and other information. Different traffic elements have different mathematical models, and can output different state information.
[0072] After the central control module of the master station obtains the scene simulation information output by the scene simulation program, it sends the scene simulation information to each sensor. The sensor calculates the output result based on the scene simulation information and the sensor configuration information in the pre-configured engineering file. Different types of sensors have different output results. For example, the output result of the camera is a video stream, which mainly renders the three-dimensional model within the camera's field of view, including roads, buildings, trees, vehicles, pedestrians, etc. Among them, the sensor configuration information includes the sensor's external parameters (such as installation position, angle, FOV) and internal parameters (such as camera distortion information).
[0073] Optionally, in another embodiment of the present application, the calculation process of the scene simulation information in step S103 is as follows: Figure 3 As shown, including:
[0074] S301. Obtain traffic elements in the current test scenario.
[0075] It should be noted that the traffic elements in the current test scenario are first obtained, and the traffic elements include vehicles, pedestrians, traffic lights, etc.
[0076] S302: for each traffic element, use the mathematical model corresponding to the current traffic element to process the current traffic element to obtain the status information of the current traffic element.
[0077] It should be noted that each traffic element corresponds to a mathematical model. Therefore, for each traffic element, the mathematical model corresponding to the current traffic element is determined, and then the mathematical model corresponding to the current traffic element is used to process the current traffic element to obtain the status information of the current traffic element. Taking a vehicle as an example, the vehicle mathematical model will calculate the vehicle's position, speed, acceleration, posture, wheel speed and other information.
[0078] S303: Summarize the status information of each traffic element to generate scene simulation information.
[0079] It should be noted that after the state information of each traffic element is calculated, the state information of each traffic element is summarized to generate scene simulation information.
[0080] Optionally, in another embodiment of the present application, in step S303, the sensor calculates the output result based on the scene simulation information and the sensor configuration information in the pre-configured engineering file, and an implementation method may include:
[0081] Determine the sensor type for each sensor.
[0082] For each sensor, the scene simulation information and the sensor configuration information are processed using the sensor model corresponding to the sensor type of the current sensor to obtain an output result.
[0083] It should be noted that the sensor type of each sensor is first determined. There are many types of sensor models, including cameras, lidars, millimeter-wave radars, etc. Then, for each sensor, the sensor model corresponding to the sensor type of the current sensor is determined, and the scene simulation information and sensor configuration information are processed using the determined sensor model to obtain the output result. Taking the camera as an example, the main function of the camera is to render the three-dimensional model within the camera's field of view, including roads, buildings, trees, vehicles, pedestrians, etc., and generate a video stream for output.
[0084] S104: If a test end instruction is received, the scene simulation program and sensors of the master workstation and the sensors of the slave workstation are turned off.
[0085] It should be noted that if the test end instruction is received, the central control module of the master station stops sending single-step operation instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation and shuts down the scene simulation program and sensors on the master station. Then, a stop instruction is sent to the slave station, and after the slave station receives the stop instruction, the sensor on the slave station is shut down.
[0086] Optionally, in another embodiment of the present application, an implementation of step S104 may include:
[0087] If a test end instruction is received, stop sending single-step run instructions to the scene simulation program, sensors of the master workstation and sensors of the slave workstation, shut down the scene simulation program and sensors on the master workstation through the second link, and send a shutdown instruction to the slave workstation through the first link to trigger the slave workstation to shut down the sensors on the slave workstation through the second link.
[0088] It should be noted that if the test end instruction is received, the central control module of the master station stops sending single-step operation instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation. The scene simulation program and each sensor will stop running if they do not receive the single-step operation instruction, and then the central control module of the master station will shut down the scene simulation program and sensors on the master station through the second link, and send a stop instruction to the slave station through the first link. After the slave station receives the stop instruction, it shuts down the sensor on the slave station through the second link.
[0089] The present application provides a method for virtual simulation testing. If a test start instruction is received, the scene simulation program, sensor and sensor of the master workstation are started. Then a single-step run instruction is sent to the scene simulation program, sensor and sensor of the slave workstation. Then the scene simulation information output by the scene simulation program is obtained, and the scene simulation information is sent to each sensor, and the output result of each sensor is received, wherein the output result is the output result calculated by each sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file. Finally, if the test end instruction is received, the scene simulation program, sensor and sensor of the master workstation are closed. It can be seen that, using the method of the present application, a master workstation and N slave workstations are used for associated work. During the vehicle virtual simulation test, the master workstation and N slave workstations maintain a communication connection, can share data and realize the synchronous operation between the master workstation and the slave workstation, ensure the test effect, and can meet the test requirements under different conditions. It solves the problem that when there are many sensors on the car in the prior art, the current demand for automobile virtual simulation testing cannot be met.
[0090] Another embodiment of the present application also provides a virtual simulation test device, which is applied to a master workstation, the master workstation includes a central control module, a scene simulation program and a sensor, and the master workstation is connected to N slave workstations for communication, the slave workstation includes a central control module and a sensor, and N is a preset positive integer, such as Figure 4 As shown, specifically including:
[0091] The starting unit 401 is used to start the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test start instruction is received.
[0092] The sending unit 402 is used to send a single-step running instruction to the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation.
[0093] The data transmission unit 403 is used to obtain the scene simulation information output by the scene simulation program, send the scene simulation information to each sensor, and receive the output result of each sensor; wherein the output result is the output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured project file; the project file includes: the sensor information that the master workstation needs to run, the sensor information that the slave workstation needs to run, the number of slave workstations, the IP address of the slave workstation and the sensor configuration information of each sensor.
[0094] The closing unit 404 is used to close the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test end instruction is received.
[0095] In this embodiment, the specific execution process of the start unit 401, the sending unit 402, the data transmission unit 403, and the closing unit 404 can be referred to the corresponding Figure 1 The content of the method embodiment will not be repeated here.
[0096] The present application provides a device for virtual simulation testing. If the starting unit 401 receives a test start instruction, the scene simulation program, sensor and sensor of the master workstation are started. Then the sending unit 402 sends a single-step operation instruction to the scene simulation program, sensor and sensor of the master workstation. Then the data transmission unit 403 obtains the scene simulation information output by the scene simulation program, sends the scene simulation information to each sensor, and receives the output result of each sensor, wherein the output result is the output result calculated by each sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file. Finally, if the closing unit 404 receives a test end instruction, the scene simulation program, sensor and sensor of the master workstation are closed. It can be seen from this that, using the method of the present application, a master workstation and N slave workstations are used for associated work. During the virtual simulation test of the vehicle, the master workstation and N slave workstations maintain a communication connection, can share data and realize the synchronous operation between the master workstation and the slave workstation, ensure the test effect, and can meet the test requirements under different conditions. The problem that the existing technology cannot meet the current demand for automobile virtual simulation testing when the automobile is equipped with a large number of sensors is solved.
[0097] Optionally, in another embodiment of the present application, in the above-mentioned device, the central control module of the master workstation is communicatively connected with the central control module of the slave workstation through a first link; the central control module of the master workstation controls the sensor of the master workstation through a second link; the central control module of the slave workstation controls the sensor of the slave workstation through the second link; the central control module of the master workstation is communicatively connected with the scene simulation program and sensors of the master workstation and the sensors of the slave workstation through a third link; wherein the first link and the third link are communication links, and the second link is a control link.
[0098] Optionally, in another embodiment of the present application, an implementation of the above-mentioned starting unit 401 may include:
[0099] The startup subunit is used to start the scene simulation program and sensor on the master workstation through the second link if a test instruction sent by the user is received, and send a startup instruction to the slave workstation through the first link to trigger the slave workstation to start the sensor on the slave workstation through the second link.
[0100] In this embodiment, the specific execution process of the promoter unit can refer to the corresponding method embodiment content above, which will not be repeated here.
[0101] Optionally, in another embodiment of the present application, an implementation of the closing unit 404 may include:
[0102] The shutdown subunit is used to stop sending single-step running instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation if a test end instruction is received, and to shut down the scene simulation program and sensors on the master workstation through the second link, and to send a shutdown instruction to the slave workstation through the first link to trigger the slave workstation to shut down the sensors on the slave workstation through the second link.
[0103] In this embodiment, the specific execution process of closing the sub-unit can refer to the corresponding method embodiment content above, which will not be repeated here.
[0104] Optionally, in another embodiment of the present application, an implementation of the data transmission unit 403 may include:
[0105] The acquisition subunit is used to obtain the traffic elements in the current test scenario.
[0106] The first processing subunit is used to process each traffic element by using a mathematical model corresponding to the current traffic element to obtain status information of the current traffic element.
[0107] The aggregation subunit is used to aggregate the status information of each traffic element and generate scenario simulation information.
[0108] In this embodiment, the specific execution process of the acquisition subunit, the first processing subunit, and the summary subunit can be found in the corresponding Figure 1 The content of the method embodiment will not be repeated here.
[0109] Optionally, in another embodiment of the present application, an implementation of the data transmission unit 403 may include:
[0110] The determination subunit is used to determine the sensor type of each sensor.
[0111] The second processing subunit is used to process the scene simulation information and the sensor configuration information for each sensor by using the sensor model corresponding to the sensor type of the current sensor to obtain an output result.
[0112] In this embodiment, the specific execution process of the determination subunit and the second processing subunit can be found in the above-mentioned corresponding method embodiment content, which will not be repeated here.
[0113] Another embodiment of the application also provides an electronic device, such as Figure 5 As shown, specifically including:
[0114] One or more processors 501 .
[0115] The storage device 502 stores one or more programs.
[0116] When one or more programs are executed by one or more processors 501 , the one or more processors 501 implement any one of the methods in the above embodiments.
[0117] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.
[0118] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0119] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0120] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A virtual simulation test method, characterized in that: Applied to a master workstation, the master workstation includes a central control module, a scene simulation program and a sensor, the master workstation is connected to communicate with N slave workstations, the slave workstation includes a central control module and a sensor, N is a preset positive integer, wherein the virtual simulation test method includes: If a test start instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are started; Sending a single-step operation instruction to the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation; Acquire the scene simulation information output by the scene simulation program, send the scene simulation information to each sensor, and receive the output result of each sensor; wherein the output result is the output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file; the engineering file includes: the sensor information required to be run by the master workstation, the sensor information required to be run by the slave workstation, the number of the slave workstations, the IP address of the slave workstation, and the sensor configuration information of each sensor; If a test end instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are turned off.
2. The method according to claim 1, characterized in that The central control module of the master workstation is connected to the central control module of the slave workstation through a first link; the central control module of the master workstation controls the sensor of the master workstation through a second link; The central control module of the slave workstation controls the sensor of the slave workstation through the second link; The central control module of the master workstation is communicatively connected with the scene simulation program, sensors of the master workstation and sensors of the slave workstation via a third link; wherein the first link and the third link are communication links, and the second link is a control link.
3. The method according to claim 2, characterized in that If a test start instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are started, including: If a test instruction sent by the user is received, the scene simulation program and the sensor on the master workstation are started through the second link, and a start instruction is sent to the slave workstation through the first link to trigger the slave workstation to start the sensor on the slave workstation through the second link.
4. The method according to claim 2, characterized in that: If a test end instruction is received, the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation are turned off, including: If a test end instruction is received, stop sending single-step run instructions to the scene simulation program and sensors of the master workstation and the sensors of the slave workstation, shut down the scene simulation program and sensors on the master workstation through the second link, and send a shutdown instruction to the slave workstation through the first link to trigger the slave workstation to shut down the sensors on the slave workstation through the second link.
5. The method according to claim 1, characterized in that The calculation process of the scene simulation information includes: Get the traffic elements in the current test scenario; For each of the traffic elements, the current traffic element is processed using a mathematical model corresponding to the current traffic element to obtain state information of the current traffic element; The status information of each of the traffic elements is aggregated to generate the scene simulation information.
6. The method according to claim 1, characterized in that The sensor calculates an output result based on the scene simulation information and the sensor configuration information in the pre-configured engineering file, including: Determine the sensor type of each sensor; For each sensor, the scene simulation information and the sensor configuration information are processed using a sensor model corresponding to the sensor type of the current sensor to obtain an output result.
7. A virtual simulation test device, characterized in that: Applied to a master workstation, the master workstation includes a central control module, a scene simulation program and a sensor, the master workstation is connected to communicate with N slave workstations, the slave workstation includes a central control module and a sensor, N is a preset positive integer, wherein the virtual simulation test method includes: A starting unit, configured to start the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test start instruction is received; A sending unit, used for sending a single-step running instruction to the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation; A data transmission unit, used for acquiring the scene simulation information output by the scene simulation program, sending the scene simulation information to each sensor, and receiving the output result of each sensor; wherein the output result is an output result calculated by the sensor based on the scene simulation information and the sensor configuration information in the pre-configured engineering file; the engineering file includes: the sensor information required to be run by the master workstation, the sensor information required to be run by the slave workstation, the number of the slave workstations, the IP address of the slave workstation, and the sensor configuration information of each sensor; The closing unit is used to close the scene simulation program and the sensor of the master workstation and the sensor of the slave workstation if a test end instruction is received.
8. The device according to claim 7, characterized in that The data transmission unit comprises: The acquisition subunit is used to obtain the traffic elements in the current test scenario; A first processing subunit is used to process each of the traffic elements using a mathematical model corresponding to the current traffic element to obtain state information of the current traffic element; The aggregation subunit is used to aggregate the status information of each of the traffic elements to generate the scene simulation information.
9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 6.
10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
