A hardware-in-the-loop simulation test device and method for new energy autonomous driving vehicles

By simulating different environments and motion states with the in-the-loop simulation test device, it solves the problem that existing hardware-in-the-loop testing cannot fully simulate complex scenarios, achieves portability and efficient test results, and provides comprehensive performance evaluation for smart driving controllers.

CN118259605BActive Publication Date: 2024-08-23NANCHANG AUTOMOTIVE INST OF INTELLIGENCE & NEW ENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684463.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-23
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing hardware-in-the-loop testing methods have limitations and cannot fully simulate complex scenarios during actual driving. As a result, the performance of smart driving controllers cannot be comprehensively evaluated. Moreover, existing hardware-in-the-loop simulation systems are expensive and inconvenient to carry.

Method used

A hardware-in-the-loop simulation test device for new energy autonomous vehicles is designed, including a simulation test box, a control terminal, an obstacle car, a temperature control component, a magnetic control component, a humidity control component and a detection component. Different environments are simulated through these components. and motion status to achieve in-loop simulation testing.

Benefits of technology

It achieves the portability and test effect of in-the-loop simulation testing, can truly simulate the operating conditions of the smart driving controller in different environments, and provides comprehensive performance evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118259605B
    Figure CN118259605B
Patent Text Reader

Abstract

The present invention provides a hardware-in-the-loop simulation test device and method for a new energy autonomous driving vehicle, comprising: a simulation test box, a control terminal arranged on the top of the simulation test box, and an obstacle vehicle; an opening is arranged on one side of the simulation test box, a placement component for placing the hardware to be tested is arranged inside the opening, a temperature control component is arranged on the outer wall of the simulation test box on the side opposite to the opening, one end of the temperature control component extends to the inside of the simulation test box and is flush with the placement component, a magnetic control component and a humidity control component are arranged at the top and bottom of the simulation test box respectively, and a detection component is also arranged at the top of the outside of the simulation test box. The present invention solves the problem in the prior art of lacking a hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle that is easy to carry and has good testing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation testing, and in particular to a hardware-in-the-loop simulation testing device and method for a new energy autonomous driving vehicle. Background Art

[0002] The intelligent driving controller of a smart car is one of the key components for realizing the vehicle's autonomous driving function. It ensures that the vehicle can drive safely and efficiently in various complex environments by integrating multiple sensor data, precise positioning and navigation, real-time path planning and decision-making, and control execution.

[0003] The intelligent driving controller needs to pass hardware-in-the-loop testing during the design phase to ensure the performance of the intelligent driving controller.

[0004] However, most of the existing hardware-in-the-loop testing methods simulate data through software and transmit the simulated data to the hardware to be tested to achieve in-the-loop testing. This pure software simulation testing method has certain limitations. It can often only simulate the working conditions of sensors in a specific environment, and cannot fully simulate the various complex scenarios that may be encountered during actual driving. As a result, there are certain differences between the test environment and the real environment, making it impossible to fully evaluate the performance of the intelligent driving controller and resulting in poor test results.

[0005] In addition, the hardware-in-the-loop simulation system on the market has high simulation accuracy but is expensive. Due to the complexity of its system software and hardware, it is not convenient for designers to make frequent changes and tests during the research and development stage. Moreover, the system contains a variety of experimental equipment, which are large in size and large in number. Most of them are placed in the laboratory for testing, which is not convenient for R&D personnel to carry and use. Summary of the invention

[0006] Based on this, the purpose of the present invention is to provide a hardware-in-the-loop simulation test device and method for a new energy autonomous driving vehicle, aiming to solve the problem in the prior art of the lack of a hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle that is easy to carry and has good testing effect.

[0007] A hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle according to an embodiment of the present invention includes:

[0008] A simulation test box, a control terminal arranged on the top of the simulation test box, and an obstacle vehicle;

