Map simulation data packet refreshing method and device, medium, equipment and vehicle

By generating and matching route information, the map simulation data package is automatically refreshed, which solves the high cost and low efficiency problems caused by real vehicle testing, accurately locates the cause of simulation anomalies, and improves the efficiency and accuracy of the map simulation data package.

CN118672879APending Publication Date: 2024-09-20MOMENTA (SUZHOU) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310250230.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, obtaining the map simulation data package through actual vehicle testing requires a large workload and cost, and is inefficient, and the cause of the simulation anomaly cannot be accurately located, resulting in the inability to distinguish between map data problems and simulation test module problems.

Method used

By generating second route information based on the route information in the first map simulation data packet, grabbing local map data from the global map data of the second data type, matching time and coordinates, refreshing the map simulation data packet, and realizing automatic refresh, Reduce workload and cost, and distinguish map data issues from simulation test module issues.

Benefits of technology

Without the need for actual vehicle testing, the map simulation data package is automatically refreshed, which improves the efficiency of map simulation data packages of multiple data types, accurately locates the cause of simulation anomalies, and distinguishes map data problems from simulation test module problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672879A
    Figure CN118672879A
Patent Text Reader

Abstract

The invention discloses a map simulation data packet refreshing method and device, a medium, equipment and a vehicle. The method comprises the steps that second route information is generated according to first route information in a first map simulation data packet; obtaining second local map data and virtual output time thereof according to the second route information and the global map data of the second data type; matching the virtual output time with the virtual positioning time of the second positioning coordinates, and determining the second positioning coordinates corresponding to the second local map data; matching a second positioning coordinate corresponding to the second local map data with the first positioning coordinate, determining a first positioning coordinate corresponding to the second local map data, and determining the actual positioning time of the first positioning coordinate as the actual output time of the second local map data; after the first local map data and the actual output time thereof are deleted and the second local map data and the actual output time thereof are added, a second map simulation data packet is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map processing technology, and in particular to a method, device, medium, equipment and vehicle for refreshing a map simulation data packet. Background Art

[0002] After a map data is developed, it is often necessary to perform simulation tests on it to determine whether there is a problem with the map data. When determining whether there is a problem with a map data, the map data is usually adapted on the vehicle side first, and then a map simulation data packet is obtained by driving a real vehicle. The map simulation data packet contains some states of vehicle driving within a certain period of time, the input and output of each map simulation module, and other information. Finally, the obtained map simulation data packet is uploaded to the cloud for storage, and a simulation scene set is created for simulation testing. However, if the map simulation data packet of each data type is tested by a real vehicle, the workload and cost will be relatively large, and the efficiency of obtaining map simulation data packets of multiple data types will be correspondingly low. In addition, when the map simulation data packet of each data type is obtained through a real vehicle test, the different map simulation data packets obtained have different information such as road environment and traffic environment in addition to different local map data. Therefore, when the simulation test is normal using one of the map simulation data packets, and the simulation test is abnormal using another map simulation data packet, it is impossible to determine whether there is a problem with the map data or the simulation test module. Summary of the invention

[0003] The present application provides a method, device, medium, equipment and vehicle for refreshing a map simulation data packet, which can solve the problems of high workload and cost, low efficiency and inability to accurately locate simulation anomalies in obtaining map simulation data packets through actual vehicle testing.

[0004] The specific technical solutions are as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for refreshing a map simulation data packet, the method comprising:

[0006] Generate second route information according to first route information in a first map simulation data packet, wherein the first map simulation data packet also includes first local map data and actual output time of the first local map data, the first local map data is local map data of a first data type generated during the vehicle's driving according to the first route information, the first route information includes a first positioning track and an actual positioning time of each first positioning coordinate included in the first positioning track, the second route information includes a second positioning track and a virtual positioning time of each second positioning coordinate included in the second positioning track, and the second positioning track includes the first positioning track;

[0007] capturing at least one second local map data from the global map data of the second data type according to the second route information, and obtaining a virtual output time of each second local map data, wherein the second local map data is local map data included in the global map data of the second data type;

[0008] According to the time difference, the virtual output time of the second local map data is matched with the virtual positioning time of each second positioning coordinate to determine the second positioning coordinate corresponding to the second local map data, wherein the second positioning coordinate corresponding to the second local map data is the second positioning coordinate when the second local map data is output;

[0009] matching the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance, determining the first positioning coordinates corresponding to the second local map data, and determining the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data;

[0010] After deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet, a second map simulation data packet is obtained.

[0011] Through the above scheme, it can be known that the embodiment of the present application can first generate the second route information according to the first route information in the first map simulation data packet, and capture at least one second local map data from the global map data of the second data type according to the second route information, obtain the virtual output time of each second local map data, and then obtain the first positioning coordinates corresponding to the second local map data through time matching and coordinate matching in turn, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data, and finally delete the first local map data and its actual output time in the first map simulation data packet, add the second local map data and its actual output time in the first map simulation data packet, and realize the refresh of the first map simulation data packet, so that the map simulation data packet can be automatically refreshed without using a real vehicle, reducing the workload and cost, and improving the efficiency of obtaining map simulation data packets of multiple data types. In addition, since the embodiment of the present application only refreshes the local map data without modifying other contents, when the simulation test is normal using one of the map simulation data packets, and the simulation test is abnormal using another map simulation data packet, it can be determined that there is a problem with the map data with the simulation abnormality, and when the simulation test of two or more map simulation data packets is abnormal, it can be determined that there is a problem with the simulation test module.

[0012] In a first possible implementation manner of the first aspect, when the first local map data includes a first desired route, the first route information also includes the first desired route, and the second route information also includes a second desired route;

[0013] The step of generating the second route information according to the first route information in the first map simulation data packet includes:

[0014] Along the first expected route, at least one target positioning coordinate is added before the first positioning trajectory and at least one target positioning coordinate is added after the first positioning trajectory, and the added target positioning coordinate and each of the first positioning coordinates in the first positioning trajectory constitute a second positioning trajectory, and any positioning coordinate included in the second positioning trajectory is determined as the second positioning coordinate;

