Automatic driving simulation method and electronic device

By setting clipping positions in autonomous driving simulation to clip vehicle trajectories, the problem of insufficient efficiency and accuracy of route clipping in existing technologies is solved, thereby improving the accuracy and resource utilization efficiency of autonomous driving simulation.

CN123178246APending Publication Date: 2026-11-27BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510686990.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In autonomous driving simulation, due to the fragmentation of the simulation and the piecemeal loading of the map, existing technologies struggle to improve the efficiency and accuracy of route trimming, resulting in insufficient accuracy in autonomous driving simulation.

Method used

By setting the vehicle simulation start position as the first clipping position, determining the first distance based on the routing data unit, and extending the first distance towards the front of the vehicle from the vehicle simulation end position to determine the second clipping position, the vehicle's driving trajectory is clipped using the first and second clipping positions to form the simulation route corresponding to the simulation start time point and the simulation end time point. Map data is then loaded for autonomous driving simulation.

Benefits of technology

It enables rapid trimming of routes corresponding to autonomous driving data, maintains the consistency of vehicle driving status in the simulation environment at the end of the simulation time, reduces resource consumption, and improves the accuracy of autonomous driving simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178246A_ABST
    Figure CN123178246A_ABST
Patent Text Reader

Abstract

The present disclosure provides an automatic driving simulation method and an electronic device. The method comprises: in response to a routing clipping instruction, obtaining automatic driving data and a simulation start time point, a simulation end time point; determining a vehicle simulation start position according to the simulation start time point and a vehicle driving track, and setting the vehicle simulation start position as a first clipping position; determining a vehicle simulation end position according to the simulation end time point and the vehicle driving track, and extending the vehicle simulation end position in the direction of the vehicle head by a first distance according to N routing data units to obtain a second clipping position; clipping the vehicle driving track according to the first clipping position and the second clipping position to form a simulation route corresponding to the simulation start time point and the simulation end time point; and loading map data corresponding to the automatic driving data according to the simulation route to perform automatic driving simulation. The present disclosure can improve the accuracy of automatic driving simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of autonomous driving technology, and more specifically, to an autonomous driving simulation method and electronic device. Background Technology

[0002] In modern autonomous driving systems, route planning is one of the core modules. In autonomous driving simulations based on historical autonomous driving data, due to the fragmented nature of the simulation and the piecemeal loading of the map, it is necessary to trim the routes from the historical autonomous driving data. Therefore, it is essential to improve the efficiency and accuracy of route trimming to enhance the accuracy of the autonomous driving simulation.

[0003] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0004] The purpose of this disclosure is to provide an autonomous driving simulation method and electronic device to improve the accuracy of autonomous driving simulation.

[0005] According to a first aspect of the present disclosure, an autonomous driving simulation method is provided, comprising: responding to a route pruning instruction; acquiring autonomous driving data and a simulation start time point and a simulation end time point, wherein the autonomous driving data includes a vehicle driving trajectory, and the vehicle driving trajectory includes N routing data units, N≥1; determining a vehicle simulation start position based on the simulation start time point and the vehicle driving trajectory, and setting the vehicle simulation start position as a first pruning position; determining a vehicle simulation end position based on the simulation end time point and the vehicle driving trajectory, and extending the N routing data units at the vehicle simulation end position towards the front of the vehicle by a first distance to obtain a second pruning position; pruning the vehicle driving trajectory based on the first pruning position and the second pruning position to form a simulation route corresponding to the simulation start time point and the simulation end time point; and loading map data corresponding to the autonomous driving data based on the simulation route to perform autonomous driving simulation.

[0006] According to a second aspect of the present disclosure, an electronic device is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to perform the method as described in any one of the preceding embodiments based on instructions stored in the memory.

[0007] According to a third aspect of this disclosure, a computer-readable storage medium is provided having a program stored thereon that, when executed by a processor, implements the autonomous driving simulation method as described in any of the preceding claims.

[0008] According to a fourth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps of any of the preceding methods.

[0009] This embodiment of the disclosure sets the vehicle simulation start position as the first clipping position, determines the first distance based on the routing data unit, and determines the second clipping position by extending the first distance based on the vehicle simulation end position. The vehicle's driving trajectory is clipped using the first and second clipping positions. By using the routing points as clipping positions, there is no need to load the path data between the routing points. This enables the rapid clipping of routes corresponding to autonomous driving data and allows the vehicle in the simulation environment to maintain the same driving state as in reality at the end of the simulation. This reduces the resource consumption of autonomous driving simulation while improving the accuracy of autonomous driving simulation.

[0010] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0012] Figure 1 This is a flowchart of an autonomous driving simulation method in an exemplary embodiment of this disclosure.

[0013] Figure 2 This is a sub-flowchart of step S3 in an exemplary embodiment of this disclosure.

[0014] Figure 3A and Figure 3B This is a schematic diagram illustrating the relationship between the routing data unit and the vehicle's driving trajectory in an embodiment of this disclosure.

[0015] Figure 4 This is a sub-flowchart of step S33 in an exemplary embodiment of this disclosure.

[0016] Figures 5A to 5C This is a schematic diagram illustrating the relationship between the first routing point and the second clipping position in an exemplary embodiment of this disclosure.

