Simulation generation method and device of trajectory data, server, medium and program product

Through simulation generation of vehicle trajectory data, the problem of difficulty in obtaining trajectory data in the existing technology is solved, and low-cost and personalized trajectory data generation is realized, which supports real-time and historical trajectory simulation to meet the needs of project development.

CN120277114APending Publication Date: 2025-07-08ZHEJIANG GEELY HLDG GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510396400.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, the method of obtaining vehicle trajectory data through actual vehicle driving is difficult, resulting in difficulty and high cost of obtaining trajectory data.

Method used

By obtaining trajectory generation parameters, trajectory data is simulated to generate trajectory data, including the starting position, end position, duration, etc. of the trajectory route, and generate continuous or discontinuous trajectory data and store it in the database to support the generation of real-time and historical trajectories.

Benefits of technology

It reduces the difficulty and cost of obtaining vehicle trajectory data, meets personalized needs, provides real-time and historical trajectory data simulation and generation capabilities, and supports testing and analysis in project development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277114A_ABST
    Figure CN120277114A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a simulation generation method and device of trajectory data, a server, a medium and a program product. The method comprises the following steps: in response to an obtained track generation parameter, generating track data according to the track generation parameter; wherein the track generation parameter indicates that the track data is continuous in the duration time and continuous in the track route; or the trajectory generation parameter indicates that the trajectory data is discontinuous in duration and continuous in the trajectory route; the trajectory generation parameters comprise one or more of the following parameters: a starting position of a trajectory route, a final position of the trajectory route and trajectory duration; and storing the generated trajectory data. The method is used for simulating and generating the vehicle trajectory data, and the obtaining difficulty and obtaining cost of the vehicle trajectory data are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical fields of vehicle technology and data processing technology, and in particular, to a method, device, server, medium, and program product for simulating and generating trajectory data. Background Art

[0002] With the rapid development of vehicle technology, the role of vehicle trajectory data is becoming increasingly important. Through vehicle trajectory data, route planning for autonomous driving, data analysis of traffic conditions, problem testing in project development, or user behavior analysis in shared mobility can be achieved.

[0003] In some technologies, vehicle trajectory data is obtained by an in-vehicle intelligent terminal device uploading location data to a server during the actual driving of a vehicle on a road, and the trajectory data of the actual vehicle is obtained. In the above technologies, the method of obtaining trajectory data through an actual vehicle is difficult.

[0004] Therefore, there is an urgent need for a solution to simulate and generate vehicle trajectory data to obtain vehicle trajectory data more easily and conveniently. Summary of the Invention

[0005] The method, device, server, medium, and program product for simulating and generating trajectory data provided by the embodiments of the present application are used to simulate and generate vehicle trajectory data, and reduce the difficulty and cost of obtaining vehicle trajectory data.

[0006] In a first aspect, an embodiment of the present application provides a method for simulating and generating trajectory data, including:[[]]

[0007] Responding to the obtained trajectory generation parameters, generating trajectory data according to the trajectory generation parameters; wherein, the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route; or the trajectory generation parameters indicate that the trajectory data is discontinuous in terms of duration and continuous on the trajectory route; the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, the trajectory duration;

[0008] Storing the generated trajectory data.

[0009] In a possible implementation manner, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; the trajectory duration represents the duration of the trajectory route;

[0010] Generating trajectory data according to the trajectory generation parameters includes:[[]]

[0011] Determine the time information of the trajectory points in the trajectory data and the total number of trajectory points in the trajectory data according to the duration characterized by the trajectory duration and the preset first trajectory point duration interval; and determine the positions of the trajectory points in the trajectory data according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, so as to obtain the trajectory data.

[0012] In a possible implementation manner, determining the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the starting position of the trajectory route, and the ending position of the trajectory route includes:

[0013] Determine the first position difference between the starting position and the ending position in each position dimension according to the starting position of the trajectory route and the ending position of the trajectory route;

[0014] Generate the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the first position difference, and the preset first position increment.

[0015] In a possible implementation manner, when the trajectory generation parameter indicates that the trajectory data is discontinuous in duration and continuous on the trajectory route, the trajectory generation parameter further includes: vehicle information, and / or, vehicle speed information; the trajectory duration characterizes the respective durations of the trajectory route in multiple different time periods;

[0016] Generating trajectory data according to the trajectory generation parameter includes:

[0017] Determine the starting point and the ending point of the trajectory segment of the trajectory route according to the starting position of the trajectory route, the ending position of the trajectory route, and the total number of time periods; wherein, different trajectory segments correspond to different time periods;

[0018] Determine the time information of the trajectory points of the trajectory segment and the total number of trajectory points of the trajectory segment according to the duration characterized by the time period corresponding to the trajectory segment and the preset second trajectory point duration interval; and determine the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment, so as to obtain the trajectory data.

[0019] In a possible implementation manner, determining the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment includes:

[0020] Determine the second position difference between the starting point of the trajectory segment and the ending point of the trajectory segment in each position dimension according to the starting point of the trajectory segment and the ending point of the trajectory segment;

[0021] Generate the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the second position difference, and the preset second position increment.

[0022] In a possible implementation, obtaining trajectory generation parameters includes:

[0023] Obtaining the trajectory generation parameters input by the user on a preset interface.

[0024] In a possible implementation, before storing the generated trajectory data, it further includes:

[0025] If it is determined that the vehicle speed difference between adjacent trajectory points in the trajectory data is greater than a preset threshold, the trajectory data is discarded.

[0026] In a possible implementation, storing the generated trajectory data includes:

[0027] Converting the trajectory data into trajectory data in a data format conforming to the Redis database;

[0028] Storing the trajectory data in a data format conforming to the Redis database into the Redis database.

[0029] In a possible implementation, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the method further includes:

[0030] Generating and displaying a visual trajectory route according to the trajectory data; wherein, the visual trajectory route includes preset icons, and the preset icons move according to the trajectory movement mode represented by the trajectory data.

[0031] In a second aspect, an embodiment of the present application provides a simulation generation device for trajectory data, including:

[0032] A processing module, configured to generate trajectory data according to the obtained trajectory generation parameters in response to the obtained trajectory generation parameters; wherein, the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route; or the trajectory generation parameters indicate that the trajectory data is discontinuous in terms of duration and continuous on the trajectory route; the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, vehicle information, vehicle speed information, and trajectory duration;