[0009] An opening is provided on one side of the simulation test box, a placement component for placing the hardware to be tested is provided inside the opening, a temperature control component is provided on the outer wall of the simulation test box on the side opposite to the opening, one end of the temperature control component extends into the interior of the simulation test box and is flush with the placement component, a magnetic control component and a humidity control component are provided at the top and bottom of the interior of the simulation test box respectively, and a detection component is also provided at the top of the exterior of the simulation test box;

[0010] The temperature control component, magnetic control component and humidity control component are respectively used to adjust the temperature, magnetic field and humidity in the simulation test box, the detection component is used to monitor the movement state of the obstacle car relative to the simulation test box, and the control terminal is used to control the temperature control component, magnetic control component, humidity control component and obstacle car.

[0011] In addition, the vehicle torque control method according to the above embodiment of the present invention may also have the following additional technical features:

[0012] Furthermore, the simulation test box includes a box body, a support base arranged in the box body, and an air hole arranged on one side of the box body, the support base is arranged on the side of the box body provided with the opening, the top of the support base is slidably connected to the placement component, the air hole is arranged inside the temperature control component, the outside of the box body is provided with an armrest, and the bottom of the box body is provided with a pulley.

[0013] Furthermore, the placement component includes a sealing plate, a baffle plate arranged parallel to the sealing plate, and a plurality of partitions whose two ends are respectively vertically connected to the sealing plate and the baffle plate, an electromagnetic coil is embedded in the partition, and the plurality of electromagnetic coils are electrically connected, a filter hole is provided on the baffle plate, and a handle is provided on the sealing plate.

[0014] Furthermore, the magnetron assembly includes an electric push rod arranged at the top of the box, an insulating plate arranged at the output end of the electric push rod, an electrode plate arranged at the bottom of the insulating plate, and a power supply arranged on one side of the electric push rod, the electrode plate is arranged directly above the electromagnetic coil, and the power supply is electrically connected to the electrode plate through a wire.

[0015] Furthermore, the temperature control assembly includes a temperature control box arranged outside the box body, a heating plate arranged inside the temperature control box, and a fan arranged on a side of the temperature control box away from the box body, and the heating plate is provided with a plurality of through holes adapted to the air holes.

[0016] Furthermore, the temperature control component also includes a concentrating pipe arranged in the box body, one end of each of the concentrating pipes is connected to each of the air holes, and the other end is provided with an air nozzle, and the air nozzle and the filter hole are in the same horizontal plane.

[0017] Furthermore, the humidity control component includes a humidifier and a valve arranged at the bottom of the box body, a water tank is provided inside the humidifier, a liquid inlet pipe extends outward from one side of the humidifier, one end of the liquid inlet pipe passes through the box body and is placed outside the box body, and the valve is arranged on the liquid inlet pipe.

[0018] Furthermore, the detection component includes a camera and a detection radar, a fixed platform extends outward from the top of the box, and the camera and the detection radar are arranged on the fixed platform.

[0019] Another object of the present invention is to provide a hardware-in-the-loop simulation test method for a new energy autonomous driving vehicle, the method comprising:

[0020] Placing a plurality of hardware to be tested between the partitions of the placement component and placing them in the box along with the placement component, performing data preset through the control terminal, and recording the information of the hardware to be tested for grouping and summarizing;

[0021] According to a preset test plan, the temperature control component, the humidity control component and the magnetic control component are controlled by the control terminal to adjust the temperature, humidity and magnetic field in the box to perform hardware-in-the-loop simulation tests under different environments;

[0022] The obstacle vehicle is controlled to move relative to the box by the control terminal, and the image data and radar data of the obstacle vehicle are obtained according to the detection component, so that the control terminal performs data fusion on the image data and radar data through a preset network model to obtain relative motion state data;

[0023] Transmitting the relative motion state data to the hardware to be tested, so that the hardware to be tested feeds back braking information according to the relative motion state data, and controls the obstacle vehicle to brake through the control terminal according to the feedback braking information;

