WO2021169588A1 - Automatic driving simulation method and apparatus, and electronic device and storage medium - Google Patents

Automatic driving simulation method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2021169588A1
WO2021169588A1 PCT/CN2020/141757 CN2020141757W WO2021169588A1 WO 2021169588 A1 WO2021169588 A1 WO 2021169588A1 CN 2020141757 W CN2020141757 W CN 2020141757W WO 2021169588 A1 WO2021169588 A1 WO 2021169588A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
information
control signal
message manager
automatic driving
Prior art date
Application number
PCT/CN2020/141757
Other languages
French (fr)
Chinese (zh)
Inventor
朱裕章
邱聪
Original Assignee
上海商汤临港智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Priority to KR1020217025610A priority Critical patent/KR20210114467A/en
Priority to JP2021547822A priority patent/JP2022524584A/en
Publication of WO2021169588A1 publication Critical patent/WO2021169588A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Definitions

  • the present disclosure relates to the field of simulator simulation technology, and in particular to an automatic driving simulation method and device, electronic equipment and storage medium.
  • Autopilot systems need to be continuously tested during the research and development process, but the autopilot system has a relatively long period of road testing, and the test efficiency is relatively low. If it is tested in a more realistic autopilot simulation test device, not only can it be fully tested The performance of the autonomous driving system in rich scenarios can also provide timely feedback on problems and speed up the iteration of the system.
  • the embodiments of the present disclosure provide an automatic driving simulation method and device, electronic equipment, and storage medium.
  • the first aspect of the embodiments of the present disclosure provides an automatic driving simulation method, including:
  • the message manager receives the first vehicle state information sent by the vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
  • the message manager performs format conversion on the first chassis information and the first positioning information, obtains second chassis information and second positioning information, and sends the second chassis information and the second chassis information to the automatic driving system. Positioning information;
  • the message manager receives the first control signal sent by the automatic driving system, converts the format of the first control signal to obtain a second control signal, and the second control signal is used for the vehicle simulator to update the State the vehicle status information;
  • the message manager sends the second control signal to the vehicle simulator.
  • the method further includes:
  • the message manager receives the second vehicle state information sent by the vehicle simulator, where the second vehicle state information includes information obtained by the vehicle simulator after updating the vehicle state information according to the second control signal
  • the third chassis information and the third positioning information are examples of the second vehicle state information sent by the vehicle simulator.
  • the second control signal includes one or more of the following: positioning information to be processed, throttle data, brake data, gear position, and steering wheel angle;
  • the first chassis information includes one or more of the following: speed, acceleration, and attitude information;
  • the attitude information includes one or more of the following: yaw angle, steering wheel angle.
  • the method further includes:
  • the message manager performs format conversion on the first chassis information and the first positioning information, obtains the information of the target vehicle, and sends the information of the target vehicle to the agent manager, where the target vehicle is the target vehicle.
  • the information of the target vehicle is used to: the agent manager updates the information of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded. State to obtain first perception information;
  • the message manager performs format conversion on the first perception information, obtains second perception information, and sends the second perception information to the automatic driving system, so that the automatic driving system is based on the second perception information Performing decision planning with the second vehicle state information to obtain the first control signal.
  • a second aspect of the embodiments of the present disclosure provides a message manager, including:
  • a transmission module for receiving first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
  • the conversion module is used for format conversion of the first chassis information and the first positioning information to obtain second chassis information and second positioning information; the transmission module is also used for sending the first chassis information to the automatic driving system 2. Chassis information and the second positioning information;
  • the transmission module is further configured to receive the first control signal sent by the automatic driving system; the conversion module is also configured to perform format conversion on the first control signal to obtain a second control signal, and the second control signal is The control signal is used by the vehicle simulator to update the vehicle state information;
  • the transmission module is further configured to send the second control signal to the vehicle simulator.
  • the transmission module is further configured to, after sending the second control signal to the vehicle simulator, receive second vehicle status information sent by the vehicle simulator, wherein the second vehicle status information It includes third chassis information and third positioning information obtained after the vehicle simulator updates the vehicle state information according to the second control signal.
  • the second control signal includes: positioning information to be processed, throttle data, braking data, gear position and/or steering wheel angle;
  • the first chassis information includes speed, acceleration and/or attitude information, and the attitude information includes a yaw angle and/or a steering wheel angle.
  • the conversion module is further configured to perform format conversion on the first chassis information and the first positioning information to obtain information about the target vehicle;
  • the transmission module is also configured to send to the agent manager The information of the target vehicle, wherein the information of the target vehicle is used to update the information of the agent in the vehicle simulation scene according to the information of the target vehicle when the agent manager loads the vehicle simulation scene State to obtain first perception information;
  • the conversion module is further configured to convert the format of the first perception information to obtain second perception information; the transmission module is also configured to send the second perception information to the automatic driving system so that all The automatic driving system performs decision planning according to the second perception information and the second vehicle state information, and obtains the first control signal.
  • a third aspect of the embodiments of the present disclosure provides an automatic driving simulation test system, including:
  • the automatic driving system includes a positioning module, a map module, a decision planning module, and a controller, where:
  • the map module is used to load a map and display at least one target vehicle on the map;
  • the positioning module is configured to obtain second chassis information and second position information from the message manager, and determine and update the target vehicle in the map according to the second chassis information and the second position information ,
  • the target vehicle is a simulated vehicle in the vehicle simulator;
  • the decision planning module is configured to determine the driving decision result of the target vehicle in the map according to the state of the target vehicle and second perception information from the message manager; the controller is configured to determine the driving decision result of the target vehicle in the map according to the target The driving decision result of the vehicle obtains a first control signal, and sends the first control signal to the message manager.
  • the vehicle simulator stores a vehicle dynamics model, and the vehicle dynamics model is pre-established based on data collected by actual vehicle sensors during the driving process of the vehicle;
  • the vehicle simulator is used for:
  • Second vehicle state information Updating vehicle state information based on the vehicle dynamics model and the second control signal to obtain second vehicle state information, where the second vehicle state information includes third chassis information and third positioning information;
  • the second control signal includes to-be-processed positioning information, throttle data, braking data, gear position, and steering wheel angle;
  • the vehicle simulator is specifically used to obtain the accelerator data, brake data, and gear in the second control signal according to the preset mapping relationship between the accelerator data, brake data, gear position of the vehicle and the speed and acceleration of the vehicle Corresponding first speed and first acceleration;
  • the first speed, the first acceleration, the first front wheel angle, the first yaw angle the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle, and the vehicle The distance from the center of the rear wheel axle to the center of gravity of the vehicle to obtain the second vehicle state information.
  • a vehicle dynamics model building module for:
  • the first data includes multiple sets of throttle data, brake data and speed, acceleration, wherein the throttle data, the brake data and the speed and the speed
  • the acceleration has a corresponding relationship
  • Second data of a real vehicle traveling on a road collected by a sensor including multiple sets of steering wheel angles and vehicle front wheel angles, and the steering wheel angle and the vehicle front wheel angle have a corresponding relationship;
  • a vehicle dynamics model is obtained based on the mapping relationship and the rotation ratio relationship.
  • it also includes:
  • Agent manager for:
  • the vehicle simulation scene includes an agent, and the agent includes at least one vehicle;
  • agent manager is also used to:
  • the information of is sent to the simulated vehicle, so that the simulated vehicle updates its own state according to the information of the other agent.
  • the intelligent body further includes one or more of the following: non-motor vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, and obstacles.
  • a fourth aspect of the embodiments of the present disclosure provides an electronic device, including a processor and a memory, the memory is used to store a computer program, the computer program is configured to be executed by the processor, and the processor is used to execute Part or all of the steps described in any method of the first aspect of the embodiments are disclosed.
  • the fifth aspect of the embodiments of the present disclosure provides another electronic device, including a processor and a memory, where the memory is used to store a computer program configured to be executed by the processor, and the processor is used to control
  • the message manager in the second aspect of the embodiment of the present disclosure runs, or controls the operation of the automatic driving simulation test system as in the third aspect of the embodiment of the present disclosure.
  • a sixth aspect of the embodiments of the present disclosure provides a computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute any method in the first aspect of the embodiments of the present disclosure Part or all of the steps described may enable the processor to control the operation of the message manager as described in the second aspect of the embodiment of the present disclosure, or enable the processor to control the operation of the message manager as described in the third aspect of the embodiment of the present disclosure. system running.
  • the seventh aspect of the embodiments of the present disclosure provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the above-mentioned first aspect and any one of its possible implementation methods.
  • the first vehicle status information sent by the vehicle simulator is received through the message manager, and the first chassis information and the first positioning information included in the first vehicle status information are formatted to obtain the second chassis information and the second vehicle status information. Positioning information, and send the second chassis information and second positioning information to the automatic driving system.
  • the message manager also receives the first control signal sent by the automatic driving system, converts the format of the first control signal, and obtains the second control signal.
  • the manager sends a second control signal to the vehicle simulator, so that the vehicle simulator can update the vehicle status information according to the second control signal, thereby realizing the function of data format conversion and forwarding.
  • the data format converted by the message manager is more conducive to forwarding objects Receiving and processing enables the automatic driving simulation test to be executed quickly and correctly, and improves the stability of data processing.
  • the message manager can convert the custom control signal of the autopilot system to be tested into a general control signal that can be recognized and processed by the vehicle simulator, so that the autopilot simulation task can be executed more accurately in the vehicle simulator. Since the control signal mainly includes the relatively simple parameters of the vehicle's chassis information and positioning information, and the analysis is simple, the message manager can quickly identify and convert.
  • the vehicle simulator and automatic driving system no longer need to be developed, that is, on the basis of not modifying the source code of the vehicle simulator or the source code of the automatic driving system, data exchange can be carried out and the automation can be accurately completed by replacing the intermediate message manager.
  • the driving simulation test improves the compatibility of the automatic driving system and the versatility of the automatic driving simulation test system.
  • FIG. 1 is a schematic flowchart of an automatic driving simulation method disclosed in an embodiment of the present disclosure
  • Figure 2 is a schematic structural diagram of a message manager disclosed in an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of the architecture of an automatic driving simulation test system disclosed in an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of another automatic driving simulation test system disclosed in an embodiment of the present disclosure.
  • Fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present disclosure.
  • the term "and/or" in the present disclosure is merely an association relationship describing associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, and A and B exist at the same time. There are three cases of B alone.
  • the term "at least one" in this document means any one of a plurality of or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C.
  • the terms “first”, “second”, etc. in the specification, claims, and drawings of the present disclosure are used to distinguish different objects, rather than to describe a specific sequence.
  • FIG. 1 is a schematic flowchart of an automatic driving simulation method disclosed in an embodiment of the present disclosure. As shown in FIG. 1, the automatic driving simulation method may be executed by a message manager, and may specifically include the following steps:
  • the message manager receives first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information.
  • the automatic driving system (Auto Driving System) involved in the embodiments of the present disclosure also known as an automatic driving control system, is used to control a car or a robot to drive automatically under unmanned driving control.
  • the vehicle simulator can realize the vehicle simulation of the automatic driving system and test the performance of the automatic driving system.
  • the message manager in the embodiment of the present disclosure can realize data conversion and forwarding between the automatic driving system and the vehicle simulator.
  • the foregoing message manager may be a hardware device, and the automatic driving simulation method may be implemented by a processor in the message manager calling computer-readable instructions stored in a memory.
  • the product form of the message manager may also be software, or an electronic device integrating software and hardware, and so on.
  • a software message manager can be obtained on the software side, or a software program developed and designed can be deployed on an electronic device to execute the method executable by the message manager in the embodiment of FIG. 1.
  • the message manager as an intermediate station, data processing and forwarding can be performed, and as a data exchange bridge between the vehicle simulator and the automatic driving system, it can solve that the data or data interface provided by the general vehicle simulator does not meet specific requirements.
  • the data requirements of the autonomous driving system project caused the problem of data exchange between the two.
  • the message manager may receive the first vehicle state information sent by the vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information.
  • the first chassis information may include one or more of the following: speed, acceleration, and attitude information; the attitude information may include one or more of the following: yaw angle, steering wheel angle.
  • the first positioning information is positioning information of the target vehicle, and specifically may be coordinate information or latitude and longitude information.
  • the vehicle simulator can perform vehicle simulation processing on the target vehicle according to the control signal sent by the automatic driving system and converted and forwarded by the message manager to obtain The vehicle status information of the target vehicle, where the control signal output by the automatic driving system may include one or more of the following: the target vehicle’s pending positioning information, throttle data, brake data, gear position, steering wheel angle, these data can be controlled by the automatic
  • the automatic driving algorithm of the driving system is obtained and updated periodically.
  • step 102 After receiving the first vehicle state information sent by the vehicle simulator, step 102 may be executed.
  • an agent manager can be set for the automated driving simulation task, and the method further includes:
  • the message manager performs format conversion on the first chassis information and the first positioning information, obtains the information of the target vehicle, and sends the information of the target vehicle to the agent manager, where the target vehicle is a simulation in the vehicle simulator.
  • a vehicle the information of the target vehicle is used to: when the agent manager loads the vehicle simulation scene, update the state of the agent in the vehicle simulation scene according to the information of the target vehicle to obtain the first perception information;
  • the message manager performs format conversion on the first perception information, obtains the second perception information, and sends the second perception information to the automatic driving system, so that the automatic driving system performs processing according to the second perception information and the second vehicle status information. Make decisions and plans and get the first control signal.
  • the agent manager may load a vehicle simulation scene, the vehicle simulation scene includes an agent, and the agent may include at least one vehicle.
  • the agent also includes one or more of the following: non-motorized vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, obstacles, and there is no restriction here.
  • the target vehicle is a simulated vehicle in the vehicle simulator
  • the message manager may also convert the first chassis information and the first positioning information sent by the vehicle simulator into the target vehicle information, and send the information to the agent manager
  • the information of the target vehicle so that the agent manager can update the state of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded, and obtain the above-mentioned first perception information.
  • the agent manager can control the agent in the vehicle simulation scene according to the information of the target vehicle sent by the vehicle simulator that is converted and forwarded by the message manager.
  • the information is sent to other agents in the vehicle simulation scene, so that other agents can update their own state according to the information of the simulated vehicle.
  • the message manager may send the second perception information to the aforementioned automatic driving system.
  • the automatic driving system can comprehensively make decision planning based on the second perception information and the obtained second vehicle state information, so as to control the target vehicle to consider the state of the surrounding agents when driving, and obtain the above-mentioned first control signal.
  • the message manager performs format conversion on the first chassis information and the first positioning information, obtains the second chassis information and the second positioning information, and sends the second chassis information and the second positioning information to the automatic driving system.
  • the message manager can realize the information format conversion between the vehicle simulator and the automatic driving system. Specifically, the message manager can pre-set the format mapping relationship between the vehicle simulator and the automatic driving system of data of different message types, as well as different The forwarding and mapping relationship of message type data between data interfaces; when receiving data sent by one of the parties, the data can be identified first to determine the message type of the data.
  • the forwarding object corresponding to the first chassis information is the data interface of the automatic driving system, so as to send the second chassis information to the automatic driving system after obtaining the second chassis information.
  • the message manager can convert the format of the first positioning information to obtain the second positioning information and send it to the automatic driving system.
  • the message manager receives the first control signal sent by the automatic driving system, performs format conversion on the first control signal, and obtains a second control signal, which is used by the vehicle simulator to update the vehicle state information .
  • the message manager may receive the first control signal sent by the autopilot system, and the first control signal may include one or more of the following: positioning information to be processed, throttle data, brake data , Gears, steering wheel angle.
  • the autopilot system can process the vehicle status information of the target vehicle sent by the vehicle simulator and converted and forwarded by the message manager to obtain The control signal of the target vehicle is forwarded to the vehicle simulator through the conversion of the message manager.
  • the message manager receives the first control signal sent by the automatic driving system, it also performs format conversion on the first control signal to obtain the second control signal, and step 104 may be executed.
  • the message manager sends the second control signal to the vehicle simulator.
  • the message manager After the message manager obtains the second control signal by converting the data format of the first control signal of the automatic driving system into a data format suitable for processing by the vehicle manager, the message manager sends the second control signal to the vehicle simulator to enable the vehicle simulator
  • the vehicle state information of the target vehicle can be updated according to the second control signal.
  • step 104 the method further includes:
  • the message manager receives the second vehicle status information sent by the vehicle simulator, where the second vehicle status information includes the third chassis information and third chassis information obtained after the vehicle simulator updates the vehicle status information according to the second control signal. Positioning information.
  • the vehicle simulator can update the vehicle state information according to the second control signal, obtain the second vehicle state information, including the third chassis information and the third positioning information, and send it to the message manager ,
  • the message manager then processes the second vehicle status information, which is specifically described in step 101, which will not be repeated here. It can be seen that this step can be executed periodically until the automatic driving simulation task ends.
  • the interface of the autopilot system can be set and changed in the message manager to be able to adapt to different autopilot systems for simulation testing.
  • the interface of the vehicle simulator can be set and changed, so that different vehicle simulators can be used for application.
  • the existing automatic driving system data interface needs to be adapted to the vehicle simulator for development. If other types of vehicle simulators are replaced in the test system, the automatic driving system needs to be re-developed for the new vehicle simulator, otherwise it cannot be adapted to use , The development cost is very high.
  • a message manager is added to the test system, and the message manager is used to convert and forward the data exchanged between the autopilot system and the vehicle simulator. When the vehicle simulator needs to be replaced, the message manager and vehicle simulator are modified.
  • the agent management needs to be replaced
  • the communication interface between the message manager and the agent manager is modified without the need to redesign the automatic driving system and the vehicle simulator, thereby reducing the cost and improving the versatility of the automatic driving simulation test device.
  • the embodiment of the present disclosure receives the first vehicle state information sent by the vehicle simulator through the message manager, the first vehicle state information includes the first chassis information and the first positioning information, and then the first chassis information and the first positioning information
  • the format conversion is performed to obtain the second chassis information and the second positioning information, and the second chassis information and the second positioning information are sent to the automatic driving system.
  • the message manager also receives the first control signal sent by the automatic driving system, performs format conversion on the first control signal, and obtains a second control signal, which is used by the vehicle simulator to update the vehicle state information.
  • the message manager sends the second control signal to the vehicle simulator, which can realize the function of data format conversion and forwarding.
  • the data format converted by the message manager is used for the forwarding object to receive and process, so that the automatic driving simulation test can be Fast and correct execution improves the stability of data processing.
  • the message manager can convert the custom control signal of the autopilot system to be tested into a general control signal that can be recognized and processed by the vehicle simulator, so that the autopilot simulation task can be executed more accurately in the vehicle simulator. Since the control signal mainly includes the relatively simple parameters of the vehicle's chassis information and positioning information, and the analysis is simple, the message manager can quickly identify and convert.
  • the vehicle simulator and the automatic driving system no longer need to be developed, that is, on the basis of not modifying the source code of the vehicle simulator or the source code of the automatic driving system, only the middle message manager can be replaced to exchange data and complete the automatic operation accurately.
  • the driving simulation test improves the compatibility of the automatic driving system and the versatility of the automatic driving simulation test system.
  • the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible inherent Logic is determined.
  • the message manager and/or the automated driving simulation test system includes hardware structures and/or software modules corresponding to each function.
  • the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for specific applications to implement the described functions, but such implementation should not be considered as going beyond the scope of the present disclosure.
  • the embodiments of the present disclosure can divide the message manager into functional units (modules) according to the method examples described above.
  • each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one.
  • the integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present disclosure is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 2 is a schematic structural diagram of a message manager provided by an embodiment of the present disclosure. As shown in FIG. 2, the message manager 200 includes:
  • the transmission module 210 is configured to receive first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
  • the conversion module 220 is used for format conversion of the first chassis information and the first positioning information to obtain second chassis information and second positioning information; the transmission module 210 is also used for sending the second chassis to the automatic driving system Information and the second positioning information;
  • the transmission module 210 is also used to receive the first control signal sent by the automatic driving system; the conversion module 220 is also used to format the first control signal to obtain a second control signal, and the second control signal is used Update the vehicle status information in the vehicle simulator;
  • the transmission module 210 is also used to send the second control signal to the vehicle simulator.
  • the transmission module 210 is further configured to, after sending the second control signal to the vehicle simulator, receive second vehicle status information sent by the vehicle simulator, where the second vehicle status information includes The third chassis information and third positioning information obtained after the simulator updates the vehicle state information according to the second control signal.
  • the second control signal includes: positioning information to be processed, throttle data, braking data, gear position and/or steering wheel angle;
  • the first chassis information includes speed, acceleration, and/or attitude information
  • the attitude information includes yaw angle and/or steering wheel angle.
  • the conversion module 220 is further configured to perform format conversion on the first chassis information and the first positioning information to obtain information about the target vehicle;
  • the transmission module 210 is also configured to send the target vehicle to the agent manager Vehicle information, where the target vehicle information is used to: when the agent manager loads the vehicle simulation scene, update the state of the agent in the vehicle simulation scene according to the target vehicle information to obtain the first perception information ;
  • the conversion module 220 is also used for format conversion of the first perception information to obtain second perception information; the transmission module 210 is also used for sending the second perception information to the automatic driving system, so that the automatic driving system A decision plan is made according to the second perception information and the second vehicle state information, and the first control signal is obtained.
  • the automated driving simulation test system 300 includes:
  • the automated driving simulation test system may further include the agent manager 340 mentioned in the embodiment shown in FIG. 1.
  • FIG. 4 is a schematic structural diagram of another automatic driving simulation test system disclosed in an embodiment of the present disclosure.
  • the automatic driving simulation test system includes a vehicle simulator 410, a message manager 420, an agent manager 430, and an automatic driving system 440, where the automatic driving system 440 is a system to be tested.
  • the automated driving simulation process may specifically include:
  • the vehicle simulator 410 can obtain general control signals from the message manager 420 to update its own position, and at the same time send general first chassis information and first positioning information to the message manager 420;
  • the message manager 420 may convert the first chassis information and the first positioning information into target vehicle information, send it to the agent manager 430, and convert the first chassis information and the first positioning information into second chassis information And the second positioning information, sent to the automatic driving system 440;
  • the agent manager 430 obtains the target vehicle information through the message manager 420 for processing, controls the managed agent to respond to the target vehicle, updates the agent's own state, obtains the first perception information, and sends it to the message manager 420;
  • the message manager 420 may also convert the first perception information into second perception information, and send it to the automatic driving system 440;
  • the automatic driving system 440 may perform automatic driving control of the target vehicle according to the second chassis information, the second positioning information, and the second perception information, output the first control signal, and send it to the message manager 420;
  • the message manager 420 may convert the first control signal into a second control signal and send it to the vehicle simulator 410.
  • the vehicle simulator 410 may execute the processing steps described in (1) in response to the second control signal, that is, the above steps (1)-(6) may be executed periodically until the automatic driving simulation test ends.
  • the automatic driving system 440 includes a positioning module 441, a map module 442, a decision planning module 443, and a controller 444, wherein:
  • the map module 442 is used to load the map and display at least one target vehicle on the map;
  • the positioning module 441 is used to obtain the second chassis information and second location information from the message manager, and determine and update the state of the target vehicle in the map according to the second chassis information and the second location information.
  • the target vehicle is The simulated vehicle in the vehicle simulator;
  • the decision planning module 443 is configured to determine the driving decision result of the target vehicle in the map according to the state of the target vehicle and the second perception information from the message manager; the controller 44 is configured to determine the driving decision result of the target vehicle according to the target vehicle. As a result, the first control signal is obtained, and the first control signal is sent to the message manager.
  • the map module 442 in the automatic driving system 440 is used to load the map and display at least one target vehicle on the map;
  • the positioning module 441 can obtain the second chassis information and the second location information from the message manager 420, determine and update the status of the target vehicle on the map according to the second chassis information and the second location information, and then the decision-making and planning module 443 then according to the target
  • the state of the vehicle and the second perception information from the message manager 420 are used to make decisions on the subsequent driving path, direction, speed, etc. of the vehicle to determine the driving decision result of the target vehicle on the map; the controller 444 can then make a decision based on the driving decision.
  • the first control signal is obtained, and the automatic driving system 440 may send the first control signal to the message manager 420.
  • the simulation result can be output by relying on the visualization function of the autopilot system 400 under test, that is, the autopilot simulation test system 400 can display data such as simulation videos and images.
  • the vehicle simulator 410 stores a vehicle dynamics model, which is pre-established based on data collected by actual vehicle sensors during the driving process of the vehicle;
  • the vehicle simulator 410 is used for:
  • the vehicle simulator 410 in the embodiment of the present disclosure may use a preset vehicle dynamics model to describe the movement mode of the simulated vehicle. Collect data during the driving process of the vehicle through actual vehicle sensors, establish a more realistic vehicle dynamics model in advance, and apply it in the vehicle simulator 410, so that the vehicle simulator 410 can be based on the vehicle dynamics model and the received second vehicle dynamics model.
  • the control signal updates the vehicle state information, thereby obtaining the second vehicle state information.
  • the operation is performed in the device 410. Therefore, the vehicle's accelerator data, brake data, the mapping relationship between gear and speed, acceleration, and the rotation ratio between the steering wheel angle of the vehicle and the front wheel angle of the vehicle can be preset in the vehicle dynamics model.
  • the establishment process of the vehicle dynamics model includes:
  • the first data includes multiple sets of throttle data, brake data, speed, and acceleration, where the throttle data, the brake data, and the speed, and the acceleration have a corresponding relationship ;
  • Second data of a real vehicle traveling on a road collected by a sensor including multiple sets of steering wheel angles and vehicle front wheel angles, and the steering wheel angle and the vehicle front wheel angle have a corresponding relationship;
  • a vehicle dynamics model is obtained based on the mapping relationship and the rotation ratio relationship.
  • the parameters and performance of the simulated vehicle in the general vehicle simulator are not consistent with the actual vehicle parameters and performance.
  • it is necessary to obtain the parameters of the bottom of the vehicle such as the torsion torque of the vehicle, vehicle power, tire friction coefficient, etc. These parameters are generally difficult to obtain, so the simulation of the vehicle is difficult to match the actual road test vehicle well.
  • the preset mapping relationship between the accelerator data, brake data, gear position of the vehicle and the speed and acceleration of the vehicle, and the preset rotation ratio relationship between the steering wheel angle of the vehicle and the front wheel angle of the vehicle can be collected by The real vehicle data statistics are obtained.
  • sensors and real vehicles can be first used to randomly and massively collect multiple sets of throttle data, brake data and data by driving real vehicles on the road.
  • Speed, acceleration where the throttle data, the braking data and the speed, the acceleration have a corresponding relationship, and can measure multiple sets of steering wheel angles and vehicle front wheel angles of multiple vehicles, the steering wheel angle and the vehicle front wheel angle have a correspondence Relations, and then through interpolation fitting method to construct the preset vehicle throttle data, brake data, gears and vehicle speed, acceleration mapping relationship, and the preset vehicle steering wheel angle and vehicle front wheel angle of rotation ratio
  • the relationship as the longitudinal mathematical expression of the vehicle dynamics model, can realize the control of the simulated vehicle. Only the parameters such as accelerator, brake, gear position and steering wheel angle can be calculated and output vehicle status messages. This avoids the difficulty of vehicles. Provides the dilemma of the underlying performance parameters, which can more realistically simulate actual road test vehicles.
  • the second control signal includes to-be-processed positioning information, throttle data, braking data, gear position and steering wheel angle;
  • the vehicle simulator 410 is specifically used for:
  • the second vehicle is obtained status information.
  • the vehicle simulator 410 for the received control signal, according to the preset vehicle's accelerator data, brake data, the mapping relationship between the gear and the vehicle's speed and acceleration, and the preset vehicle's steering wheel angle and the front wheel of the vehicle
  • the rotation ratio relationship of the rotation angle can obtain the corresponding first speed, first acceleration and first front wheel rotation angle, so that the calculation of the vehicle state can be performed.
  • the distance from the center of the front wheel axle of the target vehicle to the center of gravity of the vehicle and the distance from the center of the rear wheel axle of the vehicle to the center of gravity of the vehicle can be obtained. It is set and sent to the vehicle simulator 410 through the message manager 420.
  • the distance to obtain the second vehicle state information may specifically include any one or more of the following: second positioning information, second speed, second acceleration, and second yaw angle.
  • the positioning information of the vehicle in the embodiment of the present disclosure may be represented by the position coordinate of the vehicle.
  • the suspension system, tire model, and environment model of the vehicle are simplified.
  • the obtained vehicle dynamics model includes the obtained mapping relationship and the rotation ratio relationship, where the mapping relationship and the rotation ratio relationship are Based on the calculation formula.
  • the calculation formula provided can be as follows:
  • x t+1 x t +v t cos( ⁇ t + ⁇ )*dt;
  • y t+1 y t +v t sin( ⁇ t + ⁇ )*dt;
  • ⁇ t+1 ⁇ t +v t l r sin( ⁇ )*dt;
  • (x, y) represents the position coordinates of the vehicle
  • v and a are the speed and acceleration of the vehicle respectively
  • ⁇ t is the yaw angle of the vehicle, which represents the direction of the vehicle body
  • l f and l r are the vehicle's center of gravity to the front wheel axle respectively
  • the distance between the midpoint and the midpoint of the rear wheel axle, ⁇ f is the front wheel angle of the vehicle, which can be limited to negative counterclockwise, or it can be set as required. Since the rear wheels of most vehicles are not rotatable, the vehicle dynamics model of the embodiments of the present disclosure may not consider the rotation angle of the rear wheels, which can reduce the amount of data processing to a certain extent.
  • the vehicle dynamics model is obtained by using the actual real vehicle parameters and the calibration relationship, which is closer to the real road test vehicle, and makes the simulation test scene more abundant, more comprehensive and accurate.
  • the control of the simulated vehicle only needs throttle data, brake data, gear position and steering wheel angle, as well as the positioning information to be processed and the fixed vehicle parameters (l f and l r ) as a reference.
  • Carry out conversion operation and calculation processing specifically including the conversion of input data based on the mapping relationship and the rotation ratio relationship, and then perform calculation processing according to the formula, and finally output vehicle status information, including vehicle position update (second positioning information), speed, acceleration And attitude information (including the second yaw angle and steering wheel angle, etc.), data processing in the automatic driving simulation test can be realized simply and accurately.
  • the automated driving simulation test system 400 further includes: an agent manager 430 for:
  • the vehicle simulation scene includes an agent, and the agent includes at least one vehicle;
  • the first perception information is sent to the message manager 420.
  • the agent manager 430 can be used to combine with the vehicle simulator 410 to simulate a simulation scene.
  • the agent in the simulation scene is an element that can interact with the target vehicle.
  • the agent also includes one or more of the following : Non-motorized vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, obstacles. It should be noted that, in addition to the target vehicle concerned in the set simulation test, other vehicles can be traffic flow vehicles simulated in the scene.
  • agent manager 430 which agents can interact with the simulated vehicle can be set and changed, and interaction rules can be set.
  • the agent manager 430 may obtain the information of the target vehicle through the message manager 420, control the managed agent to respond to the target vehicle according to the corresponding interaction rules, update its own state to obtain perception information, and then feed back to the message manager 420.
  • a preset automatic driving algorithm can be used to complete the simulated driving and can interact with the target vehicle.
  • the message manager 420 can send the first perception information of the agent in the simulation scene where the target vehicle is located to the automatic driving system 440, where the message manager 420 can also perform format conversion, and the obtained second perception information is satisfactory for the automatic driving system 440
  • Data in a custom format can specifically include the location information, speed, etc. of the agent in the agent manager. For example, when the target vehicle hits a traffic cone, the traffic cone changes its state in response to the situation (dumping or flying out, moving to a certain position, etc.), or the traffic flow vehicle is under the influence of the target vehicle. Changing its own driving route, etc., is not limited in the embodiment of the present disclosure.
  • the general purpose and customization involved in the embodiments of the present disclosure refer to the data format.
  • the general purpose format of the general format is relatively strong, but the general automatic driving system will define its own data format according to its own needs.
  • the agent manager 430 is further used to: send the information of the simulated vehicle in the vehicle simulation scene to other agents in the vehicle simulation scene, so that the other agents can update their own state according to the information of the simulated vehicle; and The information of other agents is sent to the simulated vehicle, so that the simulated vehicle updates its own state according to the information of other agents.
  • vehicle simulation using traffic flow is a scenario in the form of a script, which is mainly for traffic flow playback.
  • the simulated vehicle can be managed uniformly with other agents in the simulation scene through the agent manager, and all objects can use the same state update interface, which can realize the interaction of objects in the simulation scene and the simulation scene.
  • At least two simulated vehicles may be set in the automatic driving simulation test system 400 for simulation testing, and at least two simulated vehicles may independently perform automatic driving simulation processing.
  • the multi-vehicle simulation can be the same as the data processing method of the aforementioned one target vehicle as a simulated vehicle.
  • the information of the at least two simulated vehicles can be processed separately in the same automatic driving system 400, and different control signals can be generated and provided to the same vehicle simulator. 410 for processing.
  • the simulated vehicle and other agents in the agent manager 430 belong to the same concept, so they can be managed in a unified manner to achieve simultaneous multi-vehicle simulation.
  • the agent manager 430 compared to one of the simulated vehicles, the other simulated vehicle can be regarded as other agents. Therefore, the agent manager 430 can also support the information interaction between multiple simulated vehicles to generate corresponding The perception information is provided to the automatic driving system 400 through the message manager 420.
  • the interaction between the simulated vehicle and the simulated simulation scene can also be realized.
  • the interaction between the traffic flow vehicles can form complex agent behaviors, providing more abundant Test scenario.
  • the vehicle simulator 410, the agent manager 430 and the automatic driving system 440 can all be replaced as needed.
  • the interface communication part can be set and changed in the message manager 420, so that the modules can be smooth and accurate. Data interaction.
  • the automatic driving simulation test system 400 may be a software system deployed on an electronic device, and the message manager 420, the vehicle simulator 410, the agent manager 430, and the automatic driving system may be software modules.
  • the automatic driving simulation test system 400 can be deployed on a terminal device to perform simulation test tasks; in another embodiment, the automatic driving simulation test system 400 includes a vehicle simulator 410, an agent manager 430, and a message manager Both the 420 and the automatic driving system 400 may be physical devices.
  • the existing automatic driving system data interface needs to be adapted to the vehicle simulator for development. If other types of vehicle simulators are replaced in the test system, the automatic driving system needs to be re-developed for the new vehicle simulator, otherwise it cannot be adapted to use , The development cost is very high.
  • the message manager is used to convert and forward the data exchanged between the autopilot system and the vehicle simulator. When the vehicle simulator needs to be replaced, the message manager and the vehicle simulator can be modified.
  • the communication interface between the vehicle simulators eliminates the need to redesign the automatic driving system, thereby improving the compatibility of the automatic driving system; and/or, when the automatic driving system to be tested needs to be replaced, the message manager and the The communication interface between the automatic driving systems, so that there is no need to replace the vehicle simulator with a vehicle simulator that is compatible with the new automatic driving system; optionally, if the test system is also equipped with an agent manager, on the basis of the foregoing, When the agent manager needs to be replaced, the communication interface between the message manager and the agent manager can be modified, so that there is no need to redesign the automatic driving system and the vehicle simulator, thereby reducing costs and improving the generality of the automatic driving simulation test system sex.
  • FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present disclosure.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the electronic device 500 may also include a bus 503.
  • the processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be an interconnection of peripheral components.
  • the bus 503 can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one thick line is used to represent in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the electronic device 500 may also include an input/output device 504, and the input/output device 504 may include a display screen, such as a liquid crystal display screen.
  • the memory 502 is used to store a computer program; the processor 501 is used to call the computer program stored in the memory 502 to execute some or all of the method steps mentioned in the embodiment of FIG. 1.
  • the electronic device 500 shown in FIG. 5 can set and change the interface with the automatic driving system, so as to be able to adapt to different automatic driving systems for simulation testing, which will not be repeated here.
  • the processor 501 is configured to call a computer program stored in the memory 502 to execute part or all of the method steps executed by the automatic driving simulation test system 400 in the embodiment described in FIG. 4.
  • the embodiments of the present disclosure also provide a computer storage medium, wherein the computer storage medium is used to store a computer program, and the computer program causes the computer to execute any of the automatic driving simulation methods or automatic driving simulation methods recorded in the method embodiments described above. Part or all of the steps of the method executed by the driving simulation test system.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units (modules) described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple networks. Unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present disclosure essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include : Flash disk, read-only memory, random access device, magnetic disk or CD, etc.