[0033] A storage module, configured to store the generated trajectory data.

[0034] In a possible implementation, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; the trajectory duration represents the continuous duration of the trajectory route;

[0035] To generate trajectory data according to the trajectory generation parameters, the processing module is used for:

[0036] Determine the time information of the trajectory points in the trajectory data and the total number of trajectory points in the trajectory data according to the duration characterized by the trajectory duration and the preset first trajectory point duration interval; and determine the positions of the trajectory points in the trajectory data according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, so as to obtain the trajectory data.

[0037] In a possible implementation manner, to determine the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the starting position of the trajectory route, and the ending position of the trajectory route, the processing module is used for:

[0038] Determine the first position difference between the starting position and the ending position in each position dimension according to the starting position of the trajectory route and the ending position of the trajectory route;

[0039] Generate the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the first position difference, and the preset first position increment.

[0040] In a possible implementation manner, when the trajectory generation parameters indicate that the trajectory data is discontinuous in duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; the trajectory duration characterizes the respective duration of the trajectory route in multiple different time periods;

[0041] To generate the trajectory data according to the trajectory generation parameters, the processing module is used for:

[0042] Determine the starting point and the ending point of the trajectory segment of the trajectory route according to the starting position of the trajectory route, the ending position of the trajectory route, and the total number of time periods; wherein, different trajectory segments correspond to different time periods;

[0043] Determine the time information of the trajectory points in the trajectory segment and the total number of trajectory points in the trajectory segment according to the duration characterized by the time period corresponding to the trajectory segment and the preset second trajectory point duration interval; and determine the positions of the trajectory points in the trajectory segment according to the total number of trajectory points in the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment, so as to obtain the trajectory data.

[0044] In a possible implementation manner, to determine the positions of the trajectory points in the trajectory segment according to the total number of trajectory points in the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment, the processing module is used for:

[0045] Determine the second position difference between the starting point of the trajectory segment and the ending point of the trajectory segment in each position dimension according to the starting point of the trajectory segment and the ending point of the trajectory segment;

[0046] Generate the positions of the trajectory points in the trajectory segment according to the total number of trajectory points in the trajectory segment, the second position difference, and the preset second position increment.

[0047] In a possible implementation, the trajectory generation parameters are obtained, and the processing module is used for:

[0048] Obtain the trajectory generation parameters input by the user on the preset interface.

[0049] In a possible implementation, before storing the generated trajectory data, the processing module is further used for:

[0050] If it is determined that the vehicle speed difference between adjacent trajectory points in the trajectory data is greater than the preset threshold, the trajectory data is discarded.

[0051] In a possible implementation, the generated trajectory data is stored, and the storage module is used for:

[0052] Convert the trajectory data into trajectory data in a data format conforming to the Redis database;

[0053] Store the trajectory data in a data format conforming to the Redis database into the Redis database.

[0054] In a possible implementation, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the storage module is further used for:

[0055] Generate and display a visual trajectory route according to the trajectory data; wherein, the visual trajectory route includes preset icons, and the preset icons move according to the trajectory movement mode represented by the trajectory data.

[0056] In a third aspect, an embodiment of the present application provides a server, including: a memory, a processor;

[0057] The memory stores computer execution instructions;

[0058] The processor executes the computer execution instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementation manners of the first aspect.

[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored, and when the computer execution instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementation manners of the first aspect.

[0060] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above first aspect and / or various possible implementation manners of the first aspect.

[0061] The method, device, server, medium and program product for simulating and generating trajectory data provided by the embodiments of the present application generate trajectory data of different attribute types by obtaining trajectory generation parameters and according to the attributes of the trajectory data indicated by the trajectory generation parameters; and store the simulated and generated trajectory data, so as to realize the simulation and generation of trajectory data, and reduce the difficulty and cost of obtaining vehicle trajectory data. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0063] Figure 1 Schematic flowchart of the method for simulating and generating trajectory data provided by the present application Figure 1 ;

[0064] Figure 2 Schematic flowchart of the method for simulating and generating trajectory data provided by the present application Figure 2 ;

[0065] Figure 3 Schematic flowchart of the method for simulating and generating trajectory data provided by the present application Figure 3 ;

[0066] Figure 4 Schematic flowchart of the method for simulating and generating trajectory data provided by the present application Figure 4 ;

[0067] Figure 5 Schematic diagram of an exemplary preset interface;

[0068] Figure 6 Schematic structural diagram of the device for simulating and generating trajectory data provided by the present application;

[0069] Figure 7 Schematic structural diagram of the server provided by the present application.

[0070] Through the above accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0071] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0072] First, the terms involved in the present application will be explained:

[0073] Trajectory data: It refers to the driving route depicted by a series of position information points during the driving of a vehicle. Analyzing from the composition perspective of trajectory data, on the driving route, trajectory data may also include, but is not limited to, the driving speed of the vehicle, the driving direction of the vehicle, the timestamp of the position information point, etc.

[0074] Execution strategy: It refers to different trajectory data generation strategies during the process of simulating and generating trajectory data in the present application. Among them, the execution strategy may include: real-time generation, batch generation, etc. Real-time generation means that after confirming the operation of generating trajectory data, directly generate real-time trajectory data starting from the current moment; batch generation means that between the specified start date and end date, generate historical trajectory data for each day according to the preset time period for each day.

[0075] With the rapid development of vehicle technology, various vehicle-related technologies are also developing faster and faster. Among them, the application scenarios of vehicle trajectories are very extensive. For example, the trajectory data of a vehicle can be used for traffic flow monitoring and optimization, can also be used to adjust logistics distribution plans, can also be used for driving habit analysis and route planning of autonomous driving, problem testing during project development, etc. In these application scenarios, the trajectory data of the vehicle is required as data support in the application scenarios.

[0076] In some embodiments, the trajectory data of the vehicle is obtained by the driver actually driving the vehicle on the road in the real scenario, and during the driving process, uploading position data to the server through an in-vehicle intelligent terminal device. The in-vehicle intelligent terminal device may be a remote communication terminal device (Telematics Box, abbreviated as TBOX). The server splices multiple position data to obtain the trajectory data of the vehicle.

[0077] In the above embodiments, the method of actually driving the vehicle in the real scenario and uploading position data to obtain the trajectory data of the vehicle is difficult to implement when there are special requirements for the trajectory data of the vehicle.