[0024] The environmental data in the box and the operating data of the hardware to be tested are collected through the control terminal during the whole test process, and the environmental data and the operating data are integrated to obtain test data, so that the staff can evaluate the hardware to be tested according to the test data.

[0025] Furthermore, the preset network model is obtained by training a large amount of the image data and the radar data according to a preset loss function;

[0026] The preset loss function is:

[0027] ;

[0028] Where y is the quality label value within the preset range, , is the boundary distance, for The corresponding preset probability is for The corresponding predicted probability is is the hyperparameter of the scaling factor.

[0029] The present invention, by setting a placement component so that the hardware to be tested can be placed in a simulation test box, and then by setting a temperature control component, a humidity control component and a magnetic control component in the simulation test box, the environment in the simulation test box is adjusted, so that the operating conditions of the hardware to be tested under different external environments can be obtained, and then an obstacle car is set, and the obstacle car is controlled to move relative to the simulation test box, and the movement data of the obstacle car is obtained through the detection component and transmitted to the hardware to be tested, so that the hardware to be tested performs emergency braking feedback under different vehicle speed conditions, and then controls the obstacle car to brake through the control terminal according to the feedback of the hardware to be tested, and integrates the data of the test process, so as to realize the hardware to be tested, the real in-loop simulation test under different environments, and because the test process can be realized by the simulation test device, and the device integrates various functions into the box for easy carrying. Furthermore, the present invention solves the problem of the lack of a hardware-in-the-loop simulation test device for new energy self-driving cars in the prior art that is easy to carry and has good test effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of a hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle in one embodiment of the present invention;

[0031] Figure 2 It is a structural schematic diagram of a placement component in an embodiment of the present invention;

[0032] Figure 3 It is a cross-sectional schematic diagram of a hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle in one embodiment of the present invention;

[0033] Figure 4 It is a flowchart of a hardware-in-the-loop simulation test method for a new energy autonomous driving vehicle in one embodiment of the present invention;

[0034] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings.

[0035] Main component symbol description: 100, simulation test box; 1001 box body; 1002, support seat; 1003, air hole; 200, placement component; 2001, sealing plate; 2002, partition; 2003 electromagnetic coil; 2004, baffle; 2005, filter hole; 2006, handle; 300, temperature control component; 3001, temperature control box; 3002, fan; 3003, heating plate; 3004, concentrating pipe; 3005, air nozzle; 400, humidity control component; 4001, humidifier; 4002, valve; 500, control terminal; 600, handrail; 700, pulley; 800, magnetic control component; 8001, electric push rod; 8002, insulation board; 8003, electrode plate; 8004, power supply; 8005, wire; DETAILED DESCRIPTION

[0036] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0037] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0039] Please refer to FIG. 1 to FIG. 3 , which show a hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle in an embodiment of the present invention, comprising: a simulation test box 100, a control terminal 500 disposed on the top of the simulation test box 100, and an obstacle vehicle; wherein:

[0040] An opening is provided on one side of the simulation test box 100, and a placement component 200 for placing the hardware to be tested is provided inside the opening. A temperature control component 300 is provided on the outer wall of the simulation test box 100 opposite to the opening. One end of the temperature control component 300 extends into the interior of the simulation test box 100 and is flush with the placement component 200. A magnetic control component 800 and a humidity control component 400 are provided at the top and bottom of the interior of the simulation test box 100, respectively, and a detection component is also provided at the top of the exterior of the simulation test box 100; the temperature control component 300, the magnetic control component 800 and the humidity control component 400 are respectively used to adjust the temperature, magnetic field and humidity in the simulation test box, the detection component is used to monitor the movement state of the obstacle cart relative to the simulation test box 100, and the control terminal 500 is used to control the temperature control component 300, the magnetic control component 800, the humidity control component 400 and the obstacle cart.