[0017] Figure 6 This is a sub-flowchart of step S4 in an exemplary embodiment of this disclosure.

[0018] Figure 7 yes Figure 6 A schematic diagram of the embodiment shown.

[0019] Figure 8 This is a schematic diagram illustrating the loading of map data in an exemplary embodiment of this disclosure.

[0020] Figure 9 This is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0021] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0022] Furthermore, the accompanying drawings are merely illustrative of this disclosure, and the same reference numerals in the drawings denote the same or similar parts, thus repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0023] The exemplary embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0024] Figure 1 This is a flowchart of an autonomous driving simulation method in an exemplary embodiment of this disclosure.

[0025] refer to Figure 1 The autonomous driving simulation method 100 may include:

[0026] Step S1: Respond to the route pruning command, obtain autonomous driving data and simulation start time point and simulation end time point. The autonomous driving data includes the vehicle driving trajectory, and the vehicle driving trajectory includes N route data units, where N≥1.

[0027] Step S2: Determine the vehicle simulation starting position based on the simulation start time point and the vehicle driving trajectory, and set the vehicle simulation starting position as the first clipping position;

[0028] Step S3: Determine the vehicle simulation end position based on the simulation end time and the vehicle driving trajectory; extend the N routing data units a first distance from the vehicle simulation end position toward the front of the vehicle to obtain the second clipping position.

[0029] Step S4: The vehicle driving trajectory is clipped according to the first clipping position and the second clipping position to form the simulation route corresponding to the simulation start time point and the simulation end time point;

[0030] Step S5: Load the map data corresponding to the autonomous driving data according to the simulation route, and perform autonomous driving simulation.

[0031] This embodiment of the disclosure sets the vehicle simulation start position as the first clipping position, determines the first distance based on the routing data unit, and determines the second clipping position by extending the first distance based on the vehicle simulation end position. The vehicle's driving trajectory is clipped using the first and second clipping positions. By using the routing points as clipping positions, there is no need to load the path data between the routing points. This enables the rapid clipping of routes corresponding to autonomous driving data and allows the vehicle in the simulation environment to maintain the same driving state as in reality at the end of the simulation. This reduces the resource consumption of autonomous driving simulation while improving the accuracy of autonomous driving simulation.

[0032] The steps of the autonomous driving simulation method 100 will be explained in detail below.

[0033] In step S1, in response to the route pruning command, the autonomous driving data and the simulation start time point and simulation end time point are obtained. The autonomous driving data includes the vehicle driving trajectory, and the vehicle driving trajectory includes N routing data units, where N≥1.

[0034] In an exemplary embodiment, before performing route pruning, it can first check whether the current autonomous driving simulation allows route pruning. If it does not allow it, route pruning is skipped and method 100 is not executed. If it allows it, a route pruning instruction can be triggered and method 100 can be executed to perform route pruning.

[0035] In this embodiment, autonomous driving data refers to various types of data generated or collected during the autonomous driving process of a real vehicle in a real physical environment. This data describes the vehicle's operating status, environmental perception, and other information, serving as the foundation for autonomous driving simulation and algorithm training. In an exemplary embodiment, autonomous driving data includes at least the vehicle's driving trajectory (corresponding to the map) and vehicle operation data (corresponding to the vehicle itself). The vehicle in this embodiment (i.e., the vehicle actually operating in physical space) can operate entirely through autonomous driving or through a combination of manual and autonomous driving.

[0036] A vehicle trajectory is the path a real vehicle travels within a certain time period, consisting of a series of timestamps corresponding to the vehicle's position coordinates. It can intuitively reflect the vehicle's movement process in real physical space. In an exemplary embodiment, vehicle trajectory data can be collected by positioning devices such as the Global Positioning System (GPS) or the BeiDou Navigation Satellite System installed in or outside the vehicle, or it can be calculated by an inertial navigation system combined with data from other sensors. Specifically, it can be in the form of a latitude and longitude coordinate sequence or a Cartesian coordinate sequence.

[0037] A vehicle's trajectory corresponds to N routing data units, each of which can be called a "route" and consists of multiple routing points. A routing data unit is a set of path planning instructions issued by the navigation system in time or spatial segments. Essentially, it is a discrete sequence of routing points, carrying the vehicle's driving path information at a certain stage. A route is an independent path planning result issued by the navigation system at a specific stage, containing a set of ordered routing points and corresponding navigation logic (such as turning instructions and lane rules). In terms of time interval, each routing data unit corresponds to a unique time range, defining the effective driving period of the vehicle within that unit. In terms of spatial range, each routing data unit is determined by the sequence of routing points within the unit, typically corresponding to a continuous road segment. A routing data unit is a container for routing points. A routing data unit contains at least two routing points (start and end points), and generally also includes intermediate routing points located between the start and end points. Complex routing data units can contain dozens to hundreds of intermediate routing points (such as densely sampled points in curves or lane-changing sections).

[0038] A routing point is the smallest unit of routing data, a discrete point containing spatial coordinates (x, y, z), a timestamp, speed, heading angle, and other attributes. It can be divided into critical nodes (such as turning points and lane change origins, which determine the geometry of the path) and sampling nodes (such as evenly spaced points on straight road segments, used to fill in trajectory details).