[0078] The simulation generation method of trajectory data provided by this application generates trajectory data with different attributes by obtaining trajectory generation parameters and according to different trajectory data attributes indicated in the trajectory generation parameters. Among them, the trajectory data attributes may include whether it is continuous in terms of duration and whether it is continuous in terms of the trajectory route. Based on the generated trajectory data with different attributes, it is stored. It is possible to simulate and generate the trajectory data of a vehicle without actually driving on the road, reducing the difficulty of obtaining the trajectory data of the vehicle and the cost of obtaining the trajectory data of the vehicle.

[0079] The following uses specific embodiments to elaborate in detail on the technical solution of this application and how the technical solution of this application solves the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0080] Figure 1 Schematic flow of the simulation generation method of trajectory data provided by this application Figure 1 , such as Figure 1 shown, this method includes:

[0081] Step 101. In response to the obtained trajectory generation parameters, generate trajectory data according to the trajectory generation parameters.

[0082] Among them, the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous in terms of the trajectory route; or the trajectory generation parameters indicate that the trajectory data is non - continuous in terms of duration and continuous in terms of the trajectory route.

[0083] Exemplarily, to generate trajectory data, first, the trajectory generation parameters should be known. The trajectory generation parameters can be used to indicate one or more pieces of information in the trajectory data to be generated. For example: the trajectory generation parameters can be used to indicate the continuous manner of the trajectory data in terms of duration, and can also be used to indicate the continuous manner of the trajectory data in terms of the trajectory route.

[0084] Specifically, the continuous manner of the trajectory data in terms of duration can include: the trajectory data is continuous in terms of duration, or the trajectory data is non - continuous in terms of duration. That the trajectory data is continuous in terms of duration means that the generated trajectory data is the trajectory within a continuous duration; that the trajectory data is non - continuous in terms of duration means that the generated trajectory data can be the trajectory within multiple discontinuous time periods.

[0085] Specifically, the continuous manner of the trajectory data on the trajectory route may include: the trajectory data is continuous on the trajectory route, or the trajectory data is discontinuous on the trajectory route. The trajectory data being continuous on the trajectory route means that the generated trajectory data is a whole trajectory connecting the starting point and the ending point; the trajectory data being discontinuous on the trajectory route means that the generated trajectory data may be a trajectory composed of multiple discontinuous trajectory segments. Among them, when the trajectory data is discontinuous on the trajectory route, the ending position of the previous trajectory segment and the starting position of the next trajectory segment may be different.

[0086] In one example, the trajectory generation parameter can indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route.

[0087] In this case, the trajectory generation parameter indicates that the trajectory data to be simulated and generated is continuous both in terms of duration and on the trajectory route. Combining with practical applications, in this case, the trajectory data belongs to a real-time trajectory. A real-time trajectory refers to a trajectory constructed from the positioning information uploaded by a vehicle in real time. To simulate and generate a real-time trajectory, the trajectory data to be generated should be continuous in terms of duration, and the trajectory route during the duration is also continuous.

[0088] In another example, the trajectory generation parameter can indicate that the trajectory data is discontinuous in terms of duration but continuous on the trajectory route.

[0089] In this case, the trajectory generation parameter indicates that the trajectory data to be simulated and generated is discontinuous in terms of duration but continuous on the trajectory route. Combining with practical applications, in this case, the trajectory data belongs to a historical trajectory. A historical trajectory refers to a trajectory constructed from the positioning information uploaded by a vehicle during historical driving, and the historical trajectory is stored persistently. To simulate and generate a historical trajectory, the trajectory data to be generated has multiple time periods in terms of duration, and the multiple time periods are not continuous. Among adjacent two time periods, the trajectory ending point of the previous time period and the trajectory starting point of the next time period are the same in position.

[0090] Therefore, after responding to the acquisition of the trajectory generation parameter, trajectory data can be generated according to the trajectory generation parameter. Moreover, different attributes of trajectory data are generated according to the continuity of the trajectory data indicated by the trajectory generation parameter in different attributes.

[0091] Before generating the trajectory data, a trajectory connecting the starting position of the trajectory route and the ending position of the trajectory route can be determined by calling the Application Programming Interface (API) of the map software. Different attributes of trajectory data are generated based on this trajectory.

[0092] Step 102. Store the generated trajectory data.

[0093] Exemplarily, after obtaining the simulated generated trajectory data, store the generated trajectory data.

[0094] Specifically, the trajectory data can be stored in a specified path in the electronic device, can also be stored in a database, and can also be stored in an external storage device and / or an external storage medium.

[0095] Furthermore, during the process of storing the trajectory data, optional operations such as cleaning, screening, and encrypting the trajectory data can also be performed. Even further, after storing the trajectory data, the stored trajectory data can also be called for optional operations such as data querying, data processing and analysis, and visual display of the data.

[0096] In one example, the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, and the trajectory duration.

[0097] Exemplarily, the starting position of the trajectory route is used to indicate the position of the starting point of the trajectory data to be generated; the ending position of the trajectory route is used to indicate the position of the ending point of the trajectory data to be generated.

[0098] The trajectory duration can characterize the duration of the trajectory route, or the trajectory duration can characterize the respective durations of the trajectory route in multiple different time periods.

[0099] Combined with an actual example, if the trajectory data to be generated is real-time trajectory, the trajectory duration refers to the duration of the trajectory route. It can be understood that taking the current moment as the starting moment, starting from the trajectory starting position, after the time interval characterized by the trajectory duration, reaching the trajectory ending position.

[0100] If the trajectory data to be generated is historical trajectory, the trajectory duration refers to the respective durations of the trajectory route in multiple different time periods. Among them, when the trajectory data to be generated is historical trajectory, the trajectory duration can include the start date, the end date, and the respective durations in preset different time periods.

[0101] The method for simulating and generating trajectory data provided by the embodiments of the present application obtains trajectory generation parameters, and generates trajectory data with different attributes according to different trajectory data attributes indicated by the trajectory generation parameters; after obtaining the generated trajectory data, the trajectory data is stored, so as to realize the simulation of generating the trajectory data of the vehicle, without the actual vehicle driving on the road, and reducing the difficulty of obtaining the vehicle trajectory data. Based on the simulated vehicle trajectory data, during project development, the acquisition cost of obtaining personalized vehicle trajectory data can be reduced during the testing process of personalized vehicle trajectory data.