[0015] Determine the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and set the virtual positioning time for other second positioning coordinates in sequence according to the positioning cycle;

[0016] The second expected route is generated according to a road identifier of the road to which each second positioning coordinate belongs.

[0017] It can be seen from the above scheme that in the embodiment of the present application, when the first local map data includes a first expected route, the first positioning trajectory can be appropriately expanded according to the first expected route, and the second expected route can be regenerated according to the expanded first positioning trajectory. This can avoid the problem that the positioning coordinates are not on the local map data, or the road planning module mistakenly determines a non-end point as an end point when capturing the second local map data according to the second route information.

[0018] In a second possible implementation manner of the first aspect, when the first local map data does not include the first expected route, generating the second route information according to the first route information in the first map simulation data packet includes:

[0019] The first positioning coordinates in the first positioning trajectory constitute the second positioning trajectory, and the first positioning coordinates in the second positioning trajectory are determined as the second positioning coordinates;

[0020] The current system time is determined as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and the virtual positioning time is set for other second positioning coordinates in sequence according to the positioning cycle.

[0021] It can be seen from the above scheme that in the embodiment of the present application, when the first local map data does not include the first expected route, the first positioning trajectory is directly used as the second positioning trajectory, and a virtual positioning time is set for each second positioning coordinate in the second positioning trajectory, so that the local map data can be quickly captured from the global map data of the second data type based on the second positioning trajectory and its virtual positioning time.

[0022] In a third possible implementation manner of the first aspect, the capturing at least one second local map data from the global map data of the second data type according to the second route information, and obtaining the virtual output time of each second local map data includes:

[0023] Using a map data capture module, based on the second route information and at least one preset positioning coordinate, capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is one of the second positioning coordinates in the second positioning trajectory;

[0024] The virtual positioning time of the preset positioning coordinates is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates, or the sum of the virtual positioning time of the preset positioning coordinates and a preset duration is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates.

[0025] It can be seen from the above scheme that the embodiment of the present application can directly use the map data capture module to capture the second local map data and set a virtual positioning time for it without relying on other simulation test modules, thereby not only saving resource usage but also improving the efficiency of capturing the second local map data.

[0026] In a fourth possible implementation manner of the first aspect, when the first local map data does not include the first expected route, after using the map data capture module to capture and output the second local map data corresponding to each of the preset positioning coordinates from the global map data of the second data type according to the second route information and at least one preset positioning coordinate, the method further includes:

[0027] Searching each of the second local map data for a road identifier of the road to which each of the second positioning coordinates contained therein belongs;

[0028] A second expected route is determined according to the found road signs, and the second expected route is added to each of the second local map data.

[0029] It can be seen from the above scheme that in the embodiment of the present application, when the first local map data does not include the first expected route, and thus the second local map data captured from the global map data of the second data type does not include the second expected route, the accuracy of the second local map data can be improved by searching for the road sign of the road to which each second positioning coordinate contained therein belongs in each second local map data, determining the second expected route based on the found road sign, and adding the second expected route to each second local map data.

[0030] In a fifth possible implementation manner of the first aspect, matching the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate according to the time difference to determine the second positioning coordinate corresponding to the second local map data includes:

[0031] respectively calculating time differences between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate;

[0032] The second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest are determined as the second positioning coordinates corresponding to the second local map data.

[0033] It can be seen from the above scheme that the embodiment of the present application determines the second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinates corresponding to the second local map data, rather than directly determining the second positioning coordinates with the smallest time difference as the second positioning coordinates corresponding to the second local map data, thereby improving the accuracy of the second positioning coordinates corresponding to the second local map data.

[0034] In a sixth possible implementation manner of the first aspect, matching the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance to determine the first positioning coordinates corresponding to the second local map data includes:

[0035] respectively calculating the coordinate distances between the second positioning coordinates corresponding to the second local map data and each of the first positioning coordinates;

[0036] The first positioning coordinate with the smallest coordinate distance is determined as the first positioning coordinate corresponding to the second local map data.

[0037] It can be seen from the above scheme that the embodiment of the present application can improve the accuracy of the first positioning coordinates corresponding to the second local map data by determining the first positioning coordinates with the smallest coordinate distance as the first positioning coordinates corresponding to the second local map data.

[0038] In a second aspect, an embodiment of the present application provides a device for refreshing a map simulation data packet, the device comprising:

[0039] a generating unit, configured to generate second route information according to first route information in a first map simulation data packet, wherein the first map simulation data packet further includes first local map data and actual output time of the first local map data, the first local map data is local map data of a first data type generated during the driving process of the vehicle according to the first route information, the first route information includes a first positioning trajectory and an actual positioning time of each first positioning coordinate included in the first positioning trajectory, the second route information includes a second positioning trajectory and a virtual positioning time of each second positioning coordinate included in the second positioning trajectory, and the second positioning trajectory includes the first positioning trajectory;

[0040] a capture unit, configured to capture at least one second local map data from the global map data of the second data type according to the second route information, and obtain a virtual output time of each second local map data, wherein the second local map data is the local map data included in the global map data of the second data type;

[0041] a time matching unit, configured to match the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate according to a time difference, and determine the second positioning coordinate corresponding to the second local map data, wherein the second positioning coordinate corresponding to the second local map data is the second positioning coordinate when the map data capture module outputs the second local map data;

[0042] a coordinate matching unit, configured to match the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance, determine the first positioning coordinates corresponding to the second local map data, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data;

[0043] A refresh unit is used to obtain a second map simulation data packet after deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet.

[0044] In a first possible implementation manner of the second aspect, when the first local map data includes a first desired route, the first route information also includes the first desired route, and the second route information also includes a second desired route;

[0045] The generating unit comprises:

[0046] An adding module, configured to add at least one target positioning coordinate before the first positioning track and at least one target positioning coordinate after the first positioning track along the first expected route;

