WO2021159357A1 - Traveling scenario information processing method and apparatus, electronic device, and readable storage medium - Google Patents

Traveling scenario information processing method and apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2021159357A1
WO2021159357A1 PCT/CN2020/074958 CN2020074958W WO2021159357A1 WO 2021159357 A1 WO2021159357 A1 WO 2021159357A1 CN 2020074958 W CN2020074958 W CN 2020074958W WO 2021159357 A1 WO2021159357 A1 WO 2021159357A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
virtual object
behavior
sub
lane
Prior art date
Application number
PCT/CN2020/074958
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 PCT/CN2020/074958 priority Critical patent/WO2021159357A1/en
Priority to CN202080003160.5A priority patent/CN113574530A/en
Publication of WO2021159357A1 publication Critical patent/WO2021159357A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Definitions

  • This application relates to the field of vehicle technology, and in particular, to a method, device, electronic device, and readable storage medium for processing driving scene information.
  • the simulation of intelligent objects in virtual scenes is mainly designed according to the virtual scenes stipulated in existing laws and regulations.
  • a separate file is designed according to the requirements of each virtual driving scene to realize the requirements of the scene.
  • the traditional driving scene information processing method has the problem of poor scalability of the program.
  • a method, an apparatus, an electronic device, and a readable storage medium for processing driving scene information are provided.
  • a method for processing driving scene information including: acquiring driving scene configuration information, the driving scene configuration information including a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameters corresponding to the virtual object type Value; determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; execute the virtual object behavior operation according to the virtual object type and the behavior parameter value.
  • a driving scene information processing device comprising: an acquisition module for acquiring driving scene configuration information, where the driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and all The behavior parameter value corresponding to the virtual object type; a determining module, configured to determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; an execution module, configured to execute the virtual object type and the behavior parameter value Virtual object behavior operation.
  • An electronic device includes a memory and a processor, and the memory stores a computer program.
  • the processor is caused to perform the following operations: obtaining driving scene configuration information, and
  • the scene configuration information includes the virtual object behavior identifier, the virtual object type corresponding to the virtual object behavior identifier, and the behavior parameter value corresponding to the virtual object type;
  • the corresponding virtual object behavior operation is determined according to the virtual object behavior identifier;
  • the virtual object type and the behavior parameter value execute the virtual object behavior operation.
  • a computer-readable storage medium on which a computer program is stored, when the computer program is executed by a processor, the following operations are realized: obtaining driving scene configuration information, where the driving scene configuration information includes a virtual object behavior identification, the virtual The virtual object type corresponding to the object behavior identifier and the behavior parameter value corresponding to the virtual object type; determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; execute the virtual object type according to the virtual object type and the behavior parameter value Virtual object behavior operation.
  • the embodiment of the application obtains behavioral scene configuration information, where the behavioral scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, the virtual object behavior operation that needs to be performed can be determined according to the virtual object identifier, and according to the virtual object
  • the type and corresponding behavior parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior. You only need to modify the virtual object behavior identification and behavior parameter values to perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
  • Fig. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment.
  • Fig. 2 is a flowchart of a method for processing driving scene information in an embodiment.
  • Fig. 3 is a schematic flowchart of a method for processing driving scene information in another embodiment.
  • Fig. 4 is a schematic flowchart of an operation of determining a behavior of a virtual object in an embodiment.
  • Fig. 5 is a schematic diagram of the relationship between basic behavior identifiers in an embodiment.
  • Fig. 6 is a schematic flowchart of an operation of determining a behavior of a virtual object in an embodiment.
  • Fig. 7 is a structural block diagram of a driving scene information processing device in an embodiment.
  • FIG. 1 a schematic diagram of the internal structure of an electronic device is provided.
  • the electronic device in FIG. 1 may specifically be a personal computer, a notebook computer, a smart phone, a tablet computer, a portable wearable device, and the like.
  • the electronic device includes a processor, a memory, and a display screen connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored in the memory, and the computer program can be executed by a processor to implement the memory processing method suitable for electronic devices provided in the embodiments of the present application.
  • the memory may include non-volatile storage media such as magnetic disks, optical disks, read-only memory (Read-Only Memory, ROM), or random-access-memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and internal memory.
  • the non-volatile storage medium stores an operating system, a database, and a computer program.
  • the database stores related data used to implement a driving scene information processing method provided by each of the above embodiments, for example, virtual object behavior operations can be stored.
  • the computer program may be executed by a processor to implement a driving scene information processing method provided by each embodiment of the present application.
  • the internal memory provides a cached operating environment for the operating system, database and computer program in the non-volatile storage medium.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, used to display driving scenes, and can also be used to detect touch operations on the display screen and generate corresponding instructions, such as switching instructions for front and back applications.
  • the display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or External keyboard, touchpad or mouse, etc.
  • the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the electronic device may be a server, and the server may be implemented by an independent server or a server cluster composed of multiple servers.
  • a specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the electronic device also includes a network interface connected via a system bus.
  • the network interface can be an Ethernet card or a wireless network card, etc., for communicating with external electronic devices, for example, for communicating with a server.
  • a method for processing driving scene information is provided.
  • the method is applied to the electronic device shown in FIG. 1 as an example for description.
  • the driving scene information processing method includes:
  • Step 202 Acquire driving scene configuration information.
  • the driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameter values corresponding to the virtual object type.
  • the driving scene refers to a virtual driving scene of a virtual vehicle.
  • the types of virtual objects include road types, vehicle types, and traffic light types, and may also include at least one of pedestrian types, zebra crossing types, tree types, and building types.
  • Virtual objects can be roads, vehicles, or traffic lights, and can also be at least one of pedestrians, zebra crossings, trees, or buildings.
  • the number of virtual objects is not limited. For example, 2 pedestrians, 3 pedestrians, etc. may appear in the driving scene at the same time.
  • the driving scene may be a speed limit sign recognition and response scene, a parking yield sign marking line recognition and response scene, a lane line recognition and response scene, or a crosswalk line recognition and response scene, etc. are not limited to this.
  • the driving scene may be a virtual scene stipulated in existing laws and regulations.
  • the virtual object behavior identifier refers to an identifier used to uniquely identify the virtual object behavior.
  • the virtual object behavior identification can be composed of at least one of numbers, letters, characters, and symbols.
  • the behavior identifier of the virtual object may be a constant-speed straight-line driving identifier, or the identifier is 1, and the like is not limited to this.
  • Virtual object behavior identification can be divided into basic behavior identification and abnormal behavior identification.
  • the virtual object behavior identifier is used to determine the virtual object behavior operation.
  • the behavior parameter value refers to the parameter value of the behavior parameter implemented by the virtual object.
  • the behavior parameter value refers to the value corresponding to the variable.
  • the behavior parameter value can be a parameter value related to changing lanes, such as how far away from the target car can be changed lanes, whether it is necessary to change multiple lanes continuously, and in each lane when changing lanes continuously
  • the value of the safe distance from the vehicle in front, the maximum acceleration value when a rear-end collision may occur, etc. are not limited to this.
  • the corresponding behavior parameter value may refer to the duration of the red light, the duration of the green light, etc., which are not limited to this.
  • the corresponding behavior parameter value may be a walking speed parameter value and the like is not limited thereto.
  • Each virtual object behavior identifier has a corresponding virtual object type and a behavior parameter value corresponding to the virtual object type.
  • the driving scene configuration information may be saved in the driving scene configuration file.
  • the driving scene configuration information includes virtual object behavior identifiers, virtual object types, and behavior parameter values corresponding to the virtual object types. For example, if the behavior identifier of the virtual object is a constant-speed straight-line driving identifier, and the type of the virtual object is a vehicle, then the behavior parameter corresponding to the virtual object type includes a speed parameter, and the corresponding behavior parameter value is a speed parameter value.
  • the behavior parameter may also include the vehicle driving direction parameter, and the corresponding behavior parameter value is not limited to the vehicle driving direction parameter value.
  • the driving scene configuration information may further include a behavior parameter corresponding to the behavior parameter value.
  • the behavior parameter represents a variable.
  • Behavior parameters can also be referred to as behavior parameter names.
  • the behavior parameter is A
  • the behavior parameter value is 1.
  • Step 204 Determine a corresponding virtual object behavior operation according to the virtual object behavior identifier.
  • a virtual object behavior operation can be regarded as a virtual object behavior program module.
  • a program module is used to realize a function. That is, a program module is used to perform a behavior.
  • a virtual object behavior identifier corresponds to a virtual object behavior operation. Each virtual object behavior identifier has a corresponding virtual object behavior operation.
  • the electronic device determines the corresponding virtual object behavior operation from the driving scene operation program according to the virtual object identifier.
  • the driving scene operation program may include at least one virtual object behavior operation.
  • Step 206 Perform a virtual object behavior operation according to the type of the virtual object and the corresponding behavior parameter value.
  • the virtual object behavior operation includes virtual object type parameters and behavior parameters corresponding to the virtual object type.
  • the behavior parameter in the driving scene configuration information corresponds to the behavior parameter in the behavior operation of the virtual object.
  • the behavior parameter value in the driving scene configuration information is used to assign a value to the corresponding behavior parameter in the behavior operation of the virtual object.
  • the electronic device inputs the driving scene configuration file into the simulator executable file to control the virtual object corresponding to the virtual object type to implement the corresponding behavior. That is, the electronic device configures the behavior parameter value for the behavior parameter corresponding to the virtual object type in the driving scene operation program.
  • the simulator executable file includes the program code corresponding to the behavior operation of the virtual object.
  • the electronic device can assign values to the behavior parameters in the behavior operation of the virtual object in the order of the behavior parameter values corresponding to the virtual object type.
  • the behavior scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, and then the virtual object behavior operation that needs to be performed can be determined according to the virtual object identifier, according to the virtual object type and corresponding behavior
  • the parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior, and only need to modify the virtual object Behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability; while the modules corresponding to each driving scene in the traditional way are independent of each other, it is obvious that it must be There will be some similar or even identical modules, and with the increase of driving scenes, there will be more and more duplicate codes.
  • the method in the embodiments of this application is not easy to be repeated virtual object behavior operations, thereby reducing program compilation time. Reduce development and maintenance costs.
  • the driving scene configuration file corresponding to the driving scene configuration information may be a text document.
  • the text document can be edited according to the specified protocol buffers file format. If the format of the driving scene configuration file is not correct, it will not be parsed and the program will not run normally.
  • the electronic device transmits the driving scene configuration file as an input to the simulator executable file.
  • the simulator runs on the back end, and sends the scene state to the scene visualization tool in real time, and displays it on the screen.
  • the simulator executable file includes at least one virtual object behavior operation.
  • Parameter 1 Parameter 1 value
  • Parameter 2 Parameter 2 value
  • objects are virtual objects.
  • the degree of intelligence can also be expressed by level. The higher the level, the higher the level of intelligence.
  • Parameter 1 has the same parameter name in the virtual object behavior operation.
  • the driving scene information processing method further includes: detecting an execution identifier corresponding to the virtual object behavior identifier; when the execution identifier is an executable identifier, performing an operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier.
  • the execution identifier can be used to determine whether to execute a certain virtual object behavior operation.
  • Execution identification may include executable identification and non-executable identification.
  • the execution flag can be a Boolean variable value.
  • the Boolean variable (Boolean Variable) can be used in the driving scene configuration information to determine the virtual object behavior operation that needs to be performed. For example, the executable flag is 1, and the non-executable flag is 0; the executable flag is true, and the non-executable flag is false.
  • the electronic device detects the execution identifier corresponding to the virtual object behavior identifier.
  • the execution identifier is an executable identifier
  • the corresponding virtual object behavior operation is determined according to the virtual object.
  • the execution flag is an unexecutable flag, the virtual object behavior operation is not executed.
  • the behavior scenario configuration information may only include the executable identifier.
  • the execution identifier corresponding to the virtual object behavior identifier is an executable identifier
  • the corresponding virtual object behavior operation is determined according to the virtual object behavior identifier.
  • the aforementioned driving scene information processing method detects the execution identification corresponding to the virtual object behavior identification; when the execution identification is an executable identification, the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identification is performed, and then the execution identification can be determined by modifying the execution identification Which virtual object behavior operations are performed to improve the scalability of the program.
  • the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes at least one of a constant-speed straight-line driving identification, a speed control identification, a lane-line driving identification, and a lane-changing driving identification.
  • FIG. 4 it is a schematic diagram of the flow of determining a virtual object behavior operation in an embodiment.
  • the execution identifier is an executable identifier
  • performing the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier includes:
  • Step 402 When the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag, determine that the corresponding operation is a constant-speed straight-line driving operation according to the constant-speed straight-line driving flag.
  • the basic behavior refers to the behavior of the vehicle when driving on the road. For example, driving in a straight line at a constant speed, driving in a lane change, driving at an acceleration, driving at a deceleration, etc. Specifically, it can be driving along the current lane at a constant speed, changing to an adjacent lane, slowing down when a red light at an intersection is detected, and stopping on the stop line, and following the car, you need to pay attention to the distance and relative speed of the vehicle in front, according to the current lane Speed limit adjusts the speed of the car, etc.
  • the uniform-speed straight-line driving sign may be composed of at least one of numbers, characters, symbols, and letters.
  • the uniform speed straight driving indicator may be A.
  • a constant-speed straight-line driving operation refers to the operation of a virtual vehicle walking along a straight line at a preset speed.
  • the electronic device determines whether the execution identification corresponding to the constant-speed straight-line driving identification is an executable identification.
  • the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag
  • the electronic device determines, according to the uniform-speed straight-line driving flag in the driving scene configuration file, that the corresponding operation is a uniform-speed straight-line driving operation.
  • the constant-speed straight-line driving flag is A
  • the electronic device determines that the corresponding operation is A operation according to the A flag.
  • the electronic device performs a straight-line driving operation at a constant speed according to the vehicle type and corresponding behavior parameter values.
  • the behavior parameter value includes the speed parameter value.
  • the electronic device performs a straight-line driving operation at a constant speed according to the vehicle type and the corresponding speed parameter value.
  • Step 404 When the execution flag corresponding to the speed control flag is an executable flag, determine that the corresponding operation is a speed control operation according to the speed control flag.
  • the speed control mark can be composed of at least one of numbers, characters, symbols, and letters.
  • the speed control flag can be B.
  • the speed control operation can be used to control the acceleration or deceleration of the virtual vehicle.
  • the electronic device determines whether the execution identification corresponding to the speed control identification is an executable identification.
  • the execution flag corresponding to the speed control flag is an executable flag
  • the electronic device determines that the corresponding operation is a speed control operation according to the speed control flag in the driving scene file.
  • the electronic device can perform speed control operations according to the vehicle type and corresponding behavior parameter values.
  • the behavior parameter value includes an acceleration parameter value.
  • the electronic device performs speed control operations according to the vehicle type and the corresponding acceleration parameter value.
  • Step 406 When the execution flag corresponding to the lane line driving flag is an executable flag, it is determined according to the lane line driving flag that the corresponding operation is the lane line driving operation.
  • the driving mark along the lane line may be composed of at least one of numbers, characters, symbols, and letters.
  • the indicator for driving along the lane line may be C.
  • the operation of driving along the lane line refers to the operation of the virtual vehicle walking along the preset lane line at a preset speed.
  • the lane line can be the edge of the lane or the center line of the lane.
  • the electronic device determines whether the execution identification corresponding to the driving along the lane line identification is an executable identification.
  • the execution identifier corresponding to the lane line driving identifier is an executable identifier
  • the electronic device determines that the corresponding operation is the lane line driving operation according to the lane line driving identifier in the driving scene file.
  • the electronic device can perform driving operations along the lane line according to the vehicle type and corresponding behavior parameter values.
  • the behavior parameter value includes the parameter value of driving along the lane line.
  • the behavior parameter value may also include the parameter value of not driving along the lane line.
  • the electronic device executes the driving operation along the lane line according to the vehicle type and the corresponding driving parameter value along the lane line.
  • Step 408 When the execution flag corresponding to the lane-changing driving flag is an executable flag, the lane-changing driving operation is determined according to the lane-changing driving flag.
  • the lane change driving sign may be composed of at least one of numbers, characters, symbols, and letters.
  • the lane change sign can be D.
  • Lane changing operation refers to the operation of changing lanes of the virtual vehicle. For example, the virtual vehicle moves from lane 1 to lane 2.
  • the electronic device determines whether the execution flag corresponding to the lane-changing driving flag is an executable flag.
  • the electronic device determines that the corresponding operation is the lane-changing driving operation according to the lane-changing driving flag in the driving scene file.
  • the electronic device can perform lane-changing operations according to the vehicle type and corresponding behavior parameter values.
  • the behavior parameter value includes an acceleration parameter value.
  • the electronic device executes the lane-changing operation according to the vehicle type and the corresponding acceleration parameter value.
  • the above-mentioned driving scene information processing method can determine the corresponding virtual object behavior operation according to the constant-speed straight-line driving flag, the speed control flag, the driving along the lane flag, the lane-changing driving flag, and the corresponding execution flags, which can be modified by modifying the virtual object behavior flags. Make the virtual vehicle realize the corresponding virtual object behavior operation, obtain different driving scenes, and improve the scalability of the program.
  • the speed control indicator includes at least one of a red light decelerator indicator, a speed limit decelerator indicator exceeding a speed limit, a distance-based speed reducer indicator, and an accelerator indicator.
  • the speed control operation includes at least one of a red light deceleration sub-operation, a speed limit exceeding a deceleration sub-operation, a distance-based deceleration sub-operation, and an acceleration sub-operation.
  • the execution flag corresponding to the speed control is an executable flag
  • the corresponding speed control operation is determined according to the speed control, including:
  • step (a1) when the execution flag corresponding to the red light deceleration sub-identifier is an executable flag, it is determined that the corresponding sub operation is a red light deceleration sub-operation according to the red light deceleration sub-identification.
  • the red light speed reducer logo can be composed of at least one of numbers, characters, symbols, and letters.
  • the red light speed reducer identification can be B1.
  • the red light deceleration sub-operation refers to the corresponding sub-operation when the virtual vehicle detects that the traffic light in front is red.
  • the electronic device determines whether the execution identification corresponding to the red light deceleration sub identification is an executable identification.
  • the execution identifier corresponding to the red light deceleration sub-identification is an executable identifier
  • the electronic device determines that the corresponding operation is a red light deceleration sub-operation according to the red light deceleration sub-identification in the driving scene file.
  • the electronic device can perform the red light deceleration sub-operation according to the vehicle type and the corresponding behavior parameter value.
  • the behavior parameter value includes the acceleration parameter value and the execution parameter value corresponding to the traffic light detection operation.
  • the execution parameter value corresponding to the traffic light detection operation is an executable parameter value
  • the electronic device executes the red light deceleration sub-operation according to the vehicle type and the corresponding acceleration parameter value.
  • the electronic device determines whether the execution flag corresponding to the red light deceleration sub flag is an executable flag.
  • the execution identifier corresponding to the red light deceleration sub-identification is an executable identifier
  • the electronic device determines that the corresponding operation is a red light deceleration sub-operation according to the red light deceleration sub-identification in the driving scene file.
  • step (a2) when the execution flag corresponding to the speed-limit value deceleration sub-identifier is an executable flag, the corresponding sub-operation is determined as the speed-limit value deceleration sub-operation according to the speed-limit value deceleration sub-identifier.
  • the speed limit value refers to the maximum speed per hour restricted by the road.
  • the speed limit value may be 40 km/h or 60 km/h, etc., which is not limited thereto.
  • the decelerator identification of exceeding the speed limit value may be composed of at least one of numbers, characters, symbols, and letters.
  • the speed reduction sub-identification may be B2.
  • Exceeding the speed limit value deceleration sub-operation refers to when the virtual vehicle detects that the current speed exceeds the speed limit value prescribed by the road, the sub-operation corresponding to the deceleration is performed.
  • the electronic device determines whether the execution identifier corresponding to the deceleration sub-identifier exceeding the speed limit value is an executable identifier.
  • the execution identifier corresponding to the speed limit value deceleration sub-identifier is an executable identifier
  • the electronic device determines that the corresponding operation is the speed limit value deceleration sub-operation according to the speed-limit value deceleration sub-identification in the driving scene file.
  • the electronic device can perform the sub-operation of decelerating over the speed limit value according to the vehicle and the corresponding behavior parameter value.
  • the behavior parameter value includes an acceleration parameter value and a speed limit value.
  • the electronic device performs a sub-operation of deceleration exceeding the speed limit value according to the acceleration parameter value corresponding to the vehicle.
  • the electronic device determines whether the execution flag corresponding to the speed limit value deceleration sub flag is an executable flag.
  • the execution identifier corresponding to the speed limit value deceleration sub-identifier is an executable identifier
  • the electronic device determines that the corresponding operation is the speed limit value deceleration sub-operation according to the speed-limit value deceleration sub-identification in the driving scene file.
  • step (a3) when the execution flag corresponding to the distance deceleration sub-identifier is an executable flag, the corresponding sub-operation is determined as the distance-deceleration sub-operation according to the distance-deceleration sub-identification.
  • the distance refers to the distance between the virtual vehicle and the preceding vehicle.
  • the identification of the speed reducer according to the distance may be composed of at least one of numbers, characters, symbols, and letters.
  • the speed reducer identification may be B3 according to the distance.
  • the sub-operation decelerating by distance refers to the sub-operation corresponding to deceleration when the distance between the virtual vehicle and the preceding vehicle reaches a preset distance.
  • the electronic device determines whether the execution identification corresponding to the distance deceleration sub identification is an executable identification.
  • the execution identifier corresponding to the distance deceleration sub identifier is an executable identifier
  • the electronic device determines, according to the distance deceleration sub identifier in the driving scene file, that the corresponding operation is the distance deceleration sub operation.
  • the electronic device may perform the sub-operation of decelerating according to the distance according to the vehicle and the corresponding behavior parameter value.
  • the behavior parameter value includes the acceleration parameter value and the distance parameter value between the virtual vehicle and the preceding vehicle.
  • the distance parameter value is greater than the reference distance value.
  • the reference distance value refers to the safe distance value between the virtual vehicle and the preceding vehicle.
  • the reference distance value can be determined according to the current speed value of the virtual vehicle.
  • the electronic device performs the sub-operation of decelerating according to the distance according to the acceleration parameter value corresponding to the vehicle.
  • the electronic device determines whether the execution identification corresponding to the distance deceleration sub identification is an executable identification.
  • the execution identifier corresponding to the distance deceleration sub identifier is an executable identifier
  • the electronic device determines, according to the distance deceleration sub identifier in the driving scene file, that the corresponding operation is the distance deceleration sub operation.
  • the accelerator identification can be composed of at least one of numbers, characters, symbols, and letters.
  • the accelerator identifier may be B4.
  • the accelerator operation refers to the operation of accelerating the virtual vehicle, and may also refer to the operation of accelerating the virtual vehicle to a preset speed.
  • the electronic device determines whether the execution identification corresponding to the accelerator identification is an executable identification.
  • the execution identifier corresponding to the accelerator identifier is an executable identifier
  • the electronic device determines that the corresponding operation is an accelerator operation according to the accelerator identifier in the driving scene file.
  • the electronic device can perform accelerator operations according to the vehicle and the corresponding behavior parameter values.
  • the behavior parameter value includes an acceleration parameter value. Then when the acceleration parameter value is positive, the virtual vehicle accelerates; when the acceleration parameter value is negative, the virtual vehicle decelerates.
  • the electronic device determines whether the execution flag corresponding to the accelerator sub flag is an executable flag.
  • the electronic device determines that the corresponding operation is an accelerator operation according to the accelerator identifier in the driving scene file.
  • the above-mentioned driving scene information processing method can respectively determine the corresponding speed control operation according to at least one of the red light decelerating sub-mark, the speed-limiting decelerating sub-mark, the distance decelerating sub-mark, and the accelerator marking, which can improve the speed control performance. Accuracy, thereby improving the authenticity of the simulated unmanned vehicle driving environment.
  • the lane-changing driving indicator includes at least one of a lane-changing sub-identifier according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identity.
  • the lane-changing driving operation includes at least one of a lane-changing sub-operation according to a preset route, a lane-changing sub-operation for overtaking, and an emergency avoiding sub-operation.
  • the execution flag corresponding to the lane-changing driving is an executable flag
  • the lane-changing driving operation is determined according to the lane-changing driving, including:
  • Step (b1) when the execution flag corresponding to the lane change sub-identifier according to the preset route is an executable flag, the corresponding operation is determined as the lane change sub-operation according to the preset route according to the lane change sub-identifier according to the preset route.
  • the lane change sub-sign according to the preset route may be composed of at least one of numbers, characters, symbols, and letters.
  • the lane change sub-indicator according to the preset route may be D1.
  • the sub-operation of changing lanes according to the preset route refers to the sub-operation corresponding to when the virtual vehicle changes lanes according to the preset route.
  • the preset route means that the virtual vehicle changes lanes according to a preset route.
  • the electronic device determines whether the execution identification corresponding to the lane change sub-identification according to the preset route is an executable identification.
  • the execution identifier corresponding to the lane-changing sub-identifier according to the preset route is an executable flag
  • the electronic device determines, according to the lane-changing sub-identification in the driving scene file, that the corresponding operation is the lane-changing operation according to the preset route.
  • the electronic device can perform the lane change operation according to the preset route according to the vehicle and the corresponding behavior parameter value.
  • the behavior parameter value includes the execution parameter value corresponding to changing lanes according to the preset route.
  • the execution parameter value corresponding to changing lanes according to the preset route is an executable parameter value
  • the electronic device executes the operation of changing lanes according to the preset route.
  • the electronic device determines whether the execution flag corresponding to the lane-changing sub flag according to the preset route is an executable flag.
  • the electronic device determines, according to the lane-changing sub-identification in the driving scene file, that the corresponding operation is the lane-changing operation according to the preset route.
  • the overtaking and changing lane sub-sign may be composed of at least one of numbers, characters, symbols, and letters.
  • the overtaking and changing lane sub-sign may be D2.
  • the overtaking and lane changing sub-operation refers to the sub-operation corresponding to the virtual vehicle overtaking and changing lanes.
  • the overtaking and lane-changing sub-operation refers to the sub-operation in which the vehicle changes lanes and merges into the original lane after overtaking the preceding vehicle.
  • the electronic device determines whether the execution identification corresponding to the overtaking and changing lane sub identification is an executable identification.
  • the execution flag corresponding to the overtaking lane-changing sub flag is an executable flag
  • the electronic device determines, according to the overtaking lane-changing sub flag in the driving scene file, that the corresponding operation is the overtaking lane-changing sub operation.
  • the electronic device can perform overtaking and lane-changing operations according to the vehicle and the corresponding behavior parameter values.
  • the behavior parameter value includes the lane identification value of changing lanes, the overtaking speed value, and so on.
  • the electronic device executes the lane-changing sub-operation of overtaking according to the lane identification value of the lane-changing and the overtaking speed value.
  • the electronic device determines whether the execution flag corresponding to the overtaking lane-changing sub flag is an executable flag.
  • the electronic device determines, according to the overtaking lane-changing sub flag in the driving scene file, that the corresponding operation is the overtaking lane-changing sub operation.
  • step (b3) when the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, the corresponding sub-operation is determined as the emergency avoidance sub-operation according to the emergency avoidance sub-identification.
  • emergency avoidance refers to avoidance when a vehicle encounters an emergency.
  • the emergency avoidance sub-operation refers to the corresponding sub-operation to avoid when the virtual vehicle encounters an emergency.
  • a virtual vehicle encounters a special vehicle, such as a fire engine, an ambulance, etc.
  • the emergency avoidance sub-identifier may be composed of at least one of numbers, characters, symbols, and letters.
  • the emergency avoidance sub-identifier may be D3.
  • the electronic device determines whether the execution identification corresponding to the emergency avoidance sub-identification is an executable identification.
  • the execution identifier corresponding to the emergency avoidance sub identifier is an executable identifier
  • the electronic device determines that the corresponding operation is the emergency avoidance sub operation according to the emergency avoidance sub identifier in the driving scene file.
  • the electronic device can execute the emergency avoidance sub-operation according to the vehicle and the corresponding behavior parameter value.
  • the behavior parameter value includes the lane identification value of changing lanes, the value of avoiding vehicle type, and so on.
  • the electronic device executes the emergency avoidance sub-operation according to the lane identification value of the lane change and the value of the avoiding vehicle type.
  • the electronic device determines whether the execution flag corresponding to the emergency avoidance sub-identifier is an executable flag.
  • the electronic device determines that the corresponding operation is the emergency avoidance sub-operation according to the emergency avoidance sub-identification in the driving scene file.
  • the above-mentioned driving scene information processing method can determine the corresponding lane-changing operation according to at least one of the lane-changing sub-identifier, overtaking lane-changing sub-identity, and emergency avoiding sub-identity according to the preset route, which can improve the accuracy of lane changing, thereby Improve the authenticity of the simulated driving environment of unmanned vehicles.
  • the basic behavior indicator includes at least one of a speed control indicator, a constant-speed straight-line driving indicator, a lane-line driving indicator, and a lane-changing driving indicator.
  • the speed control indicator includes at least one of a red light decelerator indicator, a decelerator indicator exceeding a speed limit, a distance-based retarder indicator, and an accelerator indicator.
  • the lane-changing indicator includes at least one of a lane-changing sub-indicator according to a preset route, a lane-changing sub-indicator for overtaking, and an emergency avoiding sub-indicator.
  • the constant-speed straight-line driving mark can correspond to the straight-forward operation at a constant speed at the current speed.
  • the driving mark along the lane line can correspond to the operation of moving at a constant speed along the centerline curve of the lane, etc., and the like is not limited to this.
  • Virtual object behavior operations can be directly added to the virtual object (smart agent) class by adding member functions.
  • an execution identifier corresponding to the virtual object behavior identifier also needs to be added in the configuration file to indicate whether to enable the virtual object behavior operation. In this way, the scalability of the program is relatively high.
  • the class of an agent includes the definition of the agent, its basic properties, the functions it can implement, and other information that may be used.
  • the class of a vehicle can include the current position, speed, size, color and other attributes of the vehicle. Its functions can include how far to travel, slow down and stop when there are pedestrians crossing the road, and red at the intersection ahead. Slow down and stop when the lights are on.
  • each attribute is described by a variable, and each function is implemented by a member function. That is, each virtual object behavior operation can be implemented with a member function.
  • Member functions can change the state of attributes in the class at runtime, such as position movement. Every time a functional module is added, we need to add a corresponding member function to the class, that is, write a section of function code, that is, add a virtual object behavior operation.
  • FIG. 6 it is a schematic flow chart of the operation of determining the behavior of the virtual object in one embodiment.
  • Step 602 Obtain a driving scene configuration file.
  • Step 604 Determine whether the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag?
  • Step 606 if yes, perform a straight-line driving operation at a constant speed.
  • Step 608 Determine whether the execution flag corresponding to the speed control flag is an executable flag?
  • Step 610 if yes, determine whether the execution flag corresponding to the red light deceleration sub flag is an executable flag? If the execution flag corresponding to the red light deceleration sub flag is not an executable flag, step 614 is executed.
  • Step 612 If the execution flag corresponding to the red light deceleration sub-identifier is an executable flag, execute the red light deceleration sub-operation.
  • Step 614 Determine whether the execution identifier corresponding to the deceleration sub-identity exceeding the speed limit value is an executable identifier. If the execution identifier corresponding to the speed-reduction sub-identification exceeding the speed limit value is not an executable identifier, step 618 is executed.
  • step 616 if the execution flag corresponding to the speed limit deceleration sub flag exceeding the speed limit value is an executable flag, execute the speed limit value deceleration sub operation exceeding the speed limit value.
  • Step 618 Determine whether the execution identification corresponding to the distance deceleration sub identification is an executable identification. If the execution flag corresponding to the distance deceleration sub flag is not an executable flag, step 622 is executed.
  • Step 620 If the execution flag corresponding to the distance deceleration sub-identifier is an executable flag, execute the distance deceleration sub-operation.
  • Step 622 Determine whether the execution identification corresponding to the accelerator identification is an executable identification? If the execution identifier corresponding to the accelerator identifier is not an executable identifier, step 626 is executed.
  • step 624 if the execution identifier corresponding to the accelerator sub identifier is an executable identifier, execute the accelerator sub operation.
  • Step 626 Determine whether the execution flag corresponding to the lane line driving flag is an executable flag? If the execution flag corresponding to the driving along the lane line flag is not an executable flag, step 630 is executed.
  • Step 628 If the execution flag corresponding to the accelerator flag is an executable flag, execute the driving operation along the lane line.
  • Step 630 Determine whether the execution flag corresponding to the lane-changing driving flag is an executable flag? If the execution flag corresponding to the lane-changing driving flag is not an executable flag, the process ends, or it is determined whether the execution flag corresponding to other basic behavior flags is an executable flag.
  • Step 632 If the execution flag corresponding to the lane-changing driving flag is an executable flag, determine whether the execution flag corresponding to the lane-changing sub flag according to the preset route is an executable flag. If the execution flag corresponding to the lane change sub flag according to the preset route is not an executable flag, step 636 is executed.
  • step 634 if the execution flag corresponding to the lane change sub flag according to the preset route is an executable flag, execute the lane change operation based on the preset route.
  • Step 636 Determine whether the execution flag corresponding to the overtaking and changing lane sub flag is an executable flag? If the execution flag corresponding to the overtaking and changing lane sub flag is not an executable flag, step 640 is executed.
  • Step 638 If the execution flag corresponding to the overtaking lane change sub flag is an executable flag, execute the overtaking lane change sub operation.
  • Step 640 Determine whether the execution identification corresponding to the emergency avoidance sub-identification is an executable identification. If the execution identifier corresponding to the emergency avoidance sub-identifier is not an executable identifier, the process ends, or it is determined whether the execution identifier corresponding to other basic behavior identifiers is an executable identifier.
  • Step 642 If the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, execute the emergency avoidance sub-operation.
  • the foregoing driving scene information processing method can determine the virtual object behavior operation that needs to be finally performed through a series of judgment conditions, and realize the configurability of the virtual object behavior operation.
  • the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; and the virtual object behavior operation includes an abnormal behavior operation.
  • the abnormal behavior identifier is different from the basic behavior identifier.
  • the abnormal behavior identification may refer to behaviors that do not comply with laws and regulations or behaviors that cause malfunctions.
  • the abnormal behavior parameter value may refer to the parameter value corresponding to the vehicle that is not within the range prescribed by laws and regulations. For example, the speed parameter value is 150 kilometers per hour, etc., the distance to the vehicle in front is less than the reference distance value, and so on.
  • the abnormal behavior identifiers corresponding to different virtual object types are different.
  • the abnormal behavior of a traffic light may be that the red light is always on, the green light is not switched to, or the yellow light is always on, etc. are not limited to this.
  • the abnormal behavior operation may be a speeding operation, a line pressing operation, a non-stop operation at an intersection, a fearful pedestrian operation, etc., and the like is not limited to this.
  • the electronic device performs an abnormal behavior operation according to the type of the virtual object and the abnormal behavior parameter value.
  • the virtual object behavior identifier includes the abnormal behavior identifier
  • the behavior parameter value includes the abnormal behavior parameter value
  • the virtual object behavior operation includes the abnormal behavior operation
  • the abnormal behavior operation is performed according to the virtual object type and the abnormal behavior parameter value.
  • Some driving scenes have special requirements. For example, some vehicles that implement abnormal behaviors need to be added to the driving scene, and the scenes corresponding to the abnormal behaviors are used to test whether the algorithm of unmanned vehicles can work in this scene, so as to improve the simulation of driving scenes. Authenticity; and by changing abnormal parameter values, etc., the driving scene can be modified to improve the scalability of the program.
  • the abnormal behavior indicator is a line-pressing indicator; the type of the virtual object is a vehicle type.
  • Performing abnormal behavior operations according to the virtual object type and abnormal behavior parameter values includes: executing the line pressing operation corresponding to the line pressing identification according to the vehicle type and the corresponding initial position and initial speed to control the line pressing of the virtual vehicle.
  • driving on the line refers to driving in the opposite lane or driving in the same lane.
  • driving on the line refers to driving in the opposite lane or driving in the same lane.
  • the vehicle occupies the lane to drive.
  • the initial position refers to the coordinate position of the virtual vehicle in the driving scene. The initial position may specifically be the position where the virtual vehicle presses the lane line.
  • the initial speed is a fixed speed value.
  • the electronic device executes the line pressing operation corresponding to the line pressing mark according to the initial position and initial speed of the virtual vehicle to control the line pressing operation of the virtual vehicle.
  • the virtual vehicle can travel at a uniform acceleration or deceleration, or travel at a variable speed, and the like is not limited to this.
  • the above-mentioned driving scene information processing method executes the line-pressing operation to control the line-pressing operation of the virtual vehicle, which can simulate the driving scene of the vehicle in the actual driving process, and improve the authenticity of the driving scene simulation , It can test whether the unmanned vehicle algorithm is applicable in this scenario, thereby improving the applicability of the unmanned vehicle algorithm.
  • the abnormal behavior identifier is a no-stop marker at an intersection; the type of the virtual object is a vehicle type; and the abnormal behavior parameter value includes the execution parameter value of the traffic light detection operation as the non-executable parameter value.
  • Performing abnormal behavior operations according to the virtual object type and abnormal behavior parameter values includes: performing the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controlling the virtual vehicle to keep driving at the intersection.
  • no stopping at an intersection refers to a sign that when a vehicle arrives at an intersection, it should slow down in accordance with traffic laws, stop at a red light, or be courteous when encountering a pedestrian, but the virtual vehicle does not stop under the above circumstances.
  • the no-stop sign at the intersection may be composed of at least one of numbers, characters, symbols, and letters.
  • the detection operations corresponding to the vehicle type include traffic light detection operations, sidewalk detection operations, pedestrian detection operations, etc., which are not limited to this.
  • the traffic light detection operation is used to detect the color of the traffic light and determine whether it is passable.
  • the non-executable parameter value is used for not turning on the traffic light detection operation.
  • the executable parameter value can be 1, true, etc., but not limited to this, and the non-executable parameter value can be 0, false, etc., and the like is not limited to this.
  • the electronic device executes the no-stop operation at the intersection corresponding to the no-stop sign at the intersection, and controls the virtual vehicle in Keep driving at intersections.
  • the above-mentioned driving scene information processing method performs the no-stop operation corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controls the virtual vehicle to keep driving at the intersection, that is, the electronic device does not execute the traffic light corresponding to the virtual vehicle
  • the detection operation can be equivalent to an unmanned vehicle encountering a vehicle that does not follow a traffic light during driving, so that it can detect whether the algorithm of the unmanned vehicle plays a role in the scene, and improve the authenticity of the driving scene simulation.
  • the abnormal behavior identification is incorporated into the front identification of the target vehicle;
  • the virtual object type is a vehicle type;
  • the abnormal behavior parameter value includes a distance parameter value between the virtual vehicle and the target vehicle, and the distance parameter value is less than the reference distance value.
  • Performing the abnormal behavior operation according to the virtual object type and the abnormal behavior parameter value includes: performing the merge operation corresponding to the front mark of the merged target vehicle according to the vehicle type and the corresponding distance parameter value, and control the virtual vehicle to merge into the front of the target vehicle.
  • the reference distance value refers to the safe distance value between the virtual vehicle and the target vehicle.
  • the reference distance value can be determined according to the current speed value of the virtual vehicle. When the speed value corresponding to the virtual vehicle is larger, the reference distance value is larger; when the speed value corresponding to the virtual vehicle is smaller, the reference distance value is smaller.
  • the target vehicle refers to a virtual unmanned vehicle.
  • the front mark of the incorporated target vehicle may be composed of at least one of numbers, characters, symbols, and letters.
  • the merging operation may mean that the virtual vehicle and the target vehicle are not in the same lane, and the virtual vehicle merges into the lane where the target vehicle is located from in front of the target vehicle.
  • the distance parameter value refers to the distance parameter value between the virtual vehicle and the target vehicle.
  • the electronic device performs a merge operation according to a reference distance value corresponding to the virtual vehicle, for example 5 meters, so as to control the virtual vehicle to merge into the target vehicle when it is 5 meters away from the target vehicle. At this time, the target vehicle should brake urgently.
  • the virtual vehicle when the distance parameter value is less than the reference distance value, the virtual vehicle performs the merge operation, which is likely to cause traffic accidents, that is, rear-end collision or side collision.
  • Abnormal behavior which can detect whether the algorithm of the unmanned vehicle is working in the scene, and also improve the authenticity of the driving scene simulation.
  • the number of virtual object behavior identifiers is at least two.
  • the number of virtual object behavior identifiers may be at least two.
  • the virtual vehicle taking the behavior identification of the virtual object including the identification of driving in a straight line at a constant speed and the identification of driving along a lane line as an example, the virtual vehicle can travel in a straight line at a constant speed along the lane line.
  • the virtual vehicle can accelerate along the lane line and the like is not limited to this.
  • the sequence of the at least two virtual object behavior identifiers may be the sequence in which they appear in the driving scene configuration information, or the time sequence corresponding to the virtual object behavior identifiers.
  • the electronic device executes the virtual object behavior operation corresponding to each virtual object behavior identifier according to the appearance order of at least two virtual object behavior identifiers, or the corresponding time sequence, the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier, That is, perform at least two virtual object behavior operations.
  • the electronic device controls the virtual vehicle to first perform a constant-speed straight-line driving operation corresponding to a constant-speed straight-line driving indicator, and then perform a speed control operation corresponding to the speed control indicator.
  • the electronic device controls the virtual vehicle to perform a constant-speed straight-line driving operation, and when it is detected that the speed of the preceding vehicle is lower than the speed of the virtual vehicle, the lane-changing operation is performed.
  • the foregoing driving scene information processing method performs at least two virtual object behavior operations corresponding to the sequence of at least two virtual object behavior identifiers, as well as the virtual object type and behavior parameter values corresponding to each virtual object behavior identifier, and can simulate unmanned operations.
  • the actual driving scene of the vehicle and only need to modify the virtual object behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
  • the driving scene configuration information includes initial state information corresponding to the virtual object type.
  • Perform virtual object behavior operations based on virtual object types and behavior parameter values including: performing virtual object behavior operations based on virtual object types, initial state information and behavior parameter values corresponding to virtual object types.
  • the initial state information refers to the state information when the virtual object is started.
  • Different types of virtual objects can have different initial state information.
  • the initial state information corresponding to the vehicle type may include an initial position and an initial speed value.
  • the initial state information corresponding to the traffic light type may include the color of the traffic light and so on.
  • the initial state information corresponding to the pedestrian type may include initial position and initial speed.
  • the electronic device executes the corresponding virtual object behavior operation according to the type of the virtual object, the initial state information corresponding to the type, and the behavior parameter value. For example, the electronic device performs virtual object behavior operations according to the initial position and initial speed corresponding to the vehicle and the vehicle, where the initial speed is 40 kilometers per second, and the parameter value changed to lane 2 to control the virtual vehicle to 40 kilometers per second The speed changes to lane 2.
  • the aforementioned driving scene information processing method performs virtual object behavior operations according to the virtual object type, the initial state information and behavior parameter values corresponding to the virtual object type, and can configure different initial state information and behavior parameter values for different types to execute the corresponding
  • the virtual behavior operation improves the scalability of the program.
  • the driving scene configuration information includes virtual object attribute information.
  • the driving scene information processing method further includes: configuring corresponding virtual object attribute information for the virtual object attribute.
  • the virtual object attribute information refers to the information of the virtual object itself.
  • the virtual object attribute parameter refers to a variable and has no value assigned.
  • the virtual object attribute parameters can be saved in the simulator executable file. The electronic device obtains the virtual object attribute information, and configures the corresponding virtual object attribute information for the virtual object attribute parameter.
  • the foregoing driving scene information processing method configures corresponding virtual object attribute information for the virtual object attributes, which can modify the attributes of the virtual object, meet the needs of different driving, and improve the interactivity of the driving scene.
  • a driving scene information processing device which is a structural block diagram of the driving scene information processing device in an embodiment, and includes an acquisition module 702, a determination module 704, and an execution module 706. :
  • the obtaining module 702 is configured to obtain driving scene configuration information.
  • the driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameter values corresponding to the virtual object type;
  • the determining module 704 is configured to determine the corresponding virtual object behavior operation according to the virtual object behavior identifier
  • the execution module 706 is configured to execute virtual object behavior operations according to virtual object types and behavior parameter values.
  • the behavior scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, and then the virtual object behavior operation to be performed can be determined according to the virtual object identifier, according to the virtual object type and corresponding behavior
  • the parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior, and only need to modify the virtual object Behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability; while the modules corresponding to each driving scene in the traditional way are independent of each other, it is obvious that it must be There will be some similar or even identical modules, and with the increase of driving scenes, there will be more and more duplicate codes.
  • the method in the embodiments of this application is not easy to be repeated virtual object behavior operations, thereby reducing program compilation time. Reduce development and maintenance costs.
  • the determining module 704 is configured to detect the execution identifier corresponding to the virtual object behavior identifier; when the execution identifier is an executable identifier, perform an operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier.
  • the aforementioned driving scene information processing device detects the execution identification corresponding to the virtual object behavior identification; when the execution identification is an executable identification, the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identification is performed, and then the execution identification can be determined by modifying the execution identification Which virtual object behavior operations are performed to improve the scalability of the program.
  • the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes at least one of a constant-speed straight-line driving identification, a speed control identification, a lane-line driving identification, and a lane-changing driving identification.
  • the determining module 704 is configured to determine that the corresponding operation is a constant-speed straight-line driving operation according to the constant-speed straight-line driving flag when the execution flag corresponding to the uniform-speed straight-line driving flag is an executable flag.
  • the determining module 704 is configured to determine that the corresponding operation is a speed control operation according to the speed control identifier when the execution identifier corresponding to the speed control identifier is an executable identifier.
  • the determining module 704 is configured to determine that the corresponding operation is a driving operation along the lane line according to the driving along the lane line when the execution flag corresponding to the driving along the lane line is an executable flag.
  • the determining module 704 is configured to determine the lane-changing driving operation according to the lane-changing driving flag when the execution flag corresponding to the lane-changing driving flag is an executable flag.
  • the aforementioned driving scene information processing device can determine the corresponding virtual object behavior operation according to the constant-speed straight-line driving flag, the speed control flag, the lane line driving flag, and the lane-changing driving flag corresponding to the execution flags, and the virtual object behavior flags can be modified by modifying the virtual object behavior flags. Make the virtual vehicle realize the corresponding virtual object behavior operation, obtain different driving scenes, and improve the scalability of the program.
  • the speed control indicator includes at least one of a red light decelerator indicator, a speed limit decelerator indicator exceeding a speed limit, a distance-based speed reducer indicator, and an accelerator indicator.
  • the speed control operation includes at least one of a red light deceleration sub-operation, a speed limit exceeding a deceleration sub-operation, a distance-based deceleration sub-operation, and an acceleration sub-operation.
  • the determining module 704 is configured to determine that the corresponding sub-operation is a red-light deceleration sub-operation according to the red-light deceleration sub-identification when the execution identifier corresponding to the red light deceleration sub-identity is an executable identifier.
  • the determining module 704 is configured to determine that the corresponding sub-operation is a deceleration sub-operation exceeding the speed limit value according to the speed-limiting-value deceleration sub-identification when the execution flag corresponding to the speed-limiting-value deceleration sub-identification is an executable flag.
  • the determining module 704 is configured to, when the execution identifier corresponding to the distance deceleration sub-identifier is an executable identifier, determine the corresponding sub-operation as the distance-deceleration sub-operation according to the distance-deceleration sub-identification.
  • the determining module 704 is configured to, when the execution identifier corresponding to the accelerator sub identifier is an executable identifier, determine that the corresponding sub operation is an accelerator sub operation according to the accelerator identifier.
  • the above-mentioned driving scene information processing device can determine the corresponding speed control operation according to at least one of the red light decelerating sub-mark, the speed-limiting decelerating sub-mark, the distance decelerating sub-mark, and the accelerator marking, so as to improve the speed control performance. Accuracy, thereby improving the authenticity of the simulated unmanned vehicle driving environment.
  • the lane-changing driving indicator includes at least one of a lane-changing sub-identifier according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identity.
  • the lane-changing driving operation includes at least one of a lane-changing sub-operation according to a preset route, a lane-changing sub-operation for overtaking, and an emergency avoiding sub-operation.
  • the determining module 704 is configured to determine that the corresponding operation is the lane change operation according to the preset route when the execution flag corresponding to the lane change sub-identifier according to the preset route is an executable flag.
  • the determining module 704 is configured to determine that the corresponding sub-operation is the overtaking and changing lane sub-operation according to the overtaking and changing lane sub-operation when the execution identifier corresponding to the overtaking and changing lane sub-indicator is an executable identifier.
  • the determining module 704 is configured to determine that the corresponding sub-operation is an emergency avoiding sub-operation according to the emergency avoiding sub-identifier when the execution identifier corresponding to the emergency avoiding sub-identifier is an executable identifier.
  • the aforementioned driving scene information processing device can determine the corresponding lane-changing driving operation according to at least one of the lane-changing sub-identifier, the overtaking lane-changing sub-identifier, and the emergency avoiding sub-identity respectively according to the preset route, which can improve the accuracy of lane changing, thereby Improve the authenticity of the simulated driving environment of unmanned vehicles.
  • the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; and the virtual object behavior operation includes an abnormal behavior operation.
  • the execution module 706 is configured to execute abnormal behavior operations according to the type of the virtual object and the abnormal behavior parameter value.
  • the virtual object behavior identifier includes the abnormal behavior identifier
  • the behavior parameter value includes the abnormal behavior parameter value
  • the virtual object behavior operation includes the abnormal behavior operation
  • the abnormal behavior operation is performed according to the virtual object type and the abnormal behavior parameter value.
  • Some driving scenes have special requirements. For example, some vehicles that implement abnormal behaviors need to be added to the driving scene, and the scenes corresponding to the abnormal behaviors are used to test whether the algorithm of unmanned vehicles can work in this scene, so as to improve the simulation of driving scenes. Authenticity; and by changing abnormal parameter values, etc., the driving scene can be modified to improve the scalability of the program.
  • the abnormal behavior indicator is a line-pressing indicator; the type of the virtual object is a vehicle type.
  • the execution module 706 is configured to execute the line pressing operation corresponding to the line pressing identification according to the vehicle type and the corresponding initial position and initial speed, so as to control the line pressing operation of the virtual vehicle.
  • the above-mentioned driving scene information processing device executes the line-pressing operation to control the line-pressing operation of the virtual vehicle, which can simulate the driving scene of the vehicle in the actual driving process, and improve the authenticity of the driving scene simulation , It can test whether the unmanned vehicle algorithm is applicable in this scenario, thereby improving the applicability of the unmanned vehicle algorithm.
  • the abnormal behavior identifier is a no-stop marker at an intersection; the type of the virtual object is a vehicle type; and the abnormal behavior parameter value includes the execution parameter value of the traffic light detection operation as the non-executable parameter value.
  • the execution module 706 is configured to execute the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the type of the vehicle and the corresponding non-executable parameter value, and control the virtual vehicle to keep driving at the intersection.
  • the aforementioned driving scene information processing device executes the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controls the virtual vehicle to keep driving at the intersection, that is, the electronic device does not execute the traffic light corresponding to the virtual vehicle
  • the detection operation can be equivalent to an unmanned vehicle encountering a vehicle that does not follow a traffic light during driving, so that it can detect whether the algorithm of the unmanned vehicle plays a role in the scene, and improve the authenticity of the driving scene simulation.
  • the abnormal behavior identification is incorporated into the front identification of the target vehicle;
  • the virtual object type is a vehicle type;
  • the abnormal behavior parameter value includes a distance parameter value between the virtual vehicle and the target vehicle, and the distance parameter value is less than the reference distance value.
  • the execution module 706 is configured to execute the merge operation corresponding to the front mark of the merged target vehicle according to the vehicle type and the corresponding distance parameter value, and control the virtual vehicle to merge into the front of the target vehicle to travel.
  • the virtual vehicle when the distance parameter value is less than the reference distance value, the virtual vehicle performs the merge operation, which is likely to cause traffic accidents, that is, accidents such as rear-end collision or side collision.
  • Traffic accidents that is, accidents such as rear-end collision or side collision.
  • Abnormal behavior which can detect whether the algorithm of the unmanned vehicle is working in the scene, and also improve the authenticity of the driving scene simulation.
  • the number of virtual object behavior identifiers is at least two.
  • the execution module 706 is configured to execute the corresponding at least two virtual object behavior operations according to the sequence of the at least two virtual object behavior identifiers, and the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier.
  • the foregoing driving scene information processing device performs at least two virtual object behavior operations corresponding to the sequence of at least two virtual object behavior identifiers, and the virtual object type and behavior parameter values corresponding to each virtual object behavior identifier, and can simulate unmanned operations.
  • the actual driving scene of the vehicle and only need to modify the virtual object behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
  • the driving scene configuration information includes initial state information corresponding to the virtual object type.
  • the execution module 706 is configured to execute virtual object behavior operations according to the virtual object type, the initial state information corresponding to the virtual object type, and the behavior parameter value.
  • the above-mentioned driving scene information processing device performs virtual object behavior operations according to the virtual object type, the initial state information and behavior parameter values corresponding to the virtual object type, and can configure different initial state information and behavior parameter values for different types to execute the corresponding
  • the virtual behavior operation improves the scalability of the program.
  • the driving scene configuration information includes virtual object attribute information.
  • the driving scene information processing device also includes a configuration module.
  • the configuration module is used to configure the corresponding virtual object attribute information for the virtual object attribute.
  • the above-mentioned driving scene information processing device configures corresponding virtual object attribute information for the virtual object attributes, which can modify the attributes of the virtual object, meet the needs of different driving, and improve the interactivity of the driving scene.
  • the driving scene information processing device can be divided into different modules as needed to complete all or part of the driving scene information processing device. Function.
  • Each module in the above-mentioned driving scene information processing device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the electronic device, or may be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • each module in the driving scene information processing device provided in the embodiment of the present application may be in the form of a computer program.
  • the computer program can be run on electronic devices such as terminals or servers.
  • the program module constituted by the computer program can be stored in the memory of the electronic device.
  • an electronic device which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program, the driving scene provided by the foregoing embodiments is implemented. Operation of information processing methods.
  • a computer-readable storage medium stores a computer program.
  • the computer program is executed by the processor, the driving scenario described in each embodiment of the present application is realized. Operation of information processing methods.
  • a computer program product containing instructions which when running on a computer, causes the computer to execute the driving scene information processing method described in each embodiment of the present application.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Traffic Control Systems (AREA)