[0102] On the basis of the foregoing embodiments, the information that the trajectory generation parameters may include can be more richly reflected, and based on different attributes of the trajectory data indicated by the trajectory generation parameters, different execution strategies can be adopted to generate trajectory data with different attributes.

[0103] On the basis of the foregoing embodiments, this embodiment explains how to specifically generate trajectory data for different attributes of the trajectory data indicated by the trajectory generation parameters.

[0104] In one example, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information. Among them, the trajectory duration represents the duration of the trajectory route.

[0105] Exemplarily, if the trajectory data is continuous in terms of duration and continuous on the trajectory route, then the trajectory data belongs to the real-time trajectory type. During the process of generating the real-time trajectory, the starting position, ending position of this real-time trajectory, and the duration of the real-time trajectory (i.e., the trajectory duration) are required.

[0106] Furthermore, the trajectory generation parameters may further include vehicle information, and / or, vehicle speed information. Among them, the vehicle information is used to indicate the information of the vehicle driving the trajectory data to be generated; the vehicle speed information is used to indicate the vehicle speed of the vehicle driving in the trajectory data to be generated.

[0107] It should be noted that since the trajectory data is generated by simulation. Therefore, the vehicle information can be the vehicle information set by the user. For example, in a possible project test requirement, it is necessary to specify the trajectory data of a vehicle with certain vehicle information, where the vehicle information may include but is not limited to: the license plate information of the vehicle, the serial number of the vehicle terminal device, the version information of the vehicle terminal device, the remaining driving energy information of the vehicle, etc.

[0108] Based on rich trajectory generation parameters, the generated trajectory data can meet various personalized requirements, thus meeting the demand for personalized trajectory data during the project development cycle. It solves the problem that it is difficult to obtain the driving trajectory data of vehicles with actual personalized requirements.

[0109] Specifically, according to the duration characterized by the trajectory duration and the preset first trajectory point duration interval, determine the time information of the trajectory points in the trajectory data and the total number of trajectory points in the trajectory data; and according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, determine the positions of the trajectory points in the trajectory data to obtain the trajectory data.

[0110] Exemplarily, according to the duration characterized by the trajectory duration and the preset first trajectory point duration interval, the total number of trajectory points in the trajectory data can be determined, and the time information of each trajectory point in the trajectory data can be determined. For example, if the trajectory duration is 90 seconds and the preset first trajectory point duration interval is 3 seconds, then the total number of trajectory points in the trajectory data can be determined to be 30. Further, taking the current time as the starting time of real-time trajectory generation, the time information of the current time is the time information of the first trajectory point, and the time information of the second trajectory point is the time information of the first trajectory point plus 3 seconds. And so on, until the time information of each of the 30 trajectory points is determined.

[0111] Exemplarily, according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, determine the position information of each trajectory point.

[0112] Specifically, Figure 2 is the process schematic of the method for simulating and generating the trajectory data provided by this application Figure 2 as Figure 2 shown, the position of the trajectory point can be determined through the following steps:

[0113] Step 201. According to the starting position of the trajectory route and the ending position of the trajectory route, determine the first position difference between the starting position and the ending position in each position dimension.

[0114] Exemplarily, according to the starting position and the ending position of the trajectory route, the longitude and latitude data of the starting position and the ending position of the trajectory route can be determined respectively, where the longitude and latitude data includes longitude information and latitude information. Further, determine the difference between the starting position and the ending position in longitude and the difference between the starting position and the ending position in latitude respectively.

[0115] Among them, in terms of longitude, the difference between the starting position and the ending position can also be referred to as the first longitude position difference; in terms of latitude, the difference between the starting position and the ending position can also be referred to as the first latitude position difference.

[0116] Step 202. Generate the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the first position difference, and a preset first position increment.

[0117] Exemplarily, the first position increment may include a first longitude position increment and a first latitude position increment. According to the total number of trajectory points and the first longitude position difference, the longitude increment between each trajectory point can be determined. Based on the longitude information of the starting position, by sequentially accumulating the longitude increments, the longitude information of each trajectory point can be determined. Correspondingly, according to the total number of trajectory points and the first latitude position difference, the latitude increment between each trajectory point can be determined. Based on the latitude information of the starting position, by sequentially accumulating the latitude increments, the latitude information of each trajectory point can be determined. Based on the longitude information and latitude information of each trajectory point, the position information of the trajectory points in the trajectory data can be generated.

[0118] Optionally, the first position increment can also be preset. Among them, the first position increment is multiplied by a random number on the basis of the first longitude position increment and the first latitude position increment. The random number is a constant greater than 0.5 and less than 1.5. By multiplying with the random number, the increment between each trajectory point can be made uneven, which is more in line with the actual driving situation.

[0119] Exemplarily, based on the positions of each trajectory point determined in the trajectory data, the time information of each trajectory point is arranged in the order from first to last, and combined to obtain the trajectory data, that is, the real-time trajectory.

[0120] In the above example, when the trajectory generated by the trajectory generation parameters is a real-time trajectory, the trajectory generation parameters may specifically include the starting position information, the ending position information, and the trajectory duration of the trajectory route; determining the time information of each trajectory point and further determining the position information of each trajectory point can obtain the trajectory points in the order of time, so as to realize the generation of the real-time trajectory. Further, when determining the position information, according to the longitude and latitude information of the starting position and the ending position, and the longitude and latitude increments between the trajectory points, the longitude and latitude information of each trajectory point is calculated, so as to realize the determination of the position information of each trajectory point. Based on the method provided in the above example, the generation of the real-time trajectory can be realized, and the parameters such as the starting position, the ending position, and the duration of the real-time trajectory to be generated can be personalized configured, meeting the personalized needs of project testing, realizing the simulation of generating trajectory data according to personalized needs, without actual vehicle driving for acquisition. The difficulty of obtaining trajectory data is reduced, as well as the cost of obtaining trajectory data.

[0121] In one example, when the trajectory generation parameters indicate that the trajectory data is discontinuous in terms of duration and continuous in terms of the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; wherein, the trajectory duration characterizes the respective duration of the trajectory route in multiple different time periods.

[0122] Exemplarily, if the trajectory data is discontinuous in terms of duration and continuous in terms of the trajectory route, then the trajectory data belongs to the historical trajectory type. Combining with practical applications for example, in a possible application scenario of trajectory data, a user drives a vehicle from place A to place B, which takes a total of 5 days, and the vehicle is driven during fixed time periods each day. Therefore, the historical trajectory from place A to place B is continuous in terms of the trajectory route, but discontinuous in terms of duration, that is, it is divided into multiple time periods. That is, the start time of the first day to the end time of the first day is the first time period, the start time of the second day to the end time of the second day is the second time period, and so on.