[0047] A first forming module, configured to form the second positioning track by combining the added target positioning coordinates and each of the first positioning coordinates in the first positioning track;

[0048] A first determining module, configured to determine any positioning coordinate included in the second positioning trajectory as the second positioning coordinate;

[0049] A first setting module, used for determining the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and setting the virtual positioning time for other second positioning coordinates in sequence according to a positioning cycle;

[0050] A generating module is used to generate a second expected route according to a road sign of the road to which each second positioning coordinate belongs.

[0051] In a second possible implementation manner of the second aspect, when the first local map data does not include a first expected route, the generating unit includes:

[0052] A second forming module, configured to form the second positioning trajectory from each of the first positioning coordinates in the first positioning trajectory;

[0053] A second determining module, configured to determine the first positioning coordinates in the second positioning trajectory as the second positioning coordinates;

[0054] The second setting module is used to determine the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and set the virtual positioning time for other second positioning coordinates in sequence according to the positioning cycle.

[0055] In a third possible implementation manner of the second aspect, the grabbing unit includes:

[0056] a capture module, configured to capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type using the map data capture module according to the second route information and at least one preset positioning coordinate, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is one of the second positioning coordinates in the second positioning trajectory;

[0057] The third determination module is used to determine the virtual positioning time of the preset positioning coordinates as the virtual output time of the second local map data corresponding to the preset positioning coordinates, or to determine the sum of the virtual positioning time of the preset positioning coordinates and a preset duration as the virtual output time of the second local map data corresponding to the preset positioning coordinates.

[0058] In a fourth possible implementation manner of the second aspect, the device further includes:

[0059] a search unit, configured to search in each of the second local map data for a road identifier of a road to which each of the second positioning coordinates contained therein belongs, after the second local map data corresponding to each of the preset positioning coordinates is captured and outputted from the global map data of the second data type by using the map data capture module when the first local map data does not include the first expected route;

[0060] A determination unit, configured to determine a second desired route according to the found road sign;

[0061] An adding unit is used to add the second expected route to each of the second local map data.

[0062] In a fifth possible implementation manner of the second aspect, the time matching unit includes:

[0063] A first calculation module, configured to respectively calculate the time difference between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate;

[0064] The fourth determining module is configured to determine the second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinates corresponding to the second local map data.

[0065] In a sixth possible implementation manner of the second aspect, the coordinate matching unit includes:

[0066] A second calculation module, used for respectively calculating the coordinate distance between the second positioning coordinates corresponding to the second local map data and each of the first positioning coordinates;

[0067] The fifth determining module is used to determine the first positioning coordinates with the smallest coordinate distance as the first positioning coordinates corresponding to the second local map data.

[0068] Through the above scheme, it can be known that the embodiment of the present application can first generate the second route information according to the first route information in the first map simulation data packet, and capture at least one second local map data from the global map data of the second data type according to the second route information, obtain the virtual output time of each second local map data, and then obtain the first positioning coordinates corresponding to the second local map data through time matching and coordinate matching in turn, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data, and finally delete the first local map data and its actual output time in the first map simulation data packet, add the second local map data and its actual output time in the first map simulation data packet, and realize the refresh of the first map simulation data packet, so that the map simulation data packet can be automatically refreshed without using a real vehicle, reducing the workload and cost, and improving the efficiency of obtaining map simulation data packets of multiple data types. In addition, since the embodiment of the present application only refreshes the local map data without modifying other contents, when the simulation test is normal using one of the map simulation data packets, and the simulation test is abnormal using another map simulation data packet, it can be determined that there is a problem with the map data with the simulation abnormality, and when the simulation test of two or more map simulation data packets is abnormal, it can be determined that there is a problem with the simulation test module.

[0069] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any possible implementation manner of the first aspect.

[0070] In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:

[0071] one or more processors;

[0072] The processor is coupled to a storage device, and the storage device is used to store one or more programs;

[0073] When one or more programs are executed by one or more processors, the electronic device implements the method described in any possible implementation manner of the first aspect.

[0074] In a fifth aspect, an embodiment of the present application provides a vehicle, the vehicle comprising a device as described in any possible implementation of the second aspect, or comprising an electronic device as described in the fourth aspect.

[0075] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed on a computer or a processor, the computer or the processor executes the method described in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work.

[0077] Figure 1 A schematic diagram of a flow chart of a method for refreshing a map simulation data packet provided in an embodiment of the present application;

[0078] Figure 2 An example diagram of generating a second positioning coordinate provided in an embodiment of the present application;

[0079] Figure 3 A block diagram of a map simulation data packet refresh device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0081] It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The terms "including" and "having" in the embodiments of the present application and the accompanying drawings and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0082] Figure 1 The present invention is a flowchart of a method for refreshing a map simulation data packet. The method can be applied to electronic equipment or computer equipment, and can be specifically applied to a terminal or a server. The method may include the following steps:

[0083] S110: Generate second route information according to the first route information in the first map simulation data packet.

[0084] Among them, the first map simulation data packet includes not only the first route information, but also at least one first local map data and the actual output time of each first local map data. The first local map data is the local map data of the first data type generated by the vehicle during the driving process according to the first route information. The first local map data is the local map data obtained from the global map data of the first data type. Among them, the global map data and the local map data are relative. The local map data is a subset of the global map data. The global map data only needs to be larger than the local map data, rather than the global map data specifically referring to a certain city or a certain country. In addition, there may be overlaps between the local map data of different first data types, or there may not be overlaps.

[0085] The first route information includes the first positioning trajectory and the actual positioning time of each first positioning coordinate contained in the first positioning trajectory. When the first local map data includes the first expected route, the first route information also includes the first expected route, and the second route information also includes the second expected route. The first expected route is a planned route automatically generated according to the starting point and end point input by the user when generating the first map simulation data packet. The first expected route includes the road markings of each road on the planned route. The first positioning trajectory may include only part of the positioning trajectory on the first expected route, for example, only including the positioning trajectory with abnormalities when using a real vehicle test.