[0039] In some embodiments, the vehicle's trajectory is the result of a global stitching of its corresponding N routing data units. The N routing data units are seamlessly connected in chronological order to form a continuous trajectory covering the entire journey.

[0040] In other embodiments, there are gaps between the N routing data units (e.g., a delay in route delivery causing the previous route to be executed before the new route has been delivered), and a certain segment of the vehicle's travel trajectory does not correspond to a routing data unit. Therefore, the vehicle's travel trajectory is not necessarily exactly the same as the path corresponding to the N routing data units.

[0041] The simulation start and end times can be set by the testers according to their needs. For example, if it is necessary to verify the vehicle's ability to navigate curves, the driving time interval corresponding to the curve can be determined based on the autonomous driving data, and the simulation start and end times can be set as the start and end times of that driving time interval, respectively.

[0042] The simulation start time point refers to the time reference point at which the simulation program begins execution. It is the starting point for defining the time axis of the simulation process and is used to synchronize the correspondence between vehicle status, environmental parameters, and time. The simulation end time point refers to the time reference point at which the simulation program terminates execution. It is the ending point for defining the time axis of the simulation process and is used to determine the cutoff time for vehicle status acquisition and the effective time range of the simulation results.

[0043] In step S2, the starting position of the vehicle simulation is determined based on the simulation start time point and the vehicle driving trajectory, and the starting position of the vehicle simulation is set as the first clipping position.

[0044] The vehicle simulation starting position is determined based on the simulation starting time point and the vehicle's driving trajectory; it is the spatial position of the vehicle at the simulation starting time point, represented by a coordinate. In an exemplary embodiment, the vehicle simulation starting position can be determined by querying the vehicle coordinate data corresponding to the simulation starting time point in the vehicle's driving trajectory. This allows for the simulation of a vehicle seamlessly transitioning from a point on its real trajectory to subsequent movements, or for verifying the vehicle's response (such as emergency braking or steering control) under its state (speed / position) at a real time point (such as the simulation starting time point).

[0045] The first pruning position refers to the starting boundary point for pruning the routing data.

[0046] Route clipping refers to the process of cropping or adjusting the vehicle's trajectory or its surrounding area based on the vehicle's route, in order to optimize route planning efficiency or adapt to simulation scenario requirements, such as eliminating redundant road segments or focusing on critical paths.

[0047] Specifically, during route pruning, the vehicle's driving trajectory, i.e., the navigation path (such as GPS trajectory, planned route), and the road elements associated with this driving route (such as lanes, intersections) are truncated according to the first pruning position and the subsequent second pruning position (for example, only the main road between the first and second pruning positions is retained, and irrelevant road segments are removed) to generate a simulated route (such as the route points corresponding to the vehicle simulation start position to the vehicle simulation end position) within the target area (such as a city block). Irrelevant areas in the map (such as roads unrelated to the above simulated route) are also removed. Finally, the pruned simulated route is imported into the simulation platform (such as CARLA) to generate the vehicle's simulated driving trajectory.

[0048] In an exemplary embodiment, the vehicle simulation starting position can be set as the first clipping position to minimize the resource consumption of the clipped route. In other embodiments, the first clipping position can also be set by extending a preset distance behind the vehicle according to its driving position on the route corresponding to the vehicle simulation starting position. This avoids triggering the simulation engine's accuracy error, which could cause the vehicle's initial position to be judged as "out of the valid range," and ensures that the vehicle simulation starting position is strictly within the valid range, avoiding logical errors caused by boundary overlap (such as collision detection failure or road segment loading delay). This preset distance can be set according to the simulation engine's tolerance to boundary errors.

[0049] In step S3, the vehicle simulation end position is determined based on the simulation end time point and the vehicle driving trajectory. The N routing data units are extended a first distance towards the front of the vehicle from the vehicle simulation end position to obtain the second clipping position.

[0050] The vehicle simulation termination position is determined based on the simulation end time and the vehicle's trajectory, representing the vehicle's spatial location at the simulation end time, expressed as a coordinate. In an exemplary embodiment, the vehicle simulation termination position can be determined by querying the vehicle coordinate data corresponding to the simulation end time in the vehicle's trajectory. This allows for the simulation of the vehicle's transition state at a point on the real trajectory, or for verifying the vehicle's final behavior (such as parking position accuracy and lane keeping capability) at a real time point (e.g., the simulation end time).

[0051] The second clipping position is used to define the termination boundary of the simulation map and is another key reference point for clipping map data. In related technologies, the second clipping position is set as the end position of the vehicle simulation to accurately align with the termination state of the real trajectory, ensuring that the vehicle position at the end of the simulation is completely consistent with the real data, avoiding state jumps caused by path truncation. This is suitable for scenarios requiring strict reproduction of the endpoint behavior (such as parking accuracy verification). However, in practical applications, the existence of the boundary can affect the behavior of the simulated vehicle in the simulation environment. For example, it may cause the vehicle to decelerate prematurely or exhibit other behavioral changes after approaching the boundary, significantly impacting the accuracy of autonomous driving simulation.