[0123] During the process of generating the historical trajectory, the starting position, the ending position of this trajectory, and the duration of the historical trajectory in multiple different time periods are required.

[0124] Furthermore, the trajectory generation parameters may further include vehicle information, and / or, vehicle speed information. For the explanations of vehicle information and vehicle speed information, reference can be made to the above examples and will not be elaborated here.

[0125] Specifically, Figure 3 is a schematic flow of the method for simulating and generating the trajectory data provided by this application Figure 3 as Figure 3 shown, generating the trajectory data can be achieved through the following steps:

[0126] Step 301. Determine the start point and end point of the trajectory segments of the trajectory route according to the starting position of the trajectory route, the ending position of the trajectory route, and the total number of time periods.

[0127] Among them, different trajectory segments correspond to different time periods.

[0128] Exemplarily, the trajectory duration may include: start date and end date. Based on the start date and end date, the number of time periods can be determined; it can be understood that the number of time periods is the number of days between the start date and the end date. Furthermore, based on the total number of time periods, the number of trajectory segments can be correspondingly determined.

[0129] Exemplarily, based on the starting position and the ending position of the trajectory route, the total mileage of the trajectory route can be determined; based on the total mileage of the trajectory route and the number of trajectory segments, the mileage of each trajectory segment can be determined, so that the starting point and the ending point of each trajectory segment can be determined.

[0130] Optionally, when determining the mileage of each trajectory segment based on the total mileage of the trajectory route and the number of trajectory segments, the total mileage can be evenly distributed according to the number of trajectory segments to obtain the mileage of each trajectory segment, or the mileage of each trajectory segment can be determined by non-uniform distribution.

[0131] Step 302. Determine the time information of the trajectory points of the trajectory segment and the total number of trajectory points of the trajectory segment according to the duration represented by the time period corresponding to the trajectory segment and the preset second trajectory point time interval; and determine the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment, so as to obtain trajectory data.

[0132] Exemplarily, taking one of the trajectory segments as an example, according to the duration represented by the time period corresponding to the trajectory segment and the preset second trajectory point time interval, the total number of trajectory points of the trajectory segment can be determined, and the time information of each trajectory point in the trajectory segment can be determined. For example, if the time corresponding to the trajectory segment is 8 hours and the preset second trajectory point time interval is 10 seconds, the total number of trajectory points of the trajectory segment can be determined. Further, taking the starting moment of the trajectory segment as the time information of the first trajectory point in the historical trajectory, the time information of the second trajectory point of the trajectory segment is the time information of the first trajectory point of the trajectory segment plus 10 seconds. And so on, until the time information of each trajectory point in the trajectory segment is determined.

[0133] Exemplarily, according to the total number of trajectory points of the trajectory data, the starting point of the trajectory segment, and the ending point of the trajectory segment, the position information of each trajectory point in the trajectory segment is determined.

[0134] Specifically, Figure 4 is a schematic flow of the method for simulating and generating trajectory data provided by this application Figure 4 as Figure 4 shown, determining the position of each trajectory point in the trajectory segment can be achieved through the following steps:

[0135] Step 401. Determine the second position difference between the starting point and the ending point of the trajectory segment in each position dimension according to the starting point and the ending point of the trajectory segment.

[0136] Exemplarily, based on the starting point and the ending point of the trajectory segment, the longitude and latitude data of the starting point and the ending point of the trajectory segment can be determined respectively. Further, the difference between the starting point and the ending point of the trajectory segment in terms of longitude and the difference between the starting point and the ending point of the trajectory segment in terms of latitude are determined respectively.

[0137] Among them, the difference between the starting point and the ending point of the trajectory segment in terms of longitude can also be referred to as the second longitude position difference; the difference between the starting point and the ending point of the trajectory segment in terms of latitude can also be referred to as the second latitude position difference.

[0138] It should be noted that among two adjacent trajectory segments, the position information of the ending point of the prior trajectory segment and the position information of the starting point of the subsequent trajectory segment represent the same position.

[0139] Step 402. Generate the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the second position difference, and a preset second position increment.

[0140] Exemplarily, the second position increment may include a second longitude position increment and a second latitude position increment. According to the total number of trajectory points of the trajectory segment, the second longitude position difference, and the second longitude position increment, the longitude information of each trajectory point in the trajectory segment can be determined. Correspondingly, according to the total number of trajectory points of the trajectory segment, the second latitude position difference, and the second latitude increment, the latitude information of each trajectory point in the trajectory segment can be determined. Thus, the position information of each trajectory point in the trajectory segment is obtained.

[0141] Optionally, the second position increment can also be preset. Based on the second longitude position increment and the second latitude position increment, multiply them by a random number to obtain an uneven position increment, which is more in line with the actual driving situation.

[0142] Exemplarily, based on the positions of each trajectory point in the determined trajectory segment, arrange the time information of each trajectory point in the order from the earliest to the latest, and combine them to obtain the trajectory data of the trajectory segment. Determine the trajectory data of each trajectory segment in turn, and arrange them in the order from the earliest to the latest according to the time period corresponding to each trajectory segment, and combine them to obtain the trajectory data, that is, the historical trajectory.

[0143] In the above example, when the trajectory generated by the trajectory generation parameters is a historical trajectory, the trajectory generation parameters may specifically include the starting position information, ending position information, and trajectory duration of the trajectory route. The trajectory duration of the historical trajectory indicates the duration of the trajectory route at different time periods. Furthermore, the moment information and position information of each trajectory point in each trajectory segment are determined. Thereby, the trajectory data of each trajectory segment is determined, and the trajectory data of multiple trajectory segments is combined to realize the generation of the historical trajectory. Further, when determining the position information of each trajectory point in the trajectory segment, based on the longitude and latitude information of the starting point and ending point of the trajectory segment, and the longitude and latitude increments between each trajectory point in the trajectory segment, the longitude and latitude information of each trajectory point in the trajectory segment is calculated to realize the determination of the position information of each trajectory point. Based on the method provided in the above example, the generation of the historical trajectory can be realized, and the historical trajectory of a past period of time can be generated, meeting the personalized needs of project testing and avoiding the problem of being unable to obtain the historical trajectory due to missing the specific date of the requirement. Further reduce the difficulty of obtaining trajectory data and the cost of obtaining trajectory data.