[0086] The second route information includes the second positioning track and the virtual positioning time of each second positioning coordinate contained in the second positioning track, and the so-called virtual positioning time refers to the non-actual positioning time, that is, not the real time. The second positioning track includes the first positioning track. When the first route information includes the first expected route, the second route information also includes the second expected route.

[0087] The following describes the implementation method of step S110 for two scenarios: the first route information includes the first desired route and the first desired route is not included.

[0088] Scenario 1: When the first route information includes the first desired route, the implementation method of step S110 includes:

[0089] Along the first expected route, at least one target positioning coordinate is added before the first positioning trajectory and at least one target positioning coordinate is added after the first positioning trajectory, and the added target positioning coordinates and the first positioning coordinates in the first positioning trajectory constitute a second positioning trajectory, and any positioning coordinate contained in the second positioning trajectory is determined as the second positioning coordinate; the current system time is determined as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and the virtual positioning time is set for other second positioning coordinates in turn according to the positioning cycle; the second expected route is generated according to the road identification of the road to which each second positioning coordinate belongs.

[0090] Each road involved in the first expected route is found in the global map data of the first data type, and at least one target positioning coordinate is added before the first positioning track and at least one target positioning coordinate is added after the first positioning track along the first expected route.

[0091] When adding target positioning coordinates, they can be added according to the positioning cycle to ensure that the interval between the first positioning coordinates in the first positioning track is consistent. Figure 2 As shown, the black dot indicates the first positioning coordinate, the white dot indicates the target positioning coordinate, and the long line indicates the first expected route. When at least one target positioning coordinate is added before the first positioning trajectory, at least one target positioning coordinate can be added within 50 meters before the first positioning trajectory; when at least one target positioning coordinate is added after the first positioning trajectory, at least one target positioning coordinate can be added within 2 kilometers after the first positioning trajectory. When there is no 2 kilometers after the first positioning trajectory (that is, when it exceeds the global map data of the first data type), at least one target positioning coordinate is added until it exceeds the global map data of the first data type and stops.

[0092] In this scenario, the second positioning trajectory includes not only the first positioning coordinates in the first positioning trajectory, but also multiple target positioning coordinates. In order to distinguish the first positioning trajectory from the second positioning trajectory, each positioning coordinate in the second positioning trajectory may be referred to as a second positioning coordinate.

[0093] After obtaining the second positioning track, the current system time can be first determined as the virtual positioning time of the first second positioning coordinate (i.e., the positioning coordinate of the starting point) in the second positioning track, and virtual positioning times are set for other second positioning coordinates in turn according to the positioning cycle. For example, the virtual positioning time of the second second positioning coordinate is the current system time + positioning cycle, and the virtual positioning time of the third second positioning coordinate is the current system time + 2* positioning cycle. The current system time can be understood as the time of the operating system of the electronic device or computer device used in the embodiment of the present application.

[0094] After the second positioning trajectory is obtained, a second expected route may be generated according to the road sign of the road to which each second positioning coordinate in the second positioning trajectory belongs, and the second expected route includes the road sign of the road to which each second positioning coordinate belongs.

[0095] It can be seen from the above scheme that in the embodiment of the present application, when the first local map data includes a first expected route, the first positioning trajectory can be appropriately expanded according to the first expected route, and the second expected route can be regenerated according to the expanded first positioning trajectory. This can avoid the problem that the positioning coordinates are not on the local map data, or the road planning module mistakenly determines a non-end point as an end point when capturing the second local map data according to the second route information.

[0096] Scenario 2: When the first local map data does not include the first desired route, the implementation method of step S110 includes:

[0097] The first positioning coordinates in the first positioning trajectory constitute a second positioning trajectory, and the first positioning coordinates in the second positioning trajectory are determined as second positioning coordinates; the current system time is determined as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and the virtual positioning time is set for other second positioning coordinates in turn according to the positioning cycle.

[0098] When the first local map data does not include the first expected route, the first route information also does not include the first expected route. In this case, the first positioning trajectory cannot be properly expanded. Therefore, the first positioning trajectory can be directly obtained and used as the second positioning trajectory required subsequently. A virtual positioning time is set for each second positioning coordinate in the second positioning trajectory according to the current system time and the positioning cycle.

[0099] It should be supplemented that if the global map data of the first data type and the global map data of the second data type are not consistent in terms of bias, corresponding biasing or debiasing processing needs to be performed when the second route information is generated, so that the global map data of the first data type and the global map data of the second data type are consistent in terms of biasing. For example, the global map data of the first data type is biased data, and the global map data of the second data type is unbiased data, then when generating the second route information, it is necessary to perform debiasing processing on the second route information that is generated first. Among them, biasing can be understood as: adding an offset to the most originally generated map data according to preset rules. Debiasing can be understood as: restoring the biased map data to remove the offset. In addition, the map data involved in the embodiments of the present application can be non-thinned map data or thinned map data.

[0100] S120: Capture at least one second local map data from the global map data of the second data type according to the second route information, and obtain a virtual output time of each second local map data.

[0101] The second local map data is local map data included in the global map data of the second data type. The first data type and the second data type are different data types. For example, the data rules used by map data produced by different map manufacturers are often different, and can be regarded as map data of different data types. There may be overlap between local map data of different second data types, or there may not be overlap.

[0102] Methods for capturing at least one second local map data from the global map data of the second data type according to the second route information include but are not limited to the following two methods:

[0103] The first method: closed-loop grasping

[0104] Reuse the current map simulation capability, start all modules in the map simulation system, including the road planning module, the map data capture module, the simulation engine module, etc., input the second route information and the global map data of the second data type into the map simulation system, and obtain at least one second local map data after each module is executed.

[0105] It can be seen from the above scheme that the embodiment of the present application can directly realize the capture of the second local map by reusing the current simulation platform capabilities, thereby reducing the development workload.

[0106] Second method: open loop grasping