Abstract

Disclosed are an automatic driving simulation method and apparatus, and an electronic device and a storage medium. The method comprises: a message manager receives first vehicle state information sent by a vehicle simulator, the first vehicle state information comprising first chassis information and first positioning information; the message manager performs format conversion on the first chassis information and the first positioning information to obtain second chassis information and second positioning information, and sends the second chassis information and the second positioning information to an automatic driving system; the message manager receives a first control signal sent by the automatic driving system, and performs format conversion on the first control signal to obtain a second control signal, the second control signal being used for updating the vehicle state information by the vehicle simulator; and the message manager sends the second control signal to the vehicle simulator.

Description

自动驾驶仿真方法和装置、电子设备及存储介质Automatic driving simulation method and device, electronic equipment and storage medium
本公开要求于2020年2月24日提交中国专利局、申请号为202010113305.9、发明名称为“自动驾驶仿真方法和装置、电子设备及存储介质”,其全部内容通过引用结合在本公开中。This disclosure requires that it be submitted to the Chinese Patent Office on February 24, 2020, the application number is 202010113305.9, and the title of the invention is "autonomous driving simulation method and device, electronic equipment and storage medium", the entire contents of which are incorporated into this disclosure by reference.
技术领域Technical field
本公开涉及模拟器仿真技术领域,具体涉及一种自动驾驶仿真方法和装置、电子设备及存储介质。The present disclosure relates to the field of simulator simulation technology, and in particular to an automatic driving simulation method and device, electronic equipment and storage medium.
背景技术Background technique
自动驾驶系统在研发过程中需要不断地进行测试,但是自动驾驶系统经过路测的周期比较长,测试效率比较低,而如果在一个比较真实的自动驾驶仿真测试装置中进行测试,不仅能够充分测试在丰富场景下自动驾驶系统的表现,还能及时反馈问题,加快系统的迭代。Autopilot systems need to be continuously tested during the research and development process, but the autopilot system has a relatively long period of road testing, and the test efficiency is relatively low. If it is tested in a more realistic autopilot simulation test device, not only can it be fully tested The performance of the autonomous driving system in rich scenarios can also provide timely feedback on problems and speed up the iteration of the system.
目前市面上存在许多用于自动驾驶系统测试的车辆仿真器,然而对于具体的自动驾驶项目,可配套使用的车辆仿真拟器通常比较有限,在使用时车辆仿真器能够提供的数据或者数据接口并不能满足特定的自动驾驶系统的数据需求,使得自动驾驶系统基于车辆仿真器无法较好地匹配测试。At present, there are many vehicle simulators for automatic driving system testing on the market. However, for specific autonomous driving projects, the supporting vehicle simulators are usually limited. The data or data interfaces that the vehicle simulator can provide when in use are not Cannot meet the data requirements of a specific automatic driving system, making the automatic driving system based on the vehicle simulator unable to match the test well.
发明内容Summary of the invention
本公开实施例提供了一种自动驾驶仿真方法和装置、电子设备及存储介质。The embodiments of the present disclosure provide an automatic driving simulation method and device, electronic equipment, and storage medium.
本公开实施例第一方面提供一种自动驾驶仿真方法,包括:The first aspect of the embodiments of the present disclosure provides an automatic driving simulation method, including:
消息管理器接收车辆仿真器发送的第一车辆状态信息,所述第一车辆状态信息包括第一底盘信息和第一定位信息;The message manager receives the first vehicle state information sent by the vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
所述消息管理器对所述第一底盘信息和所述第一定位信息进行格式转换,获得第二底盘信息和第二定位信息,向自动驾驶系统发送所述第二底盘信息和所述第二定位信息;The message manager performs format conversion on the first chassis information and the first positioning information, obtains second chassis information and second positioning information, and sends the second chassis information and the second chassis information to the automatic driving system. Positioning information;
所述消息管理器接收所述自动驾驶系统发送的第一控制信号,对所述第一控制信号进行格式转换,获得第二控制信号,所述第二控制信号用于所述车辆仿真器更新所述车辆状态信息;The message manager receives the first control signal sent by the automatic driving system, converts the format of the first control signal to obtain a second control signal, and the second control signal is used for the vehicle simulator to update the State the vehicle status information;
所述消息管理器向所述车辆仿真器发送所述第二控制信号。The message manager sends the second control signal to the vehicle simulator.
在一种可选的实施方式中,所述消息管理器向所述车辆仿真器发送所述第二控制信号 之后,所述方法还包括:In an optional implementation manner, after the message manager sends the second control signal to the vehicle simulator, the method further includes:
所述消息管理器接收所述车辆仿真器发送的第二车辆状态信息,其中,所述第二车辆状态信息包括由所述车辆仿真器根据所述第二控制信号更新所述车辆状态信息后获得的第三底盘信息和第三定位信息。The message manager receives the second vehicle state information sent by the vehicle simulator, where the second vehicle state information includes information obtained by the vehicle simulator after updating the vehicle state information according to the second control signal The third chassis information and the third positioning information.
在一种可选的实施方式中,所述第二控制信号包括以下一种或多种:待处理定位信息、油门数据、刹车数据、档位、方向盘转角;In an optional implementation manner, the second control signal includes one or more of the following: positioning information to be processed, throttle data, brake data, gear position, and steering wheel angle;
和/或,and / or,
所述第一底盘信息包括以下一种或多种:速度、加速度、姿态信息;The first chassis information includes one or more of the following: speed, acceleration, and attitude information;
所述姿态信息包括以下一种或多种:偏航角、方向盘转角。The attitude information includes one or more of the following: yaw angle, steering wheel angle.
在一种可选的实施方式中,所述方法还包括:In an optional implementation manner, the method further includes:
所述消息管理器对所述第一底盘信息和所述第一定位信息进行格式转换,获得目标车辆的信息,向智能体管理器发送所述目标车辆的信息,其中,所述目标车辆为所述车辆仿真器中的仿真车辆,所述目标车辆的信息用于:所述智能体管理器在加载车辆仿真场景的情况下,根据所述目标车辆的信息更新所述车辆仿真场景中智能体的状态以获得第一感知信息;The message manager performs format conversion on the first chassis information and the first positioning information, obtains the information of the target vehicle, and sends the information of the target vehicle to the agent manager, where the target vehicle is the target vehicle. For the simulated vehicle in the vehicle simulator, the information of the target vehicle is used to: the agent manager updates the information of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded. State to obtain first perception information;
所述消息管理器对所述第一感知信息进行格式转换,获得第二感知信息,向所述自动驾驶系统发送所述第二感知信息,以使所述自动驾驶系统根据所述第二感知信息和所述第二车辆状态信息进行决策规划,获得所述第一控制信号。The message manager performs format conversion on the first perception information, obtains second perception information, and sends the second perception information to the automatic driving system, so that the automatic driving system is based on the second perception information Performing decision planning with the second vehicle state information to obtain the first control signal.
本公开实施例第二方面提供了一种消息管理器,包括:A second aspect of the embodiments of the present disclosure provides a message manager, including:
传输模块,用于接收车辆仿真器发送的第一车辆状态信息,所述第一车辆状态信息包括第一底盘信息和第一定位信息;A transmission module for receiving first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
转换模块,用于对所述第一底盘信息和所述第一定位信息进行格式转换,获得第二底盘信息和第二定位信息;所述传输模块还用于,向自动驾驶系统发送所述第二底盘信息和所述第二定位信息;The conversion module is used for format conversion of the first chassis information and the first positioning information to obtain second chassis information and second positioning information; the transmission module is also used for sending the first chassis information to the automatic driving system 2. Chassis information and the second positioning information;
所述传输模块还用于,接收所述自动驾驶系统发送的第一控制信号;所述转换模块还用于,对所述第一控制信号进行格式转换,获得第二控制信号,所述第二控制信号用于所述车辆仿真器更新所述车辆状态信息;The transmission module is further configured to receive the first control signal sent by the automatic driving system; the conversion module is also configured to perform format conversion on the first control signal to obtain a second control signal, and the second control signal is The control signal is used by the vehicle simulator to update the vehicle state information;
所述传输模块还用于,向所述车辆仿真器发送所述第二控制信号。The transmission module is further configured to send the second control signal to the vehicle simulator.
可选的,所述传输模块还用于,向所述车辆仿真器发送所述第二控制信号之后,接收所述车辆仿真器发送的第二车辆状态信息,其中,所述第二车辆状态信息包括由所述车辆仿真器根据所述第二控制信号更新所述车辆状态信息后获得的第三底盘信息和第三定位信 息。Optionally, the transmission module is further configured to, after sending the second control signal to the vehicle simulator, receive second vehicle status information sent by the vehicle simulator, wherein the second vehicle status information It includes third chassis information and third positioning information obtained after the vehicle simulator updates the vehicle state information according to the second control signal.
可选的,所述第二控制信号包括:待处理定位信息、油门数据、刹车数据、档位和/或方向盘转角;Optionally, the second control signal includes: positioning information to be processed, throttle data, braking data, gear position and/or steering wheel angle;
和/或,and / or,
所述第一底盘信息包括速度、加速度和/或姿态信息,所述姿态信息包括偏航角和/或方向盘转角。The first chassis information includes speed, acceleration and/or attitude information, and the attitude information includes a yaw angle and/or a steering wheel angle.
可选的,所述转换模块还用于,对所述第一底盘信息和所述第一定位信息进行格式转换,获得目标车辆的信息;所述传输模块还用于,向智能体管理器发送所述目标车辆的信息,其中,所述目标车辆的信息用于:所述智能体管理器在加载车辆仿真场景的情况下,根据所述目标车辆的信息更新所述车辆仿真场景中智能体的状态以获得第一感知信息;Optionally, the conversion module is further configured to perform format conversion on the first chassis information and the first positioning information to obtain information about the target vehicle; the transmission module is also configured to send to the agent manager The information of the target vehicle, wherein the information of the target vehicle is used to update the information of the agent in the vehicle simulation scene according to the information of the target vehicle when the agent manager loads the vehicle simulation scene State to obtain first perception information;
所述转换模块还用于,对所述第一感知信息进行格式转换,获得第二感知信息;所述传输模块还用于,向所述自动驾驶系统发送所述第二感知信息,以使所述自动驾驶系统根据所述第二感知信息和所述第二车辆状态信息进行决策规划,获得所述第一控制信号。The conversion module is further configured to convert the format of the first perception information to obtain second perception information; the transmission module is also configured to send the second perception information to the automatic driving system so that all The automatic driving system performs decision planning according to the second perception information and the second vehicle state information, and obtains the first control signal.
本公开实施例第三方面提供一种自动驾驶仿真测试系统,包括:A third aspect of the embodiments of the present disclosure provides an automatic driving simulation test system, including:
自动驾驶系统、车辆仿真器和上述第二方面所述的消息管理器。An automatic driving system, a vehicle simulator, and the message manager described in the second aspect above.
可选的,所述自动驾驶系统包括定位模块、地图模块、决策规划模块和控制器,其中:Optionally, the automatic driving system includes a positioning module, a map module, a decision planning module, and a controller, where:
所述地图模块,用于加载地图并在地图上显示至少一个目标车辆;The map module is used to load a map and display at least one target vehicle on the map;
所述定位模块用于获取来自所述消息管理器的第二底盘信息和第二位置信息,并根据所述第二底盘信息和所述第二位置信息确定并更新所述地图中所述目标车辆的状态,所述目标车辆为所述车辆仿真器中的仿真车辆;The positioning module is configured to obtain second chassis information and second position information from the message manager, and determine and update the target vehicle in the map according to the second chassis information and the second position information , The target vehicle is a simulated vehicle in the vehicle simulator;
所述决策规划模块,用于根据所述目标车辆的状态和来自消息管理器的第二感知信息,确定所述地图中的所述目标车辆的驾驶决策结果;所述控制器用于根据所述目标车辆的所述驾驶决策结果获得第一控制信号,向所述消息管理器发送所述第一控制信号。The decision planning module is configured to determine the driving decision result of the target vehicle in the map according to the state of the target vehicle and second perception information from the message manager; the controller is configured to determine the driving decision result of the target vehicle in the map according to the target The driving decision result of the vehicle obtains a first control signal, and sends the first control signal to the message manager.
可选的,所述车辆仿真器存储有车辆动力学模型,所述车辆动力学模型基于通过实际车辆传感器采集的车辆行驶过程中的数据预先建立;Optionally, the vehicle simulator stores a vehicle dynamics model, and the vehicle dynamics model is pre-established based on data collected by actual vehicle sensors during the driving process of the vehicle;
所述车辆仿真器用于:The vehicle simulator is used for:
获取所述消息管理器发送的第二控制信号;Acquiring a second control signal sent by the message manager;
基于所述车辆动力学模型和所述第二控制信号更新车辆状态信息,获得第二车辆状态信息,所述第二车辆状态信息包括第三底盘信息和第三定位信息;Updating vehicle state information based on the vehicle dynamics model and the second control signal to obtain second vehicle state information, where the second vehicle state information includes third chassis information and third positioning information;
向所述消息管理器发送所述第二车辆状态信息。Sending the second vehicle status information to the message manager.
可选的,所述第二控制信号包括待处理定位信息、油门数据、刹车数据、档位和方向 盘转角;Optionally, the second control signal includes to-be-processed positioning information, throttle data, braking data, gear position, and steering wheel angle;
所述车辆仿真器具体用于,根据预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,获得所述第二控制信号中的油门数据、刹车数据和档位对应的第一速度和第一加速度;The vehicle simulator is specifically used to obtain the accelerator data, brake data, and gear in the second control signal according to the preset mapping relationship between the accelerator data, brake data, gear position of the vehicle and the speed and acceleration of the vehicle Corresponding first speed and first acceleration;
根据预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,将所述第二控制信号中的方向盘转角转换为对应的第一前轮转角;Converting the steering wheel angle in the second control signal into the corresponding first front wheel angle according to the preset rotation ratio between the steering wheel angle of the vehicle and the front wheel angle of the vehicle;
获取所述目标车辆的第一偏航角,以及车辆前轮车轴中心到车辆重心的距离和车辆后轮车轴中心到车辆重心的距离;Acquiring the first yaw angle of the target vehicle, and the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle and the distance from the center of the vehicle rear axle to the center of gravity of the vehicle;
基于所述定位信息、所述第一速度、所述第一加速度、所述第一前轮转角、所述第一偏航角、所述车辆前轮车轴中心到车辆重心的距离和所述车辆后轮车轴中心到车辆重心的距离,获得所述第二车辆状态信息。Based on the positioning information, the first speed, the first acceleration, the first front wheel angle, the first yaw angle, the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle, and the vehicle The distance from the center of the rear wheel axle to the center of gravity of the vehicle to obtain the second vehicle state information.
可选的,还包括车辆动力学模型建立模块,用于:Optionally, it also includes a vehicle dynamics model building module for:
获取通过传感器采集的真实车辆在道路上行驶的第一数据,所述第一数据包括多组油门数据、刹车数据与速度、加速度,其中所述油门数据、所述刹车数据与所述速度、所述加速度具有对应关系;Acquire the first data of the real vehicle traveling on the road collected by the sensor. The first data includes multiple sets of throttle data, brake data and speed, acceleration, wherein the throttle data, the brake data and the speed and the speed The acceleration has a corresponding relationship;
基于所述第一数据构建车辆的油门数据、刹车数据、档位与速度、加速度的映射关系;Constructing a mapping relationship between accelerator data, brake data, gear position and speed and acceleration of the vehicle based on the first data;
获取通过传感器采集的真实车辆在道路上行驶的第二数据,所述第二数据包括多组方向盘转角和车辆前轮转角,所述方向盘转角和所述车辆前轮转角具有对应关系;Acquiring second data of a real vehicle traveling on a road collected by a sensor, the second data including multiple sets of steering wheel angles and vehicle front wheel angles, and the steering wheel angle and the vehicle front wheel angle have a corresponding relationship;
基于所述第二数据构建车辆的方向盘转角和车辆前轮转角的转动比例关系;Constructing a rotation proportional relationship between the steering wheel angle of the vehicle and the front wheel angle of the vehicle based on the second data;
基于所述映射关系和所述转动比例关系获得车辆动力学模型。A vehicle dynamics model is obtained based on the mapping relationship and the rotation ratio relationship.
可选的,还包括:Optionally, it also includes:
智能体管理器,用于:Agent manager for:
加载车辆仿真场景,所述车辆仿真场景包括智能体,所述智能体包括至少一车辆;Load a vehicle simulation scene, the vehicle simulation scene includes an agent, and the agent includes at least one vehicle;
接收来自消息管理器的目标车辆的信息,根据所述目标车辆的信息更新所述车辆仿真场景中所述智能体的状态,获得第一感知信息;Receiving the information of the target vehicle from the message manager, and updating the state of the agent in the vehicle simulation scene according to the information of the target vehicle to obtain first perception information;
向所述消息管理器发送所述第一感知信息。Sending the first perception information to the message manager.
可选的,所述智能体管理器还用于:Optionally, the agent manager is also used to:
将所述车辆仿真场景中的仿真车辆的信息发送给所述车辆仿真场景中的其他智能体,以使所述其他智能体根据所述仿真车辆的信息更新自身状态;以及将所述其他智能体的信息发送给所述仿真车辆,以使所述仿真车辆根据所述其他智能体的信息更新自身状态。Sending the information of the simulated vehicle in the vehicle simulation scene to other agents in the vehicle simulation scene, so that the other agents can update their own state according to the information of the simulated vehicle; and send the other agents The information of is sent to the simulated vehicle, so that the simulated vehicle updates its own state according to the information of the other agent.
可选的,所述智能体还包括以下一种或多种:非机动车、动物、行人、交通锥、交通 灯、交通标志、道路标识、车道线、障碍物。Optionally, the intelligent body further includes one or more of the following: non-motor vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, and obstacles.
本公开实施例第四方面提供一种电子设备,包括处理器以及存储器,所述存储器用于存储计算机程序,所述计算机程序被配置成由所述处理器执行,所述处理器用于执行如本公开实施例第一方面任一方法中所描述的部分或全部步骤。A fourth aspect of the embodiments of the present disclosure provides an electronic device, including a processor and a memory, the memory is used to store a computer program, the computer program is configured to be executed by the processor, and the processor is used to execute Part or all of the steps described in any method of the first aspect of the embodiments are disclosed.
本公开实施例第五方面提供另一种电子设备,包括处理器以及存储器,所述存储器用于存储计算机程序,所述计算机程序被配置成由所述处理器执行,所述处理器用于控制如本公开实施例第二方面的消息管理器运行,或者,控制如本公开实施例第三方面的自动驾驶仿真测试系统运行。The fifth aspect of the embodiments of the present disclosure provides another electronic device, including a processor and a memory, where the memory is used to store a computer program configured to be executed by the processor, and the processor is used to control The message manager in the second aspect of the embodiment of the present disclosure runs, or controls the operation of the automatic driving simulation test system as in the third aspect of the embodiment of the present disclosure.
本公开实施例第六方面提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本公开实施例第一方面任一方法中所描述的部分或全部步骤,或者,使得所述处理器控制如本公开实施例第二方面述的消息管理器运行,或者,使得所述处理器控制如本公开实施例第三方面所述的系统运行。A sixth aspect of the embodiments of the present disclosure provides a computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute any method in the first aspect of the embodiments of the present disclosure Part or all of the steps described may enable the processor to control the operation of the message manager as described in the second aspect of the embodiment of the present disclosure, or enable the processor to control the operation of the message manager as described in the third aspect of the embodiment of the present disclosure. system running.
本公开实施例第七方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面及其任一种可能的实现方式的方法。The seventh aspect of the embodiments of the present disclosure provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the above-mentioned first aspect and any one of its possible implementation methods.
本公开实施例通过消息管理器接收车辆仿真器发送的第一车辆状态信息,并对第一车辆状态信息包括的第一底盘信息和第一定位信息进行格式转换,获得第二底盘信息和第二定位信息,并向自动驾驶系统发送第二底盘信息和第二定位信息,消息管理器还接收自动驾驶系统发送的第一控制信号,对第一控制信号进行格式转换,获得第二控制信号,消息管理器向车辆仿真器发送第二控制信号,使得车辆仿真器能够根据第二控制信号更新车辆状态信息,从而实现数据格式转换和转发的功能,通过消息管理器转换后的数据格式更利于转发对象接收并处理,使得自动驾驶仿真测试能够快速、正确执行,提高了数据处理的稳定性。比如,消息管理器可以将待测试的自动驾驶系统的自定义控制信号转换为通用的、可被车辆仿真器识别并处理的控制信号,便于更准确地在车辆仿真器中执行自动驾驶仿真任务。由于控制信号主要包括车辆的底盘信息和定位信息这些较为简单的参数,解析简便,因此消息管理器可以快速地进行识别和转换。同时使车辆仿真器和自动驾驶系统不再需要配套开发,即可以在不修改车辆仿真器源码或者自动驾驶系统源码的基础上,只需更换中间的消息管理器就可以进行数据交换并准确完成自动驾驶仿真测试,提高了自动驾驶系统的兼容性,和自动驾驶仿真测试系统的通用性。In the embodiment of the present disclosure, the first vehicle status information sent by the vehicle simulator is received through the message manager, and the first chassis information and the first positioning information included in the first vehicle status information are formatted to obtain the second chassis information and the second vehicle status information. Positioning information, and send the second chassis information and second positioning information to the automatic driving system. The message manager also receives the first control signal sent by the automatic driving system, converts the format of the first control signal, and obtains the second control signal. The manager sends a second control signal to the vehicle simulator, so that the vehicle simulator can update the vehicle status information according to the second control signal, thereby realizing the function of data format conversion and forwarding. The data format converted by the message manager is more conducive to forwarding objects Receiving and processing enables the automatic driving simulation test to be executed quickly and correctly, and improves the stability of data processing. For example, the message manager can convert the custom control signal of the autopilot system to be tested into a general control signal that can be recognized and processed by the vehicle simulator, so that the autopilot simulation task can be executed more accurately in the vehicle simulator. Since the control signal mainly includes the relatively simple parameters of the vehicle's chassis information and positioning information, and the analysis is simple, the message manager can quickly identify and convert. At the same time, the vehicle simulator and automatic driving system no longer need to be developed, that is, on the basis of not modifying the source code of the vehicle simulator or the source code of the automatic driving system, data exchange can be carried out and the automation can be accurately completed by replacing the intermediate message manager. The driving simulation test improves the compatibility of the automatic driving system and the versatility of the automatic driving simulation test system.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的 实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present disclosure, and are used together with the specification to explain the technical solutions of the present disclosure.
图1是本公开实施例公开的一种自动驾驶仿真方法的流程示意图;FIG. 1 is a schematic flowchart of an automatic driving simulation method disclosed in an embodiment of the present disclosure;
图2是本公开实施例公开的一种消息管理器的结构示意图;Figure 2 is a schematic structural diagram of a message manager disclosed in an embodiment of the present disclosure;
图3是本公开实施例公开的一种自动驾驶仿真测试系统的架构示意图;FIG. 3 is a schematic diagram of the architecture of an automatic driving simulation test system disclosed in an embodiment of the present disclosure;
图4是本公开实施例公开的另一种自动驾驶仿真测试系统的结构示意图;4 is a schematic structural diagram of another automatic driving simulation test system disclosed in an embodiment of the present disclosure;
图5是本公开实施例公开的一种电子设备的结构示意图。Fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。本公开的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The term "and/or" in the present disclosure is merely an association relationship describing associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, and A and B exist at the same time. There are three cases of B alone. In addition, the term "at least one" in this document means any one of a plurality of or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C. The terms “first”, “second”, etc. in the specification, claims, and drawings of the present disclosure are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本公开的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present disclosure. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
下面对本公开实施例进行详细介绍。The embodiments of the present disclosure are described in detail below.
请参阅图1,图1是本公开实施例公开的一种自动驾驶仿真方法的流程示意图,如图1所示,该自动驾驶仿真方法可以由消息管理器执行,具体可包括如下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an automatic driving simulation method disclosed in an embodiment of the present disclosure. As shown in FIG. 1, the automatic driving simulation method may be executed by a message manager, and may specifically include the following steps:
101、消息管理器接收车辆仿真器发送的第一车辆状态信息,该第一车辆状态信息包括第一底盘信息和第一定位信息。101. The message manager receives first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information.
本公开实施例中涉及的自动驾驶系统(Auto Driving System),又称自动驾驶控制系统, 用于控制汽车或机器人在无人驾驶控制的情形下自动行驶。The automatic driving system (Auto Driving System) involved in the embodiments of the present disclosure, also known as an automatic driving control system, is used to control a car or a robot to drive automatically under unmanned driving control.
通过车辆仿真器可以实现自动驾驶系统的车辆仿真,测试自动驾驶系统性能。而本公开实施例中的消息管理器可以实现自动驾驶系统和车辆仿真器之间的数据转换和转发。The vehicle simulator can realize the vehicle simulation of the automatic driving system and test the performance of the automatic driving system. The message manager in the embodiment of the present disclosure can realize data conversion and forwarding between the automatic driving system and the vehicle simulator.
上述消息管理器可以为硬件设备,该自动驾驶仿真方法可以通过消息管理器中的处理器调用存储器中存储的计算机可读指令的方式来实现。在一种实施方式中,该消息管理器的产品形态也可能是软件,或者软硬一体的电子设备等等。比如通过软件侧的平台开发,可以在软件侧获得软件形态的消息管理器,或者将开发设计的软件程序部署在电子设备上,以执行如图1实施例中的消息管理器可执行的方法。The foregoing message manager may be a hardware device, and the automatic driving simulation method may be implemented by a processor in the message manager calling computer-readable instructions stored in a memory. In an implementation manner, the product form of the message manager may also be software, or an electronic device integrating software and hardware, and so on. For example, through platform development on the software side, a software message manager can be obtained on the software side, or a software program developed and designed can be deployed on an electronic device to execute the method executable by the message manager in the embodiment of FIG. 1.
本公开实施例通过设置消息管理器作为中间站,可以进行数据处理和转发,作为车辆仿真器和自动驾驶系统的数据交流桥梁,可以解决一般车辆仿真器提供的数据或者数据接口并不满足特定的自动驾驶系统项目的数据需求,导致两者无法进行数据交换的问题。In the embodiments of the present disclosure, by setting the message manager as an intermediate station, data processing and forwarding can be performed, and as a data exchange bridge between the vehicle simulator and the automatic driving system, it can solve that the data or data interface provided by the general vehicle simulator does not meet specific requirements. The data requirements of the autonomous driving system project caused the problem of data exchange between the two.
具体的,消息管理器可以接收车辆仿真器发送的第一车辆状态信息,该第一车辆状态信息包括第一底盘信息和第一定位信息。Specifically, the message manager may receive the first vehicle state information sent by the vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information.
其中,该第一底盘信息可包括以下一种或多种:速度、加速度、姿态信息;姿态信息包括以下一种或多种:偏航角、方向盘转角。该第一定位信息为目标车辆的定位信息,具体可以为坐标信息或者经纬度信息等。The first chassis information may include one or more of the following: speed, acceleration, and attitude information; the attitude information may include one or more of the following: yaw angle, steering wheel angle. The first positioning information is positioning information of the target vehicle, and specifically may be coordinate information or latitude and longitude information.
以目标车辆为本次自动驾驶系统和车辆仿真器的仿真对象为例,车辆仿真器可以根据自动驾驶系统发送的、经消息管理器转换和转发的控制信号,对目标车辆进行车辆仿真处理,获得目标车辆的车辆状态信息,其中自动驾驶系统所输出的控制信号可包括以下一种或多种:目标车辆的待处理定位信息、油门数据、刹车数据、档位、方向盘转角,这些数据可以由自动驾驶系统的自动驾驶算法获得,并周期性地更新。Taking the target vehicle as the simulation object of this automatic driving system and vehicle simulator as an example, the vehicle simulator can perform vehicle simulation processing on the target vehicle according to the control signal sent by the automatic driving system and converted and forwarded by the message manager to obtain The vehicle status information of the target vehicle, where the control signal output by the automatic driving system may include one or more of the following: the target vehicle’s pending positioning information, throttle data, brake data, gear position, steering wheel angle, these data can be controlled by the automatic The automatic driving algorithm of the driving system is obtained and updated periodically.
在接收到车辆仿真器发送的第一车辆状态信息之后,可以执行步骤102。After receiving the first vehicle state information sent by the vehicle simulator, step 102 may be executed.
在一种可选的实施方式中,对于自动驾驶仿真任务可以设置智能体管理器,该方法还包括:In an optional implementation manner, an agent manager can be set for the automated driving simulation task, and the method further includes:
上述消息管理器对上述第一底盘信息和上述第一定位信息进行格式转换,获得目标车辆的信息,向智能体管理器发送目标车辆的信息,其中,该目标车辆为上述车辆仿真器中的仿真车辆,该目标车辆的信息用于:在智能体管理器加载车辆仿真场景的情况下,根据目标车辆的信息更新车辆仿真场景中智能体的状态以获得第一感知信息;The message manager performs format conversion on the first chassis information and the first positioning information, obtains the information of the target vehicle, and sends the information of the target vehicle to the agent manager, where the target vehicle is a simulation in the vehicle simulator. A vehicle, the information of the target vehicle is used to: when the agent manager loads the vehicle simulation scene, update the state of the agent in the vehicle simulation scene according to the information of the target vehicle to obtain the first perception information;
该消息管理器对该第一感知信息进行格式转换,获得第二感知信息,向自动驾驶系统发送该第二感知信息,以使该自动驾驶系统根据该第二感知信息和第二车辆状态信息进行决策规划,获得第一控制信号。The message manager performs format conversion on the first perception information, obtains the second perception information, and sends the second perception information to the automatic driving system, so that the automatic driving system performs processing according to the second perception information and the second vehicle status information. Make decisions and plans and get the first control signal.
具体的,智能体管理器可以加载车辆仿真场景,该车辆仿真场景包括智能体,该智能体可以包括至少一车辆。可选的,该智能体还包括以下一种或多种:非机动车、动物、行人、交通锥、交通灯、交通标志、道路标识、车道线、障碍物,此处不做限制。Specifically, the agent manager may load a vehicle simulation scene, the vehicle simulation scene includes an agent, and the agent may include at least one vehicle. Optionally, the agent also includes one or more of the following: non-motorized vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, obstacles, and there is no restriction here.
上述目标车辆为上述车辆仿真器中的仿真车辆,消息管理器还可以将车辆仿真器发送的上述第一底盘信息和上述第一定位信息转换为上述目标车辆的信息,向智能体管理器发送该目标车辆的信息,从而使智能体管理器在加载车辆仿真场景的情况下,可以根据该目标车辆的信息来更新车辆仿真场景中智能体的状态,获得上述第一感知信息。可以理解为,智能体管理器可以根据车辆仿真器发送的经消息管理器转换、转发的目标车辆的信息,来控制车辆仿真场景中智能体,具体可以为:将车辆仿真场景中的目标车辆的信息发送给该车辆仿真场景中的其他智能体,以使其他智能体根据该仿真车辆的信息更新自身状态。The target vehicle is a simulated vehicle in the vehicle simulator, and the message manager may also convert the first chassis information and the first positioning information sent by the vehicle simulator into the target vehicle information, and send the information to the agent manager The information of the target vehicle, so that the agent manager can update the state of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded, and obtain the above-mentioned first perception information. It can be understood that the agent manager can control the agent in the vehicle simulation scene according to the information of the target vehicle sent by the vehicle simulator that is converted and forwarded by the message manager. The information is sent to other agents in the vehicle simulation scene, so that other agents can update their own state according to the information of the simulated vehicle.
该消息管理器将该第一感知信息转换为第二感知信息之后,可以向上述自动驾驶系统发送第二感知信息。自动驾驶系统可以根据第二感知信息和前述获得的第二车辆状态信息综合进行决策规划,从而控制目标车辆在行驶时考虑周边智能体状态,获得上述第一控制信号。After converting the first perception information into the second perception information, the message manager may send the second perception information to the aforementioned automatic driving system. The automatic driving system can comprehensively make decision planning based on the second perception information and the obtained second vehicle state information, so as to control the target vehicle to consider the state of the surrounding agents when driving, and obtain the above-mentioned first control signal.
102、该消息管理器对该第一底盘信息和该第一定位信息进行格式转换,获得第二底盘信息和第二定位信息,向自动驾驶系统发送该第二底盘信息和该第二定位信息。102. The message manager performs format conversion on the first chassis information and the first positioning information, obtains the second chassis information and the second positioning information, and sends the second chassis information and the second positioning information to the automatic driving system.
消息管理器可以实现车辆仿真器和自动驾驶系统之间的信息格式转换,具体的,消息管理器中可以预先设置不同消息类型的数据在车辆仿真器与自动驾驶系统间的格式映射关系,以及不同消息类型的数据在数据接口间的转发映射关系;当接收到其中一方发送的数据时,可以首先识别数据确定该数据的消息类型,比如为第一底盘信息属于底盘信息,则可以根据底盘信息在车辆仿真器与自动驾驶系统间的格式映射关系,确定该第一底盘信息对应的转换格式,执行格式转换从而获得对应的第二底盘信息;并且,根据底盘信息在数据接口间的转发映射关系,可以确定该第一底盘信息对应的转发对象为自动驾驶系统的数据接口,以在获得第二底盘信息之后将该第二底盘信息发送给自动驾驶系统。The message manager can realize the information format conversion between the vehicle simulator and the automatic driving system. Specifically, the message manager can pre-set the format mapping relationship between the vehicle simulator and the automatic driving system of data of different message types, as well as different The forwarding and mapping relationship of message type data between data interfaces; when receiving data sent by one of the parties, the data can be identified first to determine the message type of the data. For example, if the first chassis information belongs to chassis information, you can The format mapping relationship between the vehicle simulator and the automatic driving system is determined, the conversion format corresponding to the first chassis information is determined, and the format conversion is performed to obtain the corresponding second chassis information; and, according to the forwarding mapping relationship between the chassis information in the data interface, It may be determined that the forwarding object corresponding to the first chassis information is the data interface of the automatic driving system, so as to send the second chassis information to the automatic driving system after obtaining the second chassis information.
同样的,消息管理器可以将该第一定位信息进行格式转换,从而获得第二定位信息并发送给自动驾驶系统。Similarly, the message manager can convert the format of the first positioning information to obtain the second positioning information and send it to the automatic driving system.
103、该消息管理器接收该自动驾驶系统发送的第一控制信号,对该第一控制信号进行格式转换,获得第二控制信号,该第二控制信号用于该车辆仿真器更新该车辆状态信息。103. The message manager receives the first control signal sent by the automatic driving system, performs format conversion on the first control signal, and obtains a second control signal, which is used by the vehicle simulator to update the vehicle state information .
与前述步骤102中描述的方法类似的,消息管理器可以接收自动驾驶系统发送的第一控制信号,该第一控制信号可包括以下一种或多种:待处理定位信息、油门数据、刹车数据、档位、方向盘转角。Similar to the method described in step 102, the message manager may receive the first control signal sent by the autopilot system, and the first control signal may include one or more of the following: positioning information to be processed, throttle data, brake data , Gears, steering wheel angle.
同样以目标车辆作为本次自动驾驶系统和车辆仿真器进行仿真的车辆为例,自动驾驶系统可以根据车辆仿真器发送的、经消息管理器转换和转发的目标车辆的车辆状态信息进行处理,获得该目标车辆的控制信号,并通过消息管理器的转换,转发给车辆仿真器。具体的,消息管理器在接收到自动驾驶系统发送的第一控制信号的情况下,同样对该第一控制信号进行格式转换,获得第二控制信号,可以执行步骤104。Also take the target vehicle as the vehicle simulated by the autopilot system and the vehicle simulator as an example. The autopilot system can process the vehicle status information of the target vehicle sent by the vehicle simulator and converted and forwarded by the message manager to obtain The control signal of the target vehicle is forwarded to the vehicle simulator through the conversion of the message manager. Specifically, when the message manager receives the first control signal sent by the automatic driving system, it also performs format conversion on the first control signal to obtain the second control signal, and step 104 may be executed.
104、该消息管理器向该车辆仿真器发送该第二控制信号。104. The message manager sends the second control signal to the vehicle simulator.
消息管理器在通过将自动驾驶系统的第一控制信号的数据格式,转换为适合车辆管理器处理的数据格式得到第二控制信号后,将第二控制信号发送给车辆仿真器,使车辆仿真器可以根据该第二控制信号更新目标车辆的车辆状态信息。After the message manager obtains the second control signal by converting the data format of the first control signal of the automatic driving system into a data format suitable for processing by the vehicle manager, the message manager sends the second control signal to the vehicle simulator to enable the vehicle simulator The vehicle state information of the target vehicle can be updated according to the second control signal.
在一种实施方式中,步骤104之后,该方法还包括:In an embodiment, after step 104, the method further includes:
消息管理器接收车辆仿真器发送的第二车辆状态信息,其中,该第二车辆状态信息包括由该车辆仿真器根据上述第二控制信号更新上述车辆状态信息后获得的第三底盘信息和第三定位信息。The message manager receives the second vehicle status information sent by the vehicle simulator, where the second vehicle status information includes the third chassis information and third chassis information obtained after the vehicle simulator updates the vehicle status information according to the second control signal. Positioning information.
具体的,车辆仿真器在接收到第二控制信号之后,可以根据第二控制信号更新车辆状态信息,获得第二车辆状态信息,包括第三底盘信息和第三定位信息,并发送给消息管理器,消息管理器再对该第二车辆状态信息进行处理,具体如步骤101所述,此处不再赘述。可见,该步骤可以周期性地执行,直到自动驾驶仿真任务结束。Specifically, after receiving the second control signal, the vehicle simulator can update the vehicle state information according to the second control signal, obtain the second vehicle state information, including the third chassis information and the third positioning information, and send it to the message manager , The message manager then processes the second vehicle status information, which is specifically described in step 101, which will not be repeated here. It can be seen that this step can be executed periodically until the automatic driving simulation task ends.
消息管理器中可以设置和更改自动驾驶系统的接口,以能够适配不同的自动驾驶系统进行仿真测试。同时也可以设置和更改车辆仿真器的接口,从而可以更换不同的车辆仿真器进行应用。一般现有的自动驾驶系统数据接口需要适配车辆仿真器进行开发,如果测试系统中更换其他类型的车辆仿真器,而自动驾驶系统则需要针对新的车辆仿真器重新开发,否则无法适配使用,开发成本非常高。而本公开通过在测试系统中增设消息管理器,通过消息管理器进行自动驾驶系统和车辆模拟器之间交互的数据的转换处理和转发,需要更换车辆仿真器时,修改消息管理器与车辆仿真器之间的通信接口部,而无需重新设计自动驾驶系统,由此提高了自动驾驶系统的兼容性;和/或,需要更换待测试的自动驾驶系统时,修改消息管理器与自动驾驶系统之间的通信接口部,无需将车辆仿真器更换为与新的自动驾驶系统适配的车辆仿真器;可选的,若测试系统还设置智能体管理器,在前述基础上,需要更换智能体管理器时,修改消息管理器和智能体管理器之间的通信接口部,而无需重新设计自动驾驶系统和车辆仿真器,由此降低成本,提高自动驾驶仿真测试装置的通用性。The interface of the autopilot system can be set and changed in the message manager to be able to adapt to different autopilot systems for simulation testing. At the same time, the interface of the vehicle simulator can be set and changed, so that different vehicle simulators can be used for application. Generally, the existing automatic driving system data interface needs to be adapted to the vehicle simulator for development. If other types of vehicle simulators are replaced in the test system, the automatic driving system needs to be re-developed for the new vehicle simulator, otherwise it cannot be adapted to use , The development cost is very high. In the present disclosure, a message manager is added to the test system, and the message manager is used to convert and forward the data exchanged between the autopilot system and the vehicle simulator. When the vehicle simulator needs to be replaced, the message manager and vehicle simulator are modified. The communication interface between the autopilot devices without the need to redesign the autopilot system, thereby improving the compatibility of the autopilot system; and/or, when the autopilot system to be tested needs to be replaced, the message manager and the autopilot system need to be modified. There is no need to replace the vehicle simulator with a vehicle simulator that is compatible with the new automatic driving system. Optionally, if the test system is also equipped with an agent manager, based on the foregoing, the agent management needs to be replaced The communication interface between the message manager and the agent manager is modified without the need to redesign the automatic driving system and the vehicle simulator, thereby reducing the cost and improving the versatility of the automatic driving simulation test device.
本公开实施例通过消息管理器接收车辆仿真器发送的第一车辆状态信息,该第一车辆状态信息包括第一底盘信息和第一定位信息,再对该第一底盘信息和该第一定位信息进行 格式转换,获得第二底盘信息和第二定位信息,向自动驾驶系统发送该第二底盘信息和该第二定位信息。消息管理器还接收自动驾驶系统发送的第一控制信号,对该第一控制信号进行格式转换,获得第二控制信号,该第二控制信号用于该车辆仿真器更新该车辆状态信息。该消息管理器向该车辆仿真器发送该第二控制信号,可以实现数据格式转换和转发的功能,通过消息管理器转换后的数据格式更用于转发对象接收并处理,使自动驾驶仿真测试能够快速、正确执行,提高数据处理的稳定性。比如,消息管理器可以将待测试的自动驾驶系统的自定义控制信号转换为通用的、可被车辆仿真器识别并处理的控制信号,便于更准确地在车辆仿真器中执行自动驾驶仿真任务。由于控制信号主要包括车辆的底盘信息和定位信息这些较为简单的参数,解析简便,因此消息管理器可以快速地进行识别和转换。同时使车辆仿真器和自动驾驶系统不再需要配套开发,即可以在不修改车辆仿真器源码或者自动驾驶系统源码的基础上,只需更换中间的消息管理器则可以进行数据交换并准确完成自动驾驶仿真测试,提高了自动驾驶系统的兼容性,和自动驾驶仿真测试系统的通用性。The embodiment of the present disclosure receives the first vehicle state information sent by the vehicle simulator through the message manager, the first vehicle state information includes the first chassis information and the first positioning information, and then the first chassis information and the first positioning information The format conversion is performed to obtain the second chassis information and the second positioning information, and the second chassis information and the second positioning information are sent to the automatic driving system. The message manager also receives the first control signal sent by the automatic driving system, performs format conversion on the first control signal, and obtains a second control signal, which is used by the vehicle simulator to update the vehicle state information. The message manager sends the second control signal to the vehicle simulator, which can realize the function of data format conversion and forwarding. The data format converted by the message manager is used for the forwarding object to receive and process, so that the automatic driving simulation test can be Fast and correct execution improves the stability of data processing. For example, the message manager can convert the custom control signal of the autopilot system to be tested into a general control signal that can be recognized and processed by the vehicle simulator, so that the autopilot simulation task can be executed more accurately in the vehicle simulator. Since the control signal mainly includes the relatively simple parameters of the vehicle's chassis information and positioning information, and the analysis is simple, the message manager can quickly identify and convert. At the same time, the vehicle simulator and the automatic driving system no longer need to be developed, that is, on the basis of not modifying the source code of the vehicle simulator or the source code of the automatic driving system, only the middle message manager can be replaced to exchange data and complete the automatic operation accurately. The driving simulation test improves the compatibility of the automatic driving system and the versatility of the automatic driving simulation test system.
本领域技术人员可以理解,在具体实施方式的方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the method of specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible inherent Logic is determined.
前文主要从方法侧执行过程的角度对本公开实施例的方案进行了介绍。可以理解的是,消息管理器和/或自动驾驶仿真测试系统为了实现前文所述的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本公开能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。The foregoing mainly introduces the solutions of the embodiments of the present disclosure from the perspective of the execution process on the method side. It can be understood that, in order to realize the aforementioned functions, the message manager and/or the automated driving simulation test system includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should be aware that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for specific applications to implement the described functions, but such implementation should not be considered as going beyond the scope of the present disclosure.
本公开实施例可以根据前文所述的方法示例对消息管理器进行功能单元(模块)的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。该集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本公开实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present disclosure can divide the message manager into functional units (modules) according to the method examples described above. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one. Processing unit. The integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present disclosure is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
请参见图2,图2是本公开实施例提供的一种消息管理器的结构示意图,如图2所示,消息管理器200包括:Please refer to FIG. 2. FIG. 2 is a schematic structural diagram of a message manager provided by an embodiment of the present disclosure. As shown in FIG. 2, the message manager 200 includes:
传输模块210,用于接收车辆仿真器发送的第一车辆状态信息,该第一车辆状态信息包括第一底盘信息和第一定位信息;The transmission module 210 is configured to receive first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
转换模块220,用于对该第一底盘信息和该第一定位信息进行格式转换,获得第二底盘信息和第二定位信息;该传输模块210还用于,向自动驾驶系统发送该第二底盘信息和该第二定位信息;The conversion module 220 is used for format conversion of the first chassis information and the first positioning information to obtain second chassis information and second positioning information; the transmission module 210 is also used for sending the second chassis to the automatic driving system Information and the second positioning information;
该传输模块210还用于,接收该自动驾驶系统发送的第一控制信号;该转换模块220还用于,对该第一控制信号进行格式转换,获得第二控制信号,该第二控制信号用于该车辆仿真器更新该车辆状态信息;The transmission module 210 is also used to receive the first control signal sent by the automatic driving system; the conversion module 220 is also used to format the first control signal to obtain a second control signal, and the second control signal is used Update the vehicle status information in the vehicle simulator;
该传输模块210还用于,向该车辆仿真器发送该第二控制信号。The transmission module 210 is also used to send the second control signal to the vehicle simulator.
可选的,该传输模块210还用于,向该车辆仿真器发送该第二控制信号之后,接收该车辆仿真器发送的第二车辆状态信息,其中,该第二车辆状态信息包括由该车辆仿真器根据该第二控制信号更新该车辆状态信息后获得的第三底盘信息和第三定位信息。Optionally, the transmission module 210 is further configured to, after sending the second control signal to the vehicle simulator, receive second vehicle status information sent by the vehicle simulator, where the second vehicle status information includes The third chassis information and third positioning information obtained after the simulator updates the vehicle state information according to the second control signal.
可选的,该第二控制信号包括:待处理定位信息、油门数据、刹车数据、档位和/或方向盘转角;Optionally, the second control signal includes: positioning information to be processed, throttle data, braking data, gear position and/or steering wheel angle;
和/或,该第一底盘信息包括速度、加速度和/或姿态信息,该姿态信息包括偏航角和/或方向盘转角。And/or, the first chassis information includes speed, acceleration, and/or attitude information, and the attitude information includes yaw angle and/or steering wheel angle.
可选的,该转换模块220还用于,对该第一底盘信息和该第一定位信息进行格式转换,获得目标车辆的信息;该传输模块210还用于,向智能体管理器发送该目标车辆的信息,其中,该目标车辆的信息用于:该智能体管理器在加载车辆仿真场景的情况下,根据该目标车辆的信息更新该车辆仿真场景中智能体的状态以获得第一感知信息;Optionally, the conversion module 220 is further configured to perform format conversion on the first chassis information and the first positioning information to obtain information about the target vehicle; the transmission module 210 is also configured to send the target vehicle to the agent manager Vehicle information, where the target vehicle information is used to: when the agent manager loads the vehicle simulation scene, update the state of the agent in the vehicle simulation scene according to the target vehicle information to obtain the first perception information ;
该转换模块220还用于,对该第一感知信息进行格式转换,获得第二感知信息;该传输模块210还用于,向该自动驾驶系统发送该第二感知信息,以使该自动驾驶系统根据该第二感知信息和该第二车辆状态信息进行决策规划,获得该第一控制信号。The conversion module 220 is also used for format conversion of the first perception information to obtain second perception information; the transmission module 210 is also used for sending the second perception information to the automatic driving system, so that the automatic driving system A decision plan is made according to the second perception information and the second vehicle state information, and the first control signal is obtained.
可以参见图3,图3是本公开实施例提供的一种自动驾驶仿真测试系统的结构示意图。如图3所示,其中自动驾驶仿真测试系统300包括:Refer to FIG. 3, which is a schematic structural diagram of an automatic driving simulation test system provided by an embodiment of the present disclosure. As shown in Fig. 3, the automated driving simulation test system 300 includes:
自动驾驶系统330、车辆仿真器320和如图2所示的消息管理器200。可选的,该自动驾驶仿真测试系统还可以包括如图1所示实施例中提到的智能体管理器340。The automatic driving system 330, the vehicle simulator 320, and the message manager 200 as shown in FIG. 2. Optionally, the automated driving simulation test system may further include the agent manager 340 mentioned in the embodiment shown in FIG. 1.
为了进一步清楚地描述本申请实施例中的自动驾驶仿真方法和自动驾驶仿真测试系统,请参阅图4,图4是本公开实施例公开的另一种自动驾驶仿真测试系统的结构示意图。如图4所示,自动驾驶仿真测试系统包括车辆仿真器410、消息管理器420、智能体管理器430和自动驾驶系统440,其中自动驾驶系统440为待测试的系统。In order to further clearly describe the automatic driving simulation method and the automatic driving simulation test system in the embodiments of the present application, please refer to FIG. 4, which is a schematic structural diagram of another automatic driving simulation test system disclosed in an embodiment of the present disclosure. As shown in FIG. 4, the automatic driving simulation test system includes a vehicle simulator 410, a message manager 420, an agent manager 430, and an automatic driving system 440, where the automatic driving system 440 is a system to be tested.
举例来讲,基于图一所示实施例中的具体描述和图4所示的自动驾驶仿真测试系统的架构,其自动驾驶仿真流程具体可以包括:For example, based on the specific description in the embodiment shown in FIG. 1 and the architecture of the automated driving simulation test system shown in FIG. 4, the automated driving simulation process may specifically include:
(1)车辆仿真器410可以从消息管理器420中获取通用的控制信号进行自身的位置更新,同时发送通用的第一底盘信息和第一定位信息至消息管理器420;(1) The vehicle simulator 410 can obtain general control signals from the message manager 420 to update its own position, and at the same time send general first chassis information and first positioning information to the message manager 420;
(2)消息管理器420可以将第一底盘信息和第一定位信息转换为目标车辆的信息,发送给智能体管理器430,以及将第一底盘信息和第一定位信息转换为第二底盘信息和第二定位信息,发送给自动驾驶系统440;(2) The message manager 420 may convert the first chassis information and the first positioning information into target vehicle information, send it to the agent manager 430, and convert the first chassis information and the first positioning information into second chassis information And the second positioning information, sent to the automatic driving system 440;
(3)智能体管理器430通过消息管理器420得到目标车辆的信息进行处理,控制所管理的智能体对目标车辆进行响应,并更新智能体自身状态,获得第一感知信息,发送给消息管理器420;(3) The agent manager 430 obtains the target vehicle information through the message manager 420 for processing, controls the managed agent to respond to the target vehicle, updates the agent's own state, obtains the first perception information, and sends it to the message manager 420;
(4)消息管理器420还可以将第一感知信息转换为第二感知信息,发送给自动驾驶系统440;(4) The message manager 420 may also convert the first perception information into second perception information, and send it to the automatic driving system 440;
(5)自动驾驶系统440可以根据第二底盘信息、第二定位信息和第二感知信息进行目标车辆的自动驾驶控制,输出第一控制信号,并发送给消息管理器420;(5) The automatic driving system 440 may perform automatic driving control of the target vehicle according to the second chassis information, the second positioning information, and the second perception information, output the first control signal, and send it to the message manager 420;
(6)消息管理器420可以将第一控制信号转换为第二控制信号并发送给车辆仿真器410。车辆仿真器410可以响应于第二控制信号执行如(1)所述的处理步骤,即以上步骤(1)-(6)可以周期性地执行,直到自动驾驶仿真测试结束。(6) The message manager 420 may convert the first control signal into a second control signal and send it to the vehicle simulator 410. The vehicle simulator 410 may execute the processing steps described in (1) in response to the second control signal, that is, the above steps (1)-(6) may be executed periodically until the automatic driving simulation test ends.
在一种可选的实施方式中,自动驾驶系统440包括定位模块441、地图模块442、决策规划模块443和控制器444,其中:In an alternative embodiment, the automatic driving system 440 includes a positioning module 441, a map module 442, a decision planning module 443, and a controller 444, wherein:
地图模块442,用于加载地图并在地图上显示至少一个目标车辆;The map module 442 is used to load the map and display at least one target vehicle on the map;
定位模块441用于获取来自消息管理器的第二底盘信息和第二位置信息,并根据该第二底盘信息和该第二位置信息确定并更新该地图中该目标车辆的状态,该目标车辆为该车辆仿真器中的仿真车辆;The positioning module 441 is used to obtain the second chassis information and second location information from the message manager, and determine and update the state of the target vehicle in the map according to the second chassis information and the second location information. The target vehicle is The simulated vehicle in the vehicle simulator;
决策规划模块443,用于根据该目标车辆的状态和来自消息管理器的第二感知信息,确定该地图中的该目标车辆的驾驶决策结果;控制器44用于根据该目标车辆的该驾驶决策结果获得第一控制信号,向该消息管理器发送该第一控制信号。The decision planning module 443 is configured to determine the driving decision result of the target vehicle in the map according to the state of the target vehicle and the second perception information from the message manager; the controller 44 is configured to determine the driving decision result of the target vehicle according to the target vehicle. As a result, the first control signal is obtained, and the first control signal is sent to the message manager.
具体的,自动驾驶系统440中的地图模块442,用于加载地图并在地图上显示至少一个目标车辆;Specifically, the map module 442 in the automatic driving system 440 is used to load the map and display at least one target vehicle on the map;
定位模块441可以获取来自消息管理器420的第二底盘信息和第二位置信息,根据第二底盘信息和第二位置信息确定并更新在地图中目标车辆的状态,决策规划模块443再根据该目标车辆的状态和来自消息管理器420的第二感知信息,以对车辆的后续行驶路径、方向、速度等进行决策,确定地图中的目标车辆的驾驶决策结果;控制器444则可以根据该驾驶决策结果获得第一控制信号,而自动驾驶系统440可以向消息管理器420发送该第 一控制信号。The positioning module 441 can obtain the second chassis information and the second location information from the message manager 420, determine and update the status of the target vehicle on the map according to the second chassis information and the second location information, and then the decision-making and planning module 443 then according to the target The state of the vehicle and the second perception information from the message manager 420 are used to make decisions on the subsequent driving path, direction, speed, etc. of the vehicle to determine the driving decision result of the target vehicle on the map; the controller 444 can then make a decision based on the driving decision. As a result, the first control signal is obtained, and the automatic driving system 440 may send the first control signal to the message manager 420.
对于仿真结果,可以依靠所测试的自动驾驶系统400自带的可视化功能进行输出,即自动驾驶仿真测试系统400可以显示仿真视频、图像等数据。The simulation result can be output by relying on the visualization function of the autopilot system 400 under test, that is, the autopilot simulation test system 400 can display data such as simulation videos and images.
在一种可选的实施方式中,车辆仿真器410存储有车辆动力学模型,该车辆动力学模型基于通过实际车辆传感器采集的车辆行驶过程中的数据预先建立;In an optional implementation manner, the vehicle simulator 410 stores a vehicle dynamics model, which is pre-established based on data collected by actual vehicle sensors during the driving process of the vehicle;
车辆仿真器410用于:The vehicle simulator 410 is used for:
获取该消息管理器发送的第二控制信号;Acquiring the second control signal sent by the message manager;
基于该车辆动力学模型和该第二控制信号更新车辆状态信息,获得第二车辆状态信息,该第二车辆状态信息包括第三底盘信息和第三定位信息;Update vehicle state information based on the vehicle dynamics model and the second control signal to obtain second vehicle state information, where the second vehicle state information includes third chassis information and third positioning information;
向该消息管理器发送该第二车辆状态信息。Send the second vehicle status information to the message manager.
本公开实施例中的车辆仿真器410可以利用预设的车辆动力学模型描述仿真车辆的运动方式。通过实际车辆传感器采集车辆行驶过程中的数据,预先建立更真实的车辆动力学模型,并应用在该车辆仿真器410中,使得车辆仿真器410可以基于该车辆动力学模型和接收到的第二控制信号更新车辆状态信息,从而获得第二车辆状态信息。The vehicle simulator 410 in the embodiment of the present disclosure may use a preset vehicle dynamics model to describe the movement mode of the simulated vehicle. Collect data during the driving process of the vehicle through actual vehicle sensors, establish a more realistic vehicle dynamics model in advance, and apply it in the vehicle simulator 410, so that the vehicle simulator 410 can be based on the vehicle dynamics model and the received second vehicle dynamics model. The control signal updates the vehicle state information, thereby obtaining the second vehicle state information.
其中,自动驾驶系统440所生成、经消息管理器420转换和转发的第二控制信息,其中油门数据、刹车数据、方向盘转角等在计算过程中不够具象化,可以首先进行转化,再在车辆仿真器410中进行运算。因此可以在车辆动力学模型中预先设置车辆的油门数据、刹车数据、档位与速度、加速度的映射关系,以及预先设置车辆的方向盘转角和车辆前轮转角的转动比例关系。Among them, the second control information generated by the automatic driving system 440, converted and forwarded by the message manager 420, in which the throttle data, brake data, steering wheel angle, etc. are not sufficiently visualized in the calculation process, and can be converted first, and then simulated in the vehicle. The operation is performed in the device 410. Therefore, the vehicle's accelerator data, brake data, the mapping relationship between gear and speed, acceleration, and the rotation ratio between the steering wheel angle of the vehicle and the front wheel angle of the vehicle can be preset in the vehicle dynamics model.
进一步具体的,该车辆动力学模型的建立过程包括:More specifically, the establishment process of the vehicle dynamics model includes:
获取通过传感器采集的真实车辆在道路上行驶的第一数据,该第一数据包括多组油门数据、刹车数据与速度、加速度,其中该油门数据、该刹车数据与该速度、该加速度具有对应关系;Acquire first data of a real vehicle traveling on the road collected by a sensor. The first data includes multiple sets of throttle data, brake data, speed, and acceleration, where the throttle data, the brake data, and the speed, and the acceleration have a corresponding relationship ;
基于该第一数据构建车辆的油门数据、刹车数据、档位与速度、加速度的映射关系;Based on the first data, a mapping relationship between accelerator data, brake data, gear position and speed and acceleration of the vehicle is constructed;
获取通过传感器采集的真实车辆在道路上行驶的第二数据,该第二数据包括多组方向盘转角和车辆前轮转角,该方向盘转角和该车辆前轮转角具有对应关系;Acquiring second data of a real vehicle traveling on a road collected by a sensor, the second data including multiple sets of steering wheel angles and vehicle front wheel angles, and the steering wheel angle and the vehicle front wheel angle have a corresponding relationship;
基于该第二数据构建车辆的方向盘转角和车辆前轮转角的转动比例关系;Based on the second data, construct a rotation proportional relationship between the steering wheel angle of the vehicle and the front wheel angle of the vehicle;
基于该映射关系和该转动比例关系获得车辆动力学模型。A vehicle dynamics model is obtained based on the mapping relationship and the rotation ratio relationship.
一般车辆仿真器中的仿真车辆与实际测试的车辆参数和性能并不一致。在进行仿真测试时需要获取车辆底层的参数,比如车的扭力扭矩、车辆功率、轮胎摩擦系数等等,这些参数一般难以获得,所以导致车辆的仿真难以很好地和实际路测车辆匹配。The parameters and performance of the simulated vehicle in the general vehicle simulator are not consistent with the actual vehicle parameters and performance. In the simulation test, it is necessary to obtain the parameters of the bottom of the vehicle, such as the torsion torque of the vehicle, vehicle power, tire friction coefficient, etc. These parameters are generally difficult to obtain, so the simulation of the vehicle is difficult to match the actual road test vehicle well.
本公开实施例中,预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,和预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,可以由采集的真实车辆数据统计获得。In the embodiment of the present disclosure, the preset mapping relationship between the accelerator data, brake data, gear position of the vehicle and the speed and acceleration of the vehicle, and the preset rotation ratio relationship between the steering wheel angle of the vehicle and the front wheel angle of the vehicle can be collected by The real vehicle data statistics are obtained.
具体的,为了尽可能仿真自动驾驶真实测试车辆,本公开实施例中首先可以利用传感器和真实车辆,通过驾驶真实车辆在道路上行驶的方式,随机、大量地采集多组油门数据、刹车数据与速度、加速度,其中该油门数据、该刹车数据与该速度、该加速度具有对应关系,以及可以测量多个车辆的多组方向盘转角和车辆前轮转角,该方向盘转角和该车辆前轮转角具有对应关系,然后通过插值拟合的方式,构建预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,以及预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,作为车辆动力学模型的纵向数学表达,从而可以实现对仿真车辆的控制只需要油门、刹车、档位和方向盘转角这些参数,便可以进行计算,输出车辆状态消息,这绕开了车辆不易提供底层性能参数的困境,能够比较真实地仿真实际路测车辆。Specifically, in order to simulate the automatic driving of real test vehicles as much as possible, in the embodiments of the present disclosure, sensors and real vehicles can be first used to randomly and massively collect multiple sets of throttle data, brake data and data by driving real vehicles on the road. Speed, acceleration, where the throttle data, the braking data and the speed, the acceleration have a corresponding relationship, and can measure multiple sets of steering wheel angles and vehicle front wheel angles of multiple vehicles, the steering wheel angle and the vehicle front wheel angle have a correspondence Relations, and then through interpolation fitting method to construct the preset vehicle throttle data, brake data, gears and vehicle speed, acceleration mapping relationship, and the preset vehicle steering wheel angle and vehicle front wheel angle of rotation ratio The relationship, as the longitudinal mathematical expression of the vehicle dynamics model, can realize the control of the simulated vehicle. Only the parameters such as accelerator, brake, gear position and steering wheel angle can be calculated and output vehicle status messages. This avoids the difficulty of vehicles. Provides the dilemma of the underlying performance parameters, which can more realistically simulate actual road test vehicles.
具体的,第二控制信号包括待处理定位信息、油门数据、刹车数据、档位和方向盘转角;Specifically, the second control signal includes to-be-processed positioning information, throttle data, braking data, gear position and steering wheel angle;
车辆仿真器410具体用于:The vehicle simulator 410 is specifically used for:
根据预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,获得该第二控制信号中的油门数据、刹车数据和档位对应的第一速度和第一加速度;Obtain the first speed and first acceleration corresponding to the throttle data, brake data and the gear in the second control signal according to the preset mapping relationship between the accelerator data, brake data, gear position and the speed and acceleration of the vehicle;
根据预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,将该第二控制信号中的方向盘转角转换为对应的第一前轮转角;Converting the steering wheel angle in the second control signal into the corresponding first front wheel angle according to the preset rotation ratio between the steering wheel angle of the vehicle and the front wheel angle of the vehicle;
获取目标车辆的第一偏航角,以及车辆前轮车轴中心到车辆重心的距离和车辆后轮车轴中心到车辆重心的距离;Obtain the first yaw angle of the target vehicle, and the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle and the distance from the center of the rear wheel axle of the vehicle to the center of gravity of the vehicle;
基于定位信息、第一速度、第一加速度、第一前轮转角、第一偏航角、车辆前轮车轴中心到车辆重心的距离和车辆后轮车轴中心到车辆重心的距离,获得第二车辆状态信息。Based on the positioning information, the first speed, the first acceleration, the first front wheel angle, the first yaw angle, the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle, and the distance from the center of the rear wheel axle of the vehicle to the center of gravity of the vehicle, the second vehicle is obtained status information.
在车辆仿真器410中,对于接收到的控制信号,根据预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,和预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,可以获得对应的第一速度、第一加速度和第一前轮转角,从而可以进行车辆状态的运算。具体的,可以获取该目标车辆的车辆前轮车轴中心到车辆重心的距离,和车辆后轮车轴中心到车辆重心的距离,该距离可以从车辆仿真器410本地获得,也可以由自动驾驶系统440设置并通过消息管理器420发送到车辆仿真器410。基于车辆仿真器410获得的定位信息、第一速度、第一加速度、第一前轮转角、第一偏航角、车辆前轮车轴中心到车辆重心的距离和车辆后轮车轴中心到车辆重心的距离,获得第二车辆状态信息, 具体可包括以下任意一种或几种:第二定位信息、第二速度、第二加速度和第二偏航角。本公开实施例中的车辆的定位信息可以使用车辆的位置坐标表示。In the vehicle simulator 410, for the received control signal, according to the preset vehicle's accelerator data, brake data, the mapping relationship between the gear and the vehicle's speed and acceleration, and the preset vehicle's steering wheel angle and the front wheel of the vehicle The rotation ratio relationship of the rotation angle can obtain the corresponding first speed, first acceleration and first front wheel rotation angle, so that the calculation of the vehicle state can be performed. Specifically, the distance from the center of the front wheel axle of the target vehicle to the center of gravity of the vehicle and the distance from the center of the rear wheel axle of the vehicle to the center of gravity of the vehicle can be obtained. It is set and sent to the vehicle simulator 410 through the message manager 420. Based on the positioning information obtained by the vehicle simulator 410, the first speed, the first acceleration, the first front wheel angle, the first yaw angle, the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle, and the distance from the center of the rear wheel axle of the vehicle to the center of gravity of the vehicle The distance to obtain the second vehicle state information may specifically include any one or more of the following: second positioning information, second speed, second acceleration, and second yaw angle. The positioning information of the vehicle in the embodiment of the present disclosure may be represented by the position coordinate of the vehicle.
本公开实施例中简化了车辆的悬挂系统、轮胎模型和环境模型,在一种实施方式中,获得的车辆动力学模型包括获得的映射关系和转动比例关系,在该映射关系和该转动比例关系的基础上的计算公式。其中提供的计算公式具体可以如下:In the embodiments of the present disclosure, the suspension system, tire model, and environment model of the vehicle are simplified. In one embodiment, the obtained vehicle dynamics model includes the obtained mapping relationship and the rotation ratio relationship, where the mapping relationship and the rotation ratio relationship are Based on the calculation formula. The calculation formula provided can be as follows:
x t+1=x t+v tcos(Ψ t+β)*dt; x t+1 = x t +v t cos(Ψ t +β)*dt;
y t+1=y t+v tsin(Ψ t+β)*dt; y t+1 =y t +v t sin(Ψ t +β)*dt;
Ψ t+1=Ψ t+v tl rsin(β)*dt; Ψ t+1t +v t l r sin(β)*dt;
v t+1=v t+a*dt; v t+1 =v t +a*dt;
Figure PCTCN2020141757-appb-000001
Figure PCTCN2020141757-appb-000001
其中,(x,y)表示车辆的位置坐标,v和a分别为车辆的速度和加速度,Ψ t为车辆偏航角,表示车体朝向,l f和l r分别为车辆重心到前轮车轴中点和后轮车轴中点的距离,δ f是车辆前轮转角,可以限定逆时针为负,也可以根据需要进行设置。由于大部分车辆的后轮都不可转动,所以本公开实施例的车辆动力学模型可以不考虑后轮转角,可一定程度减小数据处理量。 Among them, (x, y) represents the position coordinates of the vehicle, v and a are the speed and acceleration of the vehicle respectively, Ψ t is the yaw angle of the vehicle, which represents the direction of the vehicle body, and l f and l r are the vehicle's center of gravity to the front wheel axle respectively The distance between the midpoint and the midpoint of the rear wheel axle, δ f is the front wheel angle of the vehicle, which can be limited to negative counterclockwise, or it can be set as required. Since the rear wheels of most vehicles are not rotatable, the vehicle dynamics model of the embodiments of the present disclosure may not consider the rotation angle of the rear wheels, which can reduce the amount of data processing to a certain extent.
利用实际真实车辆参数和标定关系获得车辆动力学模型,更加接近真实道路测试用车,使仿真测试场景更丰富、更全面、准确。The vehicle dynamics model is obtained by using the actual real vehicle parameters and the calibration relationship, which is closer to the real road test vehicle, and makes the simulation test scene more abundant, more comprehensive and accurate.
通过该预设的车辆动力学模型,对仿真车辆的控制只需要油门数据、刹车数据、档位和方向盘转角,以及作为参考的待处理定位信息和车辆固定参数(l f和l r)便可以进行转换操作和计算处理,具体包括基于映射关系和转动比例关系对输入数据进行转换,再根据公式进行计算处理,最终输出车辆状态信息,包括车辆的位置更新(第二定位信息)、速度、加速度和姿态信息(包括第二偏航角和方向盘转角等),可以简捷、准确地实现自动驾驶仿真测试中的数据处理。 Through the preset vehicle dynamics model, the control of the simulated vehicle only needs throttle data, brake data, gear position and steering wheel angle, as well as the positioning information to be processed and the fixed vehicle parameters (l f and l r ) as a reference. Carry out conversion operation and calculation processing, specifically including the conversion of input data based on the mapping relationship and the rotation ratio relationship, and then perform calculation processing according to the formula, and finally output vehicle status information, including vehicle position update (second positioning information), speed, acceleration And attitude information (including the second yaw angle and steering wheel angle, etc.), data processing in the automatic driving simulation test can be realized simply and accurately.
在一种可选的实施方式中,自动驾驶仿真测试系统400还包括:智能体管理器430,用于:In an optional implementation manner, the automated driving simulation test system 400 further includes: an agent manager 430 for:
加载车辆仿真场景,车辆仿真场景包括智能体,该智能体包括至少一车辆;Load a vehicle simulation scene, the vehicle simulation scene includes an agent, and the agent includes at least one vehicle;
接收来自消息管理器420的目标车辆的信息,根据目标车辆的信息更新车辆仿真场景中智能体的状态,获得第一感知信息;Receiving the information of the target vehicle from the message manager 420, and updating the state of the agent in the vehicle simulation scene according to the information of the target vehicle to obtain the first perception information;
向消息管理器420发送该第一感知信息。The first perception information is sent to the message manager 420.
具体的,智能体管理器430可用于结合车辆仿真器410模拟仿真场景,该仿真场景中 的智能体为可以与目标车辆互动的元素,可选的,该智能体还包括以下一种或多种:非机动车、动物、行人、交通锥、交通灯、交通标志、道路标识、车道线、障碍物。需要注意的是,除了设置的仿真测试中关注的目标车辆,其他车辆可以为场景中模拟的交通流车辆。Specifically, the agent manager 430 can be used to combine with the vehicle simulator 410 to simulate a simulation scene. The agent in the simulation scene is an element that can interact with the target vehicle. Optionally, the agent also includes one or more of the following : Non-motorized vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, obstacles. It should be noted that, in addition to the target vehicle concerned in the set simulation test, other vehicles can be traffic flow vehicles simulated in the scene.
在智能体管理器430中可以设置和更改哪些智能体可以与仿真车辆发生交互行为,以及设定交互规则。智能体管理器430可以通过消息管理器420得到该目标车辆的信息,按照对应的交互规则控制所管理的智能体对目标车辆进行响应,更新自身状态获得感知信息,再反馈到消息管理器420。对于智能管理器430中的交通流车辆,可以使用预设的自动驾驶算法完成模拟行驶,能够和目标车辆进行交互。In the agent manager 430, which agents can interact with the simulated vehicle can be set and changed, and interaction rules can be set. The agent manager 430 may obtain the information of the target vehicle through the message manager 420, control the managed agent to respond to the target vehicle according to the corresponding interaction rules, update its own state to obtain perception information, and then feed back to the message manager 420. For the traffic flow vehicles in the smart manager 430, a preset automatic driving algorithm can be used to complete the simulated driving and can interact with the target vehicle.
消息管理器420可以将目标车辆所在的仿真场景中的智能体的第一感知信息发送到自动驾驶系统440,其中消息管理器420同样可以进行格式转换,获得的第二感知信息是满足自动驾驶系统440自定义格式的数据,具体可以包含智能体管理器中智能体的定位信息、速度等。比如当目标车辆撞到某个交通锥时,交通锥响应于该情况变更自身状态(向某个方向倾倒或者飞出、移动到某个位置等),或者交通流车辆在目标车辆的行驶影响下更改自身行驶路线等,本公开实施例对此不做限制。The message manager 420 can send the first perception information of the agent in the simulation scene where the target vehicle is located to the automatic driving system 440, where the message manager 420 can also perform format conversion, and the obtained second perception information is satisfactory for the automatic driving system 440 Data in a custom format can specifically include the location information, speed, etc. of the agent in the agent manager. For example, when the target vehicle hits a traffic cone, the traffic cone changes its state in response to the situation (dumping or flying out, moving to a certain position, etc.), or the traffic flow vehicle is under the influence of the target vehicle. Changing its own driving route, etc., is not limited in the embodiment of the present disclosure.
本公开实施例中涉及的通用和自定义是指数据格式,通用格式的通用型较强,但是一般的自动驾驶系统会根据自己需求定义自己的数据格式。The general purpose and customization involved in the embodiments of the present disclosure refer to the data format. The general purpose format of the general format is relatively strong, but the general automatic driving system will define its own data format according to its own needs.
可选的,智能体管理器430还用于:将车辆仿真场景中的仿真车辆的信息发送给车辆仿真场景中的其他智能体,以使其他智能体根据该仿真车辆的信息更新自身状态;以及将其他智能体的信息发送给仿真车辆,以使仿真车辆根据其他智能体的信息更新自身状态。Optionally, the agent manager 430 is further used to: send the information of the simulated vehicle in the vehicle simulation scene to other agents in the vehicle simulation scene, so that the other agents can update their own state according to the information of the simulated vehicle; and The information of other agents is sent to the simulated vehicle, so that the simulated vehicle updates its own state according to the information of other agents.
一般利用交通流进行的车辆仿真属于剧本形式的场景搭建,主要为交通流回放,仿真场景和仿真车辆无交互,和真实情况存在差异。而本公开实施例中通过智能体管理器可以将仿真车辆,与仿真场景中的其他智能体统一管理,所有物体可使用同样的状态更新接口,可以实现仿真场景中物体的互动,以及仿真场景中物体与仿真车辆本身的互动。Generally, vehicle simulation using traffic flow is a scenario in the form of a script, which is mainly for traffic flow playback. There is no interaction between the simulated scene and the simulated vehicle, which is different from the real situation. However, in the embodiments of the present disclosure, the simulated vehicle can be managed uniformly with other agents in the simulation scene through the agent manager, and all objects can use the same state update interface, which can realize the interaction of objects in the simulation scene and the simulation scene. The interaction between the object and the simulated vehicle itself.
可选的,在自动驾驶仿真测试系统400中可以设置至少两个仿真车辆进行仿真测试,至少两个仿真车辆可以独立进行自动驾驶仿真处理。多车仿真可以与前述一个目标车辆作为仿真车辆的数据处理方法相同,可以在同一个自动驾驶系统400中分别处理该至少两个仿真车辆的信息,生成不同的控制信号提供给同一个车辆仿真器410进行处理。Optionally, at least two simulated vehicles may be set in the automatic driving simulation test system 400 for simulation testing, and at least two simulated vehicles may independently perform automatic driving simulation processing. The multi-vehicle simulation can be the same as the data processing method of the aforementioned one target vehicle as a simulated vehicle. The information of the at least two simulated vehicles can be processed separately in the same automatic driving system 400, and different control signals can be generated and provided to the same vehicle simulator. 410 for processing.
在多车仿真的场景下,智能体管理器430中仿真车辆和其他智能体属于一个概念,因此可以统一管理,实现多车同时仿真。在智能体管理器430中,相对于其中一个仿真车辆,另一个仿真车辆可以被看做其他智能体,因此智能体管理器430也能支持多个仿真车辆之间的信息交互,以生成对应的感知信息通过消息管理器420提供给自动驾驶系统400。In the scenario of multi-vehicle simulation, the simulated vehicle and other agents in the agent manager 430 belong to the same concept, so they can be managed in a unified manner to achieve simultaneous multi-vehicle simulation. In the agent manager 430, compared to one of the simulated vehicles, the other simulated vehicle can be regarded as other agents. Therefore, the agent manager 430 can also support the information interaction between multiple simulated vehicles to generate corresponding The perception information is provided to the automatic driving system 400 through the message manager 420.
通过上述步骤,在快速、准确实现自动驾驶仿真测试的前提下,还能够实现仿真车辆和模拟仿真场景中的交互,同时交通流车辆之间的相互作用可以形成复杂的智能体行为,提供更丰富的测试场景。Through the above steps, under the premise of rapid and accurate realization of the automated driving simulation test, the interaction between the simulated vehicle and the simulated simulation scene can also be realized. At the same time, the interaction between the traffic flow vehicles can form complex agent behaviors, providing more abundant Test scenario.
车辆仿真器410、智能体管理器430和自动驾驶系统440均可以根据需要进行更换,对于更改的模块可以在消息管理器420中对应设置和更改接口通信部,使各模块间能够实现流畅、准确的数据交互。The vehicle simulator 410, the agent manager 430 and the automatic driving system 440 can all be replaced as needed. For the changed modules, the interface communication part can be set and changed in the message manager 420, so that the modules can be smooth and accurate. Data interaction.
在一种可选的实施方式中,自动驾驶仿真测试系统400可以为部署在电子设备上的软件系统,消息管理器420、车辆仿真器410、智能体管理器430和自动驾驶系统可以为软件模块,该自动驾驶仿真测试系统400可以部署在终端设备上执行仿真测试任务;在另一种实施方式中,自动驾驶仿真测试系统400所包含的车辆仿真器410、智能体管理器430、消息管理器420和自动驾驶系统400可以均为实体装置。In an alternative embodiment, the automatic driving simulation test system 400 may be a software system deployed on an electronic device, and the message manager 420, the vehicle simulator 410, the agent manager 430, and the automatic driving system may be software modules. , The automatic driving simulation test system 400 can be deployed on a terminal device to perform simulation test tasks; in another embodiment, the automatic driving simulation test system 400 includes a vehicle simulator 410, an agent manager 430, and a message manager Both the 420 and the automatic driving system 400 may be physical devices.
一般现有的自动驾驶系统数据接口需要适配车辆仿真器进行开发,如果测试系统中更换其他类型的车辆仿真器,而自动驾驶系统则需要针对新的车辆仿真器重新开发,否则无法适配使用,开发成本非常高。而本公开通过在测试系统中增设消息管理器,通过消息管理器进行自动驾驶系统和车辆模拟器之间交互的数据的转换处理和转发,在需要更换车辆仿真器时,可以修改消息管理器与车辆仿真器之间的通信接口部,从而无需重新设计自动驾驶系统,由此提高了自动驾驶系统的兼容性;和/或,在需要更换待测试的自动驾驶系统时,可以修改消息管理器与自动驾驶系统之间的通信接口部,从而无需将车辆仿真器更换为与新的自动驾驶系统适配的车辆仿真器;可选的,若测试系统还设置智能体管理器,在前述基础上,需要更换智能体管理器时,可以修改消息管理器和智能体管理器之间的通信接口部,从而无需重新设计自动驾驶系统和车辆仿真器,由此降低成本,提高自动驾驶仿真测试系统的通用性。Generally, the existing automatic driving system data interface needs to be adapted to the vehicle simulator for development. If other types of vehicle simulators are replaced in the test system, the automatic driving system needs to be re-developed for the new vehicle simulator, otherwise it cannot be adapted to use , The development cost is very high. In the present disclosure, by adding a message manager to the test system, the message manager is used to convert and forward the data exchanged between the autopilot system and the vehicle simulator. When the vehicle simulator needs to be replaced, the message manager and the vehicle simulator can be modified. The communication interface between the vehicle simulators eliminates the need to redesign the automatic driving system, thereby improving the compatibility of the automatic driving system; and/or, when the automatic driving system to be tested needs to be replaced, the message manager and the The communication interface between the automatic driving systems, so that there is no need to replace the vehicle simulator with a vehicle simulator that is compatible with the new automatic driving system; optionally, if the test system is also equipped with an agent manager, on the basis of the foregoing, When the agent manager needs to be replaced, the communication interface between the message manager and the agent manager can be modified, so that there is no need to redesign the automatic driving system and the vehicle simulator, thereby reducing costs and improving the generality of the automatic driving simulation test system sex.
请参阅图5,图5是本公开实施例公开的一种电子设备的结构示意图。如图5所示,该电子设备500包括处理器501和存储器502,其中,电子设备500还可以包括总线503,处理器501和存储器502可以通过总线503相互连接,总线503可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线503可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。其中,电子设备500还可以包括输入输出设备504,输入输出设备504可以包括显示屏,例如液晶显示屏。存储器502用于存储计算机程序;处理器501用于调用存储在存储器502中的计算机程序执行图1实施例中提到的部分或全部方法步骤。实施图5所示的电子设备 500,电子设备500可以设置和更改与自动驾驶系统的接口,以能够适配不同的自动驾驶系统进行仿真测试,此处不再赘述。Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present disclosure. As shown in FIG. 5, the electronic device 500 includes a processor 501 and a memory 502. The electronic device 500 may also include a bus 503. The processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be an interconnection of peripheral components. Connect standard (Peripheral Component Interconnect, PCI) bus or extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus 503 can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one thick line is used to represent in FIG. 5, but it does not mean that there is only one bus or one type of bus. The electronic device 500 may also include an input/output device 504, and the input/output device 504 may include a display screen, such as a liquid crystal display screen. The memory 502 is used to store a computer program; the processor 501 is used to call the computer program stored in the memory 502 to execute some or all of the method steps mentioned in the embodiment of FIG. 1. Implementing the electronic device 500 shown in FIG. 5, the electronic device 500 can set and change the interface with the automatic driving system, so as to be able to adapt to different automatic driving systems for simulation testing, which will not be repeated here.
或者,处理器501用于调用存储在存储器502中的计算机程序执行图4所述实施例中自动驾驶仿真测试系统400执行的部分或全部方法步骤。Alternatively, the processor 501 is configured to call a computer program stored in the memory 502 to execute part or all of the method steps executed by the automatic driving simulation test system 400 in the embodiment described in FIG. 4.
本公开实施例还提供一种计算机存储介质,其中,该计算机存储介质用于存储计算机程序,该计算机程序使得计算机执行如前文所述的方法实施例中记载的任何一种自动驾驶仿真方法或者自动驾驶仿真测试系统所执行的方法的部分或全部步骤。The embodiments of the present disclosure also provide a computer storage medium, wherein the computer storage medium is used to store a computer program, and the computer program causes the computer to execute any of the automatic driving simulation methods or automatic driving simulation methods recorded in the method embodiments described above. Part or all of the steps of the method executed by the driving simulation test system.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described sequence of actions. Because according to the present disclosure, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily required by the present disclosure.
在前文所述的实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本公开所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元(模块)可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units (modules) described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple networks. Unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。该集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个 人计算机、服务器或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解前文所述的实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器、随机存取器、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the foregoing embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable memory, and the memory can include : Flash disk, read-only memory, random access device, magnetic disk or CD, etc.
以上对本公开实施例进行了详细介绍,本文中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想;同时,对于本领域的一般技术人员,依据本公开的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本公开的限制。The embodiments of the present disclosure are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the present disclosure. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present disclosure; at the same time, for Those of ordinary skill in the art, based on the ideas of the present disclosure, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as limiting the present disclosure.