[0144] In the above embodiments, the trajectory data is divided into real-time trajectory and historical trajectory to introduce how the method provided in this application realizes the generation of trajectory data. It is possible to determine which specific type of trajectory the trajectory data to be generated is through the trajectory generation parameters, and allow setting various information of personalized requirements under this type of trajectory to generate trajectory data that can meet the personalized requirements.

[0145] Combined with the foregoing embodiments, it can be seen that the generated trajectory data requires trajectory generation parameters as a definition. Therefore, based on any of the foregoing embodiments, the way to obtain the trajectory generation parameters can be to receive user input on the visual interface.

[0146] In one example, the trajectory generation parameters input by the user on the preset interface are obtained.

[0147] Exemplarily, the preset interface is a visual interface. On the electronic device that executes the method provided in this application, a display screen can be configured, and the preset interface is displayed on the display screen.

[0148] The preset interface may include indication information and at least one input box. Among them, the indication information is used to indicate the trajectory generation parameters received by the input box.

[0149] Figure 5 is a schematic diagram of an exemplary preset interface. The preset interface includes a title, such as Figure 5 shown by the exemplary text "simulation trajectory" in the gray box in ; the preset interface includes multiple pieces of indication information on the left and input boxes at the corresponding positions on the right side of the indication information; the preset interface includes a confirmation button, such as Figure 5As shown by the gray box marked with the exemplary text "Generate".

[0150] As Figure 5 shown by the exemplary text "License Plate Number" in , the corresponding input box on its right is used to receive the license information of the vehicle. As Figure 5 shown by the exemplary text "Departure City Address" in , there are two corresponding input boxes on its right, which are used to receive the starting position of the trajectory route; As Figure 5 shown by the exemplary text "Destination City Address" in , there are two corresponding input boxes on its right, which are used to receive the end position of the trajectory route. Further, among the two input boxes for receiving the starting position of the trajectory route, the upper input box is configured to be able to select the province, city, county and administrative region by dropping down, while the lower input box is configured to be able to receive the detailed address input by the user. It should be noted that the two input boxes for receiving the end position of the trajectory route are similar to the two input boxes for receiving the starting position of the trajectory route, and will not be elaborated here.

[0151] As Figure 5 shown by the exemplary text "Vehicle Speed" in , the corresponding input box on its right is used to receive the vehicle speed information. It should be noted that Figure 5 the "90" in the input box for receiving the vehicle speed information in is only an example. In actual application, the input vehicle speed information can be a specific value or an optional range of vehicle speed, for example: enter the vehicle speed information as "90 - 120" in this input box.

[0152] As Figure 5 shown by the exemplary text "Execution Strategy" in , the corresponding input box on its right is configured to be able to select the type of trajectory data to be generated, that is, the trajectory data to be generated is real-time trajectory or the trajectory data to be generated is historical trajectory.

[0153] As Figure 5 shown by the exemplary text "Duration (s)" in , the corresponding input box on its right is used to receive the trajectory duration of real-time trajectory generation. As Figure 5 shown by the exemplary text "Start Time" in , the corresponding input box on its right is used to receive the start date of the historical trajectory. As Figure 5 shown by the exemplary text "End Time" in , the corresponding input box on its right is used to receive the end date of the historical trajectory.

[0154] It should be noted that when the execution strategy is real-time trajectory, the user input received in the input box corresponding to the right side of the exemplary text "Duration (s)" is used as the trajectory duration; when the execution strategy is historical trajectory, the user input received in the input boxes corresponding to the right sides of the exemplary texts "Start Time" and "End Time" is used as the duration of the trajectory route. Optionally, when the execution strategy is historical trajectory, the user input received in the input box corresponding to the right side of the exemplary text "Duration (s)" can also be used as the respective durations of the trajectory route in different time periods.

[0155] In addition, it should be noted that in Figure 5 , the asterisk signs located on the right sides of "License Plate Number", "Departure City Address", and "Destination City Address" are used to indicate that these three trajectory generation parameters are necessary parameters during the processing of generating this trajectory data.

[0156] In the above embodiments, by setting a preset interface, the user can input the trajectory generation parameters of the trajectory data, and in response to the user clicking the confirmation button, based on the trajectory generation parameters reflecting personalized needs, automatically simulate and generate trajectory data that meets the requirements. The simulation and generation of trajectory data are realized, the difficulty and cost of obtaining trajectory data are reduced, and the efficiency of obtaining trajectory generation parameters is improved through a visual interface.

[0157] Combined with the foregoing embodiments, it can be seen that the generated trajectory data needs to be stored. In this embodiment, based on any of the foregoing embodiments, an explanation of how to specifically store the trajectory data is given.

[0158] In one example, before storing the generated trajectory data, the method may further include:

[0159] If it is determined that the speed difference between adjacent trajectory points in the trajectory data is greater than a preset threshold, the trajectory data is discarded.

[0160] Exemplarily, each trajectory point in the trajectory data may include not only time information and position information, but also the speed information of each trajectory point, which is used to indicate the driving speed of the vehicle at that trajectory point.

[0161] When the user input speed information is within the optional range of speeds, a constant is randomly selected from the optional range of speeds as the speed information of the trajectory point. However, due to the random selection process, it is possible that the speed difference between adjacent trajectory points is too large.

[0162] Therefore, when it is determined that the speed difference between adjacent trajectory points is greater than the preset threshold, this piece of trajectory data is discarded, and a new piece of trajectory data is generated again based on the received trajectory generation parameters.

[0163] In the above example, by determining whether the speed difference between adjacent trajectory points exceeds a threshold, it is further determined whether the generated trajectory data is valid trajectory data. This can further ensure the fitness of the generated trajectory data for the actual driving scenario.

[0164] In one example, when storing the generated trajectory data, the method specifically includes:

[0165] Convert the trajectory data into trajectory data in a format conforming to the Redis database; store the trajectory data in a format conforming to the Redis database in the Redis database.

[0166] Exemplarily, the Redis database (Remote Dictionary Server, abbreviated as Redis) is an open-source, high-performance key-value storage system. It has advantages such as fast read and write speeds and storage persistence. And