[0107] The map data capture module in the map simulation system is adjusted, for example, some interface information is modified, so as to obtain a map data capture module that can run independently and is used to capture map data. Then, the map data capture module is used to capture and output second local map data corresponding to each preset positioning coordinate from the global map data of the second data type according to the second route information and at least one preset positioning coordinate, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is a second positioning coordinate in the second positioning trajectory; the virtual positioning time of the preset positioning coordinate is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinate, or the sum of the virtual positioning time of the preset positioning coordinate and the preset duration is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinate.

[0108] Using a map data capture module, based on the second route information and at least one preset positioning coordinate, capture and output second local map data corresponding to each preset positioning coordinate from the global map data of the second data type, including: inputting the second route information and the global map data of the second data type into the map data capture module, so that the map data capture module captures and outputs the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type according to the at least one preset positioning coordinate and the second route information contained therein; inputting the second route information, the global map data of the second data type and at least one preset positioning coordinate into the map data capture module, so that the map data capture module captures and outputs the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type according to the second route information and at least one preset positioning coordinate. The preset positioning coordinates corresponding to the second local map data may be the same as or different from the positioning coordinates corresponding to the first local map data.

[0109] When the map data capture module executes to a certain preset positioning coordinate, it is determined that the corresponding second local map data needs to be captured from the preset positioning coordinate. When the capture is completed, the corresponding second local map data is output. Therefore, there is a time difference between the time when the map data capture module executes to the preset positioning coordinate and the time when the second local map data is output. However, there is a corresponding relationship between the second local map data and the preset positioning coordinate, so the virtual positioning time of the preset positioning coordinate can be directly determined as the virtual output time of the second local map data corresponding to the preset positioning coordinate, or the sum of the virtual positioning time of the preset positioning coordinate and the preset duration can be determined as the virtual output time of the second local map data corresponding to the preset positioning coordinate. Among them, the preset duration can be the time difference between the time when the preset positioning coordinate is executed this time and the time when the second local map data is output, it can also be the average of multiple time differences, or it can be other fixed values.

[0110] It can be seen from the above scheme that the embodiment of the present application can directly use the map data capture module to capture the second local map data and set a virtual positioning time for it without relying on other simulation test modules, thereby not only saving resource usage but also improving the efficiency of capturing the second local map data.

[0111] It should be added that, when the second route information includes the second expected route, the obtained second partial map data will contain more road information about the second expected route. For example, when the second route information does not include the second expected route, the road information of each road included in the last part of the second partial map data may be evenly distributed, and when the second route information includes the second expected route, the last part of the second partial map data may contain more road information related to the second expected route, and less road information related to non-second expected routes. For example, if the second expected route is on a main road, the road information of the main road will be more, and the road information of the auxiliary road will be less.

[0112] S130: Matching the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate according to the time difference, and determining the second positioning coordinate corresponding to the second local map data.

[0113] The second positioning coordinates corresponding to the second partial map data are the second positioning coordinates when the second partial map data is output, that is, the second positioning coordinates when the map data capture module outputs the second partial map data.

[0114] In order to determine the output time of the second local map data in the first map simulation data packet, so that the refreshed first map simulation data packet only changes the map data type but does not change the environment and road scene related data involved in the vehicle operation process, for example, the surrounding vehicle information involved in the vehicle operation process remains unchanged, the embodiment of the present application can first determine the second positioning coordinates corresponding to the second local map data, and then determine the first positioning coordinates corresponding to the second positioning coordinates in the first map simulation data packet.

[0115] The method for determining the second positioning coordinates corresponding to the second local map data includes: respectively calculating the time difference between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate; and determining the second positioning coordinate whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinate corresponding to the second local map data.

[0116] The time difference is a positive integer, that is, the time difference=|the virtual output time of the second local map data−the virtual positioning time of the second positioning coordinates|.

[0117] When the virtual positioning time of the preset positioning coordinates is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates, there will be a time difference of 0 between the virtual positioning time and the virtual output time of the second local map data. The time difference is the smallest, and the virtual positioning time does not exceed the virtual output time of the second local map data, so the virtual positioning time can be determined as the second positioning coordinates corresponding to the second local map data.

[0118] When the sum of the virtual positioning time of the preset positioning coordinates and the preset duration is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates, there may be a situation where the time difference between the two virtual positioning times and the virtual output time of the second local map data is minimal. At this time, the second positioning coordinate whose virtual positioning time does not exceed the virtual output time of the second local map data is selected as the second positioning coordinate corresponding to the second local map data.

[0119] The embodiment of the present application improves the accuracy of the second positioning coordinates corresponding to the second local map data by determining the second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinates corresponding to the second local map data, rather than directly determining the second positioning coordinates with the smallest time difference as the second positioning coordinates corresponding to the second local map data.

[0120] S140: Match the second positioning coordinates corresponding to the second local map data with each first positioning coordinate according to the coordinate distance, determine the first positioning coordinates corresponding to the second local map data, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data.

[0121] In this step, the coordinate distances between the second positioning coordinates corresponding to the second local map data and each first positioning coordinate can be calculated respectively, and then the first positioning coordinate with the smallest coordinate distance can be determined as the first positioning coordinate corresponding to the second local map data, and finally the actual positioning time of the first positioning coordinate corresponding to the second local map data can be determined as the actual output time of the second local map data.

[0122] In this step, by determining the first positioning coordinates with the smallest coordinate distance as the first positioning coordinates corresponding to the second local map data, the accuracy of the first positioning coordinates corresponding to the second local map data can be improved.

[0123] S150: Obtaining a second map simulation data packet after deleting the first partial map data and the actual output time of the first partial map data in the first map simulation data packet and adding the second partial map data and the actual output time of the second partial map data in the first map simulation data packet.

[0124] Among them, the order of deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet, and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet may not be restricted, and the two can be deleted first and then added, or added first and then deleted, or performed simultaneously.