[0052] In this embodiment, the second clipping position is set at a first distance after the vehicle simulation end position to maintain consistency between the simulated vehicle's behavior at the simulation end position and its real-world form. The setting of the first distance directly affects the accuracy of the vehicle simulation. In this embodiment, the first distance is determined based on the routing data unit corresponding to the vehicle's driving trajectory.

[0053] Figure 2 This is a sub-flowchart of step S3 in an exemplary embodiment of this disclosure.

[0054] refer to Figure 2 In an exemplary embodiment, step S3 may include:

[0055] Step S31: Determine the target routing data unit corresponding to the end time of the vehicle simulation from among the N routing data units based on the end time of the simulation. The routing data unit includes multiple routing points, and each routing point has a timestamp.

[0056] Step S32: Among the multiple routing points corresponding to the target routing data unit, the routing point whose timestamp is located after the simulation end time is determined as the first routing point;

[0057] Step S33: Set one of the first routing points as the second clipping position.

[0058] The target routing data unit refers to the routing data unit that covers the simulation end time. The vehicle's trajectory can correspond to one or more routing data units, and the target routing data unit varies depending on the number of routing data units.

[0059] Figure 3A and Figure 3B This is a schematic diagram illustrating the relationship between the routing data unit and the vehicle's driving trajectory in an embodiment of this disclosure.

[0060] refer to Figure 3AIn the exemplary embodiment, N=1, that is, the vehicle driving trajectory 30 corresponds to only one routing data unit 31. The starting point and the ending point of the routing data unit 31 are the starting point and the ending point of the vehicle driving trajectory 30, respectively. The intermediate routing points of the routing data unit 31 constitute the routing points on the vehicle driving trajectory 30.

[0061] refer to Figure 3B In an exemplary embodiment, N > 1, for example... Figure 3B In this context, N=3, meaning the vehicle's travel trajectory 30 corresponds to the first routing data unit 301, the second routing data unit 302, and the third routing data unit 303. The first routing data unit 301 is formed from some or all of the routing points in the first route issued at the first time node T1; the second routing data unit 302 is formed from some or all of the routing points in the second route issued at the second time node T2; and the third routing data unit 303 is formed from some or all of the routing points in the third route issued at the third time node T3. The first route can be called the original route, and the second and third routes can be called subsequent routes.

[0062] When the vehicle is in fully autonomous driving mode, the original route is the route corresponding to the vehicle's initial location, starting from the vehicle's starting position. However, due to subsequent re-deployment of second and third routes, the vehicle's stopping position may be the same as or different from the endpoint of the original route. Subsequent route deployments can be triggered by user-sent re-navigation commands or automatically deployed by the navigation system based on factors such as road conditions. The deployment of subsequent routes may interrupt the currently executing route; therefore, the starting point of a subsequent route is not necessarily equal to the endpoint of the previous route.

[0063] Regardless of whether the route is interrupted, as long as the vehicle has not reached the destination of the route, the route points from the origin to the interruption point will be saved as the corresponding route data unit.

[0064] exist Figure 3B In the example, the starting point of the first route is A1, and the starting point of the second route is A2, which corresponds to the vehicle location at the second time node T2. The route points between A1 and A2 are saved as the first route data unit 301. Similarly, the starting point of the third route is A3, which corresponds to the vehicle location at the third time node T3. The route points between A2 and A3 are saved as the second route data unit 302. Finally, since there are no other subsequent routes, the route points between the starting point and the ending point of the third route data unit 303 are saved as the third route data unit 303.

[0065] By reading the routing response (i.e. the routing instruction) corresponding to the autonomous driving data, it is possible to determine how many routes exist in the autonomous driving data, which routing points are included in the routing data unit corresponding to each route, and the start and end times of each routing data unit.

[0066] In an exemplary embodiment, in step S31, N routing responses corresponding to N routing data units can be obtained first. Then, the start time and end time of the N routing data units can be determined based on the N routing responses. The start time of the i-th routing data unit is the arrival time of the i-th routing response, and the end time of the i-th routing data unit is the arrival time of the (i+1)-th routing response or the end point of the i-th routing data unit. Finally, the routing data units whose start time is before the end time of the vehicle simulation and whose end time is after the end time of the vehicle simulation are set as target routing data units.

[0067] refer to Figure 3A In the embodiment shown, since there is only one route, the target route data unit is route data unit 31.

[0068] refer to Figure 3B In the embodiment shown, if the simulation stop time point Tend is between T2 and T3, then the target routing data unit is the second routing data unit 302 that covers the simulation stop time point Tend.

[0069] In step S32, since each routing point has a timestamp, the routing point located after the simulation stop time point Tend in the target routing data unit can be determined as the first time point based on the timestamp of each routing point.

[0070] As in Figure 3A In the simulation, the first routing point 311 is a routing point located after the simulation stop time point Tend; Figure 3B In the second routing data unit 302, the first routing point 311 is the routing point located after the simulation stop time point Tend.

[0071] Next, in step S33, one of the first routing points 311 is set as the second clipping position.