Abstract

Provided is a traveling scenario information processing method, comprising: acquiring traveling scenario configuration information, wherein the traveling scenario configuration information comprises a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and a behavior parameter value corresponding to the virtual object type (step 202); determining a corresponding virtual object behavior operation according to the virtual object behavior identifier (step 204); and executing the virtual object behavior operation according to the virtual object type and the behavior parameter value (step 206).

Description

行驶场景信息处理方法、装置、电子设备和可读存储介质Driving scene information processing method, device, electronic equipment and readable storage medium 技术领域Technical field
本申请涉及车辆技术领域,特别是涉及一种行驶场景信息处理方法、装置、电子设备和可读存储介质。This application relates to the field of vehicle technology, and in particular, to a method, device, electronic device, and readable storage medium for processing driving scene information.
背景技术Background technique
目前对虚拟场景中智能物体的仿真模拟,主要是根据现有法律法规中规定的虚拟场景来设计。传统的行驶场景信息处理方法,会根据每个虚拟行驶场景的要求,单独设计一个文件来实现该场景的要求。而传统的行驶场景信息处理方法,存在程序的扩展性较差的问题。At present, the simulation of intelligent objects in virtual scenes is mainly designed according to the virtual scenes stipulated in existing laws and regulations. In the traditional driving scene information processing method, a separate file is designed according to the requirements of each virtual driving scene to realize the requirements of the scene. However, the traditional driving scene information processing method has the problem of poor scalability of the program.
发明内容Summary of the invention
根据本申请的各种实施例提供一种行驶场景信息处理方法、装置、电子设备和可读存储介质。According to various embodiments of the present application, a method, an apparatus, an electronic device, and a readable storage medium for processing driving scene information are provided.
一种行驶场景信息处理方法,包括:获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。A method for processing driving scene information, including: acquiring driving scene configuration information, the driving scene configuration information including a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameters corresponding to the virtual object type Value; determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; execute the virtual object behavior operation according to the virtual object type and the behavior parameter value.
一种行驶场景信息处理装置,所述装置包括:获取模块,用于获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;确定模块,用于根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;执行模块,用于根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。A driving scene information processing device, the device comprising: an acquisition module for acquiring driving scene configuration information, where the driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and all The behavior parameter value corresponding to the virtual object type; a determining module, configured to determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; an execution module, configured to execute the virtual object type and the behavior parameter value Virtual object behavior operation.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。An electronic device includes a memory and a processor, and the memory stores a computer program. When the computer program is executed by the processor, the processor is caused to perform the following operations: obtaining driving scene configuration information, and The scene configuration information includes the virtual object behavior identifier, the virtual object type corresponding to the virtual object behavior identifier, and the behavior parameter value corresponding to the virtual object type; the corresponding virtual object behavior operation is determined according to the virtual object behavior identifier; The virtual object type and the behavior parameter value execute the virtual object behavior operation.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下操作:获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。A computer-readable storage medium, on which a computer program is stored, when the computer program is executed by a processor, the following operations are realized: obtaining driving scene configuration information, where the driving scene configuration information includes a virtual object behavior identification, the virtual The virtual object type corresponding to the object behavior identifier and the behavior parameter value corresponding to the virtual object type; determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; execute the virtual object type according to the virtual object type and the behavior parameter value Virtual object behavior operation.
本申请实施例通过获取行为场景配置信息,其中行为场景配置信息中包括虚拟对象行为标识、虚拟对象类型对应的行为参数值,则可根据虚拟对象标识确定需要执行的虚拟对象行为操作,根据虚拟对象类型和对应的行为参数值执行虚拟对象行为操作,即行为场景配置信息中描述了需要执行的虚拟对象行为操作、虚拟对象行为操作对应的参数值是什么,能够实现场景和行为的可配置化,只需要修改虚拟对象行为标识和行为参数值,即可执行不同的虚拟对象行为操作,使用更加便捷,且程序的可扩展性高。The embodiment of the application obtains behavioral scene configuration information, where the behavioral scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, the virtual object behavior operation that needs to be performed can be determined according to the virtual object identifier, and according to the virtual object The type and corresponding behavior parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior. You only need to modify the virtual object behavior identification and behavior parameter values to perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为一个实施例中电子设备的内部结构示意图。Fig. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment.
图2为一个实施例中行驶场景信息处理方法的流程图。Fig. 2 is a flowchart of a method for processing driving scene information in an embodiment.
图3为另一个实施例中行驶场景信息处理方法的流程示意图。Fig. 3 is a schematic flowchart of a method for processing driving scene information in another embodiment.
图4为一个实施例中确定虚拟对象行为操作的流程示意图。Fig. 4 is a schematic flowchart of an operation of determining a behavior of a virtual object in an embodiment.
图5为一个实施例中基本行为标识的关系示意图。Fig. 5 is a schematic diagram of the relationship between basic behavior identifiers in an embodiment.
图6为一个实施例中确定虚拟对象行为操作的流程示意图。Fig. 6 is a schematic flowchart of an operation of determining a behavior of a virtual object in an embodiment.
图7为一个实施例中行驶场景信息处理装置的结构框图。Fig. 7 is a structural block diagram of a driving scene information processing device in an embodiment.
具体实施方式Detailed ways
在一个实施例中,如图1所示,提供了一种电子设备的内部结构示意图。图1中的电子设备具体可以是个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备等。该电子设备包括通过系统总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的内存处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现以上各个实施例所提供的一种行驶场景信息处理方法相关的数据,比如可存储有虚拟对象行为操作等。该计算机程序可被处理器所执行,以用于实现本申请各个实施例所提供的一种行驶场景信息处理方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示行驶场景,还可以被用于检测作用于该显示屏的触摸操作,生成相应的指令,比如进行前后台应用的切换指令等。显示屏可以是液晶显示屏或者电子墨水显示屏,该电子设备的输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, as shown in FIG. 1, a schematic diagram of the internal structure of an electronic device is provided. The electronic device in FIG. 1 may specifically be a personal computer, a notebook computer, a smart phone, a tablet computer, a portable wearable device, and the like. The electronic device includes a processor, a memory, and a display screen connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored in the memory, and the computer program can be executed by a processor to implement the memory processing method suitable for electronic devices provided in the embodiments of the present application. The memory may include non-volatile storage media such as magnetic disks, optical disks, read-only memory (Read-Only Memory, ROM), or random-access-memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores related data used to implement a driving scene information processing method provided by each of the above embodiments, for example, virtual object behavior operations can be stored. The computer program may be executed by a processor to implement a driving scene information processing method provided by each embodiment of the present application. The internal memory provides a cached operating environment for the operating system, database and computer program in the non-volatile storage medium. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, used to display driving scenes, and can also be used to detect touch operations on the display screen and generate corresponding instructions, such as switching instructions for front and back applications. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or External keyboard, touchpad or mouse, etc.
本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定。例如电子设备可以是服务器,而服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。如该电子设备还包括通过系统总线连接的网络接口,网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信,比如可用于同服务器进行通信。再比如该电子设备上并不存在通过系统总线连接的显示器,或者可连接外部显示设备。Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. For example, the electronic device may be a server, and the server may be implemented by an independent server or a server cluster composed of multiple servers. A specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement. For example, the electronic device also includes a network interface connected via a system bus. The network interface can be an Ethernet card or a wireless network card, etc., for communicating with external electronic devices, for example, for communicating with a server. For another example, there is no display connected via the system bus on the electronic device, or an external display device can be connected.
在一个实施例中,如图2所示,提供了一种行驶场景信息处理方法,本实施例以该方法应用于如图1所示的电子设备为例进行说明。该行驶场景信息处理方法包括:In one embodiment, as shown in FIG. 2, a method for processing driving scene information is provided. In this embodiment, the method is applied to the electronic device shown in FIG. 1 as an example for description. The driving scene information processing method includes:
步骤202,获取行驶场景配置信息,行驶场景配置信息中包括虚拟对象行为标识、该虚拟对象行为标识对应的虚拟对象类型和虚拟对象类型对应的行为参数值。Step 202: Acquire driving scene configuration information. The driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameter values corresponding to the virtual object type.
其中,行驶场景是指虚拟车辆的虚拟行驶场景。行驶场景中可包括不同的虚拟对象类型。其中虚拟对象类型包括道路类型、车辆类型和交通灯类型,还可以包括行人类型、斑马线类型、树木类型、建筑中类型至少一种等。虚拟对象(smart agent)可为道路、车辆或交通灯,还可以为行人、斑马线、树木或建筑中至少一种等。虚拟对象的数量不限。例如行驶场景中可同时出现2个行人、3个行人等等。例如,行驶场景可以是限速标志识别及响应场景、停车让行标志标线识别及响应场景、车道线识别及响应场景或人行横道线 识别与响应场景等不限于此。行驶场景可以是现有法律法规中规定的虚拟场景。Among them, the driving scene refers to a virtual driving scene of a virtual vehicle. Different types of virtual objects can be included in the driving scene. The types of virtual objects include road types, vehicle types, and traffic light types, and may also include at least one of pedestrian types, zebra crossing types, tree types, and building types. Virtual objects (smart agents) can be roads, vehicles, or traffic lights, and can also be at least one of pedestrians, zebra crossings, trees, or buildings. The number of virtual objects is not limited. For example, 2 pedestrians, 3 pedestrians, etc. may appear in the driving scene at the same time. For example, the driving scene may be a speed limit sign recognition and response scene, a parking yield sign marking line recognition and response scene, a lane line recognition and response scene, or a crosswalk line recognition and response scene, etc. are not limited to this. The driving scene may be a virtual scene stipulated in existing laws and regulations.
虚拟对象行为标识是指用于唯一标识虚拟对象行为的标识。虚拟对象行为标识可由数字、字母、文字、符号中至少一种组成。例如虚拟对象行为标识可为匀速直线行驶标识,或者标识为1等不限于此。虚拟对象行为标识可分为基本行为标识和异常行为标识。虚拟对象行为标识用于确定虚拟对象行为操作。行为参数值是指虚拟对象实施的行为参数的参数值。行为参数值是指变量对应的值。例如,虚拟对象类型为车辆类型时,行为参数值可以是与换车道相关的参数值,比如距离目标车多远时可以换车道,是否需要连续换多条车道,连续换车道时在每条车道上需要停留的时间值等。或者,跟车行驶的时候,距离前车的安全距离值,可能发生追尾时的最大加速度值等不限于此。虚拟对象类型为交通灯类型时,对应的行为参数值可以是指红灯时长、绿灯时长等不限于此。虚拟对象类型为行人类型时,对应的行为参数值可以是行走速度参数值等不限于此。The virtual object behavior identifier refers to an identifier used to uniquely identify the virtual object behavior. The virtual object behavior identification can be composed of at least one of numbers, letters, characters, and symbols. For example, the behavior identifier of the virtual object may be a constant-speed straight-line driving identifier, or the identifier is 1, and the like is not limited to this. Virtual object behavior identification can be divided into basic behavior identification and abnormal behavior identification. The virtual object behavior identifier is used to determine the virtual object behavior operation. The behavior parameter value refers to the parameter value of the behavior parameter implemented by the virtual object. The behavior parameter value refers to the value corresponding to the variable. For example, when the virtual object type is a vehicle type, the behavior parameter value can be a parameter value related to changing lanes, such as how far away from the target car can be changed lanes, whether it is necessary to change multiple lanes continuously, and in each lane when changing lanes continuously The value of the time required to stay on the display, etc. Or, when following a car, the value of the safe distance from the vehicle in front, the maximum acceleration value when a rear-end collision may occur, etc. are not limited to this. When the virtual object type is a traffic light type, the corresponding behavior parameter value may refer to the duration of the red light, the duration of the green light, etc., which are not limited to this. When the virtual object type is a pedestrian type, the corresponding behavior parameter value may be a walking speed parameter value and the like is not limited thereto.
每个虚拟对象行为标识均有对应的虚拟对象类型,以及该虚拟对象类型对应的行为参数值。Each virtual object behavior identifier has a corresponding virtual object type and a behavior parameter value corresponding to the virtual object type.
具体地,行驶场景配置信息可保存在行驶场景配置文件中。行驶场景配置信息中包括虚拟对象行为标识、虚拟对象类型、虚拟对象类型对应的行为参数值。例如,虚拟对象行为标识为匀速直线行驶标识,虚拟对象类型为车辆,那么虚拟对象类型对应的行为参数包括速度参数,对应的行为参数值为速度参数值。行为参数还可以包括车辆行驶方向参数,对应的行为参数值为车辆行驶方向参数值等不限于此。Specifically, the driving scene configuration information may be saved in the driving scene configuration file. The driving scene configuration information includes virtual object behavior identifiers, virtual object types, and behavior parameter values corresponding to the virtual object types. For example, if the behavior identifier of the virtual object is a constant-speed straight-line driving identifier, and the type of the virtual object is a vehicle, then the behavior parameter corresponding to the virtual object type includes a speed parameter, and the corresponding behavior parameter value is a speed parameter value. The behavior parameter may also include the vehicle driving direction parameter, and the corresponding behavior parameter value is not limited to the vehicle driving direction parameter value.
本实施例中,行驶场景配置信息还可以包括与该行为参数值对应的行为参数。其中,行为参数表示一个变量。行为参数也可称为行为参数名称。例如,行为参数为A,行为参数值为1。In this embodiment, the driving scene configuration information may further include a behavior parameter corresponding to the behavior parameter value. Among them, the behavior parameter represents a variable. Behavior parameters can also be referred to as behavior parameter names. For example, the behavior parameter is A, and the behavior parameter value is 1.
步骤204,根据虚拟对象行为标识确定对应的虚拟对象行为操作。Step 204: Determine a corresponding virtual object behavior operation according to the virtual object behavior identifier.
其中,一个虚拟对象行为操作可视为一个虚拟对象行为程序模块。一个程序模块用于实现一种功能。即一个程序模块用于执行一种行为。一个虚拟对象行为标识对应一项虚拟对象行为操作。每个虚拟对象行为标识均有对应的虚拟对象行为操作。Among them, a virtual object behavior operation can be regarded as a virtual object behavior program module. A program module is used to realize a function. That is, a program module is used to perform a behavior. A virtual object behavior identifier corresponds to a virtual object behavior operation. Each virtual object behavior identifier has a corresponding virtual object behavior operation.
具体地,电子设备根据虚拟对象标识从行驶场景操作程序中确定对应的虚拟对象行为操作。其中,行驶场景操作程序中可包括至少一种虚拟对象行为操作。Specifically, the electronic device determines the corresponding virtual object behavior operation from the driving scene operation program according to the virtual object identifier. Wherein, the driving scene operation program may include at least one virtual object behavior operation.
步骤206,根据虚拟对象类型和对应的行为参数值执行虚拟对象行为操作。Step 206: Perform a virtual object behavior operation according to the type of the virtual object and the corresponding behavior parameter value.
其中,虚拟对象行为操作中包括虚拟对象类型参数和虚拟对象类型对应的行为参数。行驶场景配置信息中的行为参数与虚拟对象行为操作中的行为参数相对应。行驶场景配置信息中的行为参数值用于为虚拟对象行为操作中对应的行为参数赋值。Among them, the virtual object behavior operation includes virtual object type parameters and behavior parameters corresponding to the virtual object type. The behavior parameter in the driving scene configuration information corresponds to the behavior parameter in the behavior operation of the virtual object. The behavior parameter value in the driving scene configuration information is used to assign a value to the corresponding behavior parameter in the behavior operation of the virtual object.
具体地,电子设备将行驶场景配置文件输入至模拟器可执行文件中,以控制虚拟对象类型对应的虚拟对象实现相应的行为。即,电子设备为行驶场景操作程序中虚拟对象类型对应的行为参数配置该行为参数值。其中,模拟器可执行文件中包括虚拟对象行为操作对应的程序代码。Specifically, the electronic device inputs the driving scene configuration file into the simulator executable file to control the virtual object corresponding to the virtual object type to implement the corresponding behavior. That is, the electronic device configures the behavior parameter value for the behavior parameter corresponding to the virtual object type in the driving scene operation program. Wherein, the simulator executable file includes the program code corresponding to the behavior operation of the virtual object.
本实施例中,电子设备可按照虚拟对象类型对应的行为参数值的顺序为虚拟对象行为操作中的行为参数赋值。In this embodiment, the electronic device can assign values to the behavior parameters in the behavior operation of the virtual object in the order of the behavior parameter values corresponding to the virtual object type.
上述行驶场景信息处理方法,行为场景配置信息中包括虚拟对象行为标识、虚拟对象类型对应的行为参数值,则可根据虚拟对象标识确定需要执行的虚拟对象行为操作,根据虚拟对象类型和对应的行为参数值执行虚拟对象行为操作,即行为场景配置信息中描述了需要执行的虚拟对象行为操作、虚拟对象行为操作对应的参数值是什么,能够实现场景和行为的可配置化,只需要修改虚拟对象行为标识和行为参数值,即可执行不同的虚拟对象行为操作,使用更加便捷,且程序的可扩展性高;而传统的方式中每个行驶场景对应的模块虽然相互独立,但显然,其中必然会有一些相似甚至是完全相同的模块,而随着行驶场景的增多,重复代码会越来越多,采用本申请实施例中的方式不易出现重复的虚拟对象行 为操作,从而减少程序编译时间,降低开发和维护成本。In the above driving scene information processing method, the behavior scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, and then the virtual object behavior operation that needs to be performed can be determined according to the virtual object identifier, according to the virtual object type and corresponding behavior The parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior, and only need to modify the virtual object Behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability; while the modules corresponding to each driving scene in the traditional way are independent of each other, it is obvious that it must be There will be some similar or even identical modules, and with the increase of driving scenes, there will be more and more duplicate codes. The method in the embodiments of this application is not easy to be repeated virtual object behavior operations, thereby reducing program compilation time. Reduce development and maintenance costs.
此外,传统的方式实现复杂功能的难度变大。在传统的设计模式下,每次开发新的功能、实现新的场景,都需要从头开始搭建和设计。随着自动驾驶技术的不断成熟,对模拟测试的要求越来越高,场景的复杂程度和接近现实的程度也只会越来越高。如果每次都完全重新开发新功能,那将非常耗时费力。而采用本申请实施例中的方法,每次只需要通过更改行驶场景配置信息,就可以很容易地改变虚拟对象的行为。这样避免了创建过多的虚拟对象的类,减少程序编译的时间,也降低了后续开发和维护的成本。In addition, traditional methods have become more difficult to implement complex functions. In the traditional design mode, every time a new function is developed and a new scene is realized, it is necessary to build and design from scratch. With the continuous maturity of autonomous driving technology, the requirements for simulation testing are getting higher and higher, and the complexity of the scene and the degree of closeness to reality will only get higher and higher. It would be very time-consuming and labor-intensive if new features were completely re-developed every time. With the method in the embodiment of the present application, the behavior of the virtual object can be easily changed by changing the driving scene configuration information each time. This avoids the creation of too many classes of virtual objects, reduces the time of program compilation, and also reduces the cost of subsequent development and maintenance.
在一个实施例中,如图3所示,为另一个实施例中行驶场景信息处理方法的流程示意图。行驶场景配置信息对应的行驶场景配置文件可以是一个文本文档。可根据指定的protocol buffers文件格式编辑该文本文档。如果行驶场景配置文件的格式不正确,将导致无法解析,从而程序无法正常运行。电子设备将行驶场景配置文件作为输入传送给模拟器可执行文件,模拟器在后端运行,实时把场景状态发送给场景的可视化工具,并展示在屏幕上。其中,模拟器可执行文件中包括至少一个虚拟对象行为操作。In one embodiment, as shown in FIG. 3, it is a schematic flowchart of a method for processing driving scene information in another embodiment. The driving scene configuration file corresponding to the driving scene configuration information may be a text document. The text document can be edited according to the specified protocol buffers file format. If the format of the driving scene configuration file is not correct, it will not be parsed and the program will not run normally. The electronic device transmits the driving scene configuration file as an input to the simulator executable file. The simulator runs on the back end, and sends the scene state to the scene visualization tool in real time, and displays it on the screen. Wherein, the simulator executable file includes at least one virtual object behavior operation.
//行驶场景配置文件格式样例//Sample driving scene configuration file format
物体ID:1Object ID: 1
物体类型:车辆Object type: vehicle
初始状态{Initial state {
位置:位置信息Location: Location information
速度:速度信息Speed: speed information
}}
智能程度{Degree of intelligence {
红灯减速:是/否Red light deceleration: yes/no
沿车道行驶:是/否Drive along the lane: yes/no
}}
行为参数{Behavior parameters {
参数1:参数1数值Parameter 1: Parameter 1 value
参数2:参数2数值Parameter 2: Parameter 2 value
}}
其中,物体即虚拟对象。智能程度也可用级别表示。级别越高,智能程度越高。参数1在虚拟对象行为操作中具有相同的参数名。Among them, objects are virtual objects. The degree of intelligence can also be expressed by level. The higher the level, the higher the level of intelligence. Parameter 1 has the same parameter name in the virtual object behavior operation.
在一个实施例中,行驶场景信息处理方法还包括:检测虚拟对象行为标识对应的执行标识;当执行标识为可执行标识时,执行根据虚拟对象行为标识确定对应的虚拟对象行为操作的操作。In one embodiment, the driving scene information processing method further includes: detecting an execution identifier corresponding to the virtual object behavior identifier; when the execution identifier is an executable identifier, performing an operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier.
其中,执行标识可用于确定是否执行某一虚拟对象行为操作。执行标识可包括可执行标识和不可执行标识。执行标识可以是布尔变量值。行驶场景配置信息中可用布尔变量(Boolean Variable)确定需要执行的虚拟对象行为操作。例如,可执行标识为1,不可执行标识为0;可执行标识为true,不可执行标识为false。Among them, the execution identifier can be used to determine whether to execute a certain virtual object behavior operation. Execution identification may include executable identification and non-executable identification. The execution flag can be a Boolean variable value. The Boolean variable (Boolean Variable) can be used in the driving scene configuration information to determine the virtual object behavior operation that needs to be performed. For example, the executable flag is 1, and the non-executable flag is 0; the executable flag is true, and the non-executable flag is false.
具体地,电子设备检测虚拟对象行为标识对应的执行标识。当执行标识为可执行标识时,根据虚拟对象确定对应的虚拟对象行为操作。当执行标识为不可执行标识时,不执行该虚拟对象行为操作。Specifically, the electronic device detects the execution identifier corresponding to the virtual object behavior identifier. When the execution identifier is an executable identifier, the corresponding virtual object behavior operation is determined according to the virtual object. When the execution flag is an unexecutable flag, the virtual object behavior operation is not executed.
本实施例中,行为场景配置信息中可只包括可执行标识。当虚拟对象行为标识对应的执行标识为可执行标识时,根据虚拟对象行为标识确定对应的虚拟对象行为操作。In this embodiment, the behavior scenario configuration information may only include the executable identifier. When the execution identifier corresponding to the virtual object behavior identifier is an executable identifier, the corresponding virtual object behavior operation is determined according to the virtual object behavior identifier.
上述行驶场景信息处理方法,检测虚拟对象行为标识对应的执行标识;当执行标识为可执行标识时,执行根据虚拟对象行为标识确定对应的虚拟对象行为操作的操作,那么通过修改执行标识则可确定执行哪些虚拟对象行为操作,提高程序的可扩展性。The aforementioned driving scene information processing method detects the execution identification corresponding to the virtual object behavior identification; when the execution identification is an executable identification, the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identification is performed, and then the execution identification can be determined by modifying the execution identification Which virtual object behavior operations are performed to improve the scalability of the program.
在一个实施例中,虚拟对象行为标识包括基本行为标识;基本行为标识包括匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识中至少一种。如图4所示,为一个实施例中确定虚拟对象行为操作的流程示意图,当执行标识为可执行标识时,执行根据虚拟对象行为标识确定对应的虚拟对象行为操作的操作,包括:In one embodiment, the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes at least one of a constant-speed straight-line driving identification, a speed control identification, a lane-line driving identification, and a lane-changing driving identification. As shown in FIG. 4, it is a schematic diagram of the flow of determining a virtual object behavior operation in an embodiment. When the execution identifier is an executable identifier, performing the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier includes:
步骤402,当匀速直线行驶标识对应的执行标识为可执行标识时,根据匀速直线行驶标识确定对应的操作为匀速直线行驶操作。Step 402: When the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag, determine that the corresponding operation is a constant-speed straight-line driving operation according to the constant-speed straight-line driving flag.
其中,基本行为是指车辆在道路上行驶时的行为。例如匀速直线行驶、换车道行驶、加速行驶、减速行驶等。具体可以是沿着当前车道匀速行驶、换到相邻车道、检测到路口红灯时减速并停在停止线上、跟车行驶时需要注意与前方车辆的车距和相对速度,根据当前车道的限速调整车的速度等。匀速直线行驶标识可以由数字、文字、符号、字母中至少一种组成。例如,匀速直线行驶标识可以为A。匀速直线行驶操作是指虚拟车辆按照预设速度沿着直线行走的操作。Among them, the basic behavior refers to the behavior of the vehicle when driving on the road. For example, driving in a straight line at a constant speed, driving in a lane change, driving at an acceleration, driving at a deceleration, etc. Specifically, it can be driving along the current lane at a constant speed, changing to an adjacent lane, slowing down when a red light at an intersection is detected, and stopping on the stop line, and following the car, you need to pay attention to the distance and relative speed of the vehicle in front, according to the current lane Speed limit adjusts the speed of the car, etc. The uniform-speed straight-line driving sign may be composed of at least one of numbers, characters, symbols, and letters. For example, the uniform speed straight driving indicator may be A. A constant-speed straight-line driving operation refers to the operation of a virtual vehicle walking along a straight line at a preset speed.
具体地,电子设备判断匀速直线行驶标识对应的执行标识是否为可执行标识。当匀速直线行驶标识对应的执行标识为可执行标识时,电子设备根据行驶场景配置文件中的匀速直线行驶标识确定对应的操作为匀速直线行驶操作。例如,匀速直线行驶标识为A,电子设备根据A标识确定对应的操作为A操作。电子设备根据车辆类型和对应的行为参数值执行匀速直线行驶操作。例如,行为参数值包括速度参数值。电子设备根据车辆类型及对应的速度参数值执行匀速直线行驶操作。Specifically, the electronic device determines whether the execution identification corresponding to the constant-speed straight-line driving identification is an executable identification. When the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag, the electronic device determines, according to the uniform-speed straight-line driving flag in the driving scene configuration file, that the corresponding operation is a uniform-speed straight-line driving operation. For example, the constant-speed straight-line driving flag is A, and the electronic device determines that the corresponding operation is A operation according to the A flag. The electronic device performs a straight-line driving operation at a constant speed according to the vehicle type and corresponding behavior parameter values. For example, the behavior parameter value includes the speed parameter value. The electronic device performs a straight-line driving operation at a constant speed according to the vehicle type and the corresponding speed parameter value.
步骤404,当速度控制标识对应的执行标识为可执行标识时,根据速度控制标识确定对应的操作为速度控制操作。Step 404: When the execution flag corresponding to the speed control flag is an executable flag, determine that the corresponding operation is a speed control operation according to the speed control flag.
其中,速度控制标识可以由数字、文字、符号、字母中至少一种组成。例如,速度控制标识可以为B。速度控制操作可用于控制虚拟车辆的加速或减速等。Wherein, the speed control mark can be composed of at least one of numbers, characters, symbols, and letters. For example, the speed control flag can be B. The speed control operation can be used to control the acceleration or deceleration of the virtual vehicle.
具体地,电子设备判断速度控制标识对应的执行标识是否为可执行标识。当速度控制标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的速度控制标识确定对应的操作为速度控制操作。电子设备可根据车辆类型和对应的行为参数值执行速度控制操作。例如,行为参数值包括加速度参数值。电子设备根据车辆类型及对应的加速度参数值执行速度控制操作。Specifically, the electronic device determines whether the execution identification corresponding to the speed control identification is an executable identification. When the execution flag corresponding to the speed control flag is an executable flag, the electronic device determines that the corresponding operation is a speed control operation according to the speed control flag in the driving scene file. The electronic device can perform speed control operations according to the vehicle type and corresponding behavior parameter values. For example, the behavior parameter value includes an acceleration parameter value. The electronic device performs speed control operations according to the vehicle type and the corresponding acceleration parameter value.
步骤406,当沿车道线行驶标识对应的执行标识为可执行标识时,根据沿车道线行驶标识确定对应的操作为沿车道线行驶操作。Step 406: When the execution flag corresponding to the lane line driving flag is an executable flag, it is determined according to the lane line driving flag that the corresponding operation is the lane line driving operation.
其中,沿车道线行驶标识可以由数字、文字、符号、字母中至少一种组成。例如,沿车道线行驶标识可以为C。沿车道线行驶操作是指虚拟车辆按照预设速度沿着预设车道线行走的操作。例如车道线可以是车道边沿线,也可以是车道中心线。Wherein, the driving mark along the lane line may be composed of at least one of numbers, characters, symbols, and letters. For example, the indicator for driving along the lane line may be C. The operation of driving along the lane line refers to the operation of the virtual vehicle walking along the preset lane line at a preset speed. For example, the lane line can be the edge of the lane or the center line of the lane.
具体地,电子设备判断沿车道线行驶标识对应的执行标识是否为可执行标识。当沿车道线行驶标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的沿车道线行驶标识确定对应的操作为沿车道线行驶操作。电子设备可根据车辆类型和对应的行为参数值执行沿车道线行驶操作。例如,行为参数值包括沿车道线行驶参数值。行为参数值还可以包括不沿车道线行驶参数值。电子设备根据车辆类型及对应的沿车道线行驶参数值执行沿车道线行驶操作。Specifically, the electronic device determines whether the execution identification corresponding to the driving along the lane line identification is an executable identification. When the execution identifier corresponding to the lane line driving identifier is an executable identifier, the electronic device determines that the corresponding operation is the lane line driving operation according to the lane line driving identifier in the driving scene file. The electronic device can perform driving operations along the lane line according to the vehicle type and corresponding behavior parameter values. For example, the behavior parameter value includes the parameter value of driving along the lane line. The behavior parameter value may also include the parameter value of not driving along the lane line. The electronic device executes the driving operation along the lane line according to the vehicle type and the corresponding driving parameter value along the lane line.
步骤408,当换车道行驶标识对应的执行标识为可执行标识时,根据换车道行驶标识确定换车道行驶操作。Step 408: When the execution flag corresponding to the lane-changing driving flag is an executable flag, the lane-changing driving operation is determined according to the lane-changing driving flag.
其中,换车道行驶标识可以由数字、文字、符号、字母中至少一种组成。例如,换车道行驶标识可以为D。换车道行驶操作是指虚拟车辆更换车道行驶的操作。例如,虚拟车辆从车道1换到车道2行驶。Wherein, the lane change driving sign may be composed of at least one of numbers, characters, symbols, and letters. For example, the lane change sign can be D. Lane changing operation refers to the operation of changing lanes of the virtual vehicle. For example, the virtual vehicle moves from lane 1 to lane 2.
具体地,电子设备判断换车道行驶标识对应的执行标识是否为可执行标识。当换车道行驶标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的换车道行驶标 识确定对应的操作为换车道行驶操作。电子设备可根据车辆类型和对应的行为参数值执行换车道行驶操作。例如,行为参数值包括加速度参数值。电子设备根据车辆类型和对应的加速度参数值执行换车道行驶操作。Specifically, the electronic device determines whether the execution flag corresponding to the lane-changing driving flag is an executable flag. When the execution flag corresponding to the lane-changing driving flag is an executable flag, the electronic device determines that the corresponding operation is the lane-changing driving operation according to the lane-changing driving flag in the driving scene file. The electronic device can perform lane-changing operations according to the vehicle type and corresponding behavior parameter values. For example, the behavior parameter value includes an acceleration parameter value. The electronic device executes the lane-changing operation according to the vehicle type and the corresponding acceleration parameter value.
上述行驶场景信息处理方法,可分别根据匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识对应的执行标识,确定对应的虚拟对象行为操作,能够通过修改虚拟对象行为标识,使得虚拟车辆实现对应的虚拟对象行为操作,得到不同的行驶场景,提高程序的可扩展性。The above-mentioned driving scene information processing method can determine the corresponding virtual object behavior operation according to the constant-speed straight-line driving flag, the speed control flag, the driving along the lane flag, the lane-changing driving flag, and the corresponding execution flags, which can be modified by modifying the virtual object behavior flags. Make the virtual vehicle realize the corresponding virtual object behavior operation, obtain different driving scenes, and improve the scalability of the program.
在一个实施例中,速度控制标识包括红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种。速度控制操作包括红灯减速子操作、超过限速值减速子操作、根据距离减速子操作、加速子操作中至少一种。当速度控制对应的执行标识为可执行标识时,根据速度控制确定对应的速度控制操作,包括:In one embodiment, the speed control indicator includes at least one of a red light decelerator indicator, a speed limit decelerator indicator exceeding a speed limit, a distance-based speed reducer indicator, and an accelerator indicator. The speed control operation includes at least one of a red light deceleration sub-operation, a speed limit exceeding a deceleration sub-operation, a distance-based deceleration sub-operation, and an acceleration sub-operation. When the execution flag corresponding to the speed control is an executable flag, the corresponding speed control operation is determined according to the speed control, including:
步骤(a1),当红灯减速子标识对应的执行标识为可执行标识时,根据红灯减速子标识确定对应的子操作为红灯减速子操作。In step (a1), when the execution flag corresponding to the red light deceleration sub-identifier is an executable flag, it is determined that the corresponding sub operation is a red light deceleration sub-operation according to the red light deceleration sub-identification.
其中,红灯减速子标识可以由数字、文字、符号、字母中至少一种组成。例如,红灯减速子标识可以为B1。红灯减速子操作是指当虚拟车辆检测到前面的交通灯为红灯时对应的子操作。Wherein, the red light speed reducer logo can be composed of at least one of numbers, characters, symbols, and letters. For example, the red light speed reducer identification can be B1. The red light deceleration sub-operation refers to the corresponding sub-operation when the virtual vehicle detects that the traffic light in front is red.
具体地,电子设备判断红灯减速子标识对应的执行标识是否为可执行标识。当红灯减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的红灯减速子标识确定对应的操作为红灯减速子操作。电子设备可根据车辆类型和对应的行为参数值执行红灯减速子操作。例如,行为参数值包括加速度参数值和交通灯检测操作对应的执行参数值。当交通灯检测操作对应的执行参数值为可执行参数值时,电子设备根据车辆类型及对应的加速度参数值执行红灯减速子操作。Specifically, the electronic device determines whether the execution identification corresponding to the red light deceleration sub identification is an executable identification. When the execution identifier corresponding to the red light deceleration sub-identification is an executable identifier, the electronic device determines that the corresponding operation is a red light deceleration sub-operation according to the red light deceleration sub-identification in the driving scene file. The electronic device can perform the red light deceleration sub-operation according to the vehicle type and the corresponding behavior parameter value. For example, the behavior parameter value includes the acceleration parameter value and the execution parameter value corresponding to the traffic light detection operation. When the execution parameter value corresponding to the traffic light detection operation is an executable parameter value, the electronic device executes the red light deceleration sub-operation according to the vehicle type and the corresponding acceleration parameter value.
本实施例中,当速度控制标识对应的执行标识为可执行标识时,电子设备判断红灯减速子标识对应的执行标识是否为可执行标识。当红灯减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的红灯减速子标识确定对应的操作为红灯减速子操作。In this embodiment, when the execution flag corresponding to the speed control flag is an executable flag, the electronic device determines whether the execution flag corresponding to the red light deceleration sub flag is an executable flag. When the execution identifier corresponding to the red light deceleration sub-identification is an executable identifier, the electronic device determines that the corresponding operation is a red light deceleration sub-operation according to the red light deceleration sub-identification in the driving scene file.
步骤(a2),当超过限速值减速子标识对应的执行标识为可执行标识时,根据超过限速值减速子标识确定对应的子操作为超过限速值减速子操作。In step (a2), when the execution flag corresponding to the speed-limit value deceleration sub-identifier is an executable flag, the corresponding sub-operation is determined as the speed-limit value deceleration sub-operation according to the speed-limit value deceleration sub-identifier.
其中,限速值是指道路限制的最大时速。例如限速值可以是40公里/小时或者60公里/小时等不限于此。超过限速值减速子标识可以由数字、文字、符号、字母中至少一种组成。例如,超过限速值减速子标识可以为B2。超过限速值减速子操作是指当虚拟车辆检测到当前速度超过道路规定的限速值,进行减速所对应的子操作。Among them, the speed limit value refers to the maximum speed per hour restricted by the road. For example, the speed limit value may be 40 km/h or 60 km/h, etc., which is not limited thereto. The decelerator identification of exceeding the speed limit value may be composed of at least one of numbers, characters, symbols, and letters. For example, the speed reduction sub-identification may be B2. Exceeding the speed limit value deceleration sub-operation refers to when the virtual vehicle detects that the current speed exceeds the speed limit value prescribed by the road, the sub-operation corresponding to the deceleration is performed.
具体地,电子设备判断超过限速值减速子标识对应的执行标识是否为可执行标识。当超过限速值减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的超过限速值减速子标识确定对应的操作为超过限速值减速子操作。电子设备可根据车辆和对应的行为参数值执行超过限速值减速子操作。例如,行为参数值包括加速度参数值和限速值。当虚拟车辆的速度值超过该限速值时,电子设备根据车辆对应的加速度参数值执行超过限速值减速子操作。Specifically, the electronic device determines whether the execution identifier corresponding to the deceleration sub-identifier exceeding the speed limit value is an executable identifier. When the execution identifier corresponding to the speed limit value deceleration sub-identifier is an executable identifier, the electronic device determines that the corresponding operation is the speed limit value deceleration sub-operation according to the speed-limit value deceleration sub-identification in the driving scene file. The electronic device can perform the sub-operation of decelerating over the speed limit value according to the vehicle and the corresponding behavior parameter value. For example, the behavior parameter value includes an acceleration parameter value and a speed limit value. When the speed value of the virtual vehicle exceeds the speed limit value, the electronic device performs a sub-operation of deceleration exceeding the speed limit value according to the acceleration parameter value corresponding to the vehicle.
本实施例中,当速度控制标识对应的执行标识为可执行标识时,电子设备判断超过限速值减速子标识对应的执行标识是否为可执行标识。当超过限速值减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的超过限速值减速子标识确定对应的操作为超过限速值减速子操作。In this embodiment, when the execution flag corresponding to the speed control flag is an executable flag, the electronic device determines whether the execution flag corresponding to the speed limit value deceleration sub flag is an executable flag. When the execution identifier corresponding to the speed limit value deceleration sub-identifier is an executable identifier, the electronic device determines that the corresponding operation is the speed limit value deceleration sub-operation according to the speed-limit value deceleration sub-identification in the driving scene file.
步骤(a3),当根据距离减速子标识对应的执行标识为可执行标识时,根据该根据距离减速子标识确定对应的子操作为根据距离减速子操作。In step (a3), when the execution flag corresponding to the distance deceleration sub-identifier is an executable flag, the corresponding sub-operation is determined as the distance-deceleration sub-operation according to the distance-deceleration sub-identification.
其中,距离是指虚拟车辆与前车之间的距离。根据距离减速子标识可以由数字、文字、 符号、字母中至少一种组成。例如,根据距离减速子标识可以是B3。根据距离减速子操作是指当虚拟车辆与前车之间的距离达到预设距离时,进行减速所对应的子操作。Among them, the distance refers to the distance between the virtual vehicle and the preceding vehicle. The identification of the speed reducer according to the distance may be composed of at least one of numbers, characters, symbols, and letters. For example, the speed reducer identification may be B3 according to the distance. The sub-operation decelerating by distance refers to the sub-operation corresponding to deceleration when the distance between the virtual vehicle and the preceding vehicle reaches a preset distance.
具体地,电子设备判断根据距离减速子标识对应的执行标识是否为可执行标识。当根据距离减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的根据距离减速子标识确定对应的操作为根据距离减速子操作。电子设备可根据车辆和对应的行为参数值执行根据距离减速子操作。例如,行为参数值包括加速度参数值和虚拟车辆与前车之间的距离参数值。其中,距离参数值大于参考距离值。参考距离值是指虚拟车辆与前车之间的安全距离值。参考距离值可根据虚拟车辆当前速度值确定。当虚拟车辆与前车之间的距离等于或小于该距离参数值时,电子设备根据车辆对应的加速度参数值执行根据距离减速子操作。Specifically, the electronic device determines whether the execution identification corresponding to the distance deceleration sub identification is an executable identification. When the execution identifier corresponding to the distance deceleration sub identifier is an executable identifier, the electronic device determines, according to the distance deceleration sub identifier in the driving scene file, that the corresponding operation is the distance deceleration sub operation. The electronic device may perform the sub-operation of decelerating according to the distance according to the vehicle and the corresponding behavior parameter value. For example, the behavior parameter value includes the acceleration parameter value and the distance parameter value between the virtual vehicle and the preceding vehicle. Among them, the distance parameter value is greater than the reference distance value. The reference distance value refers to the safe distance value between the virtual vehicle and the preceding vehicle. The reference distance value can be determined according to the current speed value of the virtual vehicle. When the distance between the virtual vehicle and the preceding vehicle is equal to or less than the distance parameter value, the electronic device performs the sub-operation of decelerating according to the distance according to the acceleration parameter value corresponding to the vehicle.
本实施例中,当速度控制标识对应的执行标识为可执行标识时,电子设备判断根据距离减速子标识对应的执行标识是否为可执行标识。当根据距离减速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的根据距离减速子标识确定对应的操作为根据距离减速子操作。In this embodiment, when the execution identification corresponding to the speed control identification is an executable identification, the electronic device determines whether the execution identification corresponding to the distance deceleration sub identification is an executable identification. When the execution identifier corresponding to the distance deceleration sub identifier is an executable identifier, the electronic device determines, according to the distance deceleration sub identifier in the driving scene file, that the corresponding operation is the distance deceleration sub operation.
步骤(a4),当加速子标识对应的执行标识为可执行标识时,根据加速子标识确定对应的子操作为加速子操作。Step (a4): when the execution identifier corresponding to the accelerator identifier is an executable identifier, the corresponding sub-operation is determined to be an accelerator operation according to the accelerator identifier.
其中,加速子标识可以由数字、文字、符号、字母中至少一种组成。例如,加速子标识可以是B4。加速子操作是指虚拟车辆加速行驶的操作,也可以是指虚拟车辆加速到预设速度的操作。Wherein, the accelerator identification can be composed of at least one of numbers, characters, symbols, and letters. For example, the accelerator identifier may be B4. The accelerator operation refers to the operation of accelerating the virtual vehicle, and may also refer to the operation of accelerating the virtual vehicle to a preset speed.
具体地,电子设备判断加速子标识对应的执行标识是否为可执行标识。当加速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的加速子标识确定对应的操作为加速子操作。电子设备可根据车辆和对应的行为参数值执行加速子操作。例如,行为参数值包括加速度参数值。那么当加速度参数值为正数时,虚拟车辆加速;当加速度参数值为负数时,虚拟车辆减速。Specifically, the electronic device determines whether the execution identification corresponding to the accelerator identification is an executable identification. When the execution identifier corresponding to the accelerator identifier is an executable identifier, the electronic device determines that the corresponding operation is an accelerator operation according to the accelerator identifier in the driving scene file. The electronic device can perform accelerator operations according to the vehicle and the corresponding behavior parameter values. For example, the behavior parameter value includes an acceleration parameter value. Then when the acceleration parameter value is positive, the virtual vehicle accelerates; when the acceleration parameter value is negative, the virtual vehicle decelerates.
本实施例中,当速度控制标识对应的执行标识为可执行标识时,电子设备判断加速子标识对应的执行标识是否为可执行标识。当加速子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的加速子标识确定对应的操作为加速子操作。In this embodiment, when the execution flag corresponding to the speed control flag is an executable flag, the electronic device determines whether the execution flag corresponding to the accelerator sub flag is an executable flag. When the execution identifier corresponding to the accelerator identifier is an executable identifier, the electronic device determines that the corresponding operation is an accelerator operation according to the accelerator identifier in the driving scene file.
上述行驶场景信息处理方法,可分别根据红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种,确定对应的速度控制操作,能够提高速度控制的精度,从而提高模拟无人车行驶环境的真实性。The above-mentioned driving scene information processing method can respectively determine the corresponding speed control operation according to at least one of the red light decelerating sub-mark, the speed-limiting decelerating sub-mark, the distance decelerating sub-mark, and the accelerator marking, which can improve the speed control performance. Accuracy, thereby improving the authenticity of the simulated unmanned vehicle driving environment.
在一个实施例中,换车道行驶标识包括按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种。换车道行驶操作包括按照预设路线换车道子操作、超车换车道子操作、紧急避让子操作中至少一种。当换车道行驶对应的执行标识为可执行标识时,根据换车道行驶确定换车道行驶操作,包括:In an embodiment, the lane-changing driving indicator includes at least one of a lane-changing sub-identifier according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identity. The lane-changing driving operation includes at least one of a lane-changing sub-operation according to a preset route, a lane-changing sub-operation for overtaking, and an emergency avoiding sub-operation. When the execution flag corresponding to the lane-changing driving is an executable flag, the lane-changing driving operation is determined according to the lane-changing driving, including:
步骤(b1),当按照预设路线换车道子标识对应的执行标识为可执行标识时,根据按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作。Step (b1), when the execution flag corresponding to the lane change sub-identifier according to the preset route is an executable flag, the corresponding operation is determined as the lane change sub-operation according to the preset route according to the lane change sub-identifier according to the preset route.
其中,按照预设路线换车道子标识可以由数字、文字、符号、字母中至少一种组成。例如,按照预设路线换车道子标识可以为D1。按照预设路线换车道子操作是指当虚拟车辆按照预设路线更换车道对应的子操作。预设路线是指虚拟车辆按照预先设置好的路线更换车道。Wherein, the lane change sub-sign according to the preset route may be composed of at least one of numbers, characters, symbols, and letters. For example, the lane change sub-indicator according to the preset route may be D1. The sub-operation of changing lanes according to the preset route refers to the sub-operation corresponding to when the virtual vehicle changes lanes according to the preset route. The preset route means that the virtual vehicle changes lanes according to a preset route.
具体地,电子设备判断按照预设路线换车道子标识对应的执行标识是否为可执行标识。当按照预设路线换车道子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作。电子设备可根据车辆和对应的行为参数值执行按照预设路线换车道子操作。例如,行为参数值包括按照预设路线换车道对应的执行参数值。当按照预设路线换车道对应的执行参数值 为可执行参数值时,电子设备执行按照预设路线换车道子操作。Specifically, the electronic device determines whether the execution identification corresponding to the lane change sub-identification according to the preset route is an executable identification. When the execution identifier corresponding to the lane-changing sub-identifier according to the preset route is an executable flag, the electronic device determines, according to the lane-changing sub-identification in the driving scene file, that the corresponding operation is the lane-changing operation according to the preset route. The electronic device can perform the lane change operation according to the preset route according to the vehicle and the corresponding behavior parameter value. For example, the behavior parameter value includes the execution parameter value corresponding to changing lanes according to the preset route. When the execution parameter value corresponding to changing lanes according to the preset route is an executable parameter value, the electronic device executes the operation of changing lanes according to the preset route.
本实施例中,当换车道行驶标识对应的执行标识为可执行标识时,电子设备判断按照预设路线换车道子标识对应的执行标识是否为可执行标识。当按照预设路线换车道子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作。In this embodiment, when the execution flag corresponding to the lane-changing driving flag is an executable flag, the electronic device determines whether the execution flag corresponding to the lane-changing sub flag according to the preset route is an executable flag. When the execution identifier corresponding to the lane-changing sub-identifier according to the preset route is an executable flag, the electronic device determines, according to the lane-changing sub-identification in the driving scene file, that the corresponding operation is the lane-changing operation according to the preset route.
步骤(b2),当超车换车道子标识对应的执行标识为可执行标识时,根据超车换车道子标识确定对应的子操作为超车换车道子操作。Step (b2): When the execution flag corresponding to the overtaking lane-changing sub-indicator is an executable flag, the corresponding sub-operation is determined as the overtaking lane-changing sub-operation based on the overtaking and lane-changing sub-indicator.
其中,超车换车道子标识可以由数字、文字、符号、字母中至少一种组成。例如,超车换车道子标识可以为D2。超车换车道子操作是指虚拟车辆超车从而更换车道对应的子操作。超车换车道子操作是指车辆更换车道,超越前车后,并入原车道的子操作。Wherein, the overtaking and changing lane sub-sign may be composed of at least one of numbers, characters, symbols, and letters. For example, the overtaking and changing lane sub-sign may be D2. The overtaking and lane changing sub-operation refers to the sub-operation corresponding to the virtual vehicle overtaking and changing lanes. The overtaking and lane-changing sub-operation refers to the sub-operation in which the vehicle changes lanes and merges into the original lane after overtaking the preceding vehicle.
具体地,电子设备判断超车换车道子标识对应的执行标识是否为可执行标识。当超车换车道子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的超车换车道子标识确定对应的操作为超车换车道子操作。电子设备可根据车辆和对应的行为参数值执行超车换车道子操作。例如,行为参数值包括换车道的车道标识值、超车速度值等。电子设备根据换车道的车道标识值和超车速度值执行超车换车道子操作。Specifically, the electronic device determines whether the execution identification corresponding to the overtaking and changing lane sub identification is an executable identification. When the execution flag corresponding to the overtaking lane-changing sub flag is an executable flag, the electronic device determines, according to the overtaking lane-changing sub flag in the driving scene file, that the corresponding operation is the overtaking lane-changing sub operation. The electronic device can perform overtaking and lane-changing operations according to the vehicle and the corresponding behavior parameter values. For example, the behavior parameter value includes the lane identification value of changing lanes, the overtaking speed value, and so on. The electronic device executes the lane-changing sub-operation of overtaking according to the lane identification value of the lane-changing and the overtaking speed value.
本实施例中,当换车道行驶标识对应的执行标识为可执行标识时,电子设备判断超车换车道子标识对应的执行标识是否为可执行标识。当超车换车道子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的超车换车道子标识确定对应的操作为超车换车道子操作。In this embodiment, when the execution flag corresponding to the lane-changing driving flag is an executable flag, the electronic device determines whether the execution flag corresponding to the overtaking lane-changing sub flag is an executable flag. When the execution flag corresponding to the overtaking lane-changing sub flag is an executable flag, the electronic device determines, according to the overtaking lane-changing sub flag in the driving scene file, that the corresponding operation is the overtaking lane-changing sub operation.
步骤(b3),当紧急避让子标识对应的执行标识为可执行标识时,根据紧急避让子标识确定对应的子操作为紧急避让子操作。In step (b3), when the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, the corresponding sub-operation is determined as the emergency avoidance sub-operation according to the emergency avoidance sub-identification.
其中,紧急避让是指车辆碰到紧急情况时进行避让。紧急避让子操作是指虚拟车辆碰到紧急情况时避让对应的子操作。例如,虚拟车辆碰到特种车辆,如消防车、救护车等,需避开特种车道,使特种车辆能够顺利通过。紧急避让子标识可以由数字、文字、符号、字母中至少一种组成。例如,紧急避让子标识可以为D3。Among them, emergency avoidance refers to avoidance when a vehicle encounters an emergency. The emergency avoidance sub-operation refers to the corresponding sub-operation to avoid when the virtual vehicle encounters an emergency. For example, when a virtual vehicle encounters a special vehicle, such as a fire engine, an ambulance, etc., it needs to avoid the special lane so that the special vehicle can pass smoothly. The emergency avoidance sub-identifier may be composed of at least one of numbers, characters, symbols, and letters. For example, the emergency avoidance sub-identifier may be D3.
具体地,电子设备判断紧急避让子标识对应的执行标识是否为可执行标识。当紧急避让子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的紧急避让子标识确定对应的操作为紧急避让子操作。电子设备可根据车辆和对应的行为参数值执行紧急避让子操作。例如,行为参数值包括换车道的车道标识值、避让的车辆类型值等。电子设备根据换车道的车道标识值和避让的车辆类型值执行紧急避让子操作。Specifically, the electronic device determines whether the execution identification corresponding to the emergency avoidance sub-identification is an executable identification. When the execution identifier corresponding to the emergency avoidance sub identifier is an executable identifier, the electronic device determines that the corresponding operation is the emergency avoidance sub operation according to the emergency avoidance sub identifier in the driving scene file. The electronic device can execute the emergency avoidance sub-operation according to the vehicle and the corresponding behavior parameter value. For example, the behavior parameter value includes the lane identification value of changing lanes, the value of avoiding vehicle type, and so on. The electronic device executes the emergency avoidance sub-operation according to the lane identification value of the lane change and the value of the avoiding vehicle type.
本实施例中,当换车道行驶标识对应的执行标识为可执行标识时,电子设备判断紧急避让子标识对应的执行标识是否为可执行标识。当紧急避让子标识对应的执行标识为可执行标识时,电子设备根据行驶场景文件中的紧急避让子标识确定对应的操作为紧急避让子操作。In this embodiment, when the execution flag corresponding to the lane-changing driving flag is an executable flag, the electronic device determines whether the execution flag corresponding to the emergency avoidance sub-identifier is an executable flag. When the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, the electronic device determines that the corresponding operation is the emergency avoidance sub-operation according to the emergency avoidance sub-identification in the driving scene file.
上述行驶场景信息处理方法,可分别根据按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种,确定对应的换车道行驶操作,能够提高换车道的精度,从而提高模拟无人车行驶环境的真实性。The above-mentioned driving scene information processing method can determine the corresponding lane-changing operation according to at least one of the lane-changing sub-identifier, overtaking lane-changing sub-identity, and emergency avoiding sub-identity according to the preset route, which can improve the accuracy of lane changing, thereby Improve the authenticity of the simulated driving environment of unmanned vehicles.
在一个实施例中,如图5所示,为一个实施例中基本行为标识的关系示意图。基本行为标识包括速度控制标识、匀速直线行驶标识、沿车道线行驶标识、换车道行驶标识中至少一种。速度控制标识包括红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种。换车道标识包括按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种。匀速直线行驶标识可对应按当前速度匀速直线前进操作。沿车道线行驶标识可对应沿车道中心线曲线匀速前进操作等不限于此。虚拟对象行为操作可通过添加成员函数的形式直接加到虚拟对象(smart agent)的类中。同时我们可以根据虚拟对象的功能将虚拟对象行为操作归类到图5中。然后加上一些逻辑判断的代 码,如图6所示,用来决定何时需要执行这个功能。相应地,在配置文件中也需要增加虚拟对象行为标识对应的执行标识,来表示是否启用该虚拟对象行为操作。如此一来,程序的可扩展性就比较高。In an embodiment, as shown in FIG. 5, it is a schematic diagram of the relationship between the basic behavior identifiers in an embodiment. The basic behavior indicator includes at least one of a speed control indicator, a constant-speed straight-line driving indicator, a lane-line driving indicator, and a lane-changing driving indicator. The speed control indicator includes at least one of a red light decelerator indicator, a decelerator indicator exceeding a speed limit, a distance-based retarder indicator, and an accelerator indicator. The lane-changing indicator includes at least one of a lane-changing sub-indicator according to a preset route, a lane-changing sub-indicator for overtaking, and an emergency avoiding sub-indicator. The constant-speed straight-line driving mark can correspond to the straight-forward operation at a constant speed at the current speed. The driving mark along the lane line can correspond to the operation of moving at a constant speed along the centerline curve of the lane, etc., and the like is not limited to this. Virtual object behavior operations can be directly added to the virtual object (smart agent) class by adding member functions. At the same time, we can classify virtual object behavior operations into Figure 5 according to the function of the virtual object. Then add some logic judgment codes, as shown in Figure 6, to determine when this function needs to be executed. Correspondingly, an execution identifier corresponding to the virtual object behavior identifier also needs to be added in the configuration file to indicate whether to enable the virtual object behavior operation. In this way, the scalability of the program is relatively high.
其中,一个智能体的类,包含了智能体的定义,它的基本属性,它可以实现的功能,以及其他可能用到的信息。简单来说,车辆的类,可以包含这个车当前的位置、速度、车的大小、颜色等属性,它的功能可以包括往前行驶多少距离、前方有行人过马路时减速停车、前方路口有红灯时减速停车等。在类中,每个属性都用一个变量来描述,每个功能都用一个成员函数来实现。即每个虚拟对象行为操作都可以用一个成员函数实现。成员函数在运行的时候可以改变类中属性的状态,比如位置移动等。每增加一个功能模块,我们都需要在类中增加一个对应的成员函数,也就是写一段函数的代码,即增加一个虚拟对象行为操作。Among them, the class of an agent includes the definition of the agent, its basic properties, the functions it can implement, and other information that may be used. To put it simply, the class of a vehicle can include the current position, speed, size, color and other attributes of the vehicle. Its functions can include how far to travel, slow down and stop when there are pedestrians crossing the road, and red at the intersection ahead. Slow down and stop when the lights are on. In the class, each attribute is described by a variable, and each function is implemented by a member function. That is, each virtual object behavior operation can be implemented with a member function. Member functions can change the state of attributes in the class at runtime, such as position movement. Every time a functional module is added, we need to add a corresponding member function to the class, that is, write a section of function code, that is, add a virtual object behavior operation.
在一个实施例中,如图6所示,为一个实施例中确定虚拟对象行为操作的流程示意图。In one embodiment, as shown in FIG. 6, it is a schematic flow chart of the operation of determining the behavior of the virtual object in one embodiment.
步骤602,获取行驶场景配置文件。Step 602: Obtain a driving scene configuration file.
步骤604,判断匀速直线行驶标识对应的执行标识是否为可执行标识?Step 604: Determine whether the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag?
步骤606,若是,则执行匀速直线行驶操作。 Step 606, if yes, perform a straight-line driving operation at a constant speed.
步骤608,判断速度控制标识对应的执行标识是否为可执行标识?Step 608: Determine whether the execution flag corresponding to the speed control flag is an executable flag?
步骤610,若是,判断红灯减速子标识对应的执行标识是否为可执行标识?若红灯减速子标识对应的执行标识不为可执行标识,执行步骤614。 Step 610, if yes, determine whether the execution flag corresponding to the red light deceleration sub flag is an executable flag? If the execution flag corresponding to the red light deceleration sub flag is not an executable flag, step 614 is executed.
步骤612,若红灯减速子标识对应的执行标识为可执行标识,则执行红灯减速子操作。Step 612: If the execution flag corresponding to the red light deceleration sub-identifier is an executable flag, execute the red light deceleration sub-operation.
步骤614,判断超过限速值减速子标识对应的执行标识是否为可执行标识?若超过限速值减速子标识对应的执行标识不为可执行标识,执行步骤618。Step 614: Determine whether the execution identifier corresponding to the deceleration sub-identity exceeding the speed limit value is an executable identifier. If the execution identifier corresponding to the speed-reduction sub-identification exceeding the speed limit value is not an executable identifier, step 618 is executed.
步骤616,若超过限速值减速子标识对应的执行标识为可执行标识,执行超过限速值减速子操作。In step 616, if the execution flag corresponding to the speed limit deceleration sub flag exceeding the speed limit value is an executable flag, execute the speed limit value deceleration sub operation exceeding the speed limit value.
步骤618,判断根据距离减速子标识对应的执行标识是否为可执行标识?若根据距离减速子标识对应的执行标识不为可执行标识,执行步骤622。Step 618: Determine whether the execution identification corresponding to the distance deceleration sub identification is an executable identification. If the execution flag corresponding to the distance deceleration sub flag is not an executable flag, step 622 is executed.
步骤620,若根据距离减速子标识对应的执行标识为可执行标识,执行根据距离减速子操作。Step 620: If the execution flag corresponding to the distance deceleration sub-identifier is an executable flag, execute the distance deceleration sub-operation.
步骤622,判断加速子标识对应的执行标识是否为可执行标识?若加速子标识对应的执行标识不为可执行标识,执行步骤626。Step 622: Determine whether the execution identification corresponding to the accelerator identification is an executable identification? If the execution identifier corresponding to the accelerator identifier is not an executable identifier, step 626 is executed.
步骤624,若加速子标识对应的执行标识为可执行标识,执行加速子操作。In step 624, if the execution identifier corresponding to the accelerator sub identifier is an executable identifier, execute the accelerator sub operation.
步骤626,判断沿车道线行驶标识对应的执行标识是否为可执行标识?若沿车道线行驶标识对应的执行标识不为可执行标识,执行步骤630。Step 626: Determine whether the execution flag corresponding to the lane line driving flag is an executable flag? If the execution flag corresponding to the driving along the lane line flag is not an executable flag, step 630 is executed.
步骤628,若加速子标识对应的执行标识为可执行标识,执行沿车道线行驶操作。Step 628: If the execution flag corresponding to the accelerator flag is an executable flag, execute the driving operation along the lane line.
步骤630,判断换车道行驶标识对应的执行标识是否为可执行标识?若换车道行驶标识对应的执行标识不为可执行标识,则结束,或判断其他基本行为标识对应的执行标识是否为可执行标识。Step 630: Determine whether the execution flag corresponding to the lane-changing driving flag is an executable flag? If the execution flag corresponding to the lane-changing driving flag is not an executable flag, the process ends, or it is determined whether the execution flag corresponding to other basic behavior flags is an executable flag.
步骤632,若换车道行驶标识对应的执行标识为可执行标识,判断按照预设路线换车道子标识对应的执行标识是否为可执行标识?若按照预设路线换车道子标识对应的执行标识不为可执行标识,执行步骤636。Step 632: If the execution flag corresponding to the lane-changing driving flag is an executable flag, determine whether the execution flag corresponding to the lane-changing sub flag according to the preset route is an executable flag. If the execution flag corresponding to the lane change sub flag according to the preset route is not an executable flag, step 636 is executed.
步骤634,若按照预设路线换车道子标识对应的执行标识为可执行标识,执行按照预设路线换车道子操作。In step 634, if the execution flag corresponding to the lane change sub flag according to the preset route is an executable flag, execute the lane change operation based on the preset route.
步骤636,判断超车换车道子标识对应的执行标识是否为可执行标识?若超车换车道子标识对应的执行标识不为可执行标识,执行步骤640。Step 636: Determine whether the execution flag corresponding to the overtaking and changing lane sub flag is an executable flag? If the execution flag corresponding to the overtaking and changing lane sub flag is not an executable flag, step 640 is executed.
步骤638,若超车换车道子标识对应的执行标识为可执行标识,执行超车换车道子操作。Step 638: If the execution flag corresponding to the overtaking lane change sub flag is an executable flag, execute the overtaking lane change sub operation.
步骤640,判断紧急避让子标识对应的执行标识是否为可执行标识?若紧急避让子标识对应的执行标识不为可执行标识,则结束,或判断其他基本行为标识对应的执行标识是否为可执行标识。Step 640: Determine whether the execution identification corresponding to the emergency avoidance sub-identification is an executable identification. If the execution identifier corresponding to the emergency avoidance sub-identifier is not an executable identifier, the process ends, or it is determined whether the execution identifier corresponding to other basic behavior identifiers is an executable identifier.
步骤642,若紧急避让子标识对应的执行标识为可执行标识,执行紧急避让子操作。Step 642: If the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, execute the emergency avoidance sub-operation.
上述行驶场景信息处理方法,通过一系列的判断条件,能够确定最终需要执行的虚拟对象行为操作,实现虚拟对象行为操作的可配置化。The foregoing driving scene information processing method can determine the virtual object behavior operation that needs to be finally performed through a series of judgment conditions, and realize the configurability of the virtual object behavior operation.
在一个实施例中,虚拟对象行为标识包括异常行为标识;行为参数值包括异常行为参数值;虚拟对象行为操作包括异常行为操作。根据虚拟对象类型和行为参数值执行虚拟对象行为操作,包括:根据虚拟对象类型和异常行为参数值执行异常行为操作。In one embodiment, the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; and the virtual object behavior operation includes an abnormal behavior operation. Perform virtual object behavior operations based on the virtual object type and behavior parameter values, including: performing abnormal behavior operations based on the virtual object type and abnormal behavior parameter values.
其中,异常行为标识与基本行为标识不相同。异常行为标识可以是指不按照法律法规行驶的行为或者发生故障的行为。异常行为参数值可以是指车辆对应的不在法律法规规定范围内的参数值。例如,速度参数值为150公里每小时等、与前车的距离小于参考距离值等。不同虚拟对象类型对应的异常行为标识不相同。例如交通灯的异常行为可以是一直亮着红灯,不切换为绿灯或者一直亮着黄灯等不限于此。Among them, the abnormal behavior identifier is different from the basic behavior identifier. The abnormal behavior identification may refer to behaviors that do not comply with laws and regulations or behaviors that cause malfunctions. The abnormal behavior parameter value may refer to the parameter value corresponding to the vehicle that is not within the range prescribed by laws and regulations. For example, the speed parameter value is 150 kilometers per hour, etc., the distance to the vehicle in front is less than the reference distance value, and so on. The abnormal behavior identifiers corresponding to different virtual object types are different. For example, the abnormal behavior of a traffic light may be that the red light is always on, the green light is not switched to, or the yellow light is always on, etc. are not limited to this.
具体地,异常行为操作可以是超速行驶操作、压线行驶操作、路口不停车操作、不礼让行人操作等不限于此。电子设备根据虚拟对象类型和异常行为参数值执行异常行为操作。Specifically, the abnormal behavior operation may be a speeding operation, a line pressing operation, a non-stop operation at an intersection, a disrespectful pedestrian operation, etc., and the like is not limited to this. The electronic device performs an abnormal behavior operation according to the type of the virtual object and the abnormal behavior parameter value.
上述行驶场景信息处理方法,虚拟对象行为标识包括异常行为标识,行为参数值包括异常行为参数值,虚拟对象行为操作包括异常行为操作,根据虚拟对象类型和异常行为参数值执行异常行为操作,由于规定的一些行驶场景有特殊的需求,例如,需要在行驶场景中加入一些实施异常行为的车辆,用异常行为对应的场景测试无人车的算法在该场景下是否能发挥作用,提高行驶场景模拟的真实性;并且通过更改异常参数值等,即能够修改行驶场景,提高程序的可扩展性。In the above driving scene information processing method, the virtual object behavior identifier includes the abnormal behavior identifier, the behavior parameter value includes the abnormal behavior parameter value, the virtual object behavior operation includes the abnormal behavior operation, and the abnormal behavior operation is performed according to the virtual object type and the abnormal behavior parameter value. Some driving scenes have special requirements. For example, some vehicles that implement abnormal behaviors need to be added to the driving scene, and the scenes corresponding to the abnormal behaviors are used to test whether the algorithm of unmanned vehicles can work in this scene, so as to improve the simulation of driving scenes. Authenticity; and by changing abnormal parameter values, etc., the driving scene can be modified to improve the scalability of the program.
在一个实施例中,异常行为标识为压线行驶标识;虚拟对象类型为车辆类型。根据虚拟对象类型和异常行为参数值执行异常行为操作,包括:根据车辆类型及对应的初始位置和初始速度,执行压线行驶标识对应的压线行驶操作,以控制虚拟车辆压线行驶。In one embodiment, the abnormal behavior indicator is a line-pressing indicator; the type of the virtual object is a vehicle type. Performing abnormal behavior operations according to the virtual object type and abnormal behavior parameter values includes: executing the line pressing operation corresponding to the line pressing identification according to the vehicle type and the corresponding initial position and initial speed to control the line pressing of the virtual vehicle.
其中,压线行驶是指占用对向车道行驶或者占用同向车道行驶。例如,无论车道线为实线或者虚线,车辆占用车道行驶。初始位置是指虚拟车辆在行驶场景中的坐标位置。初始位置具体可以是虚拟车辆压着车道线的位置。Among them, driving on the line refers to driving in the opposite lane or driving in the same lane. For example, no matter whether the lane line is a solid line or a dashed line, the vehicle occupies the lane to drive. The initial position refers to the coordinate position of the virtual vehicle in the driving scene. The initial position may specifically be the position where the virtual vehicle presses the lane line.
具体地,初始速度是固定速度值。电子设备根据虚拟车辆的初始位置和初始速度,执行压线行驶标识对应的压线行驶操作,以控制虚拟车辆压线行驶。虚拟车辆可匀加速行驶或者匀减速行驶,或者变速行驶等不限于此。Specifically, the initial speed is a fixed speed value. The electronic device executes the line pressing operation corresponding to the line pressing mark according to the initial position and initial speed of the virtual vehicle to control the line pressing operation of the virtual vehicle. The virtual vehicle can travel at a uniform acceleration or deceleration, or travel at a variable speed, and the like is not limited to this.
上述行驶场景信息处理方法,根据虚拟车辆的初始位置和初始速度,执行压线行驶操作,以控制虚拟车辆压线行驶,能模拟车辆在实际行驶过程中的行驶场景,提高行驶场景模拟的真实性,可测试无人车的算法在该场景下是否适用,从而提高无人车算法的适用性。The above-mentioned driving scene information processing method, according to the initial position and initial speed of the virtual vehicle, executes the line-pressing operation to control the line-pressing operation of the virtual vehicle, which can simulate the driving scene of the vehicle in the actual driving process, and improve the authenticity of the driving scene simulation , It can test whether the unmanned vehicle algorithm is applicable in this scenario, thereby improving the applicability of the unmanned vehicle algorithm.
在一个实施例中,异常行为标识为路口不停车标识;虚拟对象类型为车辆类型;异常行为参数值包括交通灯检测操作的执行参数值为不可执行参数值。根据虚拟对象类型和异常行为参数值执行异常行为操作,包括:根据车辆类型及对应的不可执行参数值,执行路口不停车标识对应的路口不停车操作,控制虚拟车辆在路口时保持行驶。In one embodiment, the abnormal behavior identifier is a no-stop marker at an intersection; the type of the virtual object is a vehicle type; and the abnormal behavior parameter value includes the execution parameter value of the traffic light detection operation as the non-executable parameter value. Performing abnormal behavior operations according to the virtual object type and abnormal behavior parameter values includes: performing the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controlling the virtual vehicle to keep driving at the intersection.
其中,路口不停车是指当车辆到达路口时,按照交通法规规定应当减速、遇到红灯应当停车或者遇到行人应当礼让行人,但虚拟车辆在上述情况下均不停车的标识。路口不停车标识可以由数字、文字、符号、字母中至少一种组成。车辆类型对应的检测操作包括交通灯检测操作、人行道检测操作、行人检测操作等不限于此。交通灯检测操作用于检测交通灯的颜色,并判断是否可以通行。不可执行参数值用于不开启交通灯检测操作。可执行参数值可以是1、true等不限于此,不可执行参数值可以是0、false等不限于此。Among them, no stopping at an intersection refers to a sign that when a vehicle arrives at an intersection, it should slow down in accordance with traffic laws, stop at a red light, or be courteous when encountering a pedestrian, but the virtual vehicle does not stop under the above circumstances. The no-stop sign at the intersection may be composed of at least one of numbers, characters, symbols, and letters. The detection operations corresponding to the vehicle type include traffic light detection operations, sidewalk detection operations, pedestrian detection operations, etc., which are not limited to this. The traffic light detection operation is used to detect the color of the traffic light and determine whether it is passable. The non-executable parameter value is used for not turning on the traffic light detection operation. The executable parameter value can be 1, true, etc., but not limited to this, and the non-executable parameter value can be 0, false, etc., and the like is not limited to this.
具体地,电子设备根据车辆类型以及车辆类型对应的不可执行参数值,其中,不可执行参数值是交通灯检测操作的执行参数值,执行路口不停车标识对应的路口不停车操作,控制虚拟车辆在路口时保持行驶。Specifically, the electronic device according to the vehicle type and the non-executable parameter value corresponding to the vehicle type, where the non-executable parameter value is the execution parameter value of the traffic light detection operation, executes the no-stop operation at the intersection corresponding to the no-stop sign at the intersection, and controls the virtual vehicle in Keep driving at intersections.
上述行驶场景信息处理方法,根据车辆类型及对应的不可执行参数值,执行路口不停车标识对应的路口不停车操作,控制虚拟车辆在路口时保持行驶,即电子设备不执行虚拟车辆对应的交通灯检测操作,可相当于无人车在行驶过程中遇到不按交通灯行驶的车辆,从而可检测无人车的算法在该场景下是否发挥作用,提高行驶场景模拟的真实性。The above-mentioned driving scene information processing method performs the no-stop operation corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controls the virtual vehicle to keep driving at the intersection, that is, the electronic device does not execute the traffic light corresponding to the virtual vehicle The detection operation can be equivalent to an unmanned vehicle encountering a vehicle that does not follow a traffic light during driving, so that it can detect whether the algorithm of the unmanned vehicle plays a role in the scene, and improve the authenticity of the driving scene simulation.
在一个实施例中,异常行为标识为并入目标车前方标识;虚拟对象类型为车辆类型;异常行为参数值包括虚拟车辆与目标车之间的距离参数值,该距离参数值小于参考距离值。根据虚拟对象类型和异常行为参数值执行异常行为操作,包括:根据车辆类型及对应的距离参数值,执行并入目标车前方标识对应的并入操作,控制虚拟车辆并入目标车行驶前方。In one embodiment, the abnormal behavior identification is incorporated into the front identification of the target vehicle; the virtual object type is a vehicle type; the abnormal behavior parameter value includes a distance parameter value between the virtual vehicle and the target vehicle, and the distance parameter value is less than the reference distance value. Performing the abnormal behavior operation according to the virtual object type and the abnormal behavior parameter value includes: performing the merge operation corresponding to the front mark of the merged target vehicle according to the vehicle type and the corresponding distance parameter value, and control the virtual vehicle to merge into the front of the target vehicle.
其中,参考距离值是指虚拟车辆与目标车之间的安全距离值。参考距离值可根据虚拟车辆当前速度值确定。当虚拟车辆对应的速度值越大,那么参考距离值越大;当虚拟车辆对应的速度值越小,则参考距离值越小。目标车是指虚拟无人车。Among them, the reference distance value refers to the safe distance value between the virtual vehicle and the target vehicle. The reference distance value can be determined according to the current speed value of the virtual vehicle. When the speed value corresponding to the virtual vehicle is larger, the reference distance value is larger; when the speed value corresponding to the virtual vehicle is smaller, the reference distance value is smaller. The target vehicle refers to a virtual unmanned vehicle.
具体地,并入目标车前方标识可以由数字、文字、符号、字母中至少一种组成。并入操作可以是指虚拟车辆与目标车不在同一车道,虚拟车辆从目标车前方,并入目标车所在车道。距离参数值是指虚拟车辆与目标车之间的距离参数值。例如,电子设备根据虚拟车辆对应的参考距离值,例如5米,执行并入操作,以控制虚拟车辆在与目标车相距5米时并入目标车行驶前方。此时目标车应当紧急刹车。Specifically, the front mark of the incorporated target vehicle may be composed of at least one of numbers, characters, symbols, and letters. The merging operation may mean that the virtual vehicle and the target vehicle are not in the same lane, and the virtual vehicle merges into the lane where the target vehicle is located from in front of the target vehicle. The distance parameter value refers to the distance parameter value between the virtual vehicle and the target vehicle. For example, the electronic device performs a merge operation according to a reference distance value corresponding to the virtual vehicle, for example 5 meters, so as to control the virtual vehicle to merge into the target vehicle when it is 5 meters away from the target vehicle. At this time, the target vehicle should brake urgently.
上述行驶场景信息处理方法,当距离参数值小于参考距离值时,虚拟车辆执行并入操作,容易引发交通事故,即追尾或者侧碰等事故,虚拟车辆模拟无人车在道路上行驶碰到的异常行为,从而可检测无人车的算法在该场景下是否发挥作用,也提高行驶场景模拟的真实性。In the above driving scene information processing method, when the distance parameter value is less than the reference distance value, the virtual vehicle performs the merge operation, which is likely to cause traffic accidents, that is, rear-end collision or side collision. Abnormal behavior, which can detect whether the algorithm of the unmanned vehicle is working in the scene, and also improve the authenticity of the driving scene simulation.
在一个实施例中,虚拟对象行为标识的数量为至少两个。根据虚拟对象类型和行为参数值执行虚拟对象行为操作,包括:按照至少两个虚拟对象行为标识的顺序,以及每个虚拟对象行为标识对应的虚拟对象类型和行为参数值,执行对应的至少两个虚拟对象行为操作。In one embodiment, the number of virtual object behavior identifiers is at least two. Perform virtual object behavior operations according to virtual object types and behavior parameter values, including: executing at least two corresponding virtual object behavior identifiers in the order of at least two virtual object behavior identifiers, and the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier Virtual object behavior operation.
其中,虚拟对象行为标识的数量可为至少两个。例如,以虚拟对象行为标识包括匀速直线行驶标识和沿车道线行驶标识为例,虚拟车辆可沿着车道线匀速直线行驶。以虚拟对象行为标识包括速度控制标识和沿车道线行驶标识为例,虚拟车辆可沿着车道线加速行驶等不限于此。Wherein, the number of virtual object behavior identifiers may be at least two. For example, taking the behavior identification of the virtual object including the identification of driving in a straight line at a constant speed and the identification of driving along a lane line as an example, the virtual vehicle can travel in a straight line at a constant speed along the lane line. Taking the behavior identification of the virtual object including the speed control identification and the driving along the lane line as an example, the virtual vehicle can accelerate along the lane line and the like is not limited to this.
具体地,至少两个虚拟对象行为标识的顺序可以是在行驶场景配置信息中出现的顺序,或者虚拟对象行为标识对应的时间顺序。电子设备按照至少两个虚拟对象行为标识的出现顺序,或者对应的时间顺序,每个虚拟对象行为标识对应的虚拟对象类型和行为参数值,执行每个虚拟对象行为标识对应的虚拟对象行为操作,即执行至少两个虚拟对象行为操作。例如,电子设备控制虚拟车辆先执行匀速直线行驶标识对应的匀速直线行驶操作,后执行速度控制标识对应的速度控制操作。或者,电子设备控制虚拟车辆执行匀速直线行驶操作,当检测到前车的速度小于该虚拟车辆的速度时,执行换车道操作。Specifically, the sequence of the at least two virtual object behavior identifiers may be the sequence in which they appear in the driving scene configuration information, or the time sequence corresponding to the virtual object behavior identifiers. The electronic device executes the virtual object behavior operation corresponding to each virtual object behavior identifier according to the appearance order of at least two virtual object behavior identifiers, or the corresponding time sequence, the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier, That is, perform at least two virtual object behavior operations. For example, the electronic device controls the virtual vehicle to first perform a constant-speed straight-line driving operation corresponding to a constant-speed straight-line driving indicator, and then perform a speed control operation corresponding to the speed control indicator. Alternatively, the electronic device controls the virtual vehicle to perform a constant-speed straight-line driving operation, and when it is detected that the speed of the preceding vehicle is lower than the speed of the virtual vehicle, the lane-changing operation is performed.
上述行驶场景信息处理方法,按照至少两个虚拟对象行为标识的顺序,以及每个虚拟对象行为标识对应的虚拟对象类型和行为参数值,执行对应的至少两个虚拟对象行为操作,能够模拟无人车的实际行驶场景,且只需要修改虚拟对象行为标识和行为参数值,即可执行不同的虚拟对象行为操作,使用更加便捷,且程序的可扩展性高。The foregoing driving scene information processing method performs at least two virtual object behavior operations corresponding to the sequence of at least two virtual object behavior identifiers, as well as the virtual object type and behavior parameter values corresponding to each virtual object behavior identifier, and can simulate unmanned operations. The actual driving scene of the vehicle, and only need to modify the virtual object behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
在一个实施例中,行驶场景配置信息包括虚拟对象类型对应的初始状态信息。根据虚拟对象类型和行为参数值执行虚拟对象行为操作,包括:根据虚拟对象类型、虚拟对象类 型对应的初始状态信息和行为参数值,执行虚拟对象行为操作。In one embodiment, the driving scene configuration information includes initial state information corresponding to the virtual object type. Perform virtual object behavior operations based on virtual object types and behavior parameter values, including: performing virtual object behavior operations based on virtual object types, initial state information and behavior parameter values corresponding to virtual object types.
其中,初始状态信息是指虚拟对象启动时的状态信息。不同类型的虚拟对象可具有不同的初始状态信息。例如,车辆类型对应的初始状态信息可包括初始位置和初始速度值。交通灯类型对应的初始状态信息可包括交通灯的颜色等。行人类型对应的初始状态信息可包括初始位置和初始速度等。Among them, the initial state information refers to the state information when the virtual object is started. Different types of virtual objects can have different initial state information. For example, the initial state information corresponding to the vehicle type may include an initial position and an initial speed value. The initial state information corresponding to the traffic light type may include the color of the traffic light and so on. The initial state information corresponding to the pedestrian type may include initial position and initial speed.
具体地,电子设备根据虚拟对象类型、类型对应的初始状态信息和行为参数值,执行对应的虚拟对象行为操作。例如,电子设备根据车辆和车辆对应的初始位置和初始速度,其中初始速度为40千米每秒,以及变换到车道2的参数值,执行虚拟对象行为操作,控制虚拟车辆以40千米每秒的速度变换到车道2。Specifically, the electronic device executes the corresponding virtual object behavior operation according to the type of the virtual object, the initial state information corresponding to the type, and the behavior parameter value. For example, the electronic device performs virtual object behavior operations according to the initial position and initial speed corresponding to the vehicle and the vehicle, where the initial speed is 40 kilometers per second, and the parameter value changed to lane 2 to control the virtual vehicle to 40 kilometers per second The speed changes to lane 2.
上述行驶场景信息处理方法,根据虚拟对象类型、虚拟对象类型对应的初始状态信息和行为参数值,执行虚拟对象行为操作,能够为不同类型配置不同的初始状态信息以及行为参数值,即可执行对应的虚拟行为操作,提高程序的可扩展性。The aforementioned driving scene information processing method performs virtual object behavior operations according to the virtual object type, the initial state information and behavior parameter values corresponding to the virtual object type, and can configure different initial state information and behavior parameter values for different types to execute the corresponding The virtual behavior operation improves the scalability of the program.
在一个实施例中,行驶场景配置信息包括虚拟对象属性信息。该行驶场景信息处理方法还包括:为虚拟对象属性配置对应的虚拟对象属性信息。In one embodiment, the driving scene configuration information includes virtual object attribute information. The driving scene information processing method further includes: configuring corresponding virtual object attribute information for the virtual object attribute.
具体地,虚拟对象属性信息是指虚拟对象自身的信息。例如,虚拟车辆的颜色、尺寸、型号,或者交通灯的高度、交通灯的型号等,或者行人的发型、服饰等不限于此。虚拟对象属性参数指的是一个变量,未赋值。虚拟对象属性参数可保存在模拟器可执行文件中。电子设备获取虚拟对象属性信息,为虚拟对象属性参数配置对应的虚拟对象属性信息。Specifically, the virtual object attribute information refers to the information of the virtual object itself. For example, the color, size, and model of the virtual vehicle, or the height of the traffic light, the model of the traffic light, etc., or the hairstyle and clothing of the pedestrian are not limited thereto. The virtual object attribute parameter refers to a variable and has no value assigned. The virtual object attribute parameters can be saved in the simulator executable file. The electronic device obtains the virtual object attribute information, and configures the corresponding virtual object attribute information for the virtual object attribute parameter.
上述行驶场景信息处理方法,为虚拟对象属性配置对应的虚拟对象属性信息,能够修改虚拟对象的属性,满足不同行驶的需求,并提高行驶场景的交互性。The foregoing driving scene information processing method configures corresponding virtual object attribute information for the virtual object attributes, which can modify the attributes of the virtual object, meet the needs of different driving, and improve the interactivity of the driving scene.
应该理解的是,虽然图2、图4和图6的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2、图4和图6中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various operations in the flowcharts of FIG. 2, FIG. 4, and FIG. 6 are sequentially displayed as indicated by the arrows, these operations are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order for the execution of these operations, and these operations can be executed in other orders. Moreover, at least part of the operations in Figure 2, Figure 4, and Figure 6 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of the sub-operations or stages is not necessarily performed sequentially, but may be executed alternately or alternately with other operations or at least a part of the sub-operations or stages of other operations.
在一个实施例中,如图7所示,提供了一种行驶场景信息处理装置,为一个实施例中行驶场景信息处理装置的结构框图,包括获取模块702、确定模块704和执行模块706,其中:In one embodiment, as shown in FIG. 7, a driving scene information processing device is provided, which is a structural block diagram of the driving scene information processing device in an embodiment, and includes an acquisition module 702, a determination module 704, and an execution module 706. :
获取模块702,用于获取行驶场景配置信息,行驶场景配置信息中包括虚拟对象行为标识、虚拟对象行为标识对应的虚拟对象类型和虚拟对象类型对应的行为参数值;The obtaining module 702 is configured to obtain driving scene configuration information. The driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and behavior parameter values corresponding to the virtual object type;
确定模块704,用于根据虚拟对象行为标识确定对应的虚拟对象行为操作;The determining module 704 is configured to determine the corresponding virtual object behavior operation according to the virtual object behavior identifier;
执行模块706,用于根据虚拟对象类型和行为参数值执行虚拟对象行为操作。The execution module 706 is configured to execute virtual object behavior operations according to virtual object types and behavior parameter values.
上述行驶场景信息处理装置,行为场景配置信息中包括虚拟对象行为标识、虚拟对象类型对应的行为参数值,则可根据虚拟对象标识确定需要执行的虚拟对象行为操作,根据虚拟对象类型和对应的行为参数值执行虚拟对象行为操作,即行为场景配置信息中描述了需要执行的虚拟对象行为操作、虚拟对象行为操作对应的参数值是什么,能够实现场景和行为的可配置化,只需要修改虚拟对象行为标识和行为参数值,即可执行不同的虚拟对象行为操作,使用更加便捷,且程序的可扩展性高;而传统的方式中每个行驶场景对应的模块虽然相互独立,但显然,其中必然会有一些相似甚至是完全相同的模块,而随着行驶场景的增多,重复代码会越来越多,采用本申请实施例中的方式不易出现重复的虚拟对象行为操作,从而减少程序编译时间,降低开发和维护成本。In the above driving scene information processing device, the behavior scene configuration information includes the virtual object behavior identifier and the behavior parameter value corresponding to the virtual object type, and then the virtual object behavior operation to be performed can be determined according to the virtual object identifier, according to the virtual object type and corresponding behavior The parameter values perform virtual object behavior operations, that is, the behavior scene configuration information describes the virtual object behavior operations that need to be performed, and what is the parameter value corresponding to the virtual object behavior operations, which can realize the configurability of the scene and behavior, and only need to modify the virtual object Behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability; while the modules corresponding to each driving scene in the traditional way are independent of each other, it is obvious that it must be There will be some similar or even identical modules, and with the increase of driving scenes, there will be more and more duplicate codes. The method in the embodiments of this application is not easy to be repeated virtual object behavior operations, thereby reducing program compilation time. Reduce development and maintenance costs.
在一个实施例中,确定模块704用于检测虚拟对象行为标识对应的执行标识;当执行标识为可执行标识时,执行根据虚拟对象行为标识确定对应的虚拟对象行为操作的操作。In one embodiment, the determining module 704 is configured to detect the execution identifier corresponding to the virtual object behavior identifier; when the execution identifier is an executable identifier, perform an operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier.
上述行驶场景信息处理装置,检测虚拟对象行为标识对应的执行标识;当执行标识为可执行标识时,执行根据虚拟对象行为标识确定对应的虚拟对象行为操作的操作,那么通过修改执行标识则可确定执行哪些虚拟对象行为操作,提高程序的可扩展性。The aforementioned driving scene information processing device detects the execution identification corresponding to the virtual object behavior identification; when the execution identification is an executable identification, the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identification is performed, and then the execution identification can be determined by modifying the execution identification Which virtual object behavior operations are performed to improve the scalability of the program.
在一个实施例中,虚拟对象行为标识包括基本行为标识;基本行为标识包括匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识中至少一种。确定模块704用于当匀速直线行驶标识对应的执行标识为可执行标识时,根据匀速直线行驶标识确定对应的操作为匀速直线行驶操作。确定模块704用于当速度控制标识对应的执行标识为可执行标识时,根据速度控制标识确定对应的操作为速度控制操作。确定模块704用于当沿车道线行驶标识对应的执行标识为可执行标识时,根据沿车道线行驶标识确定对应的操作为沿车道线行驶操作。确定模块704用于当换车道行驶标识对应的执行标识为可执行标识时,根据换车道行驶标识确定换车道行驶操作。In one embodiment, the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes at least one of a constant-speed straight-line driving identification, a speed control identification, a lane-line driving identification, and a lane-changing driving identification. The determining module 704 is configured to determine that the corresponding operation is a constant-speed straight-line driving operation according to the constant-speed straight-line driving flag when the execution flag corresponding to the uniform-speed straight-line driving flag is an executable flag. The determining module 704 is configured to determine that the corresponding operation is a speed control operation according to the speed control identifier when the execution identifier corresponding to the speed control identifier is an executable identifier. The determining module 704 is configured to determine that the corresponding operation is a driving operation along the lane line according to the driving along the lane line when the execution flag corresponding to the driving along the lane line is an executable flag. The determining module 704 is configured to determine the lane-changing driving operation according to the lane-changing driving flag when the execution flag corresponding to the lane-changing driving flag is an executable flag.
上述行驶场景信息处理装置,可分别根据匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识对应的执行标识,确定对应的虚拟对象行为操作,能够通过修改虚拟对象行为标识,使得虚拟车辆实现对应的虚拟对象行为操作,得到不同的行驶场景,提高程序的可扩展性。The aforementioned driving scene information processing device can determine the corresponding virtual object behavior operation according to the constant-speed straight-line driving flag, the speed control flag, the lane line driving flag, and the lane-changing driving flag corresponding to the execution flags, and the virtual object behavior flags can be modified by modifying the virtual object behavior flags. Make the virtual vehicle realize the corresponding virtual object behavior operation, obtain different driving scenes, and improve the scalability of the program.
在一个实施例中,速度控制标识包括红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种。速度控制操作包括红灯减速子操作、超过限速值减速子操作、根据距离减速子操作、加速子操作中至少一种。确定模块704用于当红灯减速子标识对应的执行标识为可执行标识时,根据红灯减速子标识确定对应的子操作为红灯减速子操作。确定模块704用于当超过限速值减速子标识对应的执行标识为可执行标识时,根据超过限速值减速子标识确定对应的子操作为超过限速值减速子操作。确定模块704用于当根据距离减速子标识对应的执行标识为可执行标识时,根据该根据距离减速子标识确定对应的子操作为根据距离减速子操作。确定模块704用于当加速子标识对应的执行标识为可执行标识时,根据加速子标识确定对应的子操作为加速子操作。In one embodiment, the speed control indicator includes at least one of a red light decelerator indicator, a speed limit decelerator indicator exceeding a speed limit, a distance-based speed reducer indicator, and an accelerator indicator. The speed control operation includes at least one of a red light deceleration sub-operation, a speed limit exceeding a deceleration sub-operation, a distance-based deceleration sub-operation, and an acceleration sub-operation. The determining module 704 is configured to determine that the corresponding sub-operation is a red-light deceleration sub-operation according to the red-light deceleration sub-identification when the execution identifier corresponding to the red light deceleration sub-identity is an executable identifier. The determining module 704 is configured to determine that the corresponding sub-operation is a deceleration sub-operation exceeding the speed limit value according to the speed-limiting-value deceleration sub-identification when the execution flag corresponding to the speed-limiting-value deceleration sub-identification is an executable flag. The determining module 704 is configured to, when the execution identifier corresponding to the distance deceleration sub-identifier is an executable identifier, determine the corresponding sub-operation as the distance-deceleration sub-operation according to the distance-deceleration sub-identification. The determining module 704 is configured to, when the execution identifier corresponding to the accelerator sub identifier is an executable identifier, determine that the corresponding sub operation is an accelerator sub operation according to the accelerator identifier.
上述行驶场景信息处理装置,可分别根据红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种,确定对应的速度控制操作,能够提高速度控制的精度,从而提高模拟无人车行驶环境的真实性。The above-mentioned driving scene information processing device can determine the corresponding speed control operation according to at least one of the red light decelerating sub-mark, the speed-limiting decelerating sub-mark, the distance decelerating sub-mark, and the accelerator marking, so as to improve the speed control performance. Accuracy, thereby improving the authenticity of the simulated unmanned vehicle driving environment.
在一个实施例中,换车道行驶标识包括按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种。换车道行驶操作包括按照预设路线换车道子操作、超车换车道子操作、紧急避让子操作中至少一种。确定模块704用于当按照预设路线换车道子标识对应的执行标识为可执行标识时,根据按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作。确定模块704用于当超车换车道子标识对应的执行标识为可执行标识时,根据超车换车道子标识确定对应的子操作为超车换车道子操作。确定模块704用于当紧急避让子标识对应的执行标识为可执行标识时,根据紧急避让子标识确定对应的子操作为紧急避让子操作。In an embodiment, the lane-changing driving indicator includes at least one of a lane-changing sub-identifier according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identity. The lane-changing driving operation includes at least one of a lane-changing sub-operation according to a preset route, a lane-changing sub-operation for overtaking, and an emergency avoiding sub-operation. The determining module 704 is configured to determine that the corresponding operation is the lane change operation according to the preset route when the execution flag corresponding to the lane change sub-identifier according to the preset route is an executable flag. The determining module 704 is configured to determine that the corresponding sub-operation is the overtaking and changing lane sub-operation according to the overtaking and changing lane sub-operation when the execution identifier corresponding to the overtaking and changing lane sub-indicator is an executable identifier. The determining module 704 is configured to determine that the corresponding sub-operation is an emergency avoiding sub-operation according to the emergency avoiding sub-identifier when the execution identifier corresponding to the emergency avoiding sub-identifier is an executable identifier.
上述行驶场景信息处理装置,可分别根据按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种,确定对应的换车道行驶操作,能够提高换车道的精度,从而提高模拟无人车行驶环境的真实性。The aforementioned driving scene information processing device can determine the corresponding lane-changing driving operation according to at least one of the lane-changing sub-identifier, the overtaking lane-changing sub-identifier, and the emergency avoiding sub-identity respectively according to the preset route, which can improve the accuracy of lane changing, thereby Improve the authenticity of the simulated driving environment of unmanned vehicles.
在一个实施例中,虚拟对象行为标识包括异常行为标识;行为参数值包括异常行为参数值;虚拟对象行为操作包括异常行为操作。执行模块706用于根据虚拟对象类型和异常行为参数值执行异常行为操作。In one embodiment, the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; and the virtual object behavior operation includes an abnormal behavior operation. The execution module 706 is configured to execute abnormal behavior operations according to the type of the virtual object and the abnormal behavior parameter value.
上述行驶场景信息处理装置,虚拟对象行为标识包括异常行为标识,行为参数值包括异常行为参数值,虚拟对象行为操作包括异常行为操作,根据虚拟对象类型和异常行为参数值执行异常行为操作,由于规定的一些行驶场景有特殊的需求,例如,需要在行驶场景中加入一些实施异常行为的车辆,用异常行为对应的场景测试无人车的算法在该场景下是 否能发挥作用,提高行驶场景模拟的真实性;并且通过更改异常参数值等,即能够修改行驶场景,提高程序的可扩展性。In the above driving scene information processing device, the virtual object behavior identifier includes the abnormal behavior identifier, the behavior parameter value includes the abnormal behavior parameter value, the virtual object behavior operation includes the abnormal behavior operation, and the abnormal behavior operation is performed according to the virtual object type and the abnormal behavior parameter value. Some driving scenes have special requirements. For example, some vehicles that implement abnormal behaviors need to be added to the driving scene, and the scenes corresponding to the abnormal behaviors are used to test whether the algorithm of unmanned vehicles can work in this scene, so as to improve the simulation of driving scenes. Authenticity; and by changing abnormal parameter values, etc., the driving scene can be modified to improve the scalability of the program.
在一个实施例中,异常行为标识为压线行驶标识;虚拟对象类型为车辆类型。执行模块706用于根据车辆类型及对应的初始位置和初始速度,执行压线行驶标识对应的压线行驶操作,以控制虚拟车辆压线行驶。In one embodiment, the abnormal behavior indicator is a line-pressing indicator; the type of the virtual object is a vehicle type. The execution module 706 is configured to execute the line pressing operation corresponding to the line pressing identification according to the vehicle type and the corresponding initial position and initial speed, so as to control the line pressing operation of the virtual vehicle.
上述行驶场景信息处理装置,根据虚拟车辆的初始位置和初始速度,执行压线行驶操作,以控制虚拟车辆压线行驶,能模拟车辆在实际行驶过程中的行驶场景,提高行驶场景模拟的真实性,可测试无人车的算法在该场景下是否适用,从而提高无人车算法的适用性。The above-mentioned driving scene information processing device, according to the initial position and initial speed of the virtual vehicle, executes the line-pressing operation to control the line-pressing operation of the virtual vehicle, which can simulate the driving scene of the vehicle in the actual driving process, and improve the authenticity of the driving scene simulation , It can test whether the unmanned vehicle algorithm is applicable in this scenario, thereby improving the applicability of the unmanned vehicle algorithm.
在一个实施例中,异常行为标识为路口不停车标识;虚拟对象类型为车辆类型;异常行为参数值包括交通灯检测操作的执行参数值为不可执行参数值。执行模块706用于根据车辆类型及对应的不可执行参数值,执行路口不停车标识对应的路口不停车操作,控制虚拟车辆在路口时保持行驶。In one embodiment, the abnormal behavior identifier is a no-stop marker at an intersection; the type of the virtual object is a vehicle type; and the abnormal behavior parameter value includes the execution parameter value of the traffic light detection operation as the non-executable parameter value. The execution module 706 is configured to execute the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the type of the vehicle and the corresponding non-executable parameter value, and control the virtual vehicle to keep driving at the intersection.
上述行驶场景信息处理装置,根据车辆类型及对应的不可执行参数值,执行路口不停车标识对应的路口不停车操作,控制虚拟车辆在路口时保持行驶,即电子设备不执行虚拟车辆对应的交通灯检测操作,可相当于无人车在行驶过程中遇到不按交通灯行驶的车辆,从而可检测无人车的算法在该场景下是否发挥作用,提高行驶场景模拟的真实性。The aforementioned driving scene information processing device executes the no-stop operation at the intersection corresponding to the no-stop sign at the intersection according to the vehicle type and the corresponding non-executable parameter value, and controls the virtual vehicle to keep driving at the intersection, that is, the electronic device does not execute the traffic light corresponding to the virtual vehicle The detection operation can be equivalent to an unmanned vehicle encountering a vehicle that does not follow a traffic light during driving, so that it can detect whether the algorithm of the unmanned vehicle plays a role in the scene, and improve the authenticity of the driving scene simulation.
在一个实施例中,异常行为标识为并入目标车前方标识;虚拟对象类型为车辆类型;异常行为参数值包括虚拟车辆与目标车之间的距离参数值,该距离参数值小于参考距离值。执行模块706用于根据车辆类型及对应的距离参数值,执行并入目标车前方标识对应的并入操作,控制虚拟车辆并入目标车行驶前方。In one embodiment, the abnormal behavior identification is incorporated into the front identification of the target vehicle; the virtual object type is a vehicle type; the abnormal behavior parameter value includes a distance parameter value between the virtual vehicle and the target vehicle, and the distance parameter value is less than the reference distance value. The execution module 706 is configured to execute the merge operation corresponding to the front mark of the merged target vehicle according to the vehicle type and the corresponding distance parameter value, and control the virtual vehicle to merge into the front of the target vehicle to travel.
上述行驶场景信息处理装置,当距离参数值小于参考距离值时,虚拟车辆执行并入操作,容易引发交通事故,即追尾或者侧碰等事故,虚拟车辆模拟无人车在道路上行驶碰到的异常行为,从而可检测无人车的算法在该场景下是否发挥作用,也提高行驶场景模拟的真实性。In the above driving scene information processing device, when the distance parameter value is less than the reference distance value, the virtual vehicle performs the merge operation, which is likely to cause traffic accidents, that is, accidents such as rear-end collision or side collision. Abnormal behavior, which can detect whether the algorithm of the unmanned vehicle is working in the scene, and also improve the authenticity of the driving scene simulation.
在一个实施例中,虚拟对象行为标识的数量为至少两个。执行模块706用于按照至少两个虚拟对象行为标识的顺序,以及每个虚拟对象行为标识对应的虚拟对象类型和行为参数值,执行对应的至少两个虚拟对象行为操作。In one embodiment, the number of virtual object behavior identifiers is at least two. The execution module 706 is configured to execute the corresponding at least two virtual object behavior operations according to the sequence of the at least two virtual object behavior identifiers, and the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier.
上述行驶场景信息处理装置,按照至少两个虚拟对象行为标识的顺序,以及每个虚拟对象行为标识对应的虚拟对象类型和行为参数值,执行对应的至少两个虚拟对象行为操作,能够模拟无人车的实际行驶场景,且只需要修改虚拟对象行为标识和行为参数值,即可执行不同的虚拟对象行为操作,使用更加便捷,且程序的可扩展性高。The foregoing driving scene information processing device performs at least two virtual object behavior operations corresponding to the sequence of at least two virtual object behavior identifiers, and the virtual object type and behavior parameter values corresponding to each virtual object behavior identifier, and can simulate unmanned operations. The actual driving scene of the vehicle, and only need to modify the virtual object behavior identification and behavior parameter values, you can perform different virtual object behavior operations, which is more convenient to use, and the program has high scalability.
在一个实施例中,行驶场景配置信息包括虚拟对象类型对应的初始状态信息。执行模块706用于根据虚拟对象类型、虚拟对象类型对应的初始状态信息和行为参数值,执行虚拟对象行为操作。In one embodiment, the driving scene configuration information includes initial state information corresponding to the virtual object type. The execution module 706 is configured to execute virtual object behavior operations according to the virtual object type, the initial state information corresponding to the virtual object type, and the behavior parameter value.
上述行驶场景信息处理装置,根据虚拟对象类型、虚拟对象类型对应的初始状态信息和行为参数值,执行虚拟对象行为操作,能够为不同类型配置不同的初始状态信息以及行为参数值,即可执行对应的虚拟行为操作,提高程序的可扩展性。The above-mentioned driving scene information processing device performs virtual object behavior operations according to the virtual object type, the initial state information and behavior parameter values corresponding to the virtual object type, and can configure different initial state information and behavior parameter values for different types to execute the corresponding The virtual behavior operation improves the scalability of the program.
在一个实施例中,行驶场景配置信息包括虚拟对象属性信息。该行驶场景信息处理装置还包括配置模块。配置模块用于为虚拟对象属性配置对应的虚拟对象属性信息。In one embodiment, the driving scene configuration information includes virtual object attribute information. The driving scene information processing device also includes a configuration module. The configuration module is used to configure the corresponding virtual object attribute information for the virtual object attribute.
上述行驶场景信息处理装置,为虚拟对象属性配置对应的虚拟对象属性信息,能够修改虚拟对象的属性,满足不同行驶的需求,并提高行驶场景的交互性。The above-mentioned driving scene information processing device configures corresponding virtual object attribute information for the virtual object attributes, which can modify the attributes of the virtual object, meet the needs of different driving, and improve the interactivity of the driving scene.
上述行驶场景信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将行驶场景信息处理装置按照需要划分为不同的模块,以完成上述行驶场景信息处理装置的全部或部分功能。The division of the modules in the driving scene information processing device described above is only for illustration. In other embodiments, the driving scene information processing device can be divided into different modules as needed to complete all or part of the driving scene information processing device. Function.
关于行驶场景信息处理装置的具体限定可以参见上文中对于行驶场景信息处理方法 的限定,在此不再赘述。上述行驶场景信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中的处理器中,也可以以软件形式存储于电子设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the driving scene information processing device, please refer to the above limitation of the driving scene information processing method, which will not be repeated here. Each module in the above-mentioned driving scene information processing device can be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the electronic device, or may be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
本申请实施例中提供的行驶场景信息处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器等电子设备上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述的行驶场景信息处理方法的操作。The implementation of each module in the driving scene information processing device provided in the embodiment of the present application may be in the form of a computer program. The computer program can be run on electronic devices such as terminals or servers. The program module constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the operation of the driving scene information processing method described in the embodiment of the present application is realized.
在一个实施例中,提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述各实施例所提供的行驶场景信息处理方法的操作。In one embodiment, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the driving scene provided by the foregoing embodiments is implemented. Operation of information processing methods.
在一个实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序对处理器执行时,实现本申请各实施例中所描述的行驶场景信息处理方法的操作。In one embodiment, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program. When the computer program is executed by the processor, the driving scenario described in each embodiment of the present application is realized. Operation of information processing methods.
在一个实施例中,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请各实施例中所描述的行驶场景信息处理方法。In one embodiment, a computer program product containing instructions is provided, which when running on a computer, causes the computer to execute the driving scene information processing method described in each embodiment of the present application.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other media used in this application may include non-volatile and/or volatile memory. Suitable non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express a few implementations of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation to the patent scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种行驶场景信息处理方法,包括:A method for processing driving scene information, including:
    获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;Acquiring driving scene configuration information, where the driving scene configuration information includes a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and a behavior parameter value corresponding to the virtual object type;
    根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;及Determine the corresponding virtual object behavior operation according to the virtual object behavior identifier; and
    根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。Perform the virtual object behavior operation according to the virtual object type and the behavior parameter value.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    检测所述虚拟对象行为标识对应的执行标识;Detecting the execution identifier corresponding to the virtual object behavior identifier;
    当所述执行标识为可执行标识时,执行所述根据所述虚拟对象行为标识确定对应的虚拟对象行为操作的操作。When the execution identifier is an executable identifier, the operation of determining the corresponding virtual object behavior operation according to the virtual object behavior identifier is executed.
  3. 根据权利要求2所述的方法,其特征在于,所述虚拟对象行为标识包括基本行为标识;所述基本行为标识包括匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识中至少一种;The method according to claim 2, wherein the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes a constant-speed straight-line driving identification, a speed control identification, a driving along a lane line, and a lane-changing driving identification. At least one
    所述当所述执行标识为可执行标识时,执行所述根据所述虚拟对象行为标识确定对应的虚拟对象行为操作的操作,包括:When the execution identifier is an executable identifier, performing the operation of determining a corresponding virtual object behavior operation according to the virtual object behavior identifier includes:
    当所述匀速直线行驶标识对应的执行标识为可执行标识时,根据所述匀速直线行驶标识确定对应的操作为匀速直线行驶操作;When the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag, determining that the corresponding operation is a constant-speed straight-line driving operation according to the constant-speed straight-line driving flag;
    当所述速度控制标识对应的执行标识为可执行标识时,根据所述速度控制标识确定对应的操作为速度控制操作;When the execution flag corresponding to the speed control flag is an executable flag, determine that the corresponding operation is a speed control operation according to the speed control flag;
    当所述沿车道线行驶标识对应的执行标识为可执行标识时,根据所述沿车道线行驶标识确定对应的操作为沿车道线行驶操作;When the execution flag corresponding to the lane-line driving flag is an executable flag, determining that the corresponding operation is the lane-line driving operation according to the lane-line driving flag;
    当所述换车道行驶标识对应的执行标识为可执行标识时,根据所述换车道行驶标识确定换车道行驶操作。When the execution flag corresponding to the lane-changing driving flag is an executable flag, the lane-changing driving operation is determined according to the lane-changing driving flag.
  4. 根据权利要求3所述的方法,其特征在于,所述速度控制标识包括红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种;The method according to claim 3, wherein the speed control indicator comprises at least one of a red light speed reducer indicator, a speed limit exceeding speed value speed reducer indicator, a distance-based speed reducer indicator, and an accelerator indicator;
    所述当所述速度控制对应的执行标识为可执行标识时,根据所述速度控制确定对应的速度控制操作,包括:When the execution identifier corresponding to the speed control is an executable identifier, determining the corresponding speed control operation according to the speed control includes:
    当所述红灯减速子标识对应的执行标识为所述可执行标识时,根据所述红灯减速子标识确定对应的子操作为红灯减速子操作;When the execution identifier corresponding to the red light deceleration sub-identification is the executable identifier, determining that the corresponding sub-operation is a red light deceleration sub-operation according to the red-light deceleration sub-identification;
    当所述超过限速值减速子标识对应的执行标识为所述可执行标识时,根据所述超过限速值减速子标识确定对应的子操作为超过限速值减速子操作;When the execution identifier corresponding to the speed limit value deceleration sub-identifier is the executable identifier, determining that the corresponding sub-operation is a speed-limit value deceleration sub-operation according to the speed-limit value deceleration sub-identification;
    当所述根据距离减速子标识对应的执行标识为所述可执行标识时,根据所述根据距离减速子标识确定对应的子操作为根据距离减速子操作;When the execution identifier corresponding to the distance deceleration sub-identifier is the executable identifier, determining, according to the distance deceleration sub-identity, that the corresponding sub-operation is a distance-deceleration sub-operation;
    当所述加速子标识对应的执行标识为所述可执行标识时,根据所述加速子标识确定对应的子操作为加速子操作。When the execution identifier corresponding to the accelerator identifier is the executable identifier, it is determined according to the accelerator identifier that the corresponding sub-operation is an accelerator sub-operation.
  5. 根据权利要求3所述的方法,其特征在于,所述换车道行驶标识包括按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种;The method according to claim 3, wherein the lane-changing driving indicator comprises at least one of a lane-changing sub-identification according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identification;
    所述当所述换车道行驶对应的执行标识为可执行标识时,根据所述换车道行驶确定换车道行驶操作,包括:When the execution flag corresponding to the lane-changing driving is an executable flag, determining the lane-changing driving operation according to the lane-changing driving includes:
    当所述按照预设路线换车道子标识对应的执行标识为可执行标识时,根据所述按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作;When the execution identifier corresponding to the lane-changing sub-identifier according to the preset route is an executable flag, determining that the corresponding operation is the lane-changing operation according to the preset route according to the lane-changing sub-identifier according to the preset route;
    当所述超车换车道子标识对应的执行标识为可执行标识时,根据所述超车换车道子标识确定对应的子操作为超车换车道子操作;When the execution flag corresponding to the overtaking lane-changing sub-indicator is an executable flag, determining that the corresponding sub-operation is the overtaking lane-changing sub-operation according to the overtaking and lane-changing sub-indicator;
    当所述紧急避让子标识对应的执行标识为可执行标识时,根据所述紧急避让子标识确定对应的子操作为紧急避让子操作。When the execution identifier corresponding to the emergency avoidance sub-identifier is an executable identifier, it is determined that the corresponding sub-operation is an emergency avoidance sub-operation according to the emergency avoidance sub-identification.
  6. 根据权利要求1所述的方法,其特征在于,所述虚拟对象行为标识包括异常行为标识;所述行为参数值包括异常行为参数值;所述虚拟对象行为操作包括异常行为操作;The method according to claim 1, wherein the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; the virtual object behavior operation includes an abnormal behavior operation;
    所述根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作,包括:The executing the virtual object behavior operation according to the virtual object type and the behavior parameter value includes:
    根据所述虚拟对象类型和所述异常行为参数值执行所述异常行为操作。The abnormal behavior operation is performed according to the type of the virtual object and the abnormal behavior parameter value.
  7. 根据权利要求6所述的方法,其特征在于,所述异常行为标识为压线行驶标识;所述虚拟对象类型为车辆类型;The method according to claim 6, wherein the abnormal behavior identifier is a line driving identifier; the type of the virtual object is a vehicle type;
    所述根据所述虚拟对象类型和所述异常行为参数值执行所述异常行为操作,包括:The executing the abnormal behavior operation according to the virtual object type and the abnormal behavior parameter value includes:
    根据车辆类型及对应的初始位置和初始速度,执行所述压线行驶标识对应的压线行驶操作,以控制所述虚拟车辆压线行驶。According to the vehicle type and the corresponding initial position and initial speed, the line pressing operation corresponding to the line pressing identification is executed to control the line pressing operation of the virtual vehicle.
  8. 根据权利要求6所述的方法,其特征在于,所述异常行为标识为路口不停车标识;所述虚拟对象类型为车辆类型;所述异常行为参数值包括交通灯检测操作的执行参数值为不可执行参数值;The method according to claim 6, wherein the abnormal behavior identifier is a no-stop marker at an intersection; the virtual object type is a vehicle type; and the abnormal behavior parameter value includes the value of the execution parameter value of the traffic light detection operation. Execution parameter value;
    所述根据所述虚拟对象类型和所述异常行为参数值执行所述异常行为操作,包括:The executing the abnormal behavior operation according to the virtual object type and the abnormal behavior parameter value includes:
    根据所述车辆类型及对应的所述不可执行参数值,执行所述路口不停车标识对应的路口不停车操作,以控制虚拟车辆在路口时保持行驶。According to the vehicle type and the corresponding non-executable parameter value, the intersection no-stop operation corresponding to the intersection no-stop sign is executed to control the virtual vehicle to keep driving at the intersection.
  9. 根据权利要求6所述的方法,其特征在于,所述异常行为标识为并入目标车前方标识;所述虚拟对象类型为车辆类型;所述异常行为参数值包括虚拟车辆与目标车之间的距离参数值,所述距离参数值小于参考距离值;The method according to claim 6, wherein the abnormal behavior identifier is an identifier that is merged into the front of the target vehicle; the type of the virtual object is a vehicle type; and the abnormal behavior parameter value includes the difference between the virtual vehicle and the target vehicle. A distance parameter value, where the distance parameter value is less than a reference distance value;
    所述根据所述虚拟对象类型和所述异常行为参数值执行所述异常行为操作,包括:The executing the abnormal behavior operation according to the virtual object type and the abnormal behavior parameter value includes:
    根据车辆类型及对应的所述距离参数值,执行所述并入目标车前方标识对应的并入操作,以控制所述虚拟车辆并入所述目标车行驶前方。According to the vehicle type and the corresponding distance parameter value, the merging operation corresponding to the front mark of the merging target vehicle is executed to control the virtual vehicle to merge into the driving front of the target vehicle.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述虚拟对象行为标识的数量为至少两个;The method according to any one of claims 1 to 9, wherein the number of the virtual object behavior identifiers is at least two;
    所述根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作,包括:The executing the virtual object behavior operation according to the virtual object type and the behavior parameter value includes:
    按照至少两个所述虚拟对象行为标识的顺序,以及每个所述虚拟对象行为标识对应的所述虚拟对象类型和所述行为参数值,执行对应的至少两个虚拟对象行为操作。Perform at least two corresponding virtual object behavior operations according to the sequence of at least two virtual object behavior identifiers, and the virtual object type and behavior parameter value corresponding to each virtual object behavior identifier.
  11. 根据权利要求1至9任一项所述的方法,其特征在于,所述行驶场景配置信息包括所述虚拟对象类型对应的初始状态信息;The method according to any one of claims 1 to 9, wherein the driving scene configuration information includes initial state information corresponding to the type of virtual object;
    所述根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作,包括:The executing the virtual object behavior operation according to the virtual object type and the behavior parameter value includes:
    根据所述虚拟对象类型、所述虚拟对象类型对应的所述初始状态信息和所述行为参数值,执行所述虚拟对象行为操作。Perform the virtual object behavior operation according to the virtual object type, the initial state information corresponding to the virtual object type, and the behavior parameter value.
  12. 根据权利要求1至9任一项所述的方法,其特征在于,所述行驶场景配置信息包括虚拟对象属性信息;The method according to any one of claims 1 to 9, wherein the driving scene configuration information includes virtual object attribute information;
    所述方法还包括:The method also includes:
    为虚拟对象属性参数配置对应的虚拟对象属性信息。Configure the corresponding virtual object attribute information for the virtual object attribute parameter.
  13. 一种行驶场景信息处理装置,其特征在于,所述装置包括:A driving scene information processing device, characterized in that the device includes:
    获取模块,用于获取行驶场景配置信息,所述行驶场景配置信息中包括虚拟对象行为标识、所述虚拟对象行为标识对应的虚拟对象类型和所述虚拟对象类型对应的行为参数值;An obtaining module, configured to obtain driving scene configuration information, the driving scene configuration information including a virtual object behavior identifier, a virtual object type corresponding to the virtual object behavior identifier, and a behavior parameter value corresponding to the virtual object type;
    确定模块,用于根据所述虚拟对象行为标识确定对应的虚拟对象行为操作;The determining module is configured to determine the corresponding virtual object behavior operation according to the virtual object behavior identifier;
    执行模块,用于根据所述虚拟对象类型和所述行为参数值执行所述虚拟对象行为操作。The execution module is configured to execute the virtual object behavior operation according to the virtual object type and the behavior parameter value.
  14. 根据权利要求13所述的装置,其特征在于,所述确定模块用于检测所述虚拟对象行为标识对应的执行标识;所述确定模块用于当所述执行标识为可执行标识时,根据所述虚拟对象行为标识确定对应的虚拟对象行为操作。The device according to claim 13, wherein the determining module is configured to detect an execution identifier corresponding to the virtual object behavior identifier; the determining module is configured to, when the execution identifier is an executable identifier, according to The virtual object behavior identifier determines the corresponding virtual object behavior operation.
  15. 根据权利要求14所述的装置,其特征在于,所述虚拟对象行为标识包括基本行为标识;所述基本行为标识包括匀速直线行驶标识、速度控制标识、沿车道线行驶标识、换车道行驶标识中至少一种;The apparatus according to claim 14, wherein the virtual object behavior identification includes a basic behavior identification; the basic behavior identification includes a constant-speed straight-line driving identification, a speed control identification, a driving along a lane line, and a lane-changing driving identification. At least one
    所述确定模块用于当所述匀速直线行驶标识对应的执行标识为可执行标识时,根据所述匀速直线行驶标识确定对应的操作为匀速直线行驶操作;The determining module is configured to, when the execution flag corresponding to the constant-speed straight-line driving flag is an executable flag, determine that the corresponding operation is a uniform-speed straight-line driving operation according to the constant-speed straight-line driving flag;
    所述确定模块用于当所述速度控制标识对应的执行标识为可执行标识时,根据所述速度控制标识确定对应的操作为速度控制操作;The determining module is configured to determine that the corresponding operation is a speed control operation according to the speed control identifier when the execution identifier corresponding to the speed control identifier is an executable identifier;
    所述确定模块用于当所述沿车道线行驶标识对应的执行标识为可执行标识时,根据所述沿车道线行驶标识确定对应的操作为沿车道线行驶操作;The determining module is configured to determine that the corresponding operation is a driving operation along the lane line according to the driving along the lane line when the execution flag corresponding to the driving along the lane line flag is an executable flag;
    所述确定模块用于当所述换车道行驶标识对应的执行标识为可执行标识时,根据所述换车道行驶标识确定换车道行驶操作。The determining module is configured to determine a lane-changing driving operation according to the lane-changing driving identifier when the execution identifier corresponding to the lane-changing driving identifier is an executable identifier.
  16. 根据权利要求15所述的装置,其特征在于,所述速度控制标识包括红灯减速子标识、超过限速值减速子标识、根据距离减速子标识、加速子标识中至少一种;The device according to claim 15, wherein the speed control indicator comprises at least one of a red light speed reducer indicator, a speed limit exceeding speed value speed reducer indicator, a distance-based speed reducer indicator, and an accelerator indicator;
    所述确定模块用于当所述红灯减速子标识对应的执行标识为所述可执行标识时,根据所述红灯减速子标识确定对应的子操作为红灯减速子操作;The determining module is configured to determine that the corresponding sub operation is a red light deceleration sub-operation according to the red light deceleration sub-identification when the execution identifier corresponding to the red light deceleration sub-identification is the executable identifier;
    所述确定模块用于当所述超过限速值减速子标识对应的执行标识为所述可执行标识时,根据所述超过限速值减速子标识确定对应的子操作为超过限速值减速子操作;The determining module is configured to determine that the corresponding sub-operation is the speed-limit-over-speed decelerator according to the speed-limit-over-speed deceleration sub-identifier when the execution identifier corresponding to the speed-limit deceleration sub-identifier is the executable identifier. operate;
    所述确定模块用于当所述根据距离减速子标识对应的执行标识为所述可执行标识时,根据所述根据距离减速子标识确定对应的子操作为根据距离减速子操作;The determining module is configured to determine that the corresponding sub-operation is a distance-based deceleration sub-operation according to the distance-based deceleration sub-identification when the execution identifier corresponding to the distance-based deceleration sub-identification is the executable identifier;
    所述确定模块用于当所述加速子标识对应的执行标识为所述可执行标识时,根据所述加速子标识确定对应的子操作为加速子操作。The determining module is configured to determine that the corresponding sub operation is an accelerator operation according to the accelerator sub identifier when the execution identifier corresponding to the accelerator sub identifier is the executable identifier.
  17. 根据权利要求15所述的装置,其特征在于,所述换车道行驶标识包括按照预设路线换车道子标识、超车换车道子标识、紧急避让子标识中至少一种;The device according to claim 15, wherein the lane-changing driving indicator comprises at least one of a lane-changing sub-identification according to a preset route, a lane-changing sub-identification for overtaking, and an emergency avoiding sub-identification;
    所述确定模块用于当所述按照预设路线换车道子标识对应的执行标识为可执行标识时,根据所述按照预设路线换车道子标识确定对应的操作为按照预设路线换车道子操作;The determining module is configured to determine that the corresponding operation is to change lanes according to the preset route when the execution identifier corresponding to the lane change according to the preset route identifier is an executable identifier. operate;
    所述确定模块用于当所述超车换车道子标识对应的执行标识为可执行标识时,根据所述超车换车道子标识确定对应的子操作为超车换车道子操作;The determining module is configured to determine that the corresponding sub-operation is the overtaking lane-changing sub-operation according to the overtaking lane-changing sub-indicator when the execution flag corresponding to the overtaking lane-changing sub-indicator is an executable flag;
    所述确定模块用于当所述紧急避让子标识对应的执行标识为可执行标识时,根据所述紧急避让子标识确定对应的子操作为紧急避让子操作。The determining module is configured to determine that the corresponding sub-operation is an emergency avoiding sub-operation according to the emergency avoiding sub-identifier when the execution identifier corresponding to the emergency avoiding sub-identifier is an executable identifier.
  18. 根据权利要求13所述的装置,其特征在于,所述虚拟对象行为标识包括异常行为标识;所述行为参数值包括异常行为参数值;所述虚拟对象行为操作包括异常行为操作;The device according to claim 13, wherein the virtual object behavior identifier includes an abnormal behavior identifier; the behavior parameter value includes an abnormal behavior parameter value; the virtual object behavior operation includes an abnormal behavior operation;
    所述执行模块用于根据所述虚拟对象类型和所述异常行为参数值执行所述异常行为操作。The execution module is configured to execute the abnormal behavior operation according to the type of the virtual object and the abnormal behavior parameter value.
  19. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至12中任一项所述的方法的操作。An electronic device comprising a memory and a processor, and a computer program is stored in the memory, wherein when the computer program is executed by the processor, the processor executes any of claims 1 to 12 The operation of the method described in one item.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至12中任一项所述的方法的操作。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the operation of the method according to any one of claims 1 to 12 when the computer program is executed by a processor.