[0125] After obtaining the second map simulation data packet, if the embodiment of the present application is applied to the terminal, the second map simulation data packet can be uploaded to the server for storage and a simulation scene set can be created for simulation testing. If the embodiment of the present application is applied to the server, the server can store the second map simulation data packet and create a simulation scene set for simulation testing.

[0126] The method for refreshing a map simulation data packet provided in an embodiment of the present application can first generate second route information according to first route information in a first map simulation data packet, and capture at least one second local map data from global map data of a second data type according to the second route information to obtain a virtual output time of each second local map data, and then obtain the first positioning coordinates corresponding to the second local map data through time matching and coordinate matching in sequence, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data, and finally refresh the first map simulation data packet by deleting the first local map data and its actual output time in the first map simulation data packet and adding the second local map data and its actual output time in the first map simulation data packet, thereby realizing automatic refreshing of the map simulation data packet without using a real vehicle, reducing workload and cost, and improving the efficiency of obtaining map simulation data packets of multiple data types. In addition, since the embodiment of the present application only refreshes local map data and does not modify other content, when the simulation test using one of the map simulation data packets is normal and the simulation test using another map simulation data packet is abnormal, it can be determined that there is a problem with the map data with the simulation abnormality, and when two or more map simulation data packets all have simulation test abnormalities, it can be determined that there is a problem with the simulation test module.

[0127] In one embodiment, when the first local map data does not include the first expected route, after using the map data capture module to capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type according to the second route information and at least one preset positioning coordinate, the embodiment of the present application can also search for the road sign of the road to which each second positioning coordinate contained in each second local map data belongs in each second local map data; determine the second expected route according to the found road sign, and add the second expected route to each second local map data. Wherein, the second expected route includes each found road sign.

[0128] In an embodiment of the present application, when the first local map data does not include the first expected route, and thus the second local map data captured from the global map data of the second data type does not include the second expected route, the accuracy of the second local map data can be improved by searching for the road identification of the road to which each second positioning coordinate contained therein belongs in each second local map data, determining the second expected route based on the found road identification, and adding the second expected route to each second local map data.

[0129] Corresponding to the above method embodiment, another embodiment of the present application provides a map simulation data packet refreshing device, such as Figure 3 As shown, the device comprises:

[0130] A generating unit 210 is configured to generate second route information according to first route information in a first map simulation data packet, wherein the first map simulation data packet further includes first local map data and actual output time of the first local map data, the first local map data is local map data of a first data type generated during the driving process of the vehicle according to the first route information, the first route information includes a first positioning trajectory and an actual positioning time of each first positioning coordinate included in the first positioning trajectory, the second route information includes a second positioning trajectory and a virtual positioning time of each second positioning coordinate included in the second positioning trajectory, and the second positioning trajectory includes the first positioning trajectory;

[0131] a capture unit 220, configured to capture at least one second local map data from the global map data of the second data type according to the second route information, and obtain a virtual output time of each second local map data, wherein the second local map data is the local map data included in the global map data of the second data type;

[0132] A time matching unit 230 is used to match the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate according to the time difference, and determine the second positioning coordinate corresponding to the second local map data, wherein the second positioning coordinate corresponding to the second local map data is the second positioning coordinate when the map data capture module outputs the second local map data;

[0133] a coordinate matching unit 240, configured to match the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance, determine the first positioning coordinates corresponding to the second local map data, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data;

[0134] The refresh unit 250 is used to obtain a second map simulation data packet after deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet.

[0135] In a possible implementation, when the first local map data includes a first desired route, the first route information also includes the first desired route, and the second route information also includes a second desired route;

[0136] The generating unit 210 includes:

[0137] An adding module, configured to add at least one target positioning coordinate before the first positioning track and at least one target positioning coordinate after the first positioning track along the first expected route;

[0138] A first forming module, configured to form the second positioning track by combining the added target positioning coordinates and each of the first positioning coordinates in the first positioning track;

[0139] A first determining module, configured to determine any positioning coordinate included in the second positioning trajectory as the second positioning coordinate;

[0140] A first setting module, used for determining the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and setting the virtual positioning time for other second positioning coordinates in sequence according to a positioning cycle;

[0141] A generating module is used to generate the second expected route according to the road mark of the road to which each second positioning coordinate belongs.

[0142] In a possible implementation, when the first local map data does not include the first desired route, the generating unit 210 includes:

[0143] A second forming module, configured to form the second positioning trajectory from each of the first positioning coordinates in the first positioning trajectory;

[0144] A second determining module, configured to determine the first positioning coordinates in the second positioning trajectory as the second positioning coordinates;

[0145] The second setting module is used to determine the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and set the virtual positioning time for other second positioning coordinates in sequence according to the positioning cycle.

[0146] In a possible implementation, the grabbing unit 220 includes:

[0147] a capture module, configured to capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type using the map data capture module according to the second route information and at least one preset positioning coordinate, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is one of the second positioning coordinates in the second positioning trajectory;

[0148] The third determination module is used to determine the virtual positioning time of the preset positioning coordinates as the virtual output time of the second local map data corresponding to the preset positioning coordinates, or to determine the sum of the virtual positioning time of the preset positioning coordinates and a preset duration as the virtual output time of the second local map data corresponding to the preset positioning coordinates.

[0149] In a possible implementation manner, the device further includes:

[0150] a search unit, configured to search in each of the second local map data for a road identifier of a road to which each of the second positioning coordinates contained therein belongs, after the second local map data corresponding to each of the preset positioning coordinates is captured and outputted from the global map data of the second data type by using the map data capture module when the first local map data does not include the first expected route;

[0151] A determination unit, configured to determine a second desired route according to the found road sign;

[0152] An adding unit is used to add the second expected route to each of the second local map data.

[0153] In a possible implementation, the time matching unit 230 includes:

[0154] A first calculation module, configured to respectively calculate the time difference between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate;

[0155] The fourth determining module is configured to determine the second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinates corresponding to the second local map data.

[0156] In a possible implementation, the coordinate matching unit 240 includes:

[0157] A second calculation module, used for respectively calculating the coordinate distance between the second positioning coordinates corresponding to the second local map data and each of the first positioning coordinates;

[0158] The fifth determining module is used to determine the first positioning coordinates with the smallest coordinate distance as the first positioning coordinates corresponding to the second local map data.

[0159] The device for refreshing a map simulation data packet provided in the embodiment of the present application can first generate second route information according to the first route information in the first map simulation data packet, and capture at least one second local map data from the global map data of the second data type according to the second route information, and obtain the virtual output time of each second local map data, and then obtain the first positioning coordinates corresponding to the second local map data through time matching and coordinate matching in sequence, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data, and finally refresh the first map simulation data packet by deleting the first local map data and its actual output time in the first map simulation data packet and adding the second local map data and its actual output time in the first map simulation data packet, so that the map simulation data packet can be automatically refreshed without using a real vehicle, thereby reducing the workload and cost and improving the efficiency of obtaining map simulation data packets of multiple data types. In addition, since the embodiment of the present application only refreshes local map data and does not modify other content, when the simulation test using one of the map simulation data packets is normal and the simulation test using another map simulation data packet is abnormal, it can be determined that there is a problem with the map data with the simulation abnormality, and when two or more map simulation data packets all have simulation test abnormalities, it can be determined that there is a problem with the simulation test module.

[0160] Based on the above method embodiments, another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method described in any of the above embodiments is implemented.

[0161] Based on the above method embodiment, another embodiment of the present application provides an electronic device or a computer device, including:

[0162] one or more processors;

[0163] The processor is coupled to a storage device, and the storage device is used to store one or more programs;

[0164] When the one or more programs are executed by the one or more processors, the electronic device or computer device implements the method described in any of the above embodiments.

[0165] Based on the above method embodiments, another embodiment of the present application provides a vehicle, which includes the device as described in any of the above embodiments, or includes the electronic device as described above.

[0166] When a vehicle includes the device as described in any of the above embodiments, or includes the electronic device as described above, it does not mean that a real vehicle test is adopted, but only the vehicle is used as a static terminal to implement the above solution.

[0167] The vehicle includes a CPU (Central Processing Unit) and a T-Box (TelematicsBox). The T-Box can communicate with the server as a gateway; the CPU can execute the above-mentioned method for refreshing the map simulation data packet, and report the map simulation data packet to the server through the T-Box, and the server stores the map simulation data packet and creates a simulation scene set for simulation testing.

[0168] Based on the above embodiments, another embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed on a computer or a processor, the computer or the processor executes the method described in any of the above embodiments.

[0169] The above device embodiment corresponds to the method embodiment and has the same technical effect as the method embodiment. For specific description, please refer to the method embodiment. The device embodiment is obtained based on the method embodiment. For specific description, please refer to the method embodiment part, which will not be repeated here. It can be understood by those skilled in the art that the accompanying drawings are only schematic diagrams of one embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application.

[0170] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for refreshing a map simulation data packet, characterized in that: The method comprises: Generate second route information according to first route information in a first map simulation data packet, wherein the first map simulation data packet also includes first local map data and actual output time of the first local map data, the first local map data is local map data of a first data type generated during the vehicle's driving according to the first route information, the first route information includes a first positioning track and an actual positioning time of each first positioning coordinate included in the first positioning track, the second route information includes a second positioning track and a virtual positioning time of each second positioning coordinate included in the second positioning track, and the second positioning track includes the first positioning track; capturing at least one second local map data from the global map data of the second data type according to the second route information, and obtaining a virtual output time of each second local map data, wherein the second local map data is local map data included in the global map data of the second data type; According to the time difference, the virtual output time of the second local map data is matched with the virtual positioning time of each second positioning coordinate to determine the second positioning coordinate corresponding to the second local map data, wherein the second positioning coordinate corresponding to the second local map data is the second positioning coordinate when the second local map data is output; matching the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance, determining the first positioning coordinates corresponding to the second local map data, and determining the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data; After deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet, a second map simulation data packet is obtained.

2. The method according to claim 1, characterized in that When the first local map data includes a first desired route, the first route information also includes the first desired route, and the second route information also includes a second desired route; The step of generating the second route information according to the first route information in the first map simulation data packet includes: Along the first expected route, at least one target positioning coordinate is added before the first positioning trajectory and at least one target positioning coordinate is added after the first positioning trajectory, and the added target positioning coordinate and each of the first positioning coordinates in the first positioning trajectory constitute a second positioning trajectory, and any positioning coordinate included in the second positioning trajectory is determined as the second positioning coordinate; Determine the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and set the virtual positioning time for other second positioning coordinates in sequence according to the positioning cycle; The second expected route is generated according to a road sign of the road to which each second positioning coordinate belongs.

3. The method according to claim 1, characterized in that: When the first local map data does not include the first expected route, generating the second route information according to the first route information in the first map simulation data packet includes: The first positioning coordinates in the first positioning trajectory constitute the second positioning trajectory, and the first positioning coordinates in the second positioning trajectory are determined as the second positioning coordinates; The current system time is determined as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and the virtual positioning time is set for other second positioning coordinates in sequence according to the positioning cycle.

4. The method according to claim 1, characterized in that: The capturing of at least one second local map data from the global map data of the second data type according to the second route information and obtaining the virtual output time of each second local map data comprises: Using a map data capture module, based on the second route information and at least one preset positioning coordinate, capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is one of the second positioning coordinates in the second positioning trajectory; The virtual positioning time of the preset positioning coordinates is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates, or the sum of the virtual positioning time of the preset positioning coordinates and a preset duration is determined as the virtual output time of the second local map data corresponding to the preset positioning coordinates.

5. The method according to claim 4, characterized in that When the first local map data does not include the first expected route, after using the map data capture module to capture and output the second local map data corresponding to each of the preset positioning coordinates from the global map data of the second data type according to the second route information and at least one preset positioning coordinate, the method further includes: Searching each of the second local map data for a road identifier of the road to which each of the second positioning coordinates contained therein belongs; A second expected route is determined according to the found road signs, and the second expected route is added to each of the second local map data.