[0072] Compared to related technologies that directly set a location on the vehicle's path as the clipping boundary, i.e., the second clipping position, this embodiment sets one of the first routing points 311 as the second clipping position. This ensures that the clipping position guarantees the path conforms to road topology rules, avoiding illegal road segments. Furthermore, the routing points are discrete structured data, which can be quickly located and retrieved through indexing, eliminating the need for complex interpolation or queries and the need to calculate the precise coordinates of a point on the path, thus improving simulation efficiency. Moreover, routing points are associated with specific driving behaviors (such as deceleration and steering), and using them as clipping positions ensures seamless connection of vehicle behavior logic. For example, if the clipping point happens to be in the middle of the vehicle's lane-changing maneuver, setting the second clipping position as a non-routing point might prevent the lane-changing behavior from being fully represented; however, clipping based on routing points ensures that the lane-changing action is fully simulated in the simulation.

[0073] To minimize the computational resources consumed by the simulation, it is generally better for the second clipping position to be as close as possible to the end position of the vehicle simulation (for example, setting the first routing point closest to the end position of the simulation as the second clipping position). However, the second clipping position serves as the boundary of the simulation and affects the behavior of the vehicle during the simulation process. Therefore, this embodiment of the present disclosure sets a method for filtering the first routing point to further improve the simulation accuracy.

[0074] Figure 4 This is a sub-flowchart of step S33 in an exemplary embodiment of this disclosure.

[0075] refer to Figure 4 In an exemplary embodiment, step S33 includes:

[0076] Step S331: Determine the driving state corresponding to the simulation end time point based on the vehicle operation data. The driving state includes at least the vehicle speed.

[0077] Step S332: Based on the driving state change logic and the driving state, determine the second distance corresponding to the change of driving state, the second distance including the braking start distance;

[0078] Step S333: Determine the third distance between the first route point and the vehicle simulation end position;

[0079] Step S334: Among the third distances that are greater than the second distance, set the first route point corresponding to the third distance with the smallest value as the second clipping position.

[0080] Vehicle operation data primarily encompasses various dynamic parameters and control commands during vehicle operation, characterizing the vehicle's operational behavior and control status. In an exemplary embodiment, vehicle operation data may include vehicle state parameters (such as vehicle speed, acceleration, steering angle, and braking status), accelerator pedal depth, brake pedal pressure, gear information, motor speed, and other data reflecting the operating status of key components such as the vehicle's powertrain and transmission systems. Furthermore, it may also include sensor data collected by various sensors installed on the vehicle (such as LiDAR point cloud data, camera image data, and millimeter-wave radar detection data).

[0081] The driving state corresponding to the end of the simulation is the dynamic parameters of the vehicle at that time point, which includes at least the vehicle speed (e.g., 30km / h) and may also include acceleration, steering angle, etc.

[0082] The driving state change logic is a preset dynamic rule that defines the relationship between state changes (such as deceleration and stopping) and distance. The second distance is the minimum distance required to execute a specific operation (such as braking) according to the driving state change logic, including the braking initiation distance (the distance traveled from the decision to brake to the actual braking effect). The significance of the second distance in this embodiment is that when the vehicle detects that the distance between the boundary and itself is less than or equal to the second distance, the driving state change logic is triggered, changing the driving state. This can lead to route pruning causing the simulated vehicle's state at the end of the simulation to differ from its actual driving state, reducing simulation accuracy.

[0083] In step S332, the driving state and the logic for changing the driving state can be adjusted, and the distance required for safe termination can be calculated based on the physical model. For example, assuming the current vehicle speed is v = 20 m / s, the reaction time t1 = 0.5 s (the time from when the driver or the autonomous driving system recognizes the stop signal to when it issues a braking command), and the braking acceleration a = -5 m / s² (a negative value indicates deceleration), according to the kinematic formula, the braking initiation distance s1 = v × t1 = 20 × 0.5 = 10 m; the braking distance s2 = v² / 2|a| = 20² / (2 × 5) = 40 m, therefore the second distance s = s1 + s2 = 50 m. This means that when the simulated vehicle is less than 50 m from the second cutoff position, the system will forcibly trigger the driving state change logic to control the vehicle to decelerate or stop.

[0084] Therefore, in order to keep the state of the simulated vehicle at the end position of the vehicle simulation consistent with the actual driving state, the first distance between the second clipping position and the end position of the vehicle simulation is set to be greater than the second distance.

[0085] In step S333, when selecting one of the first routing points as the second clipping distance, the third distance between the first routing point and the vehicle simulation end position is first determined according to the constraint condition; then in step S334, among the third distances greater than the second distance, the first routing point corresponding to the smallest third distance is set as the second clipping position.

[0086] Figures 5A to 5C This is a schematic diagram illustrating the relationship between the first routing point and the second clipping position in an exemplary embodiment of this disclosure.

[0087] refer to Figure 5A If the third distance D3 between each first routing point 51 and the vehicle simulation end position W0 is greater than the second distance D2, then the first routing point 51 closest to the vehicle simulation end position W0, i.e., the first routing point 51 with the smallest corresponding third distance D3, is set as the second clipping position C2. At this time, the third distance D3 corresponding to this first routing point 51 is the aforementioned first distance.