[0041] It can be understood that by setting the placement component 200, the hardware to be tested can be placed in the simulation test box 100, and then by setting the temperature control component 300, the humidity control component 400 and the magnetic control component 800 in the simulation test box 100, the environment in the simulation test box 100 is adjusted, so that the operating status of the hardware to be tested under different external environments can be obtained, and then by setting an obstacle car and controlling the obstacle car to move relative to the simulation test box 100, and obtaining the movement data of the obstacle car through the detection component and transmitting it to the hardware to be tested, so that the hardware to be tested can perform emergency braking feedback under different vehicle speed conditions, and then control the obstacle car to brake through the control terminal 500 according to the feedback of the hardware to be tested, and integrate the data of the test process, so as to realize the hardware to be tested, the real in-loop simulation test under different environments, and because the test process can be realized by the simulation test device, and the device integrates various functions into the box 1001 for easy carrying. Furthermore, the present invention solves the problem of the lack of a hardware-in-the-loop simulation test device for new energy autonomous driving vehicles that is easy to carry and has good test effect in the prior art.

[0042] It should be noted that the operating environment of the intelligent driving controller on the whole vehicle is relatively stable. The usual environmental changes are mainly temperature changes, humidity changes and magnetic field changes. Therefore, by setting the temperature control component 300, the humidity control component 400 and the magnetic control component 800, the entire operating environment of the intelligent driving controller on the whole vehicle can be fully simulated. In addition, simply collecting the operating conditions of the intelligent driving controller under normal conditions cannot conduct a comprehensive test of the intelligent driving controller. Therefore, an obstacle cart is also provided. By controlling the obstacle cart to move relative to the simulation test box 100, different operating conditions of the simulation test box 100 can be realized. In addition, setting a drive component and a brake component on the simulation test box 100 can also realize the function of the obstacle cart. However, due to the large volume of the simulation test box 100, a larger drive component and a brake component need to be set, and the simulation test box 100 requires a larger volume to accommodate the drive component and the brake component, which makes the simulation test device heavy and bulky, inconvenient to operate, and reduces portability. Therefore, an obstacle cart is additionally set to replace these devices, and the relative movement of the obstacle cart can enable in-loop simulation of different operating conditions of the simulation test box 100.

[0043] Specifically, the simulation test box 100 includes a box body 1001, a support seat 1002 arranged in the box body 1001, and an air hole 1003 arranged on one side of the box body 1001. The support seat 1002 is arranged on the side of the box body 1001 provided with the opening. The top of the support seat 1002 is slidably connected with the placement component 200. The air hole 1003 is arranged inside the temperature control component 300. The outer side of the box body 1001 is provided with an armrest 600, and the bottom of the box body 1001 is provided with a pulley 700. By arranging the support seat 1002 in the box body 1001, it is used to support the placement component 200 to be placed in the box body 1001. In addition, the opposite side of the support seat 1002 and the placement component 200 are both provided with sliding components, so that the placement component 200 slides on the support seat 1002, which makes it easier to use. In addition, by arranging the air hole 1003, the temperature-adjusting gas generated by the temperature control component enters the box body 1001, thereby controlling the temperature in the box body 1001. In addition, a handrail 600 is provided on the box 1001 and a pulley 700 is provided at the bottom so that the box 1001 can be pushed to move, thereby improving the portability of the testing device.

[0044] In addition, the placement component 200 includes a sealing plate 2001, a baffle 2004 arranged parallel to the sealing plate 2001, and a plurality of partitions 2002 respectively connected vertically to the sealing plate 2001 and the baffle 2004 at both ends, an electromagnetic coil 2003 is embedded on the partition 2002, and the plurality of electromagnetic coils 2003 are electrically connected, a filter hole 2005 is provided on the baffle 2004, and a handle 2006 is provided on the sealing plate 2001. By setting the sealing plate 2001, after the placement component 200 is placed in the box 1001, the inside of the box 1001 is isolated and sealed from the outside world, ensuring that the hardware in-loop simulation test environment runs stably, thereby ensuring the test effect. In addition, the filter hole 2005 is provided to prevent dust or gravel from entering between the partitions 2002 to damage the hardware to be tested, but does not prevent the temperature control component 300 and the humidity control component 400 from adjusting the operating environment of the hardware to be tested.