[0167] Therefore, convert the generated trajectory data into the data format of the Redis database. For example, in the process of arranging and combining the trajectory points in the order of the time information of the trajectory points from first to last, convert the time information of the trajectory points into a string form allowed by the Redis database, and convert the position information of the trajectory points into a floating-point number form allowed by the Redis database to represent longitude information and latitude information. Optionally, the speed information of the trajectory points can also be converted into an integer form allowed by the Redis database.

[0168] Further optionally, license plate information, terminal device serial number, terminal device version information, remaining cruising energy information, etc. in the vehicle information can all be converted into a string form allowed by the Redis database.

[0169] Store the trajectory data with the converted format in the Redis database. Optionally, during the storage process, a trajectory information reporting prompt message can also be set. For example: "Simulate reporting vehicle trajectory information, starting to report; vehicle identification number: TEST150" or "Simulate reporting vehicle trajectory information, ending reporting; vehicle identification number: TEST150".

[0170] In the above example, by splicing and converting the data format of the generated trajectory data and storing it in the Redis database, it is possible to simulate the process of the TBOX uploading the vehicle's position information during the actual vehicle driving process. Thus, there is no need to actually drive the vehicle to obtain trajectory data, reducing the difficulty of obtaining trajectory data.

[0171] In a possible implementation manner, after storing the generated trajectory data in the Redis database, it can also be visually displayed.

[0172] In one example, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, a visual trajectory route is generated and displayed based on the trajectory data.

[0173] Among them, the visual trajectory route includes preset icons, and the preset icons move according to the trajectory movement mode characterized by the trajectory data.

[0174] Exemplarily, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and also continuous on the trajectory route, the trajectory data is real-time trajectory.

[0175] According to the position information of each trajectory point in the trajectory data, the position of each trajectory point in the preset reference map can be determined in the preset reference map. At the position of each trajectory point in the reference map, a preset icon is displayed, and the preset icon is dynamically moved according to the change in the position of the trajectory point in the trajectory data.

[0176] Optionally, it is drawn on the trajectory route where the preset icon moves, so as to display the trajectory route of the vehicle while real-time displaying the vehicle position.

[0177] In the above example, based on the generated trajectory data, a visual display is realized, which further provides a basis for problem testing in the subsequent project development process.

[0178] In the above embodiment, after the trajectory data is generated, it can be cleaned and filtered, and after the data format is converted, it is stored in the Redis database and visually displayed. Further, it lays a foundation for the processing and analysis of the trajectory data in the subsequent project development process.

[0179] The method for simulating and generating trajectory data provided by the embodiments of the present application generates trajectory data with different attributes by obtaining trajectory generation parameters and according to different trajectory data attributes indicated in the trajectory generation parameters. Among them, the trajectory data attributes may include whether it is continuous in terms of duration and whether it is continuous on the trajectory route. Based on the generated trajectory data with different attributes, it is stored. The trajectory data of the vehicle is simulated and generated, and there is no need for an actual vehicle to drive on the road, reducing the difficulty of obtaining vehicle trajectory data. Based on the simulated vehicle trajectory data, during project development, the cost of obtaining personalized vehicle trajectory data can be reduced during the testing process of personalized vehicle trajectory data.

[0180] Figure 6 It is a schematic structural diagram of the device for simulating and generating trajectory data provided by the present application, as Figure 6 shown, the device 60 for simulating and generating trajectory data provided by this embodiment includes:

[0181] A processing module 601, configured to generate trajectory data according to the obtained trajectory generation parameters, where the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous in terms of the trajectory route; or the trajectory generation parameters indicate that the trajectory data is discontinuous in terms of duration and continuous in terms of the trajectory route; the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, and the trajectory duration;

[0182] A storage module 602, configured to store the generated trajectory data.

[0183] In a possible implementation manner, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous in terms of the trajectory route, the trajectory generation parameters further include: vehicle information, and / or vehicle speed information; the trajectory duration represents the continuous duration of the trajectory route;

[0184] The processing module 601 is configured to generate trajectory data according to the trajectory generation parameters:

[0185] According to the continuous duration represented by the trajectory duration and a preset first trajectory point time interval, determine the time information of the trajectory points in the trajectory data and the total number of trajectory points in the trajectory data; and according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, determine the positions of the trajectory points in the trajectory data to obtain the trajectory data.

[0186] In a possible implementation manner, the processing module 601 is configured to determine the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the starting position of the trajectory route, and the ending position of the trajectory route:

[0187] According to the starting position of the trajectory route and the ending position of the trajectory route, determine the first position difference between the starting position and the ending position in each position dimension;

[0188] According to the total number of trajectory points, the first position difference, and a preset first position increment, generate the positions of the trajectory points in the trajectory data.

[0189] In a possible implementation manner, when the trajectory generation parameters indicate that the trajectory data is discontinuous in terms of duration and continuous in terms of the trajectory route, the trajectory generation parameters further include: vehicle information, and / or vehicle speed information; the trajectory duration represents the continuous duration of the trajectory route in multiple different time periods;

[0190] The processing module 601 is configured to generate trajectory data according to the trajectory generation parameters:

[0191] Determine the start and end points of the trajectory segments of the trajectory route according to the start position of the trajectory route, the end position of the trajectory route, and the total number of time periods; wherein, different trajectory segments correspond to different time periods;

[0192] Determine the time information of the trajectory points of the trajectory segment and the total number of trajectory points of the trajectory segment according to the duration represented by the time period corresponding to the trajectory segment and the preset second trajectory point time interval; and determine the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the start point of the trajectory segment, and the end point of the trajectory segment, so as to obtain trajectory data.

[0193] In a possible implementation manner, according to the total number of trajectory points of the trajectory segment, the start point of the trajectory segment, and the end point of the trajectory segment, to determine the positions of the trajectory points in the trajectory segment, the processing module 601 is used for:

[0194] Determine the second position difference between the start point and the end point of the trajectory segment in each position dimension according to the start point and the end point of the trajectory segment;

[0195] Generate the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the second position difference, and the preset second position increment.

[0196] In a possible implementation manner, to obtain the trajectory generation parameters, the processing module 601 is used for:

[0197] Obtain the trajectory generation parameters input by the user on the preset interface.

[0198] In a possible implementation manner, before storing the generated trajectory data, the processing module 601 is further used for:

[0199] If it is determined that the vehicle speed difference between adjacent trajectory points in the trajectory data is greater than the preset threshold, discard the trajectory data.

[0200] In a possible implementation manner, to store the generated trajectory data, the storage module 602 is used for:

[0201] Convert the trajectory data into trajectory data in a data format conforming to the Redis database;

[0202] Store the trajectory data in a data format conforming to the Redis database into the Redis database.

[0203] In a possible implementation manner, when the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous on the trajectory route, the storage module 602 is further used for:

[0204] Generate and display a visualized trajectory route according to the trajectory data; wherein, the visualized trajectory route includes a preset icon, and the preset icon moves according to the trajectory movement mode represented by the trajectory data.

[0205] The simulation generation device for trajectory data provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0206] Figure 7 It is a schematic structural diagram of the server provided in this application. As Figure 7 shown, the server 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the server 70 further includes a communication component 703. Among them, the processor 701, the memory 702, and the communication component 703 are connected through a bus 704.

[0207] In the specific implementation process, at least one processor 701 executes the computer execution instructions stored in the memory 702, so that at least one processor 701 executes the above method.

[0208] For the specific implementation process of the processor 701, reference can be made to the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0209] In the above embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by the execution of the hardware processor, or implemented by the combination of hardware and software modules in the processor.

[0210] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0211] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0212] This application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0213] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the above method is implemented.

[0214] The above-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disc. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0215] An exemplary readable storage medium is coupled to the processor, enabling the processor to read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0216] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.

[0217] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0218] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist separately physically for each unit, or two or more units may be integrated in one unit.

[0219] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0220] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When this program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0221] Finally, it should be noted that: After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other implementation schemes of the present invention. The present invention aims to cover any variations, uses, or adaptive changes of the present invention. These variations, uses, or adaptive changes follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A method for simulating and generating trajectory data, characterized in that, Including: In response to the obtained trajectory generation parameters, generating trajectory data according to the trajectory generation parameters; wherein, the trajectory generation parameters indicate that the trajectory data is continuous in duration and continuous on the trajectory route; or the trajectory generation parameters indicate that the trajectory data is discontinuous in duration and continuous on the trajectory route; the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, the trajectory duration; Storing the generated trajectory data.

2. The method according to claim 1, characterized in that, When the trajectory generation parameters indicate that the trajectory data is continuous in duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; the trajectory duration represents the continuous duration of the trajectory route; Generating trajectory data according to the trajectory generation parameters includes: Determining the time information of the trajectory points in the trajectory data and the total number of trajectory points in the trajectory data according to the continuous duration represented by the trajectory duration and a preset first trajectory point time interval; and determining the positions of the trajectory points in the trajectory data according to the total number of trajectory points in the trajectory data, the starting position of the trajectory route, and the ending position of the trajectory route, so as to obtain the trajectory data.

3. The method according to claim 2, wherein Determining the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the starting position of the trajectory route, and the ending position of the trajectory route includes: Determining a first position difference between the starting position and the ending position in each position dimension according to the starting position of the trajectory route and the ending position of the trajectory route; Generating the positions of the trajectory points in the trajectory data according to the total number of trajectory points, the first position difference, and a preset first position increment.

4. The method according to claim 1, wherein When the trajectory generation parameters indicate that the trajectory data is discontinuous in duration and continuous on the trajectory route, the trajectory generation parameters further include: vehicle information, and / or, vehicle speed information; the trajectory duration represents the continuous duration of the trajectory route in multiple different time periods; Generating trajectory data according to the trajectory generation parameters includes: Determining the starting point and the ending point of the trajectory segment of the trajectory route according to the starting position of the trajectory route, the ending position of the trajectory route, and the total number of time periods; wherein, different trajectory segments correspond to different time periods; Determining the time information of the trajectory points in the trajectory segment and the total number of trajectory points in the trajectory segment according to the duration represented by the time period corresponding to the trajectory segment and a preset second trajectory point time interval; and determining the positions of the trajectory points in the trajectory segment according to the total number of trajectory points in the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment, so as to obtain the trajectory data.

5. The method according to claim 4, characterized in that, Determining the positions of the trajectory points in the trajectory segment according to the total number of trajectory points in the trajectory segment, the starting point of the trajectory segment, and the ending point of the trajectory segment includes: Determining a second position difference between the starting point and the ending point of the trajectory segment in each position dimension according to the starting point of the trajectory segment and the ending point of the trajectory segment; Generate the positions of the trajectory points in the trajectory segment according to the total number of trajectory points of the trajectory segment, the second position difference, and a preset second position increment.

6. The method according to any one of claims 1-5, characterized in that, Obtain trajectory generation parameters, including: Obtain the trajectory generation parameters input by the user on a preset interface.

7. The method according to any one of claims 1-5, characterized in that Before storing the generated trajectory data, it further includes: If it is determined that the vehicle speed difference between adjacent trajectory points in the trajectory data is greater than a preset threshold, discard the trajectory data.

8. The method according to any one of claims 1-5, characterized in that, Store the generated trajectory data, including: Convert the trajectory data into trajectory data in a data format conforming to the Redis database; Store the trajectory data in a data format conforming to the Redis database into the Redis database.

9. The method according to any one of claims 1-5, characterized in that, When the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous in terms of the trajectory route, the method further includes: Generate and display a visual trajectory route according to the trajectory data; wherein, the visual trajectory route includes preset icons, and the preset icons move according to the trajectory movement mode represented by the trajectory data.

10. A simulation generation device for trajectory data, characterized in that, It includes: A processing module, configured to, in response to the obtained trajectory generation parameters, generate trajectory data according to the trajectory generation parameters; wherein, the trajectory generation parameters indicate that the trajectory data is continuous in terms of duration and continuous in terms of the trajectory route; or the trajectory generation parameters indicate that the trajectory data is non - continuous in terms of duration and continuous in terms of the trajectory route; the trajectory generation parameters include one or more of the following: the starting position of the trajectory route, the ending position of the trajectory route, vehicle information, vehicle speed information, trajectory duration; A storage module, configured to store the generated trajectory data.

11. A server, characterized in that, It includes: A memory, a processor; The memory stores computer - executable instructions; The processor executes the computer - executable instructions stored in the memory, so that the processor executes the method according to any one of claims 1 - 9.

12. A computer-readable storage medium, characterized in that, Computer - executable instructions are stored in the computer - readable storage medium, and when the computer - executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 - 9.

13. A computer program product, characterized in that, It includes a computer program, and when the computer program is executed by a processor, it implements the method according to any one of claims 1 - 9.