Claims (18)

  1. 一种自动驾驶仿真方法,其特征在于,包括:An automatic driving simulation method, characterized in that it includes:
    消息管理器接收车辆仿真器发送的第一车辆状态信息,所述第一车辆状态信息包括第一底盘信息和第一定位信息;The message manager receives the first vehicle state information sent by the vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
    所述消息管理器对所述第一底盘信息和所述第一定位信息进行格式转换,获得第二底盘信息和第二定位信息,向自动驾驶系统发送所述第二底盘信息和所述第二定位信息;The message manager performs format conversion on the first chassis information and the first positioning information, obtains second chassis information and second positioning information, and sends the second chassis information and the second chassis information to the automatic driving system. Positioning information;
    所述消息管理器接收所述自动驾驶系统发送的第一控制信号,对所述第一控制信号进行格式转换,获得第二控制信号,所述第二控制信号用于所述车辆仿真器更新所述车辆状态信息;The message manager receives the first control signal sent by the automatic driving system, converts the format of the first control signal to obtain a second control signal, and the second control signal is used for the vehicle simulator to update the State the vehicle status information;
    所述消息管理器向所述车辆仿真器发送所述第二控制信号。The message manager sends the second control signal to the vehicle simulator.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述消息管理器向所述车辆仿真器发送所述第二控制信号之后,所述方法还包括:After the message manager sends the second control signal to the vehicle simulator, the method further includes:
    所述消息管理器接收所述车辆仿真器发送的第二车辆状态信息,其中,所述第二车辆状态信息包括由所述车辆仿真器根据所述第二控制信号更新所述车辆状态信息后获得的第三底盘信息和第三定位信息。The message manager receives the second vehicle state information sent by the vehicle simulator, where the second vehicle state information includes information obtained by the vehicle simulator after updating the vehicle state information according to the second control signal The third chassis information and the third positioning information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二控制信号包括以下一种或多种:待处理定位信息、油门数据、刹车数据、档位、方向盘转角;The method according to claim 1 or 2, wherein the second control signal includes one or more of the following: positioning information to be processed, throttle data, braking data, gear position, steering wheel angle;
    和/或,and / or,
    所述第一底盘信息包括以下一种或多种:速度、加速度、姿态信息;所述姿态信息包括以下一种或多种:偏航角、方向盘转角。The first chassis information includes one or more of the following: speed, acceleration, and attitude information; the attitude information includes one or more of the following: yaw angle, steering wheel angle.
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    所述消息管理器对所述第一底盘信息和所述第一定位信息进行格式转换,获得目标车辆的信息,向智能体管理器发送所述目标车辆的信息,其中,所述目标车辆为所述车辆仿真器中的仿真车辆,所述目标车辆的信息用于:所述智能体管理器在加载车辆仿真场景的情况下,根据所述目标车辆的信息更新所述车辆仿真场景中智能体的状态以获得第一感知信息;The message manager performs format conversion on the first chassis information and the first positioning information, obtains the information of the target vehicle, and sends the information of the target vehicle to the agent manager, where the target vehicle is the target vehicle. For the simulated vehicle in the vehicle simulator, the information of the target vehicle is used to: the agent manager updates the information of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded. State to obtain first perception information;
    所述消息管理器对所述第一感知信息进行格式转换,获得第二感知信息,向所述自动驾驶系统发送所述第二感知信息,以使所述自动驾驶系统根据所述第二感知信息和所述第二车辆状态信息进行决策规划,获得所述第一控制信号。The message manager performs format conversion on the first perception information, obtains second perception information, and sends the second perception information to the automatic driving system, so that the automatic driving system is based on the second perception information Performing decision planning with the second vehicle state information to obtain the first control signal.
  5. 一种消息管理器,其特征在于,包括:A message manager, characterized in that it comprises:
    传输模块,用于接收车辆仿真器发送的第一车辆状态信息,所述第一车辆状态信息包括第一底盘信息和第一定位信息;A transmission module for receiving first vehicle state information sent by a vehicle simulator, where the first vehicle state information includes first chassis information and first positioning information;
    转换模块,用于对所述第一底盘信息和所述第一定位信息进行格式转换,获得第二底盘信息和第二定位信息;所述传输模块还用于,向自动驾驶系统发送所述第二底盘信息和所述第二定位信息;The conversion module is used for format conversion of the first chassis information and the first positioning information to obtain second chassis information and second positioning information; the transmission module is also used for sending the first chassis information to the automatic driving system 2. Chassis information and the second positioning information;
    所述传输模块还用于,接收所述自动驾驶系统发送的第一控制信号;所述转换模块还用于,对所述第一控制信号进行格式转换,获得第二控制信号,所述第二控制信号用于所述车辆仿真器更新所述车辆状态信息;The transmission module is further configured to receive the first control signal sent by the automatic driving system; the conversion module is also configured to perform format conversion on the first control signal to obtain a second control signal, and the second control signal is The control signal is used by the vehicle simulator to update the vehicle state information;
    所述传输模块还用于,向所述车辆仿真器发送所述第二控制信号。The transmission module is further configured to send the second control signal to the vehicle simulator.
  6. 根据权利要求5所述的消息管理器,其特征在于,The message manager according to claim 5, wherein:
    所述传输模块还用于,向所述车辆仿真器发送所述第二控制信号之后,接收所述车辆仿真器发送的第二车辆状态信息,其中,所述第二车辆状态信息包括由所述车辆仿真器根据所述第二控制信号更新所述车辆状态信息后获得的第三底盘信息和第三定位信息。The transmission module is further configured to receive second vehicle status information sent by the vehicle simulator after sending the second control signal to the vehicle simulator, wherein the second vehicle status information includes The third chassis information and third positioning information obtained after the vehicle simulator updates the vehicle state information according to the second control signal.
  7. 根据权利要求5或6所述的消息管理器,其特征在于,所述第二控制信号包括:待处理定位信息、油门数据、刹车数据、档位和/或方向盘转角;The message manager according to claim 5 or 6, wherein the second control signal comprises: positioning information to be processed, throttle data, brake data, gear position and/or steering wheel angle;
    和/或,and / or,
    所述第一底盘信息包括速度、加速度和/或姿态信息,所述姿态信息包括偏航角和/或方向盘转角。The first chassis information includes speed, acceleration and/or attitude information, and the attitude information includes a yaw angle and/or a steering wheel angle.
  8. 根据权利要求5-7任一所述的消息管理器,其特征在于,The message manager according to any one of claims 5-7, wherein:
    所述转换模块还用于,对所述第一底盘信息和所述第一定位信息进行格式转换,获得目标车辆的信息;所述传输模块还用于,向智能体管理器发送所述目标车辆的信息,其中,所述目标车辆的信息用于:所述智能体管理器在加载车辆仿真场景的情况下,根据所述目标车辆的信息更新所述车辆仿真场景中智能体的状态以获得第一感知信息;The conversion module is also used for format conversion of the first chassis information and the first positioning information to obtain information of the target vehicle; the transmission module is also used for sending the target vehicle to the agent manager The information of the target vehicle is used to: the agent manager updates the state of the agent in the vehicle simulation scene according to the information of the target vehicle when the vehicle simulation scene is loaded to obtain the first A perception information;
    所述转换模块还用于,对所述第一感知信息进行格式转换,获得第二感知信息;所述传输模块还用于,向所述自动驾驶系统发送所述第二感知信息,以使所述自动驾驶系统根据所述第二感知信息和所述第二车辆状态信息进行决策规划,获得所述第一控制信号。The conversion module is further configured to convert the format of the first perception information to obtain second perception information; the transmission module is also configured to send the second perception information to the automatic driving system so that all The automatic driving system performs decision planning according to the second perception information and the second vehicle state information, and obtains the first control signal.
  9. 一种自动驾驶仿真测试系统,其特征在于,包括:An automatic driving simulation test system, which is characterized in that it comprises:
    自动驾驶系统、车辆仿真器和如权利要求5-8任一所述的消息管理器。An automatic driving system, a vehicle simulator, and a message manager according to any one of claims 5-8.
  10. 根据权利要求9所述的系统,其特征在于,所述自动驾驶系统包括定位模块、地图模块、决策规划模块和控制器,其中:The system according to claim 9, wherein the automatic driving system comprises a positioning module, a map module, a decision planning module and a controller, wherein:
    所述地图模块,用于加载地图并在地图上显示至少一个目标车辆;The map module is used to load a map and display at least one target vehicle on the map;
    所述定位模块用于获取来自所述消息管理器的第二底盘信息和第二位置信息,并根据所述第二底盘信息和所述第二位置信息确定并更新所述地图中所述目标车辆的状态,所述 目标车辆为所述车辆仿真器中的仿真车辆;The positioning module is configured to obtain second chassis information and second position information from the message manager, and determine and update the target vehicle in the map according to the second chassis information and the second position information , The target vehicle is a simulated vehicle in the vehicle simulator;
    所述决策规划模块,用于根据所述目标车辆的状态和来自消息管理器的第二感知信息,确定所述地图中的所述目标车辆的驾驶决策结果;The decision planning module is configured to determine the driving decision result of the target vehicle in the map according to the state of the target vehicle and the second perception information from the message manager;
    所述控制器用于根据所述目标车辆的所述驾驶决策结果获得第一控制信号,向所述消息管理器发送所述第一控制信号。The controller is configured to obtain a first control signal according to the driving decision result of the target vehicle, and send the first control signal to the message manager.
  11. 根据权利要求9或10所述的系统,其特征在于,所述车辆仿真器存储有车辆动力学模型,所述车辆动力学模型基于通过实际车辆传感器采集的车辆行驶过程中的数据预先建立;The system according to claim 9 or 10, wherein the vehicle simulator stores a vehicle dynamics model, and the vehicle dynamics model is pre-established based on data collected by actual vehicle sensors during the driving process of the vehicle;
    所述车辆仿真器用于:The vehicle simulator is used for:
    获取所述消息管理器发送的第二控制信号;Acquiring a second control signal sent by the message manager;
    基于所述车辆动力学模型和所述第二控制信号更新车辆状态信息,获得第二车辆状态信息,所述第二车辆状态信息包括第三底盘信息和第三定位信息;Updating vehicle state information based on the vehicle dynamics model and the second control signal to obtain second vehicle state information, where the second vehicle state information includes third chassis information and third positioning information;
    向所述消息管理器发送所述第二车辆状态信息。Sending the second vehicle status information to the message manager.
  12. 根据权利要求11所述的系统,其特征在于,所述第二控制信号包括待处理定位信息、油门数据、刹车数据、档位和方向盘转角;The system according to claim 11, wherein the second control signal includes positioning information to be processed, throttle data, braking data, gear position, and steering wheel angle;
    所述车辆仿真器具体用于,根据预设的车辆的油门数据、刹车数据、档位与车辆的速度、加速度的映射关系,获得所述第二控制信号中的油门数据、刹车数据和档位对应的第一速度和第一加速度;The vehicle simulator is specifically used to obtain the accelerator data, brake data, and gear in the second control signal according to the preset mapping relationship between the accelerator data, brake data, gear position of the vehicle and the speed and acceleration of the vehicle Corresponding first speed and first acceleration;
    根据预设的车辆的方向盘转角和车辆前轮转角的转动比例关系,将所述第二控制信号中的方向盘转角转换为对应的第一前轮转角;Converting the steering wheel angle in the second control signal into the corresponding first front wheel angle according to the preset rotation ratio between the steering wheel angle of the vehicle and the front wheel angle of the vehicle;
    获取所述目标车辆的第一偏航角,以及车辆前轮车轴中心到车辆重心的距离和车辆后轮车轴中心到车辆重心的距离;Acquiring the first yaw angle of the target vehicle, and the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle and the distance from the center of the vehicle rear axle to the center of gravity of the vehicle;
    基于所述定位信息、所述第一速度、所述第一加速度、所述第一前轮转角、所述第一偏航角、所述车辆前轮车轴中心到车辆重心的距离和所述车辆后轮车轴中心到车辆重心的距离,获得所述第二车辆状态信息。Based on the positioning information, the first speed, the first acceleration, the first front wheel angle, the first yaw angle, the distance from the center of the front wheel axle of the vehicle to the center of gravity of the vehicle, and the vehicle The distance from the center of the rear wheel axle to the center of gravity of the vehicle to obtain the second vehicle state information.
  13. 根据权利要求11或12所述的系统,其特征在于,还包括车辆动力学模型建立模块,用于:The system according to claim 11 or 12, further comprising a vehicle dynamics model establishment module for:
    获取通过传感器采集的真实车辆在道路上行驶的第一数据,所述第一数据包括多组油门数据、刹车数据与速度、加速度,其中所述油门数据、所述刹车数据与所述速度、所述加速度具有对应关系;Acquire the first data of the real vehicle traveling on the road collected by the sensor. The first data includes multiple sets of throttle data, brake data and speed, acceleration, wherein the throttle data, the brake data and the speed and the speed The acceleration has a corresponding relationship;
    基于所述第一数据构建车辆的油门数据、刹车数据、档位与速度、加速度的映射关系;Constructing a mapping relationship between accelerator data, brake data, gear position and speed and acceleration of the vehicle based on the first data;
    获取通过传感器采集的真实车辆在道路上行驶的第二数据,所述第二数据包括多组方向盘转角和车辆前轮转角,所述方向盘转角和所述车辆前轮转角具有对应关系;Acquiring second data of a real vehicle traveling on a road collected by a sensor, the second data including multiple sets of steering wheel angles and vehicle front wheel angles, and the steering wheel angle and the vehicle front wheel angle have a corresponding relationship;
    基于所述第二数据构建车辆的方向盘转角和车辆前轮转角的转动比例关系;Constructing a rotation proportional relationship between the steering wheel angle of the vehicle and the front wheel angle of the vehicle based on the second data;
    基于所述映射关系和所述转动比例关系获得车辆动力学模型。A vehicle dynamics model is obtained based on the mapping relationship and the rotation ratio relationship.
  14. 根据权利要求9-13任一所述的系统,其特征在于,还包括:The system according to any one of claims 9-13, further comprising:
    智能体管理器,用于:Agent manager for:
    加载车辆仿真场景,所述车辆仿真场景包括智能体,所述智能体包括至少一车辆;Load a vehicle simulation scene, the vehicle simulation scene includes an agent, and the agent includes at least one vehicle;
    接收来自消息管理器的目标车辆的信息,根据所述目标车辆的信息更新所述车辆仿真场景中所述智能体的状态,获得第一感知信息;Receiving the information of the target vehicle from the message manager, and updating the state of the agent in the vehicle simulation scene according to the information of the target vehicle to obtain first perception information;
    向所述消息管理器发送所述第一感知信息。Sending the first perception information to the message manager.
  15. 根据权利要求14所述的系统,其特征在于,所述智能体管理器还用于:The system according to claim 14, wherein the agent manager is further used for:
    将所述车辆仿真场景中的仿真车辆的信息发送给所述车辆仿真场景中的其他智能体,以使所述其他智能体根据所述仿真车辆的信息更新自身状态;以及将所述其他智能体的信息发送给所述仿真车辆,以使所述仿真车辆根据所述其他智能体的信息更新自身状态;Sending the information of the simulated vehicle in the vehicle simulation scene to other agents in the vehicle simulation scene, so that the other agents can update their own state according to the information of the simulated vehicle; and send the other agents The information of is sent to the simulated vehicle, so that the simulated vehicle updates its own state according to the information of the other agent;
    所述智能体还包括以下一种或多种:非机动车、动物、行人、交通锥、交通灯、交通标志、道路标识、车道线、障碍物。The intelligent body also includes one or more of the following: non-motor vehicles, animals, pedestrians, traffic cones, traffic lights, traffic signs, road signs, lane lines, and obstacles.
  16. 一种电子设备,其特征在于,包括处理器以及存储器,所述存储器用于存储计算机程序,所述计算机程序被配置成由所述处理器执行,所述处理器用于执行如权利要求1-4任一项所述的方法,或者,所述处理器用于控制如权利要求5-8任一项所述的消息管理器运行,或者,控制如权利要求9-15任一项所述的自动驾驶仿真测试系统运行。An electronic device, comprising a processor and a memory, the memory is used to store a computer program, the computer program is configured to be executed by the processor, and the processor is used to execute claims 1-4 The method according to any one, or, the processor is used to control the operation of the message manager according to any one of claims 5-8, or to control the automatic driving according to any one of claims 9-15 The simulation test system is running.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序被处理器调用时,使得所述处理器执行如权利要求1-4任一项所述的方法,或者,使得所述处理器控制如权利要求5-8任一项所述的消息管理器运行,或者,使得所述处理器控制如权利要求9-15任一项所述的自动驾驶仿真测试系统运行。A computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein, when the computer program is called by a processor, the processor executes any of claims 1-4 The method according to one item, or, makes the processor control the operation of the message manager according to any one of claims 5-8, or makes the processor control the operation according to any one of claims 9-15 The described automatic driving simulation test system is running.
  18. 一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在计算机上运行的情况下,使得所述计算机执行权利要求1-4任一项所述的方法,或者,使得所述计算机控制如权利要求5-8任一项所述的消息管理器运行,或者,使得所述计算机控制如权利要求9-15任一项所述的自动驾驶仿真测试系统运行。A computer program product, the computer program product comprising a computer program or instruction, in the case that the computer program or instruction runs on a computer, the computer is caused to execute the method according to any one of claims 1 to 4, Alternatively, the computer is made to control the operation of the message manager according to any one of claims 5-8, or the computer is made to control the operation of the automatic driving simulation test system according to any one of claims 9-15.