[0088] refer to Figure 5B For some first routing points 51A, the third distance D3 between them and the vehicle simulation end position W0 is less than the second distance D2. For other first routing points 51B, the third distance D3 between them and the vehicle simulation end position W0 is greater than the second distance D2. Therefore, among 51B, the first routing point 51B that is closest to the vehicle simulation end position W0, i.e., the first routing point 51B with the smallest corresponding third distance D3, is set as the second clipping position C2. At this time, the third distance D3 corresponding to this first routing point 51B is the first distance mentioned above.

[0089] Furthermore, when all third distances are less than or equal to the second distance, the second distance is set as the first distance.

[0090] refer to Figure 5C The third distance D3 between each first route point 51 and the vehicle simulation end position W0 is less than or equal to the second distance D2. At this time, each first route point 51 cannot guarantee that the vehicle behavior will not change. Therefore, the second distance can be directly set as the first distance, and the point B with the second distance between it and the vehicle simulation end position W0 can be set as the second clipping position C2.

[0091] By using the second distance as a constraint and selecting the first routing point in the target routing data unit as the second clipping position, we can avoid behavioral changes when the vehicle approaches the clipping boundary, while reducing the consumption of simulation data resources, improving simulation efficiency, and greatly improving the accuracy of autonomous driving simulation.

[0092] In step S4, the vehicle's driving trajectory is clipped according to the first clipping position and the second clipping position to form the simulation route corresponding to the simulation start time point and the simulation end time point.

[0093] After determining the first and second pruning positions, route pruning is performed to form a simulated route. In this embodiment of the disclosure, the relationships between multiple routing data units are considered to form the simulated route.

[0094] Figure 6 This is a sub-flowchart of step S4 in an exemplary embodiment of this disclosure.

[0095] refer to Figure 6 In an exemplary embodiment, step S4 may include:

[0096] Step S41: Obtain the N routing responses corresponding to the N routing data units;

[0097] Step S42: Determine the start and end times of N routing data units based on N routing responses. The start time of the i-th routing data unit is the arrival time of the i-th routing response, and the end time of the i-th routing data unit is the arrival time of the (i+1)-th routing response or the end point in the i-th routing data unit.

[0098] Step S43: Set the routing data unit whose start time and end time are both located between the vehicle simulation start time and the vehicle simulation end time as the first simulation routing data unit;

[0099] Step S44: In the routing data unit where the start time point is before the vehicle simulation start time point and the end time point is after the vehicle simulation start time point, delete the routing points before the first clipping position and save the remaining routing points as the second simulation routing data unit.

[0100] Step S45: In the routing data unit where the start time point is before the end time point of the vehicle simulation and the end time point is after the end time point of the vehicle simulation, delete the routing points after the second clipping position and save the remaining routing points as the third simulation routing data unit.

[0101] Step S46: Form a simulated route based on the first clipping position, the second simulated routing data unit, the third simulated routing data unit, and the second clipping position.

[0102] To understand more intuitively Figure 6 The illustrated embodiment, in conjunction with Figure 7 Let me introduce it.

[0103] Figure 7 yes Figure 6 A schematic diagram of the embodiment shown.

[0104] Also refer to Figure 7 and Figure 6 .

[0105] Let N = 5, with a total of 5 routing data units R1 to R5. The vehicle simulation starts at Ton, corresponding to the second routing data unit R2; the vehicle simulation ends at Tend, corresponding to the fourth routing data unit R4. The fourth routing data unit R4 is the target routing data unit. The first pruning position is C1, and the second pruning position is C2.

[0106] In step S43, between Ton and Tend, the third routing data unit R3 is the first simulated routing data unit 71. In step S44, the routing points located after C1 in the second routing data unit R2 are saved as the second simulated routing data unit 72. In step S45, the routing points located before C2 in the fourth routing data unit R4 are saved as the third simulated routing data unit 73.

[0107] In step S46, the routing points corresponding to C1 and C2, as well as the first simulated routing data unit 71, the second simulated routing data unit 72, and the third simulated routing data unit 73, are saved as simulated routes.

[0108] When N is a different number, you can refer to [the relevant documentation]. Figure 6 The text description of the illustrated embodiment and Figure 7 The diagram shown illustrates the simulation route.

[0109] By automatically checking the timestamp of the routing point in each routing data unit and determining the simulation route based on the time of each routing data unit and routing point, a large amount of routing data can be processed quickly. When faced with massive amounts of autonomous driving data, a simulation route that ensures the accuracy of the simulation can be formed in an organized and efficient manner.

[0110] In step S5, map data corresponding to the autonomous driving data is loaded according to the simulation route to perform autonomous driving simulation.

[0111] Once the simulation route is determined, map truncation loading can be performed quickly.

[0112] Figure 8 This is a schematic diagram illustrating the loading of map data in an exemplary embodiment of this disclosure.

[0113] refer to Figure 8For the simulated route 80, we can first determine the second route point 81 with the largest absolute value in the first direction, the third route point 82 with the largest absolute value in the opposite direction of the first direction, the fourth route point 83 with the largest absolute value in the second direction, and the fifth route point 84 with the largest absolute value in the opposite direction of the second direction. The first direction and the second direction are orthogonal.