[0045] Furthermore, the magnetic control assembly 800 includes an electric push rod 8001 disposed at the top of the box 1001, an insulating plate 8002 disposed at the output end of the electric push rod 8001, an electrode plate 8003 disposed at the bottom of the insulating plate 8002, and a power supply 8004 disposed on one side of the electric push rod 8001. The electrode plate 8003 is disposed directly above the electromagnetic coil 2003, and the power supply 8004 is electrically connected to the electrode plate 8003 through a wire 8005. By controlling the electric push rod 8001 to move up and down, the electrode plate 8003 is made to contact or move away from the electromagnetic coil 2003, and by controlling the current condition of the electrode plate 8003, the current condition in the battery coil is affected, and the operating magnetic field environment of the hardware to be tested can be adjusted. In addition, it should be noted that only the top of the electromagnetic coil 2003 of the top partition 2002 is exposed for contact with the electrode plate 8003, and the electromagnetic coils 2003 in other partitions 2002 are embedded in the partition 2002 and are not exposed on the outside. The connection between adjacent electromagnetic coils 2003 can be achieved by setting a wiring channel inside the sealing plate 2001.

[0046] In addition, the temperature control component 300 includes a temperature control box 3001 arranged outside the box 1001, a heating plate 3003 arranged in the temperature control box 3001, and a fan 3002 arranged on the side of the temperature control box 3001 away from the box 1001, and the heating plate 3003 is provided with a plurality of perforations adapted to the air holes 1003. The gas is heated by controlling the heating plate 3003, and the heated gas is blown by the fan 3002, so that the temperature in the box 1001 quickly reaches the required temperature, thereby realizing the temperature control of the operating environment of the hardware to be tested. Furthermore, the temperature control component 300 also includes a concentrating pipe 3004 arranged in the box 1001, one end of the plurality of concentrating pipes 3004 is respectively connected to the plurality of air holes 1003, and the other end is provided with an air nozzle 3005, and the air nozzle 3005 is at the same level as the filter hole 2005. By providing the centralizing pipe 3004 and the nozzle, the temperature-adjusting gas outputted by the temperature-control component 300 can be more concentratedly and accurately introduced between the partitions 2002 , thereby further accelerating the temperature adjustment of the environment outside the hardware to be tested.

[0047] Specifically, the humidity control component includes a humidifier 4001 and a valve 4002 arranged at the bottom of the box 1001. The humidifier 4001 is provided with a water tank inside. A liquid inlet pipe extends outward from one side of the humidifier 4001. One end of the liquid inlet pipe passes through the box 1001 and is placed outside the box 1001. The valve 4002 is arranged on the liquid inlet pipe. In actual use, the water is atomized by the humidifier 4001 and transmitted to the spacer 2002 to achieve the humidity control of the external environment of the hardware to be tested. In addition, when in use, since the humidifier 4001 has its own water tank, no external water supply is required for short-term testing. When a long-term test is required, an external water supply part needs to be connected to the liquid inlet pipe for water supply. In addition, the power of the humidity control component can be adjusted by controlling the valve 4002 to achieve control of different humidity. In addition, the fan 3002 of the temperature control component will intensify the air flow in the box 1001, thereby promoting the rapid movement of the water mist of the humidifier 4001 and improving the efficiency of humidity regulation. In addition, in actual use, a partition portion extends outward on one side of the partition 2002 of the placement component 200, and the two sides of the placement component 200 are abutted against the support plates extending from the box body 1001, so that the space where the electrode plate 8003 is located is isolated from the space where the temperature control component 300 and the humidity control component 400 below are located, thereby preventing water mist from entering the electrode plate 8003 and causing damage to the electrode plate 8003 and the electromagnetic coil 2003.