PCT/CN2020/074958 2020-02-12 2020-02-12 Traveling scenario information processing method and apparatus, electronic device, and readable storage medium WO2021159357A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/074958 WO2021159357A1 (en) 2020-02-12 2020-02-12 Traveling scenario information processing method and apparatus, electronic device, and readable storage medium
CN202080003160.5A CN113574530A (en) 2020-02-12 2020-02-12 Driving scene information processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/074958 WO2021159357A1 (en) 2020-02-12 2020-02-12 Traveling scenario information processing method and apparatus, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2021159357A1 true WO2021159357A1 (en) 2021-08-19

Family

ID=77291943

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/074958 WO2021159357A1 (en) 2020-02-12 2020-02-12 Traveling scenario information processing method and apparatus, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113574530A (en)
WO (1) WO2021159357A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834776A (en) * 2015-04-30 2015-08-12 吉林大学 System and method for modeling and simulating traffic vehicle in microscopic traffic simulation
CN108919779A (en) * 2018-07-02 2018-11-30 北京小马智行科技有限公司 A kind of interactive mode unmanned vehicle emulation mode and emulation platform
CN109597317A (en) * 2018-12-26 2019-04-09 广州小鹏汽车科技有限公司 A kind of Vehicular automatic driving method, system and electronic equipment based on self study
CN110174274A (en) * 2019-05-28 2019-08-27 初速度(苏州)科技有限公司 A kind of modification method and device of intelligent driving algorithm
CN110245406A (en) * 2019-06-05 2019-09-17 腾讯科技(深圳)有限公司 Travel emulation mode, device and storage medium
CN110263381A (en) * 2019-05-27 2019-09-20 南京航空航天大学 A kind of automatic driving vehicle test emulation scene generating method
CN110502852A (en) * 2019-08-27 2019-11-26 上海汽车集团股份有限公司 A kind of generation method and generation system of automatic Pilot emulation testing scene
CN110673636A (en) * 2019-09-30 2020-01-10 上海商汤临港智能科技有限公司 Unmanned simulation test system and method, and storage medium
US20200035115A1 (en) * 2018-07-30 2020-01-30 Modular High-End Ltd. Vehicle operation simulation system and method
CN110785718A (en) * 2019-09-29 2020-02-11 驭势科技(北京)有限公司 Vehicle-mounted automatic driving test system and test method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3147809B1 (en) * 2015-09-23 2019-06-12 Avalosys Oy Processing files to be stored on virtual drive
US20170109458A1 (en) * 2015-10-16 2017-04-20 Ford Global Technologies, Llc Testbed for lane boundary detection in virtual driving environment
CN108011886A (en) * 2017-12-13 2018-05-08 上海曼恒数字技术股份有限公司 A kind of cooperative control method, system, equipment and storage medium
CN108629180B (en) * 2018-03-29 2020-12-11 腾讯科技(深圳)有限公司 Abnormal operation determination method and device, storage medium and electronic device
CN109657355B (en) * 2018-12-20 2021-05-11 安徽江淮汽车集团股份有限公司 Simulation method and system for vehicle road virtual scene
CN110427682B (en) * 2019-07-26 2020-05-19 清华大学 Traffic scene simulation experiment platform and method based on virtual reality
CN110264825A (en) * 2019-07-31 2019-09-20 交通运输部公路科学研究所 A kind of drive simulation safe evaluation method, apparatus and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834776A (en) * 2015-04-30 2015-08-12 吉林大学 System and method for modeling and simulating traffic vehicle in microscopic traffic simulation
CN108919779A (en) * 2018-07-02 2018-11-30 北京小马智行科技有限公司 A kind of interactive mode unmanned vehicle emulation mode and emulation platform
US20200035115A1 (en) * 2018-07-30 2020-01-30 Modular High-End Ltd. Vehicle operation simulation system and method
CN109597317A (en) * 2018-12-26 2019-04-09 广州小鹏汽车科技有限公司 A kind of Vehicular automatic driving method, system and electronic equipment based on self study
CN110263381A (en) * 2019-05-27 2019-09-20 南京航空航天大学 A kind of automatic driving vehicle test emulation scene generating method
CN110174274A (en) * 2019-05-28 2019-08-27 初速度(苏州)科技有限公司 A kind of modification method and device of intelligent driving algorithm
CN110245406A (en) * 2019-06-05 2019-09-17 腾讯科技(深圳)有限公司 Travel emulation mode, device and storage medium
CN110502852A (en) * 2019-08-27 2019-11-26 上海汽车集团股份有限公司 A kind of generation method and generation system of automatic Pilot emulation testing scene
CN110785718A (en) * 2019-09-29 2020-02-11 驭势科技(北京)有限公司 Vehicle-mounted automatic driving test system and test method
CN110673636A (en) * 2019-09-30 2020-01-10 上海商汤临港智能科技有限公司 Unmanned simulation test system and method, and storage medium

