Data processing method, device and automatic driving test bench
By controlling the simulated vehicle to collect data in a virtual scene, the problem of low efficiency of automatic driving training data collection and model tendency is solved, and efficient and safe automatic driving data collection and model training are achieved, which is suitable for teaching in vocational colleges.
Patent Information
- Application Number
- CN202310382979.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-04-11
AI Technical Summary
In existing autonomous driving technology, training deep convolutional neural networks requires a large amount of visual images and vehicle control information, and traditional methods require the driver to manually drive the vehicle to collect data, which is inefficient, and the collected data contains information about the driver's driving habits. , resulting in a certain tendency in the training results.
By controlling the simulated vehicle to automatically track along the simulated path in the virtual scene, collecting sample visual images and control volume information, generating training samples, using tracking algorithms and disturbance amounts to increase data diversity, generating training sets, and using automatic driving neural The network controls and realizes automatic driving.
It achieves efficient and safe collection of training samples, avoids the influence of driver habits, improves the accuracy of the model, reduces costs, and does not require the participation of real vehicles. It is highly safe and suitable for teaching activities in vocational schools.
Smart Images

Figure CN116225024B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a data processing method, device and autonomous driving test bench. Background Art
[0002] Autonomous driving technology has been developing rapidly in recent years. This technology refers to the use of on-board sensors by autonomous driving vehicles to obtain information about the vehicle's surrounding environment in real time, and to autonomously change the vehicle's driving behavior according to changes in information without human intervention, and to complete the specified target driving task. Therefore, to achieve autonomous driving, it is necessary to realize the comprehensive application of a variety of high-tech, such as environmental perception, computational optimization, and a variety of assisted driving, etc. To achieve this goal, it is necessary to use a variety of technologies such as computer vision, data fusion, and sensors. Among the above technologies, computer vision is usually the starting point for autonomous driving data processing, and the information about the operating environment of autonomous driving vehicles is the most basic data to support the normal operation of autonomous driving.
[0003] When training deep convolutional neural networks for autonomous driving that rely on visual sensors, a large amount of visual images and vehicle control information is required, and the correspondence between the two types of information should be included. Traditionally, the driver is required to manually drive the vehicle, repeatedly driving along a pre-set route, and collect data through sensor hardware and data collection scripts for subsequent training.
[0004] The method in which the driver manually drives the vehicle to collect visual images and vehicle control information requires a driver to drive the vehicle for a long time, which is inefficient; and the collected training set inevitably contains the driver's driving habit information, resulting in the training results also having a certain tendency in a certain behavior pattern. Summary of the invention
[0005] In order to solve the existing technical problems, the embodiments of the present invention provide a data processing method, device and automatic driving test bench.
[0006] In a first aspect, an embodiment of the present invention provides a data processing method, including:
[0007] Acquire path information of a first simulation path, wherein the path information includes a plurality of path coordinates of the first simulation path; the first simulation path is a closed-loop path connected end to end;
[0008] Based on a tracking algorithm, controlling the first simulated vehicle to automatically track and drive along the first simulated path in a cycle;
[0009] Collecting sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and collecting sample control amount information of the first simulated vehicle corresponding to the sample visual images;
[0010] A training sample is generated according to the sample visual image and the sample control amount information corresponding to the sample visual image, and a training set including a plurality of the training samples is generated.
[0011] In a possible implementation manner, obtaining the path information of the first simulation path includes:
[0012] receiving a control instruction input by a user for controlling the first simulated vehicle, controlling the first simulated vehicle to travel along the first simulated path based on the control instruction, and recording the position coordinates of the first simulated vehicle;
[0013] The position coordinates collected when the first simulated vehicle travels along the complete first simulated path are all used as path coordinates of the first simulated path to form path information of the first simulated path.
[0014] In a possible implementation, the step of controlling the first simulated vehicle to automatically follow the first simulated path in a cycle based on a tracking algorithm includes:
[0015] adding a disturbance amount to the first simulated vehicle at intervals of a certain period of time, wherein the disturbance amount is used to make the first simulated vehicle deviate from the first simulated path;
[0016] After a preset time period, the addition of the disturbance amount is stopped, and based on a tracking algorithm, the first simulated vehicle is controlled to return to the first simulated path.
[0017] In a possible implementation manner, adding a disturbance to the first simulated vehicle includes:
[0018] A lateral disturbance amount and / or a longitudinal disturbance amount satisfying a normal distribution is added to the first simulated vehicle; the lateral disturbance amount is used to change the heading of the first simulated vehicle, and the longitudinal disturbance amount is used to change the speed of the first simulated vehicle.
[0019] In a possible implementation, the method further includes:
[0020] In the process of adding the disturbance amount, the sample visual image and the sample control amount information are not collected.
[0021] In a possible implementation, the ratio of the total duration of adding the disturbance amount to the total acquisition duration is between 1:100 and 1:4.
[0022] In a possible implementation manner, generating a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image includes:
[0023] Using the sample visual image and the sample control amount information corresponding to the sample visual image as a training sample; and
[0024] A visual image that is mirror-symmetrical to the sample visual image and control amount information that is mirror-symmetrical to the corresponding sample control amount information are used as training samples.
[0025] In a possible implementation manner, after generating a training set including a plurality of training samples, the method further includes:
[0026] Training a preset model according to the training set to generate an autonomous driving neural network;
[0027] When the second simulated vehicle is located on the second simulated path, collecting a current visual image of the simulated environment around the second simulated vehicle, inputting the current visual image into the autonomous driving neural network, and determining corresponding current control amount information according to an output result of the autonomous driving neural network;
[0028] The second simulated vehicle is controlled to travel along the second simulated path according to the current control amount information.
[0029] In a possible implementation, after determining corresponding current control amount information according to the output result of the autonomous driving neural network, the method further includes:
[0030] The action of the controlled-by-wire chassis is controlled according to the current control amount information.
[0031] In a second aspect, an embodiment of the present invention further provides a data processing device, including:
[0032] An acquisition module, used for acquiring path information of a first simulation path, wherein the path information includes a plurality of path coordinates of the first simulation path; the first simulation path is a closed loop path connected end to end;
[0033] A tracking module, used for controlling the first simulated vehicle to automatically track and drive along the first simulated path in a cycle based on a tracking algorithm;
[0034] a collection module, used for collecting sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and collecting sample control amount information of the first simulated vehicle corresponding to the sample visual images;
[0035] A generating module is used to generate a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image, and to generate a training set including a plurality of the training samples.
[0036] In a third aspect, an embodiment of the present invention provides an autonomous driving platform, including: a display screen, a camera, and a processor, wherein the display screen and the camera are both connected to the processor;
[0037] The display screen is used to display the simulated environment around the simulated vehicle when it travels along the simulated path;
[0038] The camera is used to capture the simulation environment displayed on the display screen, form a visual image, and send the visual image to the processor;
[0039] The processor is used to execute the data processing method as described above.
[0040] In a possible implementation, the autonomous driving test bench further includes a control-by-wire chassis, which is connected to the processor; the control-by-wire chassis is used to receive control quantity information sent by the processor and perform corresponding actions.
[0041] In a possible implementation, the control-by-wire chassis includes a physical fault point and a virtual fault point capable of injecting faults;
[0042] The physical fault point includes: at least one of a control-by-wire signal fault point, a control-by-wire power fault point, an EHB enable signal fault point, a gear fault point, an accelerator pedal power fault point, a self-test indicator light fault point, a brake indicator light fault point, a mode switching fault point, and a mode switching indicator light fault point;
[0043] The virtual fault points include: no one in the driver's seat, abnormal battery temperature, abnormal battery current, insufficient battery capacity, abnormal BMS communication, abnormal drive motor, abnormal brake system, abnormal vehicle speed sensor, abnormal steering motor, emergency stop due to speed limit, emergency stop due to emergency stop button, front collision warning, and rear collision warning.
[0044] In a fourth aspect, an embodiment of the present invention provides a data processing device, comprising a processor and a memory, wherein the memory stores a computer program, and is characterized in that the processor executes the computer program stored in the memory, and the computer program, when executed by the processor, implements the data processing method described in the first aspect above.
[0045] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data processing method described in the first aspect above.
[0046] The data processing method, device and automatic driving test bench provided by the embodiment of the present invention can collect a sufficient number of sample visual images and sample control quantity information by controlling the first simulated vehicle to automatically and cyclically drive along the first simulated path in the virtual scene, thereby obtaining a sufficient number of training samples. This method does not require the use of an actual vehicle for collection, can be free from the constraints of the site, does not have the risk of collision, has a low degree of danger, and can automatically track during the collection process, does not require human participation and monitoring, has high efficiency and low cost, and can realize independent, safe and autonomous collection of training samples; and, by using an automatic tracking method to control the driving of the first simulated vehicle, the driver's own driving habits can be avoided, and the collected training samples can be trained to obtain a better model.
[0047] Increasing the amount of disturbance during the acquisition process can increase the diversity of the first simulated vehicle when traveling along the first simulated path, can collect richer sample visual images and sample control quantity information, and can also make the subsequent training model more accurate. After the autonomous driving neural network is trained, the virtual scene can be used to simulate the control of the real vehicle, and the autonomous driving neural network can be verified online without the participation of the real vehicle, with low cost and high safety. In addition, the autonomous driving test bench can also meet the practical teaching activities of vocational colleges and related applied undergraduate majors. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0049] Figure 1 A flow chart of a data processing method provided by an embodiment of the present invention is shown;
[0050] Figure 2 A schematic diagram showing a simulated vehicle provided by an embodiment of the present invention traveling in a simulated path;
[0051] Figure 3 A flow chart showing another data processing method provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of the structure of an automatic driving test bench provided by an embodiment of the present invention is shown;
[0053] Figure 5 Another structural schematic diagram of the automatic driving test bench provided by an embodiment of the present invention is shown;
[0054] Figure 6 A schematic diagram showing the structure of a data processing device provided by an embodiment of the present invention is shown;
[0055] Figure 7 A structural schematic diagram of a data processing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0056] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0057] Figure 1 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present invention. The data processing method can obtain a training set by using virtual scene collection. Figure 1 As shown, the method includes:
[0058] Step 101: Acquire path information of a first simulation path, where the path information includes a plurality of path coordinates of the first simulation path; the first simulation path is a closed-loop path connected end to end.
[0059] In an embodiment of the present invention, data collection is achieved by using a simulation path in a virtual scene. The virtual scene may be a scene displayed by means of virtual scene simulation software (such as Carla, etc.); the virtual scene may contain one or more paths for the simulated vehicle to form. The embodiment of the present invention selects one of the simulation paths as the required path. For the convenience of description, the simulation path is referred to as the first simulation path. In addition, the coordinates of multiple position points on the first simulation path, i.e., the path coordinates, can be obtained by means of collection and the like, and the path information corresponding to the first simulation path can be determined.
[0060] In addition, the first simulation path is a closed-loop path connected end to end, that is, the starting point and the end point of the first simulation path are the same, and the closed-loop path is used to facilitate automatic data collection.
[0061] Optionally, the above step 101 of "obtaining path information of the first simulation path" may include the following steps A1 and A2.
[0062] Step A1: receiving a control instruction input by a user for controlling a first simulated vehicle, controlling the first simulated vehicle to travel along a first simulated path based on the control instruction, and recording the position coordinates of the first simulated vehicle.
[0063] Step A2: taking the position coordinates collected when the first simulated vehicle travels along the complete first simulated path as the path coordinates of the first simulated path, to form the path information of the first simulated path.
[0064] In the embodiment of the present invention, by using the virtual scene simulation software, the user can control the simulated vehicle simulated by the virtual scene simulation software to travel along the certain simulation path (such as the first simulation path); Figure 2A schematic diagram of a simulated vehicle traveling in a simulated path is shown, and the simulated path is a simulated city street. When a user needs to control a simulated vehicle to travel along a first simulated path, the user can input a corresponding control instruction, and the control instruction can be, for example, an instruction such as a left turn, a right turn, acceleration, and a brake; for the convenience of description, the simulated vehicle traveling along the first simulated path is referred to as a first simulated vehicle. After receiving the control instruction, the first simulated vehicle can be controlled to travel along the first simulated path based on the control instruction, and in the process of the first simulated vehicle traveling along the first simulated path, a plurality of position coordinates of the first simulated vehicle are recorded. For example, at intervals of a period of time (such as every 200 milliseconds), the coordinates of the location of the first simulated vehicle, i.e., the position coordinates, are determined and recorded. When the first simulated vehicle is located on the first simulated path, the position coordinates of the first simulated vehicle can represent the location of the first simulated path, i.e., the position coordinates can be used as the path coordinates of the first simulated path, thereby forming corresponding path information.
[0065] Step 102: Based on a tracking algorithm, control the first simulated vehicle to automatically track and drive along the first simulated path in a cycle.
[0066] Among them, the tracking algorithm is an algorithm for controlling a movable device (such as a vehicle, etc.) to automatically move along a preset path. In an embodiment of the present invention, the first simulated path is used as a path with known coordinates, and the first simulated vehicle is controlled to automatically travel along the first simulated path based on the tracking algorithm; for example, the first simulated vehicle can be manually controlled to travel to the vicinity of the first simulated path, and then manual control can be exited, after which the first simulated vehicle can automatically track and travel along the first simulated path.
[0067] Furthermore, since the first simulation path is a closed-loop path connected end to end, after the first simulation vehicle automatically follows the path and reaches the end point, it can continue to automatically travel along the first simulation path again, thereby achieving automatic circular travel.
[0068] Step 103: Collect sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and collect sample control amount information of the first simulated vehicle corresponding to the sample visual images.
[0069] In the embodiment of the present invention, when the first simulated vehicle is in the process of automatically following the track, that is, when the first simulated vehicle is automatically traveling along the first simulated path, an image of the simulated environment around the first simulated vehicle, that is, a sample visual image, is collected; at the same time, control amount information of the first simulated vehicle corresponding to the sample visual image, that is, sample control amount information, is collected; for example, at time t, a sample visual image Pt of the simulated environment around the first simulated vehicle and sample control amount information Ct of the first simulated vehicle at time t are collected. By cyclically and automatically following the track of the first simulated vehicle, a large number of sample visual images and sample control amount information can be collected.
[0070] Among them, when the first simulated vehicle is in the process of automatically following the track, the simulated environment around the first simulated vehicle can be displayed in real time using the virtual scene simulation software, so that the acquisition can be realized. For example, the simulated environment around the first simulated vehicle can be displayed in real time using a display screen, and the simulated environment can be acquired in real time using a camera to form a corresponding sample visual image. Among them, the display screen can be located directly in front of the camera. By using the camera to acquire the sample visual image, the process of the camera acquiring the actual environment in the autonomous driving vehicle can be highly restored, so that the sample visual image is more in line with the real scene.
[0071] Control quantity information refers to the controlled condition of the first simulated vehicle when the first simulated vehicle is being driven. For example, the control quantity information may specifically include: steering wheel angle, accelerator and brake pedal travel, and other information of the first simulated vehicle. When the first simulated vehicle is driving, the virtual scene simulation software will provide sample control quantity information of the first simulated vehicle in real time; for example, the sample control quantity information of the first simulated vehicle can be displayed in real time, and the sample control quantity information corresponding to the sample visual image can be extracted by identifying the collected sample visual image. Figure 2 As shown, the control quantity information of the simulated vehicle is displayed on the left side of the screen.
[0072] Step 104: Generate training samples according to the sample visual image and the sample control amount information corresponding to the sample visual image, and generate a training set including a plurality of training samples.
[0073] In the embodiment of the present invention, the sample visual images and sample control amount information collected at each moment are corresponding, and the two can form a training sample as a group; using the sample visual images and sample control amount information collected at multiple moments, multiple training samples can be formed, thereby generating a training set containing multiple training samples. The training set can be used to train a neural network for realizing autonomous driving, such as a deep convolutional neural network.
[0074] A data processing method provided by an embodiment of the present invention can collect a sufficient number of sample visual images and sample control quantity information by controlling a first simulated vehicle to automatically and cyclically travel along a first simulated path in a virtual scene, thereby obtaining a sufficient number of training samples. This method does not require the use of an actual vehicle for collection, can be free from the constraints of the site, does not have a collision risk, has a low degree of danger, and can automatically track during the collection process, does not require human participation and monitoring, has high efficiency and low cost, and can realize independent, safe and autonomous collection of training samples; and, by controlling the driving of the first simulated vehicle in an automatic tracking manner, the driving habits of the driver himself can be avoided, and the collected training samples can be trained to obtain a better model.
[0075] Optionally, when the first simulated vehicle drives along the first simulated path for multiple cycles, the first simulated vehicle will always drive correctly along the first simulated path, and the data collected each time (i.e., sample visual images, sample control amount information) are not much different, and the data is not rich enough. In order to collect richer data, the embodiment of the present invention adds a certain amount of disturbance to the first simulated vehicle. Specifically, the above step 102 "based on the tracking algorithm, control the first simulated vehicle to automatically track the first simulated path in a cycle" can include the following steps B1 and B2.
[0076] Step B1: adding a disturbance to the first simulated vehicle at regular intervals, where the disturbance is used to make the first simulated vehicle deviate from the first simulated path.
[0077] Step B2: After a preset time period, stop adding the disturbance, and control the first simulated vehicle to return to the first simulated path based on the tracking algorithm.
[0078] In the embodiment of the present invention, during the process of the first simulated vehicle automatically following the first simulated path, a disturbance is added to the first simulated vehicle to make it deviate from the first simulated path. For example, the disturbance can be used to change the steering, speed, etc. of the first simulated vehicle. In order to avoid adding the disturbance for too long, the disturbance is added only within a preset time, that is, after the preset time, the addition of the disturbance is stopped; for example, the disturbance added within the preset time should not exceed the maximum allowable deviation specified in the tracking algorithm to avoid the first simulated vehicle being unable to return to the first simulated path.
[0079] After stopping adding the disturbance, based on the normal tracking algorithm, the first simulated vehicle that has deviated from the route can be controlled to return to the first simulated path, and then continue to travel along the first simulated path. Among them, a disturbance adding algorithm can be set, and the disturbance adding algorithm is used to implement the addition of the disturbance. In the embodiment of the present invention, when it is necessary to add a disturbance, the tracking algorithm can be stopped from being called, and the disturbance adding algorithm can be called instead, and the operation of the first simulated vehicle can be controlled based on the disturbance output by the disturbance adding algorithm; or, when it is necessary to add a disturbance, the tracking algorithm is still called, but the disturbance adding algorithm is also called, and the disturbance adding algorithm is used to add the disturbance to the control amount output by the tracking algorithm, so that the first simulated vehicle deviates from the first simulated path. The embodiment of the present invention does not limit the specific method of adding the disturbance.
[0080] In the embodiment of the present invention, a disturbance is added to the first simulated vehicle at intervals of a certain period of time. For example, a disturbance can be added to the first simulated vehicle periodically or at intervals of a random length of time. By making the first simulated vehicle deviate from the first simulated path multiple times and then return to the first simulated path, the diversity of the first simulated vehicle traveling along the first simulated path can be increased, more abundant sample visual images and sample control amount information can be collected, and the subsequent training model can also be made more accurate.
[0081] Optionally, the ratio between the total duration of adding disturbance and the total acquisition duration is between 1:100 and 1:4. The total acquisition duration refers to the duration of the entire acquisition process. For example, if the first simulated vehicle needs to travel n laps along the first simulated path, the total acquisition duration is the duration required for the first simulated path to travel n laps along the first simulated path. The total duration of adding disturbance refers to the sum of the preset durations corresponding to adding disturbance in the entire acquisition process.
[0082] The ratio of the two should be within a reasonable range. If the ratio is too small, the disturbance is added for too short a time, and the impact is not significant, which is not enough to enrich the data set and optimize the trained model. If the ratio is too large, the disturbance is added for too long, which has a greater impact on the first simulated vehicle traveling along the first simulated trajectory, and may even deviate from the first simulated trajectory, causing the first simulated vehicle to lose control. The embodiment of the present invention sets the ratio between the two to between 1:100 and 1:4, which can obtain a rich data set while ensuring the normal driving of the first simulated vehicle.
[0083] For example, the ratio between the total duration of adding disturbance and the total collection duration can be 1:10. For example, 100ms of disturbance is added in every 1000ms, that is, the preset duration is 100ms, and the remaining 900ms is controlled by the tracking algorithm that can realize automatic driving to drive the first simulated vehicle normally.
[0084] Optionally, the disturbance amount may be added randomly. Specifically, the above step B1 "adding the disturbance amount to the first simulated vehicle" may include the following steps B11.
[0085] Step B11: adding a lateral disturbance and / or a longitudinal disturbance satisfying a normal distribution to the first simulated vehicle; the lateral disturbance is used to change the heading of the first simulated vehicle, and the longitudinal disturbance is used to change the speed of the first simulated vehicle.
[0086] In the embodiment of the present invention, a disturbance amount for changing the heading of the first simulated vehicle, i.e., a lateral disturbance amount, may be added to the first simulated vehicle, such as changing the steering wheel angle of the first simulated vehicle, etc.; or a disturbance amount for changing the speed of the first simulated vehicle, i.e., a longitudinal disturbance amount, may be added to the first simulated vehicle, such as changing the throttle and brake of the first simulated vehicle, etc. When driving straight, changing the speed will not cause the first simulated vehicle to deviate, so the longitudinal disturbance amount is generally added only when the first simulated vehicle turns.
[0087] Moreover, the added disturbances conform to the normal distribution, or in other words, the disturbances are randomly selected with the probability of conforming to the normal distribution. For example, for the lateral disturbances, the deflection values to the left or right should conform to the normal distribution based on the middle position; the longitudinal disturbances are similar, and the error values of being too fast or too slow should conform to the normal distribution based on the reference speed.
[0088] Furthermore, optionally, the method further comprises step C1.
[0089] Step C1: In the process of adding the disturbance amount, the sample visual image and the sample control amount information are not collected.
[0090] In the embodiment of the present invention, in the process of adding the disturbance, the control quantity information for controlling the driving of the first simulated vehicle is disturbed, and the control quantity information is not suitable for training the model. Therefore, in the process of adding the disturbance, the sample control quantity information is not sampled, and accordingly, there is no need to collect sample visual images. After the addition of the disturbance is completed, in the process of the first simulated vehicle returning to the first simulation path, and in the process of the first simulated vehicle returning to the first simulation path and driving normally along the first simulation path, the corresponding sample visual images and sample control quantity information are collected. In this way, inappropriate visual images and control quantity information can be removed to ensure that the collected training samples are suitable for training the model of autonomous driving.
[0091] Among them, not collecting sample visual images and sample control amount information may mean stopping collecting visual images and control amount information, for example, a camera for collecting visual images does not work; or, it may mean removing the visual images and control amount information collected in the process of adding the disturbance amount, that is, the data collected in the process of adding the disturbance amount is not used as training samples.
[0092] Optionally, the above step 104 of “generating a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image” may include the following steps D1 and D2.
[0093] Step D1: taking the sample visual image and the sample control amount information corresponding to the sample visual image as training samples.
[0094] Step D2: Use a visual image that is mirror-symmetrical to the sample visual image and control amount information that is mirror-symmetrical to the corresponding sample control amount information as training samples.
[0095] In the embodiment of the present invention, when the first simulated vehicle travels along the closed-loop path, it is inevitable that the number of left-turn and right-turn data sets will be inconsistent; for example, if the first simulated path travels along the first simulated path in a counterclockwise direction, the collected data (sample visual images and sample control amount information) are more left-turn data, while the right-turn data are less. The embodiment of the present invention can make the number of left-turn and right-turn data basically consistent by performing left-right mirror symmetry on the collected data, ensuring that both left-turn and right-turn cases exist, and can further expand and improve the data set.
[0096] Specifically, in an embodiment of the present invention, a directly collected sample visual image and the corresponding sample control amount information are used as a training sample; and, by performing left-right mirroring on the sample visual image, a new visual image can be obtained, and by performing left-right mirroring on the corresponding sample control amount information, new control amount information can also be obtained. The new visual image and the new control amount information can also be used as a training sample, thereby enriching the training set.
[0097] Among them, those skilled in the art can understand that only part of the control quantity information can achieve left-right mirror symmetry. For example, for the steering wheel angle, the direction of the steering wheel angle can be changed through left-right mirror symmetry, but for the accelerator and brake pedal travel, it does not distinguish between left and right, so it is not necessary to perform left-right mirror symmetry on it, or in other words, after left-right mirror symmetry, the accelerator and brake pedal travel remains unchanged.
[0098] Based on any of the above embodiments, after the above step 104 of "generating a training set including a plurality of training samples", the method further includes a using process, Figure 3 A flowchart of another data processing method is shown, which can obtain a training set by using virtual scene acquisition and use a neural network trained based on the training set. Figure 3 As shown, the use process includes the following steps 105 to 107.
[0099] Step 105: Train the preset model according to the training set to generate an autonomous driving neural network.
[0100] In the embodiment of the present invention, after the training set is collected, the training set can be used to train the preset model, thereby obtaining a neural network capable of realizing autonomous driving, i.e., an autonomous driving neural network. For example, the autonomous driving neural network can be a deep convolutional neural network, which can output control quantity information for controlling vehicle driving, such as steering wheel angle, accelerator and brake pedal travel, etc., based on the input visual image, thereby realizing automatic control of vehicle driving.
[0101] Step 106: When the second simulated vehicle is located on the second simulated path, a current visual image of the simulated environment around the second simulated vehicle is collected, the current visual image is input into the autonomous driving neural network, and corresponding current control quantity information is determined according to the output result of the autonomous driving neural network.
[0102] Step 107: Control the second simulated vehicle to travel along the second simulated path according to the current control amount information.
[0103] After the autonomous driving neural network is trained, it is generally necessary to deploy the autonomous driving neural network in an actual vehicle and control the actual vehicle to perform autonomous driving. Although this can verify the autonomous driving neural network, it still requires an actual scene and there is a risk of collision. In an embodiment of the present invention, a virtual scene is still used to verify the autonomous driving neural network. Among them, a simulation path is generated with the help of virtual scene simulation software, namely the second simulation path. The second simulation path can be the same as or different from the first simulation path. Generally, the two are different. There is a drivable simulated vehicle in the second simulation path, namely the second simulated vehicle. The second simulated vehicle can be the same as or different from the first simulated vehicle.
[0104] In an embodiment of the present invention, an autonomous driving neural network is used to automatically control the second simulated vehicle to travel along a second simulated path, thereby realizing verification of the autonomous driving neural network.
[0105] Specifically, when the second simulated vehicle is located on the second simulated path, a visual image of the simulated environment around the second simulated vehicle, i.e., a current visual image, is collected; the current visual image is similar to the sample visual image described above, and the current visual image is also an image in a virtual scene, and does not require an actual scene. For example, a display can be used to display the second simulated path and the second simulated vehicle, and a camera can be used to collect the current visual image displayed on the display in real time.
[0106] After the current visual image is collected, the current visual image can be input into the autonomous driving neural network. The autonomous driving neural network processes the current visual image and outputs the corresponding current control quantity information, which can then be used to control the movement of the second simulated vehicle. After the second simulated vehicle moves, the simulated environment around it will change. At this time, a new visual image, i.e., a new current visual image, is collected again. The autonomous driving neural network can generate new current control quantity information, thereby realizing continuous control of the movement of the second simulated vehicle, so that the second simulated vehicle can automatically drive along the second simulated path. The driving conditions of the second simulated vehicle can be used to determine whether the autonomous driving neural network is suitable.
[0107] Optionally, when using an autonomous driving neural network to implement autonomous driving, an appropriate disturbance amount may also be added to determine the robustness of the autonomous driving neural network based on whether the second simulated vehicle can return to the second simulated path.
[0108] In the embodiment of the present invention, after the autonomous driving neural network is trained, the virtual scene can be used to achieve the purpose of simulating the control of a real vehicle, and the autonomous driving neural network can be verified online without the participation of a real vehicle, with low cost and high safety.
[0109] Optionally, after the above step 106 "determining the corresponding current control quantity information according to the output result of the autonomous driving neural network", in addition to controlling the driving of the second simulated vehicle, the current control quantity information can also be used to control the wire-controlled chassis, that is, the method also includes: controlling the action of the wire-controlled chassis according to the current control quantity information.
[0110] Since the final result of autonomous driving is still landing and driving, the embodiment of the present invention also uses the current control amount information to control the wire-controlled chassis. Through the actual action of the wire-controlled chassis, it can be determined whether the autonomous driving neural network is suitable for the actual vehicle. Specifically, the current control amount information output by the autonomous driving neural network is used to control the driving of the second simulated vehicle and also controls the action of the wire-controlled chassis. The actions of the second simulated vehicle and the wire-controlled chassis are consistent, that is, the autonomous driving neural network can control the driving of the wire-controlled chassis according to the simulated virtual scene picture; accordingly, when the current visual image collected is an image collected by the camera in the actual vehicle, the autonomous driving neural network can control the action of the wire-controlled chassis of the actual vehicle, that is, it can control the actual vehicle to achieve autonomous driving according to the visual image collected by its camera.
[0111] The embodiment of the present invention also provides an automatic driving test bench, see Figure 4 As shown, the autonomous driving test bench includes: a display screen 401, a camera 402 and a processor 403, and the display screen 401 and the camera 402 are both connected to the processor 403.
[0112] Among them, the display screen 401 is used to display the simulated environment around the simulated vehicle when it travels along the simulated path; the camera 402 is used to collect the simulated environment displayed on the display screen 401, form a visual image, and send the visual image to the processor 403; the processor 403 is used to execute the data processing method provided in any of the above embodiments.
[0113] In the embodiment of the present invention, the display screen 401 displays a virtual scene, that is, the display screen 401 can display the scene when the simulated vehicle travels along the simulated path. For example, the display screen 401 can display the scene when the first simulated vehicle travels along the first simulated path, and can also display the scene when the second simulated vehicle travels along the second simulated path. The camera 402 can collect the picture displayed by the display screen 401 in real time, that is, the simulated environment displayed by the display screen 401, and send the collected visual image to the processor 403. Among them, the height of the camera 402 can be flush with the middle position of the display screen 401, and the camera 402 faces the display screen 401, so that the camera 402 can collect the picture displayed by the display screen 401.
[0114] After receiving the visual image, the processor 403 can execute the corresponding data processing method. For example, if the visual image is a sample visual image, the processor can generate a training set, and further, the training set can be used to train the autonomous driving neural network; if the visual image is a current visual image, and the processor 403 is configured with a trained autonomous driving neural network, the processor 403 can input the current visual image into the autonomous driving neural network, and output the corresponding current control amount information, and then use the current control amount information to control the driving of the second simulated vehicle. Accordingly, the display screen 401 will change the position of the displayed second simulated vehicle, and the simulated environment around the second simulated vehicle will also change.
[0115] Alternatively, see Figure 5 As shown, the automatic driving test bench also includes a wire-controlled chassis 404, which is connected to the processor 403; the wire-controlled chassis 404 is used to receive the control quantity information sent by the processor 403 and perform corresponding actions.
[0116] In an embodiment of the present invention, the automatic driving test bench is also provided with an actual control-by-wire chassis 404, and the processor 403 can send control quantity information to the control-by-wire chassis 404, and the control-by-wire chassis 404 can perform corresponding actions based on the control quantity information; for example, if the control quantity information is a left turn, the control-by-wire chassis 404 can control the steering wheel angle to achieve a left turn. For example, the control quantity information can be the current control quantity information determined by the processor 403 based on the automatic driving neural network, and the control-by-wire chassis 404 can be controlled by using the current control quantity information to achieve automatic driving of the control-by-wire chassis 404. Among them, the control-by-wire chassis 404 can include a control-by-wire steering system for realizing a steering function, a control-by-wire braking system for realizing a braking function, and a control-by-wire driving system for realizing a driving function.
[0117] Optionally, in order to ensure safety when controlling the controlled-by-wire chassis 404, the controlled-by-wire chassis 404 is off the ground, that is, when the controlled-by-wire chassis 404 responds to the control amount information, it can trigger actions such as turning, acceleration, and braking, but its overall position will not change.
[0118] The following is a detailed description of the process of implementing the data processing method using the automatic driving test bench through an embodiment. The process specifically includes a data collection process and a data use process. The data collection process includes the following steps E1 to E4, and the data use process includes the following steps E5 to E10.
[0119] Step E1: The display screen 401 displays a virtual scene, wherein the virtual scene includes a first simulated path, and the first simulated vehicle is in the simulated path.
[0120] Step E2: The user controls the first simulated vehicle to travel along the first simulated path connected end to end, and completes the entire first simulated path. During the travel of the first simulated vehicle, the position coordinates of the first simulated vehicle are collected, and all the position coordinates are used as the path coordinates of the first simulated path to form the path information of the first simulated path.
[0121] The processor 403 may be configured with a script for realizing coordinate collection. For example, the script is get_map.py, which is started when the user controls the first simulated vehicle and ends after reaching the end of the first simulated path. Based on the script, a position.txt file may be generated in the same path, and the file stores the position coordinates of the first simulated vehicle.
[0122] Step E3: Based on the tracking algorithm, the first simulated vehicle is controlled to automatically track along the first simulated path in a cycle; wherein, at intervals, a disturbance amount with a duration of a preset time is added to the first simulated vehicle. At this time, the display screen 401 displays the specific situation of the first simulated vehicle driving along the first simulated path.
[0123] For example, a script for implementing automatic tracking and a script for adding disturbance are configured in the processor 403. After the virtual scene is started, the script for implementing automatic tracking is run so that the first simulated vehicle can travel along the first simulated path; and the script for adding disturbance is called once every certain period of time to add disturbance to the first simulated vehicle.
[0124] Step E4: Turn on the camera 402 and use the camera 402 to collect the picture displayed on the display screen 401 in real time. The camera 402 will collect only when no disturbance is added.
[0125] Before the automatic tracking, the camera 402 can be turned on. During the automatic tracking process, the display screen 401 displays the driving situation of the first simulated vehicle along the first simulated path, which includes the simulated environment around the first simulated vehicle. Therefore, the camera 402 can collect the simulated environment around the first simulated vehicle to form a corresponding visual image, that is, a sample visual image; and Figure 2 As shown, the control amount information at this time is displayed on the left side of the sample visual image, and the control amount information can be used as the sample control amount information corresponding to the sample visual image.
[0126] When the first simulated vehicle loop travels along the first simulated path, without adding disturbance, the camera 402 can collect the picture displayed by the display screen 401 in real time, thereby obtaining a sample visual image and corresponding sample control quantity information; and, due to the existence of the disturbance, the camera 402 can collect pictures at the same position but from different perspectives, that is, different sample visual images, and the collected data is relatively rich.
[0127] For example, the processor 403 is also provided with a script for data collection, which can automatically save the sample visual image taken by the camera 402 to a specified directory, and the file name of the sample visual image and the corresponding sample control amount information are also saved to the specified directory.
[0128] The duration of data collection can be freely selected, that is, the duration of driving of the first simulated vehicle controlled by the tracking algorithm, and the duration of data collection can be arbitrarily determined.
[0129] In the embodiment of the present invention, the data set collection process corresponding to the above steps E1 to E4, in actual use, only requires manual operation to provide a closed target path, i.e., the first simulation path. After that, the first simulation vehicle can automatically travel along the first simulation path in the simulation environment, and the data collection work can be automatically completed at the same time, without the need for human participation in the data set collection process, which saves a lot of manpower compared with traditional methods.
[0130] Step E5: Train the preset model according to the training set to generate an autonomous driving neural network.
[0131] Part (for example, 80%) of the training set may be used for training, and another part (for example, 20%) of the training set may be used to test the trained model.
[0132] Step E6: Deploy the trained autonomous driving neural network to the processor 403.
[0133] After the autonomous driving neural network is deployed, the autonomous driving test bench can enter the autonomous driving mode.
[0134] Step E7: The display screen 401 displays a virtual scene, wherein the virtual scene includes a second simulated path, and the second simulated vehicle is in the simulated path.
[0135] Step E8: Turn on the camera 402 , use the camera 402 to capture the picture displayed on the display screen 401 in real time, that is, the current visual image, and transmit the current visual image to the processor 403 .
[0136] Step E9: The processor 403 uses the automatic driving neural network to solve the current visual image in real time and generate corresponding current control quantity information, and controls the second simulated vehicle to drive automatically based on the current control quantity information.
[0137] Step E10: The processor 403 further sends the current control amount information to the wire-controlled chassis 404, and the wire-controlled chassis 404 performs an action based on the current control amount information.
[0138] For example, the PCAN may be used to connect the processor 403 and the control-by-wire chassis 404 , and the control-by-wire chassis 404 responds to the received current control amount information to achieve automatic driving.
[0139] Optionally, the autonomous driving test bench may also have a user driving mode. In the user driving mode, the user operates the steering wheel and accelerator and brake pedals in the wire-controlled chassis 404 to realize the function of user control of the vehicle; at the same time, the processor 403 can collect control quantity information of the user's control, such as steering wheel angle, accelerator and brake pedal travel, etc., and transmit this control quantity information to the virtual scene, and use the control quantity information to control the driving of the simulated vehicle in the virtual scene, so that the user can control the real vehicle while the vehicle behavior in the virtual scene is consistent with the real vehicle performance, that is, the user can control the vehicle by looking at the road picture in the virtual scene, thereby realizing user driving.
[0140] Optionally, the control-by-wire chassis 404 also includes physical fault points and virtual fault points that can inject faults. Among them, the physical fault points include: control-by-wire signal fault point, control-by-wire power fault point, EHB (electronic hydraulic brake system) enable signal fault point, gear fault point, accelerator pedal power fault point, self-test indicator fault point, brake indicator fault point, mode switching fault point, and at least one of the mode switching indicator fault point. Virtual fault points include: no one in the driver's seat, abnormal battery temperature, abnormal battery current, insufficient battery capacity, abnormal BMS (battery management system) communication, abnormal drive motor, abnormal brake system, abnormal vehicle speed sensor, abnormal steering motor, overspeed limit emergency stop, emergency stop button emergency stop, front collision warning, and rear collision warning.
[0141] In an embodiment of the present invention, the autonomous driving test bench may also have a fault mode. In this fault mode, the control-by-wire chassis can simulate a variety of faults. Students can observe the fault phenomena and find out the causes of the faults, thereby learning the fault diagnosis process and being able to recognize the functions and control logic of the control-by-wire chassis. For example, by simulating the control-by-wire signal fault, students can recognize the operating functions of the control-by-wire joystick, and by simulating the EHB enable signal fault, students can learn the control logic of the EHB enable signal.
[0142] In an embodiment of the present invention, the control-by-wire chassis includes a physical fault point that can simulate the injection of an actual fault. The physical fault point can be used to inject a corresponding physical fault. For example, the control-by-wire signal fault point can be used to inject a control-by-wire signal fault. After simulating the physical fault, the control-by-wire chassis will display the corresponding fault. Students can use an oscilloscope, a multimeter, etc. to detect the fault and complete the diagnosis and troubleshooting. For example, after injecting the EHB enable signal fault, pull the rocker down to brake. The target value of the brake opening is normal, but the effective value is not displayed. At this time, students can use a multimeter to measure the voltage between the two ends of the EHB enable signal line and the ground. The voltage at one end is normal and the voltage at the other end is 0. At this time, it can be preliminarily determined that the EHB enable signal line has a circuit breaker fault.
[0143] In addition, the wire-controlled chassis also includes virtual fault points that can inject virtual faults. For example, when the battery temperature is abnormal, the buzzer alarms and the fault light turns on. Students can determine whether the currently injected fault is abnormal battery temperature by parsing the CAN message fault code. When a fault needs to be repaired, it is also repaired by software simulation repair.
[0144] It should be noted that the autonomous driving test bench provided by the embodiment of the present invention can be used for test training. When a fault is injected, it is only a simulated fault, and no actual fault occurs in the control-by-wire chassis. After the students have completed the diagnosis and troubleshooting, the control-by-wire chassis can be restored to its original state.
[0145] The data processing method and the autonomous driving test bench provided by the embodiments of the present invention can be free from the constraints of the actual scene. There is no need to collect data in the actual scene. As long as the autonomous driving test bench can be placed, the camera 402 can be used to collect data of the virtual scene to obtain a training set, and then offline training can be performed. After the training is completed, it can be verified online in real time, and the virtual scene can be used to achieve the purpose of real vehicle control, realizing hardware-in-the-loop simulation. During the operation process, the advantages and disadvantages of the actual operation can also be analyzed more intuitively.
[0146] Compared with other solutions that still require uninterrupted human supervision during implementation, the embodiments of the present invention can be free from human participation and supervision to a great extent. The wire-controlled chassis runs off the ground, which can ensure safety during operation, and there is no need to worry about the risks caused by loss of control. In addition, the autonomous driving test bench can also meet the needs of vocational colleges and related applied undergraduate majors to carry out practical teaching activities.
[0147] The data processing method provided by the embodiment of the present invention is described in detail above. The method can also be implemented by a corresponding device. The data processing device provided by the embodiment of the present invention is described in detail below.
[0148] Figure 6 FIG. 2 shows a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention. Figure 6 As shown, the data processing device includes:
[0149] An acquisition module 61 is used to acquire path information of a first simulation path, wherein the path information includes a plurality of path coordinates of the first simulation path; the first simulation path is a closed loop path connected end to end;
[0150] A tracking module 62, configured to control the first simulated vehicle to automatically track and drive along the first simulated path in a cycle based on a tracking algorithm;
[0151] The acquisition module 63 is used to acquire sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and to acquire sample control amount information of the first simulated vehicle corresponding to the sample visual images;
[0152] The generating module 64 is used to generate a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image, and generate a training set including a plurality of the training samples.
[0153] In a possible implementation, the acquiring module acquires the path information of the first simulation path, including:
[0154] receiving a control instruction input by a user for controlling the first simulated vehicle, controlling the first simulated vehicle to travel along the first simulated path based on the control instruction, and recording the position coordinates of the first simulated vehicle;
[0155] The position coordinates collected when the first simulated vehicle travels along the complete first simulated path are all used as path coordinates of the first simulated path to form path information of the first simulated path.
[0156] In a possible implementation, the tracking module 62 controls the first simulated vehicle to automatically track and drive along the first simulated path in a cycle based on a tracking algorithm, including:
[0157] adding a disturbance amount to the first simulated vehicle at intervals of a certain period of time, wherein the disturbance amount is used to make the first simulated vehicle deviate from the first simulated path;
[0158] After a preset time period, the addition of the disturbance amount is stopped, and based on a tracking algorithm, the first simulated vehicle is controlled to return to the first simulated path.
[0159] In a possible implementation, the tracking module 62 adds a disturbance to the first simulated vehicle, including:
[0160] A lateral disturbance amount and / or a longitudinal disturbance amount satisfying a normal distribution is added to the first simulated vehicle; the lateral disturbance amount is used to change the heading of the first simulated vehicle, and the longitudinal disturbance amount is used to change the speed of the first simulated vehicle.
[0161] In a possible implementation, the acquisition module 63 is further configured to:
[0162] In the process of adding the disturbance amount, the sample visual image and the sample control amount information are not collected.
[0163] In a possible implementation, the ratio of the total duration of adding the disturbance amount to the total acquisition duration is between 1:100 and 1:4.
[0164] In a possible implementation, the generating module 64 generates a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image, including:
[0165] Using the sample visual image and the sample control amount information corresponding to the sample visual image as a training sample; and
[0166] A visual image that is mirror-symmetrical to the sample visual image and control amount information that is mirror-symmetrical to the corresponding sample control amount information are used as training samples.
[0167] In a possible implementation, the device further includes:
[0168] A training module, configured to train a preset model according to a training set including a plurality of training samples after the generating module 64 generates the training set, so as to generate an autonomous driving neural network;
[0169] The automatic driving module is used to collect a current visual image of the simulated environment around the second simulated vehicle when the second simulated vehicle is located on a second simulated path, input the current visual image into the automatic driving neural network, determine corresponding current control quantity information according to an output result of the automatic driving neural network; and control the second simulated vehicle to travel along the second simulated path according to the current control quantity information.
[0170] In a possible implementation, the autonomous driving module is further used to control the control-by-wire chassis action according to the current control quantity information after determining the corresponding current control quantity information according to the output result of the autonomous driving neural network.
[0171] It should be noted that the data processing device provided in the above embodiment only uses the division of the above functional modules as an example to implement the corresponding functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data processing device provided in the above embodiment and the data processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0172] According to one aspect of the present application, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part. When the computer program is executed by the processor, the data processing method provided by the embodiment of the present application is executed.
[0173] In addition, an embodiment of the present invention further provides a data processing device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is capable of executing the computer program stored in the memory. When the computer program is executed by the processor, the data processing method provided in any of the above embodiments can be implemented.
[0174] For example, Figure 7 A data processing device provided by an embodiment of the present invention is shown. The device includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 , and a user interface 1160 .
[0175] In the embodiment of the present invention, the device further includes: a computer program stored in the memory 1150 and executable on the processor 1120, and when the computer program is executed by the processor 1120, each process of the above-mentioned data processing method embodiment is implemented.
[0176] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .
[0177] In an embodiment of the present invention, the bus architecture (represented by bus 1110), bus 1110 may include any number of interconnected buses and bridges, and bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150.
[0178] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an Accelerate Graphical Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0179] The processor 1120 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processors include: a general-purpose processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a programmable logic array (PLA), a microcontroller unit (MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located in multiple different chips.
[0180] Processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in conjunction with the embodiments of the present invention can be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a readable storage medium known in the art, such as a random access memory (RAM), a flash memory (FlashMemory), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a register, etc. The readable storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0181] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, the embodiments of the present invention will not be further described.
[0182] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, and a stylus.
[0183] It should be understood that the memory 1150 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory.
[0184] In the embodiment of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.
[0185] Specifically, the operating system 1151 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various applications, such as a media player (Media Player) and a browser (Browser), which are used to implement various application services. The program for implementing the method of the embodiment of the present invention may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.
[0186] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned data processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0187] Computer readable storage media include: permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by instruction execution devices. Computer readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination of the above. Computer readable storage media include: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves with instructions recorded thereon) or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (such as light pulses passing through fiber optic cables), or electrical signals transmitted through wires.
[0188] The embodiments of the present invention describe the provided methods, devices, and apparatuses through flowcharts and / or block diagrams.
[0189] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0190] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0191] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0192] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present invention, which should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: include: Acquire path information of a first simulation path, wherein the path information includes a plurality of path coordinates of the first simulation path; The first simulation path is a closed loop path connected end to end; Based on a tracking algorithm, controlling the first simulated vehicle to automatically track and drive along the first simulated path in a cycle; The method of controlling the first simulated vehicle to automatically follow the first simulated path in a cycle based on the tracking algorithm comprises: adding a disturbance amount to the first simulated vehicle at intervals of a certain period of time, wherein the disturbance amount is used to make the first simulated vehicle deviate from the first simulated path; after a preset time period, stopping adding the disturbance amount, and controlling the first simulated vehicle to return to the first simulated path based on the tracking algorithm; Collecting sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and collecting sample control amount information of the first simulated vehicle corresponding to the sample visual images; generating a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image, and generating a training set including a plurality of the training samples; Training a preset model according to the training set to generate an autonomous driving neural network; When the second simulated vehicle is located on the second simulated path, collecting a current visual image of the simulated environment around the second simulated vehicle, inputting the current visual image into the autonomous driving neural network, and determining corresponding current control amount information according to an output result of the autonomous driving neural network; The second simulated vehicle is controlled to travel along the second simulated path according to the current control amount information, and whether the automatic driving neural network is suitable is judged according to the driving condition of the second simulated vehicle.
2. The method according to claim 1, characterized in that: The obtaining of the path information of the first simulation path includes: receiving a control instruction input by a user for controlling the first simulated vehicle, controlling the first simulated vehicle to travel along the first simulated path based on the control instruction, and recording the position coordinates of the first simulated vehicle; The position coordinates collected when the first simulated vehicle travels along the complete first simulated path are all used as path coordinates of the first simulated path to form path information of the first simulated path.
3. The method according to claim 1, characterized in that The adding a disturbance amount to the first simulated vehicle comprises: A lateral disturbance amount and / or a longitudinal disturbance amount satisfying a normal distribution is added to the first simulated vehicle; the lateral disturbance amount is used to change the heading of the first simulated vehicle, and the longitudinal disturbance amount is used to change the speed of the first simulated vehicle.
4. The method according to claim 1, characterized in that: Also includes: In the process of adding the disturbance amount, the sample visual image and the sample control amount information are not collected.
5. The method according to claim 1, characterized in that The ratio of the total time for adding the disturbance amount to the total acquisition time is between 1:100 and 1:
4.
6. The method according to claim 1, characterized in that The generating of the training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image comprises: Using the sample visual image and the sample control amount information corresponding to the sample visual image as a training sample; and A visual image that is mirror-symmetrical to the sample visual image and control amount information that is mirror-symmetrical to the corresponding sample control amount information are used as training samples.
7. The method according to claim 1, characterized in that After determining the corresponding current control amount information according to the output result of the autonomous driving neural network, the method further includes: The action of the controlled-by-wire chassis is controlled according to the current control amount information.
8. A data processing device, characterized in that: include: An acquisition module, configured to acquire path information of a first simulation path, wherein the path information includes a plurality of path coordinates of the first simulation path; The first simulation path is a closed loop path connected end to end; A tracking module, used for controlling the first simulated vehicle to automatically track and drive along the first simulated path in a cycle based on a tracking algorithm; The tracking module controls the first simulated vehicle to automatically track along the first simulated path in a cycle based on the tracking algorithm, including: adding a disturbance amount to the first simulated vehicle at intervals of a certain period of time, wherein the disturbance amount is used to make the first simulated vehicle deviate from the first simulated path; after a preset time period, stopping adding the disturbance amount, and controlling the first simulated vehicle to return to the first simulated path based on the tracking algorithm; a collection module, used for collecting sample visual images of the simulated environment around the first simulated vehicle during the automatic tracking driving of the first simulated vehicle, and collecting sample control amount information of the first simulated vehicle corresponding to the sample visual images; A generating module, configured to generate a training sample according to the sample visual image and the sample control amount information corresponding to the sample visual image, and generate a training set including a plurality of the training samples; A training module, configured to train a preset model according to a training set including a plurality of training samples after the generation module generates the training set, so as to generate an autonomous driving neural network; The automatic driving module is used to collect a current visual image of the simulated environment around the second simulated vehicle when the second simulated vehicle is located on a second simulated path, input the current visual image into the automatic driving neural network, and determine corresponding current control quantity information according to an output result of the automatic driving neural network; control the second simulated vehicle to travel along the second simulated path according to the current control quantity information, wherein whether the automatic driving neural network is suitable is judged according to the driving condition of the second simulated vehicle.
9. An automatic driving test bench, characterized in that: include: A display screen, a camera and a processor, wherein the display screen and the camera are both connected to the processor; The display screen is used to display the simulated environment around the simulated vehicle when it travels along the simulated path; The camera is used to collect the simulation environment displayed on the display screen, form a visual image, and send the visual image to the processor; The processor is used to execute the data processing method according to any one of claims 1 to 7.
10. The automatic driving test bench according to claim 9, characterized in that: Also included is a control-by-wire chassis, the control-by-wire chassis being connected to the processor; The control-by-wire chassis is used to receive the control quantity information sent by the processor and perform corresponding actions.
11. The automatic driving test bench according to claim 10, characterized in that: The control-by-wire chassis includes a physical fault point and a virtual fault point capable of injecting faults; The physical fault point includes: at least one of a control-by-wire signal fault point, a control-by-wire power fault point, an EHB enable signal fault point, a gear fault point, an accelerator pedal power fault point, a self-test indicator light fault point, a brake indicator light fault point, a mode switching fault point, and a mode switching indicator light fault point; The virtual fault points include: abnormal battery temperature, abnormal battery current, insufficient battery capacity, abnormal BMS communication, abnormal drive motor, abnormal brake system, abnormal vehicle speed sensor, abnormal steering motor, emergency stop due to speed limit, emergency stop button, front collision warning, and rear collision warning.