PCT/CN2020/141757 2020-02-24 2020-12-30 Automatic driving simulation method and apparatus, and electronic device and storage medium WO2021169588A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020217025610A KR20210114467A (en) 2020-02-24 2020-12-30 Autonomous driving simulation method and apparatus, electronic device and storage medium
JP2021547822A JP2022524584A (en) 2020-02-24 2020-12-30 Automated driving simulation methods and devices, electronic devices and storage media

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010113305.9A CN111353221A (en) 2020-02-24 2020-02-24 Automatic driving simulation method and device, electronic equipment and storage medium
CN202010113305.9 2020-02-24

Publications (1)

Publication Number Publication Date
WO2021169588A1 true WO2021169588A1 (en) 2021-09-02

Family

ID=71195761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141757 WO2021169588A1 (en) 2020-02-24 2020-12-30 Automatic driving simulation method and apparatus, and electronic device and storage medium

Country Status (4)

Country Link
JP (1) JP2022524584A (en)
KR (1) KR20210114467A (en)
CN (1) CN111353221A (en)
WO (1) WO2021169588A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762406A (en) * 2021-09-15 2021-12-07 东软睿驰汽车技术(沈阳)有限公司 Data mining method and device and electronic equipment
CN113823121A (en) * 2021-09-18 2021-12-21 深圳须弥云图空间科技有限公司 Vehicle running configuration method and device
CN114067610A (en) * 2021-09-22 2022-02-18 广州文远知行科技有限公司 Simulation scene construction method and device for missing turnout accident
CN114167752A (en) * 2021-12-01 2022-03-11 中汽研(天津)汽车工程研究院有限公司 Simulation test method and system device for vehicle active safety system
CN115145246A (en) * 2022-06-27 2022-10-04 小米汽车科技有限公司 Controller testing method and device, vehicle, storage medium and chip
CN115277442A (en) * 2022-06-24 2022-11-01 重庆长安汽车股份有限公司 Method for intelligent automobile function verification and simulation model car thereof

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353221A (en) * 2020-02-24 2020-06-30 上海商汤临港智能科技有限公司 Automatic driving simulation method and device, electronic equipment and storage medium
CN112255931B (en) * 2020-10-10 2024-04-16 万物镜像(北京)计算机系统有限公司 Data processing method and device, storage medium and electronic equipment
CN114553972A (en) * 2020-11-10 2022-05-27 魔门塔(苏州)科技有限公司 Data transmission device and method applied to automatic driving, vehicle-mounted terminal and medium
CN113238933B (en) * 2021-04-30 2024-03-12 阿波罗智联(北京)科技有限公司 Chassis simulation method, device, server, storage medium and program product
CN113885754A (en) * 2021-09-30 2022-01-04 奥特酷智能科技(南京)有限公司 Simulator for automatic driving simulation platform
CN115099070B (en) * 2022-08-14 2022-12-09 北京昂克科技有限公司 Digital twin-based chassis data acquisition method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3037901A2 (en) * 2014-12-22 2016-06-29 Rockwell Automation Technologies, Inc. Cloud-based emulation and modeling for automation systems
CN109884916A (en) * 2019-02-26 2019-06-14 初速度(苏州)科技有限公司 A kind of automatic Pilot Simulation Evaluation method and device
CN110046833A (en) * 2019-05-13 2019-07-23 吉林大学 A kind of traffic congestion auxiliary system virtual test system
CN110209146A (en) * 2019-05-23 2019-09-06 杭州飞步科技有限公司 Test method, device, equipment and the readable storage medium storing program for executing of automatic driving vehicle
CN110333730A (en) * 2019-08-12 2019-10-15 安徽江淮汽车集团股份有限公司 Verification method, platform and the storage medium of automatic Pilot algorithm expectation function safety
CN111353221A (en) * 2020-02-24 2020-06-30 上海商汤临港智能科技有限公司 Automatic driving simulation method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107991898A (en) * 2016-10-26 2018-05-04 法乐第(北京)网络科技有限公司 A kind of automatic driving vehicle simulating test device and electronic equipment
US11328219B2 (en) * 2018-04-12 2022-05-10 Baidu Usa Llc System and method for training a machine learning model deployed on a simulation platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3037901A2 (en) * 2014-12-22 2016-06-29 Rockwell Automation Technologies, Inc. Cloud-based emulation and modeling for automation systems
CN109884916A (en) * 2019-02-26 2019-06-14 初速度(苏州)科技有限公司 A kind of automatic Pilot Simulation Evaluation method and device
CN110046833A (en) * 2019-05-13 2019-07-23 吉林大学 A kind of traffic congestion auxiliary system virtual test system
CN110209146A (en) * 2019-05-23 2019-09-06 杭州飞步科技有限公司 Test method, device, equipment and the readable storage medium storing program for executing of automatic driving vehicle
CN110333730A (en) * 2019-08-12 2019-10-15 安徽江淮汽车集团股份有限公司 Verification method, platform and the storage medium of automatic Pilot algorithm expectation function safety
CN111353221A (en) * 2020-02-24 2020-06-30 上海商汤临港智能科技有限公司 Automatic driving simulation method and device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762406A (en) * 2021-09-15 2021-12-07 东软睿驰汽车技术(沈阳)有限公司 Data mining method and device and electronic equipment
CN113823121A (en) * 2021-09-18 2021-12-21 深圳须弥云图空间科技有限公司 Vehicle running configuration method and device
CN114067610A (en) * 2021-09-22 2022-02-18 广州文远知行科技有限公司 Simulation scene construction method and device for missing turnout accident
CN114167752A (en) * 2021-12-01 2022-03-11 中汽研(天津)汽车工程研究院有限公司 Simulation test method and system device for vehicle active safety system
CN115277442A (en) * 2022-06-24 2022-11-01 重庆长安汽车股份有限公司 Method for intelligent automobile function verification and simulation model car thereof
CN115277442B (en) * 2022-06-24 2023-07-28 重庆长安汽车股份有限公司 Method for verifying functions of intelligent automobile and simulation model automobile thereof
CN115145246A (en) * 2022-06-27 2022-10-04 小米汽车科技有限公司 Controller testing method and device, vehicle, storage medium and chip