[0114] Next, the first circumscribed rectangle 801 corresponding to the simulated route is formed based on the second routing point 81, the third routing point 82, the fourth routing point 83, and the fifth routing point 84.

[0115] Then, the four sides of the first outer rectangle 801 are extended outward by a fourth distance D4 to form the second outer rectangle 802 corresponding to the simulation route 80. Thus, the map data corresponding to the autonomous driving data can be loaded according to the second outer rectangle 802.

[0116] Therefore, through simple calculations, tiled map data can be quickly generated, greatly improving simulation efficiency.

[0117] Below is an example of Method 100. In this example, multiple routes corresponding to autonomous driving data can be pruned through a series of conditional judgments and multi-stage processing steps. The test case configuration is then adjusted based on the pruning results to form simulated routes / test cases. The main processes in implementation may include obtaining route requests and responses, checking route patterns, determining whether routes have been manually modified, performing pruning operations, merging map extents, and updating test case configurations.

[0118] 1. Initial condition check: Determine whether to continue the route pruning operation based on the value (type) of the preset parameter. If the type value is "ignore" or "disable", the current route pruning will stop.

[0119] 2. Obtain route requests and responses: Read the route requests and corresponding responses from the history file corresponding to the free driving data. If it fails, set the trimming status to "Trimming Failed" and log the error. If it succeeds, continue trimming.

[0120] First, locate the simulation's starting time point: To efficiently read data, we can begin reading from the beginning of the historical data file. This can be achieved using the Seek To Time method, which moves the reader's pointer to the beginning of the historical data file.

[0121] Then, read the history file in a loop: continuously read the history file until there is no more data.

[0122] Each loop includes the following steps:

[0123] (1) Read a single route record: Read a single route record from the record file. Each route record contains a timestamp and various possible message types.

[0124] (2) Obtain the timestamp of the routing record: Each routing record has a timestamp, which indicates when the routing record occurred. By comparing this timestamp with a specified time period, it is determined whether the routing record needs to be processed.

[0125] (3) Check if the timestamp is within the specified range: If the timestamp of a route record is earlier than or equal to the specified vehicle simulation start time, the route record is saved but not added to the result set for the time being; if the timestamp of a route record is between the start time and the end time, the route record is added to the result set.

[0126] (4) Handling Boundary Conditions: After the loop ends, add routing records with timestamps earlier than the start time to the result set. This is because these routing records are closest to the vehicle simulation start time and may contain important contextual information. Handling boundary conditions can reduce the computational load of routing record scanning. Routing response data after the vehicle simulation end time does not need to be processed. For routing response data before the vehicle simulation start time, retain the routing record closest to the vehicle simulation start time.

[0127] 3. Traverse each route response: For each route response, extract the route request point and perform a preliminary check to determine that each route meets the format integrity requirements and that the route points are physically continuous.

[0128] 4. Lane Pattern Verification: Determine the lane pattern for each route. If a route does not have a lane pattern, mark the pruning status as "No Route Lane Pattern" and terminate route pruning to prevent simulation failure due to lane errors.

[0129] 5. Check if the route points have been manually modified. If so, mark the trimming status as "manually modified, ignore" and terminate the route trimming process.

[0130] 6. For the original route, i.e., the first route response / first route, obtain the clipping result and map extent. The starting point of the first route should be clipped to the position of the autonomous vehicle corresponding to the simulation start time, and the ending point of the first route should be the route point after the simulation end time. The reason for not using the route point at the simulation end time is that the vehicle will decelerate in advance, causing the vehicle speed during the simulation to be inconsistent with the vehicle speed in historical data.

[0131] 7. Subsequent route pruning: For subsequent route responses, the starting point of the route remains unchanged, and the ending point of the route is the route point after the simulation end time.

[0132] 8. Final State Update: After all routes have been trimmed, set the final trimmed state of each route to "trimmed".

[0133] 9. Map Range Correction: Based on the cropped route points, obtain the maximum and minimum values ​​of the x-coordinates and y-coordinates of all route points, and expand outward by a certain buffer distance to obtain a second rectangle, which serves as the range of the map loaded during simulation.

[0134] This disclosure achieves efficient and accurate route pruning through refined condition control and step-by-step processing strategies. Its flexibility and scalability make it suitable for various complex autonomous driving test scenarios, providing strong support for improving system stability and reliability.

[0135] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0136] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.

[0137] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”

[0138] The following reference Figure 9 To describe an electronic device 900 according to this embodiment of the present invention. Figure 9 The electronic device 900 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0139] like Figure 9 As shown, the electronic device 900 is manifested in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0140] The storage unit stores program code that can be executed by the processing unit 910, causing the processing unit 910 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 910 can perform the method shown in the embodiments of this disclosure.

[0141] Storage unit 920 may include readable media in the form of volatile storage units, such as random access memory (RAM) 9201 and / or cache 9202, and may further include read-only memory (ROM) 9203.

[0142] Storage unit 920 may also include a program / utility 9204 having a set (at least one) program module 9205, such program module 9205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0143] Bus 930 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0144] Electronic device 900 can also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 950. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0145] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0146] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the invention described in the "Exemplary Methods" section of this specification.