[0048] In addition, the detection component includes a camera and a detection radar. A fixed platform extends outward from the top of the box 1001, and the camera and the detection radar are set on the fixed platform. By setting the camera and the detection radar, the motion state of the obstacle car relative to the box 1001 is collected, thereby realizing the simulation of different operating conditions. And the motion state information is obtained by two different detection methods, and the two detection information are fused to make the motion state information more accurate, thereby providing a simulation effect.

[0049] See also Figure 4 , which shows a hardware-in-the-loop simulation test method for a new energy autonomous driving vehicle in an embodiment of the present invention, and is used to control the above-mentioned simulation test device to perform simulation testing. The method specifically includes:

[0050] Place multiple hardware to be tested between the partitions 2002 of the placement component 200, and place them in the box 1001 along with the placement component 200, and perform data preset through the control terminal 500, and record the information of the hardware to be tested for grouping and summarization;

[0051] According to the preset test scheme, the temperature control component 300, the humidity control component 400 and the magnetic control component 800 are respectively controlled by the control terminal 500 to adjust the temperature, humidity and magnetic field in the box 1001 to perform hardware-in-the-loop simulation tests under different environments;

[0052] The obstacle vehicle is controlled to move relative to the box 1001 by the control terminal 500, and the image data and radar data of the obstacle vehicle are obtained according to the camera and the detection radar, so that the control terminal 500 performs data fusion on the image data and the radar data through a preset network model to obtain relative motion state data;

[0053] The relative motion state data is transmitted to the hardware to be tested, so that the hardware to be tested feeds back braking information according to the relative motion state data, and controls the obstacle vehicle to brake through the control terminal 500 according to the feedback braking information;

[0054] The control terminal 500 collects the environmental data in the box 1001 and the operating data of the hardware to be tested during the whole test process, and integrates the environmental data and the operating data to obtain the test data, so that the staff can evaluate the hardware to be tested according to the test data.

[0055] Specifically, the operating environment of the hardware to be tested is adjusted by the temperature control component 300, the humidity control component 400 and the magnetic control component 800, so that the hardware to be tested is in various temperature, humidity and magnetic field environments, and then the obstacle car is controlled to move relative to the test device to realize the in-loop simulation of the intelligent driving controller in different motion states of the whole vehicle and different external environments. And the temperature, humidity and magnetic field change data during the test, as well as the operating status data of the intelligent driving controller are integrated and summarized to obtain test data, so as to evaluate the performance of the intelligent driving controller according to the test data. In addition, there are many operating states of the whole vehicle. In this embodiment, only the operating state of emergency braking is described, but it is not limited to this. In addition, a calculation model or comparison table of test data and performance evaluation can be set in the control terminal 500, so that after the test, the performance evaluation of the hardware to be tested can be directly obtained without manual evaluation.

[0056] In addition, the preset network model is trained by a large amount of image data and radar data according to a preset loss function, and the preset loss function is:

[0057] ;

[0058] in, is the quality label value within the preset range, , is the boundary distance, for The corresponding preset probability is for The corresponding predicted probability is is the hyperparameter of the scaling factor.

[0059] Specifically, when testing the automatic emergency braking system, the obstacle car is placed in front of the high-speed camera and millimeter-wave radar. After receiving the image information from the high-speed camera, the preset network model is used to input the image data of each frame, and the image size is first reduced to meet the input of the detection network. After the network obtains the input, the target detection inference is performed, so that the detection network will output the target category, probability and position on the image pixel plane.

[0060] Among them, the loss function of the preset network model is used to calculate the model training error and optimize the model parameters to better perform the classification and bounding box regression tasks. In addition, the automatic emergency braking system improves the problem of high classification score and low bounding box score caused by the difference in the number of positive and negative samples during training by introducing weight coefficients. As shown in the formula:

[0061] ;

[0062] in, is the quality prediction value after fusion, is a quality label value in the range of 0 to 1, The coefficient is a hyperparameter of the scaling factor, which is used to control the rate of weight reduction.