Also Published As

Publication number Publication date
KR20210114467A (en) 2021-09-23
CN111353221A (en) 2020-06-30
JP2022524584A (en) 2022-05-09

Similar Documents

Publication Publication Date Title
WO2021169588A1 (en) Automatic driving simulation method and apparatus, and electronic device and storage medium
US11354468B2 (en) Generating autonomous vehicle simulation data from logged data
Kaur et al. A survey on simulators for testing self-driving cars
CN111897305B (en) Data processing method, device, equipment and medium based on automatic driving
Chen et al. A novel integrated simulation and testing platform for self-driving cars with hardware in the loop
CN113032285B (en) High-precision map testing method and device, electronic equipment and storage medium
Chen et al. Autonomous vehicle testing and validation platform: Integrated simulation system with hardware in the loop
US20200409369A1 (en) System and Methods for Autonomous Vehicle Testing
JP2021526699A (en) Data collection methods, devices, devices, programs and computer-readable storage media
US11385991B1 (en) Collision evaluation for log-based simulations
CN113848855B (en) Vehicle control system test method, device, equipment, medium and program product
CN111665738A (en) In-loop simulation system and information processing method and device thereof
CN110687828A (en) Intelligent networking automobile simulation test system based on whole automobile hardware-in-loop
US20220204009A1 (en) Simulations of sensor behavior in an autonomous vehicle
Barosan et al. Development of a virtual simulation environment and a digital twin of an autonomous driving truck for a distribution center
CN111696405A (en) Driving simulator
CN115344503B (en) Traffic flow simulation system and simulation method for automatic driving planning control test
CN115185205A (en) Intelligent driving simulation method, system, terminal device and readable storage medium
CN115454843A (en) Unmanned simulation device and automatic test method
US11126763B1 (en) Realism metric for testing software for controlling autonomous vehicles
Zhou et al. A survey on autonomous driving system simulators
CN116451434A (en) New energy truck simulation scheduling method and equipment with cooperation of vehicles Lu Yun
CN114296424A (en) Simulation test system and method
CN115454082A (en) Vehicle obstacle avoidance method and system, computer readable storage medium and electronic device
CN112230659A (en) Method for accurately planning movement track, intelligent control equipment and automatic driving vehicle

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20217025610

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021547822

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921818

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921818

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09-03-2023)