6. The method according to claim 1, characterized in that The matching, according to the time difference, of the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate to determine the second positioning coordinate corresponding to the second local map data includes: respectively calculating time differences between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate; The second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest are determined as the second positioning coordinates corresponding to the second local map data.

7. The method according to any one of claims 1 to 6, characterized in that The matching, according to the coordinate distance, the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates to determine the first positioning coordinates corresponding to the second local map data includes: respectively calculating the coordinate distances between the second positioning coordinates corresponding to the second local map data and each of the first positioning coordinates; The first positioning coordinate with the smallest coordinate distance is determined as the first positioning coordinate corresponding to the second local map data.

8. A device for refreshing a map simulation data packet, characterized in that: The device comprises: a generating unit, configured to generate second route information according to first route information in a first map simulation data packet, wherein the first map simulation data packet further includes first local map data and actual output time of the first local map data, the first local map data is local map data of a first data type generated during the driving process of the vehicle according to the first route information, the first route information includes a first positioning trajectory and an actual positioning time of each first positioning coordinate included in the first positioning trajectory, the second route information includes a second positioning trajectory and a virtual positioning time of each second positioning coordinate included in the second positioning trajectory, and the second positioning trajectory includes the first positioning trajectory; a capture unit, configured to capture at least one second local map data from the global map data of the second data type according to the second route information, and obtain a virtual output time of each second local map data, wherein the second local map data is the local map data included in the global map data of the second data type; a time matching unit, configured to match the virtual output time of the second local map data with the virtual positioning time of each second positioning coordinate according to a time difference, and determine the second positioning coordinate corresponding to the second local map data, wherein the second positioning coordinate corresponding to the second local map data is the second positioning coordinate when the map data capture module outputs the second local map data; a coordinate matching unit, configured to match the second positioning coordinates corresponding to the second local map data with each of the first positioning coordinates according to the coordinate distance, determine the first positioning coordinates corresponding to the second local map data, and determine the actual positioning time of the first positioning coordinates corresponding to the second local map data as the actual output time of the second local map data; A refresh unit is used to obtain a second map simulation data packet after deleting the first local map data and the actual output time of the first local map data in the first map simulation data packet and adding the second local map data and the actual output time of the second local map data in the first map simulation data packet.

9. The device according to claim 8, characterized in that When the first local map data includes a first desired route, the first route information also includes the first desired route, and the second route information also includes a second desired route; The generating unit comprises: An adding module, configured to add at least one target positioning coordinate before the first positioning track and at least one target positioning coordinate after the first positioning track along the first expected route; A first forming module, configured to form the second positioning track by combining the added target positioning coordinates and each of the first positioning coordinates in the first positioning track; A first determining module, configured to determine any positioning coordinate included in the second positioning trajectory as the second positioning coordinate; A first setting module, used for determining the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and setting the virtual positioning time for other second positioning coordinates in sequence according to a positioning cycle; A generating module is used to generate the second expected route according to the road mark of the road to which each second positioning coordinate belongs.

10. The device according to claim 8, characterized in that When the first local map data does not include a first desired route, the generating unit comprises: A second forming module, configured to form the second positioning trajectory from each of the first positioning coordinates in the first positioning trajectory; A second determining module, configured to determine the first positioning coordinates in the second positioning trajectory as the second positioning coordinates; The second setting module is used to determine the current system time as the virtual positioning time of the first second positioning coordinate in the second positioning trajectory, and set the virtual positioning time for other second positioning coordinates in sequence according to the positioning cycle.

11. The device according to claim 8, characterized in that The grabbing unit comprises: a capture module, configured to capture and output the second local map data corresponding to each preset positioning coordinate from the global map data of the second data type using the map data capture module according to the second route information and at least one preset positioning coordinate, wherein the map data capture module starts to capture the corresponding second local map data from the preset positioning coordinate, and the preset positioning coordinate is one of the second positioning coordinates in the second positioning trajectory; The third determination module is used to determine the virtual positioning time of the preset positioning coordinates as the virtual output time of the second local map data corresponding to the preset positioning coordinates, or to determine the sum of the virtual positioning time of the preset positioning coordinates and a preset duration as the virtual output time of the second local map data corresponding to the preset positioning coordinates.

12. The device according to claim 11, characterized in that The device also includes: a search unit, configured to search in each of the second local map data for a road identifier of a road to which each of the second positioning coordinates contained therein belongs, after the second local map data corresponding to each of the preset positioning coordinates is captured and outputted from the global map data of the second data type by using the map data capture module when the first local map data does not include the first expected route; A determination unit, configured to determine a second desired route according to the found road sign; An adding unit is used to add the second expected route to each of the second local map data.

13. The device according to claim 8, characterized in that The time matching unit comprises: A first calculation module, configured to respectively calculate the time difference between the virtual output time of the second local map data and the virtual positioning time of each second positioning coordinate; The fourth determining module is configured to determine the second positioning coordinates whose virtual positioning time does not exceed the virtual output time of the second local map data and whose time difference is the smallest as the second positioning coordinates corresponding to the second local map data.

14. The device according to any one of claims 8 to 13, characterized in that The coordinate matching unit comprises: A second calculation module, used for respectively calculating the coordinate distance between the second positioning coordinates corresponding to the second local map data and each of the first positioning coordinates; The fifth determining module is used to determine the first positioning coordinates with the smallest coordinate distance as the first positioning coordinates corresponding to the second local map data.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

16. An electronic device, characterized in that: The electronic device comprises: one or more processors; The processor is coupled to a storage device, and the storage device is used to store one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the method as described in any one of claims 1 to 7.

17. A vehicle, characterized in that: The vehicle comprises the apparatus according to any one of claims 8 to 14, or comprises the electronic device according to claim 16.