[0063] At the same time, the preset damage function also solves the problem that the loss function based on Dirac distribution bounding box regression is not flexible enough and cannot distinguish the foreground and background when dealing with dense targets. The solution is to use the softmax function to count the predicted value of each distance interval:

[0064]

[0065] in, represents the distance of the i-th interval, represents its predicted value, is the softmax statistical result, and y is the distance of the border given in the sample.

[0066] Combining the above two formulas, the preset loss function is as follows:

[0067] ;

[0068] in, is the quality label value within the preset range, , is the boundary distance, for The corresponding preset probability is for The corresponding predicted probability is is the hyperparameter of the scaling factor.

[0069] More specifically, when conducting an emergency braking test, the hardware platform receives millimeter-wave radar udp data through Ethernet. The millimeter-wave radar data includes target ID, longitudinal distance, lateral distance, longitudinal speed, lateral speed and other information. As with visual target detection, the millimeter-wave radar data will be stored in the Queue queue to facilitate information interaction between multiple threads. The longitudinal distance, lateral distance and relative camera height of the millimeter-wave radar target are taken as input, and the three-dimensional coordinates are converted into values ​​in the pixel coordinate system after the transformation of the camera's internal parameter matrix and rotation matrix. The target data detected by the high-speed camera and millimeter-wave radar sensors can be fused through the data fusion method. The fusion method is to transform the radar data points to the image plane through projection, and match the projection points with the visual target detection box, so as to detect both the target distance, speed and other operating information, and the target category information, so as to perform automatic emergency braking system judgment calculation and output braking signals. There are three states of the automatic emergency braking system: safety, warning and emergency braking. After the millimeter-wave radar and high-speed camera detect the target, the information of the nearest target will be screened out, and the automatic emergency braking level will be determined by comparing the set distance safety threshold and the distance value of the nearest target, and the vehicle speed sent by the hardware simulator will be updated to the display interface. When the target distance is greater than 15m, the system considers driving safe and the vehicle speed is the initial setting value of 60km / h; when the target distance is within 2-15m, the collision warning function is activated, that is, the hardware sends a deceleration signal to the instrument panel interface on the display; when the target distance is less than 2m, the automatic emergency braking system is activated and an emergency braking command is sent to reduce the initial setting value of the vehicle speed from 60km / h to 0km / h.

[0070] The testing method of the present invention performs simulation tests on the intelligent driving controller under different vehicle operating conditions in different environments and obtains accurate test data, thereby providing reliable test data for performance evaluation, improvement and modification of the corresponding intelligent driving controller.

[0071] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0072] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle, characterized in that: include: A simulation test box, a control terminal arranged on the top of the simulation test box, and an obstacle vehicle; An opening is provided on one side of the simulation test box, a placement component for placing the hardware to be tested is provided inside the opening, a temperature control component is provided on the outer wall of the simulation test box on the side opposite to the opening, one end of the temperature control component extends into the interior of the simulation test box and is flush with the placement component, a magnetic control component and a humidity control component are provided at the top and bottom of the interior of the simulation test box respectively, and a detection component is also provided at the top of the exterior of the simulation test box; The temperature control component, magnetic control component and humidity control component are used to adjust the temperature, magnetic field and humidity in the simulation test box respectively; the detection component is used to monitor the motion state of the obstacle vehicle relative to the simulation test box; and the control terminal is used to control the temperature control component, magnetic control component, humidity control component and obstacle vehicle; The simulation test box includes a box body, a support seat arranged in the box body, and an air hole arranged on one side of the box body, the support seat is arranged on the side of the box body provided with the opening, the top of the support seat is slidably connected with the placement component, the air hole is arranged inside the temperature control component, the outer side of the box body is provided with an armrest, and the bottom of the box body is provided with a pulley; The placement assembly includes a sealing plate, a baffle plate arranged parallel to the sealing plate, and a plurality of partition plates whose two ends are respectively vertically connected to the sealing plate and the baffle plate, an electromagnetic coil is embedded on the partition plate, and the plurality of electromagnetic coils are electrically connected to each other, a filter hole is arranged on the baffle plate, and a handle is arranged on the sealing plate; The magnetic control assembly includes an electric push rod arranged at the top of the box, an insulating plate arranged at the output end of the electric push rod, an electrode plate arranged at the bottom of the insulating plate, and a power supply arranged at one side of the electric push rod, wherein the electrode plate is arranged directly above the electromagnetic coil, and the power supply is electrically connected to the electrode plate through a wire; The temperature control assembly includes a temperature control box arranged outside the box body, a heating plate arranged inside the temperature control box, and a fan arranged on a side of the temperature control box away from the box body, and the heating plate is provided with a plurality of through holes adapted to the air holes.