[0147] The program product for implementing the above-described method according to embodiments of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0148] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0149] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0150] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0151] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0152] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0153] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and concept of this disclosure are indicated by the claims.

Claims

1. An autonomous driving simulation method, characterized in that, include: In response to the route pruning command, the system acquires autonomous driving data and simulation start and end times. The autonomous driving data includes the vehicle's driving trajectory, which includes N routing data units, where N ≥ 1. The vehicle simulation starting position is determined based on the simulation start time point and the vehicle driving trajectory, and the vehicle simulation starting position is set as the first clipping position. The vehicle simulation end position is determined based on the simulation end time point and the vehicle driving trajectory. The N routing data units are extended a first distance from the vehicle simulation end position toward the front of the vehicle to obtain the second clipping position. The vehicle's trajectory is clipped according to the first clipping position and the second clipping position to form the simulation route corresponding to the simulation start time point and the simulation end time point; The autonomous driving data is loaded according to the simulation route to perform autonomous driving simulation.

2. The autonomous driving simulation method as described in claim 1, characterized in that, Based on the N routing data units, extend a first distance towards the front of the vehicle from the end position of the vehicle simulation to obtain the second clipping position, including: Based on the simulation end time, the target routing data unit corresponding to the vehicle simulation end time is determined from the N routing data units. The routing data unit includes multiple routing points, and each routing point has a timestamp. Among the multiple routing points corresponding to the target routing data unit, the routing point whose timestamp is located after the simulation end time is determined as the first routing point; Set one of the first routing points as the second clipping location.

3. The autonomous driving simulation method as described in claim 2, characterized in that, The autonomous driving data includes vehicle operation data and driving status change logic. Setting one of the first routing points as the second clipping position includes: The driving state corresponding to the simulation end time point is determined based on the vehicle operation data, and the driving state includes at least the vehicle speed. Based on the driving state change logic and the driving state, a second distance corresponding to the change of the driving state is determined, the second distance including the braking start distance; Determine the third distance between the first routing point and the vehicle simulation end position; Among the third distances that are greater than the second distance, the first route point corresponding to the third distance with the smallest value is set as the second clipping position.

4. The autonomous driving simulation method as described in claim 3, characterized in that, Also includes: When all of the third distances are less than or equal to the second distance, the second distance is set as the first distance.

5. The autonomous driving simulation method as described in claim 2, characterized in that, Based on the simulation end time, the target routing data unit corresponding to the vehicle simulation end time is determined from the N routing data units, including: Obtain the N routing responses corresponding to the N routing data units; The start and end times of the N routing data units are determined based on the N routing responses. The start time of the i-th routing data unit is the arrival time of the i-th routing response, and the end time of the i-th routing data unit is the arrival time of the (i+1)-th routing response or the end point in the i-th routing data unit. The routing data unit whose start time point is before the end time point of the vehicle simulation and whose end time point is after the end time point of the vehicle simulation is set as the target routing data unit.

6. The autonomous driving simulation method as described in claim 1, characterized in that, The vehicle's trajectory is cropped based on the first cropping position and the second cropping position to form the simulation route corresponding to the simulation start time point and the simulation end time point, including: Obtain the N routing responses corresponding to the N routing data units; The start and end times of the N routing data units are determined based on the N routing responses. The start time of the i-th routing data unit is the arrival time of the i-th routing response, and the end time of the i-th routing data unit is the arrival time of the (i+1)-th routing response or the end point in the i-th routing data unit. The routing data unit whose start time point and end time point are both located between the vehicle simulation start time point and the vehicle simulation end time point is set as the first simulation routing data unit; In the routing data unit where the start time point is before the vehicle simulation start time point and the end time point is after the vehicle simulation start time point, the routing points before the first clipping position are deleted, and the remaining routing points are saved as the second simulation routing data unit. In the routing data unit where the start time point is before the end time point of the vehicle simulation and the end time point is after the end time point of the vehicle simulation, the routing points after the second clipping position are deleted, and the remaining routing points are saved as the third simulation routing data unit. The simulated route is formed based on the first clipping position, the second simulated routing data unit, the first simulated routing data unit, the third simulated routing data unit, and the second clipping position.

7. The autonomous driving simulation method as described in claim 1, characterized in that, The map data corresponding to the autonomous driving data loaded according to the simulation route includes: In the simulated route, determine the second route point with the largest absolute value in the first direction, the third route point with the largest absolute value in the opposite direction of the first direction, the fourth route point with the largest absolute value in the second direction, and the fifth route point with the largest absolute value in the opposite direction of the second direction, wherein the first direction and the second direction are orthogonal; The first circumscribed rectangle corresponding to the simulated route is formed based on the second route point, the third route point, the fourth route point, and the fifth route point; The four sides of the first outer rectangle are each extended outward by a fourth distance to form the second outer rectangle corresponding to the simulated route; The map data corresponding to the autonomous driving data is loaded according to the second circumscribed rectangle.

8. An electronic device, characterized in that, include: Memory; as well as A processor coupled to the memory, the processor being configured to perform the method as described in any one of claims 1-7 based on instructions stored in the memory.

9. A computer-readable storage medium having a program stored thereon that, when executed by a processor, implements the method as claimed in any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1-7.