Also Published As

Publication number Publication date
CN113574530A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US11216355B2 (en) Autonomous vehicle testing systems and methods
JP2021530824A (en) Smart driving control methods and devices, vehicles, electronic devices, media, products
US11892847B2 (en) Onboard use of scenario description language
Nguyen et al. Traffic conflict assessment for non-lane-based movements of motorcycles under congested conditions
CN112885145B (en) Crossing risk early warning method and device
CN113212454B (en) Method and device for adjusting running state of vehicle, computer equipment and storage medium
WO2022165811A1 (en) Simulation method and related device
CN111539112B (en) Scene modeling method for automatically driving vehicle to quickly search traffic object
EP4191221A1 (en) Vehicle simulation test scenario construction method and device
Zhao et al. Cellular automata model for Urban Road traffic flow Considering Internet of Vehicles and emergency vehicles
US20220161830A1 (en) Dynamic Scene Representation
US11354458B1 (en) Automated vehicle safety simulation using safety quotient method
CN113272744A (en) System for monitoring appropriate behavior of autonomous vehicle and method thereof
CN113536538B (en) Pedestrian and vehicle interaction simulation method and system based on traffic conflict
WO2021159357A1 (en) Traveling scenario information processing method and apparatus, electronic device, and readable storage medium
Espadaler-Clapés et al. Empirical investigation of lane usage, lane changing and lane choice phenomena in a multimodal urban arterial
CN115795808A (en) Automatic driving decision dangerous scene generation method, system, equipment and medium
WO2022143057A1 (en) Self-driving algorithm testing method and related device
Gregoriades et al. A driving simulator for discovering requirements in complex systems
CN112286188B (en) Vehicle driving control method, device, equipment and computer readable storage medium
CN114077797A (en) Automatic driving test scene design method and device based on road traffic regulations
WO2022119947A1 (en) Systems and methods for extracting data from autonomous vehicles
Kurnaz Urban traffic modeling with microscopic approach using cellular automata
Çavuşoğlu et al. Developing a parameterized simulation platform with intelligent synthetic agents for training driver candidates
US20240075950A1 (en) Alternative Driving Models for Autonomous Vehicles

Legal Events

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

Ref document number: 20919036

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 16/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20919036

Country of ref document: EP

Kind code of ref document: A1