2. The hardware-in-the-loop simulation test device for a new energy automatic driving vehicle according to claim 1, characterized in that: The temperature control component also includes a concentrating tube arranged in the box body, one end of the plurality of concentrating tubes is respectively connected to the plurality of air holes, and the other end is provided with an air nozzle, and the air nozzle and the filter hole are in the same horizontal plane.

3. The hardware-in-the-loop simulation test device for a new energy automatic driving vehicle according to claim 1, characterized in that: The humidity control component includes a humidifier and a valve arranged at the bottom of the box body. A water tank is provided inside the humidifier. A liquid inlet pipe extends outward from one side of the humidifier. One end of the liquid inlet pipe passes through the box body and is placed outside the box body. The valve is arranged on the liquid inlet pipe.

4. The hardware-in-the-loop simulation test device for a new energy automatic driving vehicle according to claim 1, characterized in that: The detection component includes a camera and a detection radar. A fixed platform extends outward from the top of the box body, and the camera and the detection radar are arranged on the fixed platform.

5. A hardware-in-the-loop simulation test method for a new energy autonomous driving vehicle, characterized in that: A hardware-in-the-loop simulation test device for a new energy autonomous driving vehicle as claimed in any one of claims 1 to 4, wherein the method comprises: Placing a plurality of hardware to be tested between the partitions of the placement component and placing them in the box along with the placement component, performing data preset through the control terminal, and recording the information of the hardware to be tested for grouping and summarizing; According to a preset test plan, the temperature control component, the humidity control component and the magnetic control component are controlled by the control terminal to adjust the temperature, humidity and magnetic field in the box to perform hardware-in-the-loop simulation tests under different environments; The obstacle vehicle is controlled to move relative to the box by the control terminal, and the image data and radar data of the obstacle vehicle are obtained according to the detection component, so that the control terminal performs data fusion on the image data and radar data through a preset network model to obtain relative motion state data; Transmitting the relative motion state data to the hardware to be tested, so that the hardware to be tested feeds back braking information according to the relative motion state data, and controls the obstacle vehicle to brake through the control terminal according to the feedback braking information; Collect the environmental data in the box and the operating data of the hardware to be tested during the whole test process through the control terminal, and integrate the environmental data and the operating data to obtain test data, so that the staff can evaluate the hardware to be tested according to the test data; The preset network model is obtained by training a large amount of the image data and the radar data according to a preset loss function; The preset loss function is: ; in, is the quality label value within the preset range, , is the boundary distance, for The corresponding preset probability, for The corresponding predicted probability is is the hyperparameter of the scaling factor; The step of enabling the control terminal to fuse the image data and the radar data through a preset network model to obtain the relative motion state data comprises: Receive millimeter-wave radar data through Ethernet, take the longitudinal distance, lateral distance and relative camera height of the target in the millimeter-wave radar data as input, transform the three-dimensional coordinates into values ​​in the pixel coordinate system through the transformation of the camera's internal parameter matrix and rotation matrix, and fuse the target data detected by the high-speed camera and millimeter-wave radar through the data fusion method; The data fusion method is to transform the radar data points to the image plane through projection, and match the projection points with the visual target detection frame, so as to detect both the target distance, speed and other running information and the target category information.