WO2024078334A1 - Map data processing method and apparatus, and vehicle and readable storage medium - Google Patents

Map data processing method and apparatus, and vehicle and readable storage medium Download PDF

Info

Publication number
WO2024078334A1
WO2024078334A1 PCT/CN2023/121849 CN2023121849W WO2024078334A1 WO 2024078334 A1 WO2024078334 A1 WO 2024078334A1 CN 2023121849 W CN2023121849 W CN 2023121849W WO 2024078334 A1 WO2024078334 A1 WO 2024078334A1
Authority
WO
WIPO (PCT)
Prior art keywords
map data
data
path unit
path
navigation
Prior art date
Application number
PCT/CN2023/121849
Other languages
French (fr)
Chinese (zh)
Inventor
李旭
徐伟萍
Original Assignee
长城汽车股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 长城汽车股份有限公司 filed Critical 长城汽车股份有限公司
Publication of WO2024078334A1 publication Critical patent/WO2024078334A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Definitions

  • the present application belongs to the field of data processing technology, and more specifically, to a method, device, vehicle and readable storage medium for processing map data.
  • ADAS Advanced Driver Assistance System
  • the core of ADAS is to realize the perception and recognition of the road environment. For example, it can rely on infrared cameras, binocular cameras, monocular cameras, millimeter wave radars, laser radars, ultrasonic radars and other sensors installed on the vehicle to perceive and recognize the road environment.
  • vehicles can obtain map data from third-party map providers through navigation software. For example, when a vehicle is navigating, it can generate a navigation path based on the vehicle's real-time location, waypoints, and destination information, and request map data for the navigation path from a third-party map provider.
  • the purpose of the present application is to provide a method, device, vehicle and readable storage medium for processing map data to solve the problem in the prior art that vehicles cannot store a large amount of map data in long-distance navigation scenarios due to limited memory space.
  • a method for processing map data comprising:
  • Acquire multiple map data corresponding to the navigation path divide the navigation path into multiple continuous path units according to the set distance, and each path unit corresponds to one map data;
  • a plurality of map data are updated into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
  • the navigation path is a full navigation path from a navigation starting point to a navigation destination;
  • updating the plurality of map data into the pre-constructed path unit data matrix includes:
  • the plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
  • the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
  • updating the plurality of map data into the pre-constructed path unit data matrix includes:
  • determining the first data bit of this update includes:
  • the first data bit of this update is determined in the path unit data matrix.
  • the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
  • each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
  • Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
  • the method further includes:
  • the fuel consumption and/or electric consumption of the current navigation route is calculated based on the route unit vehicle speed data matrix and the route unit slope data matrix.
  • a map data processing device comprising:
  • a map data acquisition module is used to acquire a plurality of map data corresponding to a navigation path, and divide the navigation path into a plurality of continuous path units according to a set distance, each path unit corresponding to a piece of map data;
  • the data matrix update module is used to update multiple map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
  • the navigation path is a full navigation path from a navigation starting point to a navigation destination;
  • the data matrix update module includes:
  • the plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
  • the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
  • the data matrix update module includes:
  • a first data bit determination subunit used to determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
  • the data updating subunit is used to update the plurality of map data starting from the first data bit to the pre-constructed path unit data matrix according to the set relative position correspondence relationship; wherein the relative position correspondence relationship includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
  • the first data bit determination subunit includes:
  • the first data bit of this update is determined in the path unit data matrix.
  • the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
  • each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
  • Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
  • the map data processing device further includes:
  • the energy consumption calculation unit is used to calculate the fuel consumption and/or power consumption of the current navigation route based on the vehicle speed data matrix of the route unit and the slope data matrix of the route unit.
  • a vehicle in a third aspect of the present application, includes a control terminal, the control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned map data processing method when executing the computer program.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for processing map data are implemented.
  • the map data processing method provided in the present application can enable the path unit data matrix to store map data of a longer navigation scenario by merging data in a limited memory space.
  • FIG1 is a schematic diagram of a flowchart of a method for processing map data provided in one embodiment of the present application
  • FIG2 is a structural block diagram of a map data processing device provided in one embodiment of the present application.
  • FIG3 is a schematic block diagram of a control terminal of a vehicle provided in accordance with an embodiment of the present application.
  • Figure 1 is a schematic flow chart of a method for processing map data provided in one embodiment of the present application.
  • the method for processing map data includes S101 and S102.
  • S101 Acquire a plurality of map data corresponding to a navigation path, divide the navigation path into a plurality of continuous path units according to a set distance, and each path unit corresponds to a piece of map data.
  • the control terminal of the vehicle when the vehicle is navigating, the control terminal of the vehicle will send the vehicle position and navigation destination to the third-party data terminal.
  • the third-party data terminal generates a navigation path based on the vehicle position and navigation destination, and sends the map data of each path unit to the vehicle at a preset time interval.
  • Each map data may include the average vehicle speed in the path unit corresponding to the map data and the average ground slope of the path unit.
  • the third-party data terminal may be provided by a third-party map provider.
  • control terminal divides the current navigation path into a plurality of continuous path units, and the offset of each path unit can be determined according to the distance from the navigation starting point.
  • the set distance in step S101 may be 128 meters, 256 meters, etc.
  • the offset of the path unit whose distance from the vehicle navigation starting point is 0 to 128 meters is 1, and the offset of the path unit whose distance from the vehicle navigation starting point is 129 to 256 meters is 2.
  • the offsets of all path units can be obtained.
  • S102 updating a plurality of map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
  • map vendors usually divide the road in front of the vehicle on the map into multiple small sections based on the set distance. Each small section can be called a path unit, and each path unit can correspond to a piece of map data.
  • map vendor divides the road with a distance accuracy of 128 meters, for navigation paths of more than 500 kilometers, the vehicle will obtain map data corresponding to more than 3,900 path units; for navigation paths of more than 1,000 kilometers, the vehicle will obtain map data corresponding to up to more than 7,800 path units.
  • one or more rows in the path unit data matrix can be set to store merged data, and the merged data is obtained by merging the map data of at least two adjacent path units, thereby solving the problem of limited memory space, which makes it impossible to store a large amount of map data in long-distance navigation scenarios.
  • the path unit data matrix obtained in step S102 can be used for path planning. That is, path planning can be performed according to the path unit data matrix in step S102.
  • path planning can be performed according to the path unit data matrix in step S102.
  • the control terminal of the vehicle can plan a path according to the data in the path unit data matrix and display it to the user through a display screen.
  • the user can obtain various information of the navigation path through the displayed path planning, including but not limited to the length information of the navigation path and the congestion information for each path unit (whether a path unit is congested can be determined by the speed of the vehicles located in each path unit).
  • the navigation path is a full navigation path from a navigation starting point to a navigation destination;
  • the plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
  • the control terminal when navigation is needed, the user inputs the navigation destination, the control terminal receives the navigation destination, automatically obtains the vehicle position as the navigation departure point, and generates a first data request, which carries the navigation departure point and the navigation destination; the control terminal sends the first data request to the third-party data terminal, and the third-party data terminal generates a full navigation path from the navigation departure point to the navigation destination based on the first data request.
  • the third-party data terminal can send the map data of each path unit to the vehicle in sequence at a preset time interval.
  • the third-party data terminal can also only send the map data of the path unit with data changes.
  • Data change means that the map data of the current path unit has changed relative to the map data of the previous path unit; in this case, the path unit for which the third-party data terminal has not sent map data can refer to the map data of its previous path unit, and the two are the same.
  • the control terminal can store the map data of each path unit in the path unit data matrix according to the set fixed position relationship.
  • the fixed position relationship can be: the position of the 1st row and the 1st column in the path unit data matrix is the fixed position of the path unit with an offset of 1, the position of the 1st row and the 2nd column is the fixed position of the path unit with an offset of 2, and so on; that is, the order from left to right and from top to bottom in the path unit data matrix can be fixed in the order of the offset of the path unit from small to large.
  • the path unit data matrix is a data matrix with 3 rows and 562 columns.
  • the map data is stored in the path unit data matrix according to the fixed position correspondence relationship, and the map data of the path unit with an offset of 1 is stored in the 1st row and 1st column of the path unit data matrix; the map data of the path unit with an offset of 2 is stored in the 1st row and 2nd column of the path unit data matrix; the map data of the path unit with an offset of 600 is stored in the 2nd row and 38th column of the path unit data matrix (the 2nd row is the case of a non-merged row); if the 2nd row is a merged row (two map data merged to correspond to one matrix position point), the map data of the path unit with an offset of 600 is stored in the 2nd row and 19th column of the path unit data matrix.
  • the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
  • S102 includes S201 and S202.
  • S201 Determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data.
  • the third-party data terminal After the third-party data terminal sends a round of map data, it starts to resend the map data from the real-time position of the vehicle. If the vehicle control terminal detects that the offset of the current path unit is less than the offset of the previous path unit, it determines that a new round of map data has been received, and starts to determine the first data bit of this round of update based on the position relationship between the vehicle's real-time position and the path unit corresponding to the first map data among the multiple map data.
  • the first map data refers to the map data corresponding to the first path unit in the map data of the navigation path from the real-time position of the vehicle to the navigation destination after leaving the navigation departure point.
  • the control terminal can first obtain the path unit to which the real-time position of the vehicle belongs and the path unit to which the first map data belongs, and determine the first data bit of this update based on the offset relationship between the two path units.
  • the specific implementation process of S201 includes the following steps:
  • the first data bit of this update is determined in the path unit data matrix.
  • the control terminal determines the offset of the path unit of the real-time position of the vehicle based on the distance of the real-time position of the vehicle relative to the navigation starting point to obtain a first offset. Then, the offset of the path unit corresponding to the first map data is used as the second offset, and the first offset is subtracted from the second offset to obtain an offset difference. Finally, the offset difference is mapped to the path unit data matrix to obtain a first data bit.
  • the offset difference is 2, so the position of the 1st row and 2nd column in the path unit data matrix is the first data bit of this update.
  • the offset difference is 5, so the position of the 1st row and 5th column in the path unit data matrix is the first data bit of this update.
  • the offset of the path unit can be ordered from small to large corresponding to the order from left to right and from top to bottom in the path unit data matrix, and the latest map data of each path unit can be used to replace the original map data at the corresponding position in the path unit data matrix to achieve the update of the map data.
  • the position of the 1st row and 2nd column in the path unit data matrix is the first data bit of this update. If the offset of a path unit is 15, the map data of the path unit is stored in the position of the 1st row and 5th column in the path unit data matrix.
  • the number of data merged of row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged of row elements with smaller row numbers.
  • the number of data merged refers to the number of merged map data. For example, row elements of row k are merged from K map data, and row elements of row i are merged from I map data. In this implementation, when row elements with row numbers k and i are compared, if k>i, then K ⁇ I.
  • the path unit data matrix includes three rows of elements, then in the first row of the path unit data matrix, the value of each row element corresponds to a value of map data;
  • the second row of the path unit data matrix is a data merging row, and the value of each row element is the average value of the map data of the adjacent N path units;
  • the third row of the path unit data matrix is a data merging row, and the value of each row element is the average value of the map data of M adjacent path units; wherein M>N.
  • M may be 4 and N may be 2.
  • the first K rows of the path unit data matrix may not be merged; instead, data merging is performed starting from row K+1, and the number of data merged for each row element in the latter row is greater than the number of data merged for the row elements in the previous row.
  • the accuracy of the map data in the rows that are not merged is good, and the amount of map data contained in the rows that are merged is large, thereby ensuring both the accuracy of the map data and the ability to store all the map data of a longer navigation path in a limited memory space.
  • each map data includes vehicle speed information on its corresponding path unit; accordingly, the path unit data matrix includes the path unit vehicle speed data matrix;
  • Each map data includes the slope information on the corresponding path unit; accordingly, the path unit data matrix includes the path unit slope data matrix.
  • the method provided in the present application further includes the following steps:
  • the fuel consumption and/or electric consumption of the current navigation route is calculated based on the route unit vehicle speed data matrix and the route unit slope data matrix.
  • control terminal may pre-store the correspondence between vehicle speed information, slope information and energy consumption data, wherein the energy consumption data includes fuel consumption and electricity consumption.
  • the control terminal determines the fuel consumption and/or electricity consumption of the current navigation path corresponding to the path unit vehicle speed data matrix and the path unit slope data matrix based on the correspondence between the vehicle body information, slope information and energy consumption data.
  • the size of the serial number of each step in the above-mentioned implementation mode does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic.
  • the size of the serial number of each step should not constitute any limitation on the implementation process of the various implementation modes of this application.
  • FIG2 is a block diagram of a map data processing device provided in an embodiment of the present application.
  • the map data processing device 100 includes a map data acquisition module 110 and a data matrix update module 120.
  • the map data acquisition module 110 is used to acquire a plurality of map data corresponding to the navigation path, and divide the navigation path into a plurality of continuous path units according to a set distance, each path unit corresponding to a piece of map data;
  • the data matrix update module 120 is used to update multiple map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merge row, and the value of each row element in the data merge row is obtained by merging the map data of at least two adjacent path units.
  • the navigation path is a full navigation path from a navigation starting point to a navigation destination;
  • the data matrix updating module 120 is used to:
  • the plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
  • the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
  • the data matrix updating module 120 includes a first data bit determining subunit and a data updating subunit.
  • the first data bit determination subunit is used to determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
  • the data updating subunit is used to update multiple map data starting from the first data bit to the pre-constructed path unit data matrix according to the set relative position correspondence; wherein the relative position correspondence includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
  • the first data bit determination subunit is configured to perform the following steps:
  • the first data bit of this update is determined in the path unit data matrix.
  • the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
  • each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
  • Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
  • the map data processing device 100 further includes an energy consumption calculation unit.
  • the energy consumption calculation unit is used to calculate the fuel consumption and/or power consumption of the current navigation route based on the route unit vehicle speed data matrix and the route unit slope data matrix.
  • the present application also provides a vehicle.
  • the vehicle includes a control terminal, and a schematic block diagram of the control terminal is shown in FIG3.
  • the terminal 300 may include one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304.
  • the processors 301, input devices 302, output devices 303, and memories 304 communicate with each other via a communication bus 305.
  • the memory 304 is used to store computer programs, and the computer programs include program instructions.
  • the processor 301 is used to execute the program instructions stored in the memory 304.
  • the processor 301 is configured to be able to call program instructions to execute the functions of each module in the above-mentioned device implementation, such as the functions of the modules 110 and 120 shown in FIG2.
  • the processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSP digital signal processors
  • ASIC application-specific integrated circuits
  • FPGA field-programmable gate arrays
  • a general-purpose processor may be a microprocessor or any other conventional processor, etc.
  • the input device 302 may include a touch panel, a fingerprint sensor (used to collect fingerprint information of the user, including but not limited to the shape and direction information of the fingerprint), a microphone, etc.
  • the output device 303 may include a display (LCD, etc.), a speaker, etc.
  • the memory 304 may include a read-only memory and a random access memory.
  • the memory 304 can provide instructions and data to the processor 301.
  • a portion of the memory 304 may be a non-volatile random access memory, which may store information of the device type.
  • the processor 301, input device 302, and output device 303 described in this embodiment can execute the steps provided by the various embodiments of the map data processing method provided in this application, and can also implement the functions of the various modules provided by the various embodiments of the map data processing device provided in this application, which will not be repeated here.
  • the present application also provides a computer-readable storage medium, which stores a computer program, which includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned various method implementations are implemented. These processes can also be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in the above-mentioned computer-readable storage medium. When the computer program is executed by the processor, the steps provided by the above-mentioned various method implementations can be implemented.
  • the above-mentioned computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction; for example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
  • the computer-readable storage medium may be the internal storage unit of the map data processing device and the control terminal of the vehicle provided in the aforementioned embodiment, such as the hard disk or memory of the control terminal.
  • the computer-readable storage medium may also be an external storage device of the control terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the control terminal.
  • the computer-readable storage medium may also include both the internal storage unit of the control terminal and the external storage device.
  • the computer-readable storage medium can store computer programs and other programs and data required by the control terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
  • the provided device, control terminal and method can be implemented in other ways.
  • the device implementation described above is only schematic; the division of modules is only a logical function division, and there may be other division methods in actual implementation; for example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.
  • modules described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units. That is, the modules described above as separate components may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of providing various solutions in the embodiments of the present application.
  • the functional modules provided in the embodiments of the present application may be integrated into one processing unit, or each processing unit may exist physically separately, or two or more processing units (processors) may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

Provided are a map data processing method and apparatus, and a vehicle and a readable storage medium. The method comprises: acquiring a plurality of pieces of map data corresponding to a navigation path, and dividing the navigation path into a plurality of consecutive path units according to a set distance, wherein each path unit corresponds to one piece of map data (S101); and updating the plurality of pieces of map data to a pre-constructed path unit data matrix, wherein the path unit data matrix comprises at least one data merging row, and the value of each row element in the data merging row is obtained by means of merging map data of at least two adjacent path units (S102).

Description

地图数据的处理方法、装置、车辆及可读存储介质Map data processing method, device, vehicle and readable storage medium
本申请要求于2022年10月11日提交的中国专利申请No.CN 202211241132.4的优先权。在先申请的公开内容通过整体引用并入本申请。This application claims priority to Chinese Patent Application No. CN 202211241132.4 filed on October 11, 2022. The disclosure of the prior application is incorporated into this application by reference in its entirety.
技术领域Technical Field
本申请属于数据处理技术领域,更具体地说,是涉及一种地图数据的处理方法、装置、车辆及可读存储介质。The present application belongs to the field of data processing technology, and more specifically, to a method, device, vehicle and readable storage medium for processing map data.
背景技术Background technique
目前,高级驾驶辅助系统(Advance Driver Assistance System,简称ADAS)已经在多数车型中广泛应用。ADAS的核心是实现对道路环境的感知识别,例如可以依靠车辆上安装的红外摄像头、双目摄像头、单目摄像头、毫米波雷达、激光雷达、超声波雷达等传感器进行道路环境的感知识别。At present, Advanced Driver Assistance System (ADAS) has been widely used in most car models. The core of ADAS is to realize the perception and recognition of the road environment. For example, it can rely on infrared cameras, binocular cameras, monocular cameras, millimeter wave radars, laser radars, ultrasonic radars and other sensors installed on the vehicle to perceive and recognize the road environment.
ADAS发展的最终形态是自动驾驶。但是,由于自动驾驶的应用场景非常广,在不同的天气、道路环境中传感器的感知范围、距离、准确率等都有一定的局限性,所以要实现自动驾驶仅仅依靠前述的这些传感器是远远不够的。这时就需要用到地图数据,来作为自动驾驶感知道路环境信息的可靠依据。The ultimate form of ADAS development is autonomous driving. However, due to the wide range of application scenarios of autonomous driving, the sensor's perception range, distance, accuracy, etc. have certain limitations in different weather and road environments. Therefore, it is far from enough to rely solely on the aforementioned sensors to achieve autonomous driving. At this time, map data is needed as a reliable basis for autonomous driving to perceive road environment information.
现有技术中,车辆可以通过导航软件从第三方地图商来获得地图数据。例如在车辆进行导航行驶时,可以结合车辆自身的实时位置、途经点和目的地等信息生成导航路径,并向第三方地图商请求该导航路径的地图数据。In the prior art, vehicles can obtain map data from third-party map providers through navigation software. For example, when a vehicle is navigating, it can generate a navigation path based on the vehicle's real-time location, waypoints, and destination information, and request map data for the navigation path from a third-party map provider.
然而,在长距离导航场景下,车辆向第三方地图商请求获得的地图数据的数据量很大;再者,车辆行驶过程中,这些地图数据还需要进行持续更新,这就进一步增加了需要被处理的数据量;而车辆的内存空间是有限的,如何利用车辆有限的内存空间对长距离导航场景下大量的地图数据进行高效处理,是一个亟需解决的问题。However, in long-distance navigation scenarios, the amount of map data that vehicles request from third-party map vendors is very large. Furthermore, these map data need to be continuously updated while the vehicle is driving, which further increases the amount of data that needs to be processed. However, the vehicle's memory space is limited. How to use the vehicle's limited memory space to efficiently process large amounts of map data in long-distance navigation scenarios is an urgent problem that needs to be solved.
技术问题technical problem
本申请的目的在于提供一种地图数据的处理方法、装置、车辆及可读存储介质,以解决现有技术中车辆由于内存空间有限,导致长距离导航场景下无法存储大量的地图数据的问题。The purpose of the present application is to provide a method, device, vehicle and readable storage medium for processing map data to solve the problem in the prior art that vehicles cannot store a large amount of map data in long-distance navigation scenarios due to limited memory space.
技术解决方案Technical Solutions
本申请的第一方面,提供了一种地图数据的处理方法,该方法包括:In a first aspect of the present application, a method for processing map data is provided, the method comprising:
获取导航路径对应的多个地图数据,根据设定距离将导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据;Acquire multiple map data corresponding to the navigation path, divide the navigation path into multiple continuous path units according to the set distance, and each path unit corresponds to one map data;
将多个地图数据更新至预先构建的路径单元数据矩阵中;其中,路径单元数据矩阵包括至少一个数据合并行,数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。A plurality of map data are updated into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
在一种可能的实施方式中,导航路径为从导航出发点至导航目的地的全程导航路径;In a possible implementation, the navigation path is a full navigation path from a navigation starting point to a navigation destination;
相应的,将多个地图数据更新至预先构建的路径单元数据矩阵中包括:Accordingly, updating the plurality of map data into the pre-constructed path unit data matrix includes:
将多个地图数据按照设定的固定位置对应关系更新至预先构建的路径单元数据矩阵中;其中,固定位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中的固定位置。The plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
在一种可能的实施方式中,导航路径为车辆离开导航出发点后从车辆实时位置至导航目的地的导航路径;In a possible implementation, the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
相应的,将多个地图数据更新至预先构建的路径单元数据矩阵中包括:Accordingly, updating the plurality of map data into the pre-constructed path unit data matrix includes:
根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位;Determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
将多个地图数据从第一数据位开始,按照设定的相对位置对应关系更新至预先构建的路径单元数据矩阵中;其中,相对位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中相对于第一数据位的位置关系。在一种可能的实施方式中,根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位包括:Starting from the first data bit, multiple map data are updated to the pre-constructed path unit data matrix according to the set relative position correspondence relationship; wherein the relative position correspondence relationship includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit. In a possible implementation, according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the multiple map data, determining the first data bit of this update includes:
获取车辆实时位置相对于导航出发点的第一偏移量;Obtaining a first offset of the vehicle's real-time position relative to the navigation starting point;
获取多个地图数据中第一个地图数据对应的路径单元相对于导航出发点的第二偏移量;Obtaining a second offset of a path unit corresponding to a first map data item among the plurality of map data items relative to the navigation starting point;
基于第二偏移量与第一偏移量的差,在路径单元数据矩阵中确定本次更新的第一数据位。Based on the difference between the second offset and the first offset, the first data bit of this update is determined in the path unit data matrix.
在一种可能的实施方式中,路径单元数据矩阵中行号大的行元素的数据合并个数大于等于行号小的行元素的数据合并个数。In a possible implementation manner, the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
在一种可能的实施方式中,每个地图数据包括其对应的路径单元上的车速信息,相应的,路径单元数据矩阵包括路径单元车速数据矩阵;In a possible implementation manner, each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
每个地图数据包括其对应的路径单元上的坡度信息,相应的,路径单元数据矩阵包括路径单元坡度数据矩阵。Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
在一种可能的实施方式中,在将多个地图数据更新至预先构建的路径单元数据矩阵中之后还包括:In a possible implementation manner, after updating the plurality of map data into the pre-constructed path unit data matrix, the method further includes:
基于路径单元车速数据矩阵以及路径单元坡度数据矩阵计算当前导航路径的油耗和/或电耗。The fuel consumption and/or electric consumption of the current navigation route is calculated based on the route unit vehicle speed data matrix and the route unit slope data matrix.
本申请的第二方面,提供了一种地图数据的处理装置,该处理装置包括:In a second aspect of the present application, a map data processing device is provided, the processing device comprising:
地图数据获取模块,用于获取导航路径对应的多个地图数据,根据设定距离将导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据;A map data acquisition module is used to acquire a plurality of map data corresponding to a navigation path, and divide the navigation path into a plurality of continuous path units according to a set distance, each path unit corresponding to a piece of map data;
数据矩阵更新模块,用于将多个地图数据更新至预先构建的路径单元数据矩阵中;其中,路径单元数据矩阵包括至少一个数据合并行,数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。The data matrix update module is used to update multiple map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
在一种可能的实施方式中,导航路径为从导航出发点至导航目的地的全程导航路径;In a possible implementation, the navigation path is a full navigation path from a navigation starting point to a navigation destination;
相应的,数据矩阵更新模块包括:Accordingly, the data matrix update module includes:
将多个地图数据按照设定的固定位置对应关系更新至预先构建的路径单元数据矩阵中;其中,固定位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中的固定位置。The plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
在一种可能的实施方式中,导航路径为车辆离开导航出发点后从车辆实时位置至导航目的地的导航路径;In a possible implementation, the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
相应的,数据矩阵更新模块包括:Accordingly, the data matrix update module includes:
第一数据位确定子单元,用于根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位;A first data bit determination subunit, used to determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
数据更新子单元,用于将多个地图数据从第一数据位开始,按照设定的相对位置对应关系更新至预先构建的路径单元数据矩阵中;其中,相对位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中相对于第一数据位的位置关系。The data updating subunit is used to update the plurality of map data starting from the first data bit to the pre-constructed path unit data matrix according to the set relative position correspondence relationship; wherein the relative position correspondence relationship includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
在一种可能的实施方式中,第一数据位确定子单元包括:In a possible implementation manner, the first data bit determination subunit includes:
获取车辆实时位置相对于导航出发点的第一偏移量;Obtaining a first offset of the vehicle's real-time position relative to the navigation starting point;
获取多个地图数据中第一个地图数据对应的路径单元相对于导航出发点的第二偏移量;Obtaining a second offset of a path unit corresponding to a first map data item among the plurality of map data items relative to the navigation starting point;
基于第二偏移量与第一偏移量的差,在路径单元数据矩阵中确定本次更新的第一数据位。Based on the difference between the second offset and the first offset, the first data bit of this update is determined in the path unit data matrix.
在一种可能的实施方式中,路径单元数据矩阵中行号大的行元素的数据合并个数大于等于行号小的行元素的数据合并个数。In a possible implementation manner, the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
在一种可能的实施方式中,每个地图数据包括其对应的路径单元上的车速信息,相应的,路径单元数据矩阵包括路径单元车速数据矩阵;In a possible implementation manner, each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
每个地图数据包括其对应的路径单元上的坡度信息,相应的,路径单元数据矩阵包括路径单元坡度数据矩阵。Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
在一种可能的实施方式中,地图数据的处理装置还包括:In a possible implementation manner, the map data processing device further includes:
能耗计算单元,用于基于路径单元车速数据矩阵以及路径单元坡度数据矩阵计算当前导航路径的油耗和/或电耗。The energy consumption calculation unit is used to calculate the fuel consumption and/or power consumption of the current navigation route based on the vehicle speed data matrix of the route unit and the slope data matrix of the route unit.
本申请的第三方面,提供了一种车辆,车辆包括控制终端,控制终端包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述的地图数据的处理方法的步骤。In a third aspect of the present application, a vehicle is provided, the vehicle includes a control terminal, the control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned map data processing method when executing the computer program.
本申请的第四方面,提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述的地图数据的处理方法的步骤。In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for processing map data are implemented.
有益效果Beneficial Effects
本申请提供的地图数据处理方法能够在有限的内存空间中通过数据合并使路径单元数据矩阵存储更长导航场景的地图数据。The map data processing method provided in the present application can enable the path unit data matrix to store map data of a longer navigation scenario by merging data in a limited memory space.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施方式中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图和实施方式。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings and embodiments can be obtained based on these drawings without creative work.
图1为本申请一实施方式提供的地图数据的处理方法的流程示意图;FIG1 is a schematic diagram of a flowchart of a method for processing map data provided in one embodiment of the present application;
图2为本申请一实施方式提供的地图数据的处理装置的结构框图;FIG2 is a structural block diagram of a map data processing device provided in one embodiment of the present application;
图3为本申请一实施方式提供的车辆的控制终端的示意框图。FIG3 is a schematic block diagram of a control terminal of a vehicle provided in accordance with an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请的实施方式。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施方式中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图通过具体实施方式来进行说明。In order to make the purpose, technical solutions and advantages of the present application clearer, a specific implementation method will be described below in conjunction with the accompanying drawings.
请参考图1,图1为本申请的一个实施方式提供的地图数据的处理方法的流程示意图。本实施方式中,地图数据的处理方法包括S101和S102。Please refer to Figure 1, which is a schematic flow chart of a method for processing map data provided in one embodiment of the present application. In this embodiment, the method for processing map data includes S101 and S102.
S101:获取导航路径对应的多个地图数据,根据设定距离将导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据。S101: Acquire a plurality of map data corresponding to a navigation path, divide the navigation path into a plurality of continuous path units according to a set distance, and each path unit corresponds to a piece of map data.
在本实施例中,车辆在进行导航时,车辆的控制终端会向第三方数据终端发送车辆位置和导航目的地。第三方数据终端基于车辆位置和导航目的地生成导航路径,并按照预设的时间间隔给车辆发送各个路径单元的地图数据。其中,每个地图数据可以包括与该地图数据对应的路径单元中的车辆平均速度和该路径单元的地面平均坡度。本实施方式中,第三方数据终端可以由第三方地图商提供。In this embodiment, when the vehicle is navigating, the control terminal of the vehicle will send the vehicle position and navigation destination to the third-party data terminal. The third-party data terminal generates a navigation path based on the vehicle position and navigation destination, and sends the map data of each path unit to the vehicle at a preset time interval. Each map data may include the average vehicle speed in the path unit corresponding to the map data and the average ground slope of the path unit. In this embodiment, the third-party data terminal may be provided by a third-party map provider.
本实施方式中,控制终端将当前导航路径划分为多个连续的路径单元,每个路径单元可以按照与导航出发点的距离大小确定其偏移量。In this implementation, the control terminal divides the current navigation path into a plurality of continuous path units, and the offset of each path unit can be determined according to the distance from the navigation starting point.
示例性的,步骤S101中的设定距离可以为128米、256米等。当设定距离取128米时,则与车辆导航出发点的距离为0~128米的路径单元的偏移量为1,与车辆导航出发点的距离为129~256米的路径单元的偏移量为2。依此类推,可以得到所有路径单元的偏移量。For example, the set distance in step S101 may be 128 meters, 256 meters, etc. When the set distance is 128 meters, the offset of the path unit whose distance from the vehicle navigation starting point is 0 to 128 meters is 1, and the offset of the path unit whose distance from the vehicle navigation starting point is 129 to 256 meters is 2. Similarly, the offsets of all path units can be obtained.
S102:将多个地图数据更新至预先构建的路径单元数据矩阵中;其中,路径单元数据矩阵包括至少一个数据合并行,数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。S102: updating a plurality of map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
在长距离导航场景下,车辆向第三方地图商请求获得的地图数据的数据量很大。例如,地图商通常会根据设定距离将地图上车辆前方的道路划分为多个小段,每个小段可称之为一个路径单元,每个路径单元可对应一份地图数据。当地图商以128米的距离精度进行道路划分时,对于500公里以上的导航路径,车辆会获取到3900多个路径单元对应的地图数据;对于1000公里以上的导航路径,车辆会获取到多达7800多个路径单元对应的地图数据。In long-distance navigation scenarios, the amount of map data requested by the vehicle from third-party map vendors is very large. For example, map vendors usually divide the road in front of the vehicle on the map into multiple small sections based on the set distance. Each small section can be called a path unit, and each path unit can correspond to a piece of map data. When the map vendor divides the road with a distance accuracy of 128 meters, for navigation paths of more than 500 kilometers, the vehicle will obtain map data corresponding to more than 3,900 path units; for navigation paths of more than 1,000 kilometers, the vehicle will obtain map data corresponding to up to more than 7,800 path units.
为了使有限的存储空间能够存储较长导航路径的地图数据,本实施方式中,可以基于实际情况,设置路径单元数据矩阵中的一行或者多行存储合并数据,该合并数据由至少两个相邻的路径单元的地图数据合并得到,从而解决内存空间有限,导致长距离导航场景下无法存储大量的地图数据的问题。In order to enable limited storage space to store map data of a longer navigation path, in this implementation, based on actual conditions, one or more rows in the path unit data matrix can be set to store merged data, and the merged data is obtained by merging the map data of at least two adjacent path units, thereby solving the problem of limited memory space, which makes it impossible to store a large amount of map data in long-distance navigation scenarios.
步骤S102中得到的路径单元数据矩阵可以被用来进行路径规划。即,可以根据步骤S102中的路径单元数据矩阵进行路径规划。例如,当用户驾驶车辆时,车辆的控制终端可以根据路径单元数据矩阵中的数据对路径进行规划,并通过显示屏向用户显示。用户通过被显示的路径规划,可以得知导航路径的多种信息,这些信息包括但不限于导航路径的长度信息和对于各个路径单元的拥堵信息(可通过位于各个路径单元的车辆的车速判断一个路径单元是否拥堵)。The path unit data matrix obtained in step S102 can be used for path planning. That is, path planning can be performed according to the path unit data matrix in step S102. For example, when a user is driving a vehicle, the control terminal of the vehicle can plan a path according to the data in the path unit data matrix and display it to the user through a display screen. The user can obtain various information of the navigation path through the displayed path planning, including but not limited to the length information of the navigation path and the congestion information for each path unit (whether a path unit is congested can be determined by the speed of the vehicles located in each path unit).
在一种可能的实施方式中,导航路径为从导航出发点至导航目的地的全程导航路径;In a possible implementation, the navigation path is a full navigation path from a navigation starting point to a navigation destination;
相应的,S102的具体实现流程包括以下步骤:Accordingly, the specific implementation process of S102 includes the following steps:
将多个地图数据按照设定的固定位置对应关系更新至预先构建的路径单元数据矩阵中;其中,固定位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中的固定位置。The plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
在本实施方式中,用户在需要导航时,输入导航目的地,控制终端接收到导航目的地,自动获取车辆位置作为导航出发地,生成第一次数据请求,第一次数据请求中携带导航出发地和导航目的地;控制终端将第一次数据请求发送至第三方数据终端,第三方数据终端基于第一次数据请求生成从导航出发点至导航目的地的全程导航路径。In this embodiment, when navigation is needed, the user inputs the navigation destination, the control terminal receives the navigation destination, automatically obtains the vehicle position as the navigation departure point, and generates a first data request, which carries the navigation departure point and the navigation destination; the control terminal sends the first data request to the third-party data terminal, and the third-party data terminal generates a full navigation path from the navigation departure point to the navigation destination based on the first data request.
第三方数据终端可以按照预设的时间间隔给车辆依次发送各个路径单元的地图数据。第三方数据终端也可以仅发送发生数据变化的路径单元的地图数据。数据变化是指当前路径单元的地图数据相对于前一个路径单元的地图数据发生变化;该情况下,第三方数据终端未发送地图数据的路径单元可参照其前一路径单元的地图数据,二者相同。The third-party data terminal can send the map data of each path unit to the vehicle in sequence at a preset time interval. The third-party data terminal can also only send the map data of the path unit with data changes. Data change means that the map data of the current path unit has changed relative to the map data of the previous path unit; in this case, the path unit for which the third-party data terminal has not sent map data can refer to the map data of its previous path unit, and the two are the same.
在接收到全程导航路径的各路径单元的地图数据时,控制终端可以按照设定的固定位置关系将各个路径单元的地图数据存储至路径单元数据矩阵中。示例性的,固定位置关系可以是:路径单元数据矩阵中的第1行第1列的位置为偏移量为1的路径单元的固定位置,第1行第2列的位置为偏移量为2的路径单元的固定位置,以此类推;即,可以按照路径单元的偏移量由小到大的顺序固定对应路径单元数据矩阵中由左至右、由上至下的顺序。需要说明的是,在数据合并行中,会出现两个或两个以上的路径单元对应同一个元素位置的情况;例如,当第二行中每个行元素的值由两个相邻的路径单元的地图数据合并得到时,偏移量为562的路径单元和偏移量为563的路径单元在路径单元数据矩阵的固定位置可以是第二行中的同一个位置(列)。When receiving the map data of each path unit of the entire navigation path, the control terminal can store the map data of each path unit in the path unit data matrix according to the set fixed position relationship. Exemplarily, the fixed position relationship can be: the position of the 1st row and the 1st column in the path unit data matrix is the fixed position of the path unit with an offset of 1, the position of the 1st row and the 2nd column is the fixed position of the path unit with an offset of 2, and so on; that is, the order from left to right and from top to bottom in the path unit data matrix can be fixed in the order of the offset of the path unit from small to large. It should be noted that in the data merge row, there will be a situation where two or more path units correspond to the same element position; for example, when the value of each row element in the second row is obtained by merging the map data of two adjacent path units, the fixed position of the path unit with an offset of 562 and the path unit with an offset of 563 in the path unit data matrix can be the same position (column) in the second row.
示例性的,假设路径单元数据矩阵为3行、562列的数据矩阵。在获得全程导航路径对应的地图数据时,按照固定位置对应关系向路径单元数据矩阵存储地图数据,则偏移量为1的路径单元的地图数据存储至路径单元数据矩阵中第1行第1列;偏移量为2的路径单元的地图数据存储至路径单元数据矩阵中第1行第2列;偏移量为600的路径单元的地图数据存储至路径单元数据矩阵中第2行第38列(第2行为非合并行的情况);若第2行为合并行(2个地图数据合并对应一个矩阵位置点),则偏移量为600的路径单元的地图数据存储至路径单元数据矩阵中第2行第19列。Exemplarily, it is assumed that the path unit data matrix is a data matrix with 3 rows and 562 columns. When the map data corresponding to the entire navigation path is obtained, the map data is stored in the path unit data matrix according to the fixed position correspondence relationship, and the map data of the path unit with an offset of 1 is stored in the 1st row and 1st column of the path unit data matrix; the map data of the path unit with an offset of 2 is stored in the 1st row and 2nd column of the path unit data matrix; the map data of the path unit with an offset of 600 is stored in the 2nd row and 38th column of the path unit data matrix (the 2nd row is the case of a non-merged row); if the 2nd row is a merged row (two map data merged to correspond to one matrix position point), the map data of the path unit with an offset of 600 is stored in the 2nd row and 19th column of the path unit data matrix.
在一种可能的实施方式中,导航路径为车辆离开导航出发点后从车辆实时位置至导航目的地的导航路径;In a possible implementation, the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
相应的,S102的具体实现流程包括S201和S202。Correspondingly, the specific implementation process of S102 includes S201 and S202.
S201:根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位。S201: Determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data.
在本实施方式中,第三方数据终端每发完一轮地图数据,则从车辆的实时位置开始重新发送地图数据。车辆的控制终端若监测到当前路径单元的偏移量小于前一路径单元的偏移量,则判定接收到新一轮地图数据,开始根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本轮更新的第一数据位。In this embodiment, after the third-party data terminal sends a round of map data, it starts to resend the map data from the real-time position of the vehicle. If the vehicle control terminal detects that the offset of the current path unit is less than the offset of the previous path unit, it determines that a new round of map data has been received, and starts to determine the first data bit of this round of update based on the position relationship between the vehicle's real-time position and the path unit corresponding to the first map data among the multiple map data.
具体的,本实施方式中,第一个地图数据指的是离开导航出发地后从车辆的实时位置至导航目的地的导航路径的地图数据中第一个路径单元对应的地图数据。控制终端可以首先获取车辆实时位置所属的路径单元及第一个地图数据所属的路径单元,基于两个路径单元的偏移量关系,确定本次更新的第一数据位。Specifically, in this embodiment, the first map data refers to the map data corresponding to the first path unit in the map data of the navigation path from the real-time position of the vehicle to the navigation destination after leaving the navigation departure point. The control terminal can first obtain the path unit to which the real-time position of the vehicle belongs and the path unit to which the first map data belongs, and determine the first data bit of this update based on the offset relationship between the two path units.
在一种可能的实施方式中,S201的具体实现流程包括以下步骤:In a possible implementation manner, the specific implementation process of S201 includes the following steps:
获取车辆实时位置相对于导航出发点的第一偏移量;Obtaining a first offset of the vehicle's real-time position relative to the navigation starting point;
获取多个地图数据中第一个地图数据对应的路径单元相对于导航出发点的第二偏移量;Obtaining a second offset of a path unit corresponding to a first map data item among the plurality of map data items relative to the navigation starting point;
基于第二偏移量与第一偏移量的差,在路径单元数据矩阵中确定本次更新的第一数据位。Based on the difference between the second offset and the first offset, the first data bit of this update is determined in the path unit data matrix.
在本实施方式中,控制终端基于车辆实时位置相对于导航出发点的距离,确定车辆实时位置的路径单元的偏移量,得到第一偏移量。然后,将第一个地图数据对应的路径单元的偏移量作为第二偏移量,将第二偏移量减去第一偏移量,得到偏移差值。最后,将该偏移差值对应至路径单元数据矩阵中,得到第一数据位。In this embodiment, the control terminal determines the offset of the path unit of the real-time position of the vehicle based on the distance of the real-time position of the vehicle relative to the navigation starting point to obtain a first offset. Then, the offset of the path unit corresponding to the first map data is used as the second offset, and the first offset is subtracted from the second offset to obtain an offset difference. Finally, the offset difference is mapped to the path unit data matrix to obtain a first data bit.
示例性的,若车辆实时位置的路径单元的偏移量为10,当前导航路径的第一个地图数据的路径单元的偏移量为12,则偏移差值为2,因此路径单元数据矩阵中第1行第2列的位置则为本次更新的第一数据位。For example, if the offset of the path unit of the vehicle's real-time position is 10 and the offset of the path unit of the first map data of the current navigation path is 12, the offset difference is 2, so the position of the 1st row and 2nd column in the path unit data matrix is the first data bit of this update.
若车辆实时位置的路径单元的偏移量为8,当前导航路径的第一个地图数据的路径单元的偏移量为13,则偏移差值为5,因此路径单元数据矩阵中第1行第5列的位置则为本次更新的第一数据位。If the offset of the path unit of the vehicle's real-time position is 8, and the offset of the path unit of the first map data of the current navigation path is 13, the offset difference is 5, so the position of the 1st row and 5th column in the path unit data matrix is the first data bit of this update.
S202:将多个地图数据从第一数据位开始,按照设定的相对位置对应关系更新至预先构建的路径单元数据矩阵中;其中,相对位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中相对于第一数据位的位置关系。S202: Starting from the first data bit, multiple map data are updated to a pre-constructed path unit data matrix according to a set relative position correspondence relationship; wherein the relative position correspondence relationship includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
具体的,从第一数据位开始,可以按照路径单元的偏移量由小到大的顺序对应路径单元数据矩阵中由左至右、由上至下的顺序的规则,采用每个路径单元最新的地图数据替换掉路径单元数据矩阵中对应位置原本的地图数据,以实现地图数据的更新。Specifically, starting from the first data bit, the offset of the path unit can be ordered from small to large corresponding to the order from left to right and from top to bottom in the path unit data matrix, and the latest map data of each path unit can be used to replace the original map data at the corresponding position in the path unit data matrix to achieve the update of the map data.
示例性的,若车辆实时位置的路径单元的偏移量为10,路径单元数据矩阵中第1行第2列的位置则为本次更新的第一数据位,某一路径单元的偏移量为15,则该路径单元的地图数据存储于路径单元数据矩阵中第1行第5列的位置。For example, if the offset of the path unit of the vehicle's real-time position is 10, the position of the 1st row and 2nd column in the path unit data matrix is the first data bit of this update. If the offset of a path unit is 15, the map data of the path unit is stored in the position of the 1st row and 5th column in the path unit data matrix.
在一种可能的实施方式中,路径单元数据矩阵中行号大的行元素的数据合并个数大于等于行号小的行元素的数据合并个数。数据合并个数是指合并的地图数据的个数,例如,k行的行元素由K个地图数据合并得到,i行的行元素由I个地图数据合并得到;本实施方式中,行号为k与行号为i的行元素相比,若k>i,则K≥I。In a possible implementation, the number of data merged of row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged of row elements with smaller row numbers. The number of data merged refers to the number of merged map data. For example, row elements of row k are merged from K map data, and row elements of row i are merged from I map data. In this implementation, when row elements with row numbers k and i are compared, if k>i, then K≥I.
具体的,若路径单元数据矩阵包括三行元素,则路径单元数据矩阵的第一行中,每个行元素的值对应一个地图数据的值;Specifically, if the path unit data matrix includes three rows of elements, then in the first row of the path unit data matrix, the value of each row element corresponds to a value of map data;
路径单元数据矩阵的第二行为一个数据合并行,其每个行元素的值为相邻的N个路径单元的地图数据的平均值;The second row of the path unit data matrix is a data merging row, and the value of each row element is the average value of the map data of the adjacent N path units;
路径单元数据矩阵的第三行为一个数据合并行,其每个行元素的值为相邻的M个路径单元的地图数据的平均值;其中,M>N。The third row of the path unit data matrix is a data merging row, and the value of each row element is the average value of the map data of M adjacent path units; wherein M>N.
示例性的,M可以为4,N可以为2。For example, M may be 4 and N may be 2.
为了保证距离车辆最近的前方路段的地图数据的准确性,本实施方式中,路径单元数据矩阵的前K行可以不进行数据合并;而是从K+1行开始进行数据合并,并且后一行中每个行元素的数据合并个数大于前一行中行元素的数据合并个数。不进行数据合并的行中的地图数据的准确性好,进行了数据合并的行中含有的地图数据的数据量大,从而既保证了地图数据的准确性,又保证了能够在有限的内存空间中存储较长导航路径的全部地图数据。In order to ensure the accuracy of the map data of the road section ahead that is closest to the vehicle, in this implementation, the first K rows of the path unit data matrix may not be merged; instead, data merging is performed starting from row K+1, and the number of data merged for each row element in the latter row is greater than the number of data merged for the row elements in the previous row. The accuracy of the map data in the rows that are not merged is good, and the amount of map data contained in the rows that are merged is large, thereby ensuring both the accuracy of the map data and the ability to store all the map data of a longer navigation path in a limited memory space.
在一种可能的实施方式中,每个地图数据包括其对应的路径单元上的车速信息;相应的,路径单元数据矩阵包括路径单元车速数据矩阵;In a possible implementation, each map data includes vehicle speed information on its corresponding path unit; accordingly, the path unit data matrix includes the path unit vehicle speed data matrix;
每个地图数据包括其对应的路径单元上的坡度信息;相应的,路径单元数据矩阵包括路径单元坡度数据矩阵。Each map data includes the slope information on the corresponding path unit; accordingly, the path unit data matrix includes the path unit slope data matrix.
在一种可能的实施方式中,在S102之后,本申请提供的方法还包括以下步骤:In a possible implementation manner, after S102, the method provided in the present application further includes the following steps:
基于路径单元车速数据矩阵以及路径单元坡度数据矩阵计算当前导航路径的油耗和/或电耗。The fuel consumption and/or electric consumption of the current navigation route is calculated based on the route unit vehicle speed data matrix and the route unit slope data matrix.
在本实施方式中,控制终端可以预存车速信息、坡度信息与能耗数据的对应关系,其中能耗数据包括油耗和电耗。控制终端基于车身信息、坡度信息及能耗数据的对应关系确定路径单元车速数据矩阵以及路径单元坡度数据矩阵对应的当前导航路径的油耗和/或电耗。In this embodiment, the control terminal may pre-store the correspondence between vehicle speed information, slope information and energy consumption data, wherein the energy consumption data includes fuel consumption and electricity consumption. The control terminal determines the fuel consumption and/or electricity consumption of the current navigation path corresponding to the path unit vehicle speed data matrix and the path unit slope data matrix based on the correspondence between the vehicle body information, slope information and energy consumption data.
应理解,上述实施方式中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,各步骤的序号的大小不应对本申请各实施方式的实施过程构成任何限定。It should be understood that the size of the serial number of each step in the above-mentioned implementation mode does not mean the order of execution. The execution order of each process should be determined by its function and internal logic. The size of the serial number of each step should not constitute any limitation on the implementation process of the various implementation modes of this application.
对应于上文实施方式提供的地图数据的处理方法,图2为本申请一实施方式提供的地图数据的处理装置的结构框图。为了便于说明,仅示出了与本申请相关的部分。参考图2,本实施方式中,该地图数据的处理装置100包括地图数据获取模块110和数据矩阵更新模块120。Corresponding to the method for processing map data provided in the above embodiments, FIG2 is a block diagram of a map data processing device provided in an embodiment of the present application. For ease of explanation, only the parts related to the present application are shown. Referring to FIG2, in the present embodiment, the map data processing device 100 includes a map data acquisition module 110 and a data matrix update module 120.
地图数据获取模块110用于获取导航路径对应的多个地图数据,根据设定距离将导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据;The map data acquisition module 110 is used to acquire a plurality of map data corresponding to the navigation path, and divide the navigation path into a plurality of continuous path units according to a set distance, each path unit corresponding to a piece of map data;
数据矩阵更新模块120用于将多个地图数据更新至预先构建的路径单元数据矩阵中;其中,路径单元数据矩阵包括至少一个数据合并行,数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。The data matrix update module 120 is used to update multiple map data into a pre-constructed path unit data matrix; wherein the path unit data matrix includes at least one data merge row, and the value of each row element in the data merge row is obtained by merging the map data of at least two adjacent path units.
在一种可能的实施方式中,导航路径为从导航出发点至导航目的地的全程导航路径;In a possible implementation, the navigation path is a full navigation path from a navigation starting point to a navigation destination;
相应的,数据矩阵更新模块120用于:Accordingly, the data matrix updating module 120 is used to:
将多个地图数据按照设定的固定位置对应关系更新至预先构建的路径单元数据矩阵中;其中,固定位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中的固定位置。The plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship; wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
在一种可能的实施方式中,导航路径为车辆离开导航出发点后从车辆实时位置至导航目的地的导航路径;In a possible implementation, the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point;
相应的,数据矩阵更新模块120包括第一数据位确定子单元和数据更新子单元。Accordingly, the data matrix updating module 120 includes a first data bit determining subunit and a data updating subunit.
第一数据位确定子单元用于根据车辆实时位置和多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位;The first data bit determination subunit is used to determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
数据更新子单元用于将多个地图数据从第一数据位开始,按照设定的相对位置对应关系更新至预先构建的路径单元数据矩阵中;其中,相对位置对应关系包括每个地图数据对应的路径单元在路径单元数据矩阵中相对于第一数据位的位置关系。The data updating subunit is used to update multiple map data starting from the first data bit to the pre-constructed path unit data matrix according to the set relative position correspondence; wherein the relative position correspondence includes the position relationship of the path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
在一种可能的实施方式中,第一数据位确定子单元用于执行以下步骤:In a possible implementation manner, the first data bit determination subunit is configured to perform the following steps:
获取车辆实时位置相对于导航出发点的第一偏移量;Obtaining a first offset of the vehicle's real-time position relative to the navigation starting point;
获取多个地图数据中第一个地图数据对应的路径单元相对于导航出发点的第二偏移量;Obtaining a second offset of a path unit corresponding to a first map data item among the plurality of map data items relative to the navigation starting point;
基于第二偏移量与第一偏移量的差,在路径单元数据矩阵中确定本次更新的第一数据位。Based on the difference between the second offset and the first offset, the first data bit of this update is determined in the path unit data matrix.
在一种可能的实施方式中,路径单元数据矩阵中行号大的行元素的数据合并个数大于等于行号小的行元素的数据合并个数。In a possible implementation manner, the number of data merged for row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged for row elements with smaller row numbers.
在一种可能的实施方式中,每个地图数据包括其对应的路径单元上的车速信息,相应的,路径单元数据矩阵包括路径单元车速数据矩阵;In a possible implementation manner, each map data includes vehicle speed information on its corresponding path unit, and accordingly, the path unit data matrix includes a path unit vehicle speed data matrix;
每个地图数据包括其对应的路径单元上的坡度信息,相应的,路径单元数据矩阵包括路径单元坡度数据矩阵。Each map data includes the slope information on the corresponding path unit, and accordingly, the path unit data matrix includes the path unit slope data matrix.
在一种可能的实施方式中,地图数据的处理装置100还包括能耗计算单元。In a possible implementation manner, the map data processing device 100 further includes an energy consumption calculation unit.
能耗计算单元用于基于路径单元车速数据矩阵以及路径单元坡度数据矩阵计算当前导航路径的油耗和/或电耗。The energy consumption calculation unit is used to calculate the fuel consumption and/or power consumption of the current navigation route based on the route unit vehicle speed data matrix and the route unit slope data matrix.
本申请还提供了一种车辆,在一种可能的实施方式中,该车辆包括控制终端,该控制终端的示意框图如图3所示。终端300可以包括一个或多个处理器301、一个或多个输入设备302、一个或多个输出设备303及一个或多个存储器304。上述处理器301、输入设备302、输出设备303及存储器304通过通信总线305完成相互间的通信。存储器304用于存储计算机程序,计算机程序包括程序指令。处理器301用于执行存储器304存储的程序指令。处理器301被配置为能够调用程序指令,以执行上述各装置实施方式中各模块的功能,例如图2所示模块110和120的功能。The present application also provides a vehicle. In a possible implementation, the vehicle includes a control terminal, and a schematic block diagram of the control terminal is shown in FIG3. The terminal 300 may include one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processors 301, input devices 302, output devices 303, and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, and the computer programs include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to be able to call program instructions to execute the functions of each module in the above-mentioned device implementation, such as the functions of the modules 110 and 120 shown in FIG2.
应当理解,在本申请的实施方式中,所称处理器301可以是中央处理单元 (Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者任何其它常规的处理器等。It should be understood that in the embodiments of the present application, the processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any other conventional processor, etc.
输入设备302可以包括触控板、指纹采传感器(用于采集用户的指纹信息,其包括但不限于指纹的形状和方向信息)、麦克风等。输出设备303可以包括显示器(LCD等)、扬声器等。The input device 302 may include a touch panel, a fingerprint sensor (used to collect fingerprint information of the user, including but not limited to the shape and direction information of the fingerprint), a microphone, etc. The output device 303 may include a display (LCD, etc.), a speaker, etc.
存储器304可以包括只读存储器和随机存取存储器。存储器304能够向处理器301提供指令和数据。存储器304的一部分可以是非易失性随机存取存储器,其可以存储设备类型的信息。The memory 304 may include a read-only memory and a random access memory. The memory 304 can provide instructions and data to the processor 301. A portion of the memory 304 may be a non-volatile random access memory, which may store information of the device type.
具体实现中,本实施方式中所描述的处理器301、输入设备302、输出设备303可执行本申请提供的地图数据的处理方法的各个实施方式提供的步骤,也可以实现本申请提供的地图数据的处理装置的各个实施方式提供的各个模块的功能,在此不再赘述。In a specific implementation, the processor 301, input device 302, and output device 303 described in this embodiment can execute the steps provided by the various embodiments of the map data processing method provided in this application, and can also implement the functions of the various modules provided by the various embodiments of the map data processing device provided in this application, which will not be repeated here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令被处理器执行时实现上述各个方法实施方式中的全部或部分流程。这些流程也可以通过计算机程序控制相关的硬件来完成,计算机程序可存储于上述计算机可读存储介质中。该计算机程序在被处理器执行时,可实现上述各个方法实施方式提供的步骤。上述计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减;例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The present application also provides a computer-readable storage medium, which stores a computer program, which includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned various method implementations are implemented. These processes can also be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in the above-mentioned computer-readable storage medium. When the computer program is executed by the processor, the steps provided by the above-mentioned various method implementations can be implemented. The above-mentioned computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction; for example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
计算机可读存储介质可以是前述实施方式提供的地图数据的处理装置和车辆的控制终端的内部存储单元,例如控制终端的硬盘或内存。计算机可读存储介质也可以是控制终端的外部存储设备,例如控制终端上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,计算机可读存储介质还可以既包括控制终端的内部存储单元也包括外部存储设备。计算机可读存储介质能够存储计算机程序及控制终端所需的其他程序和数据。计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be the internal storage unit of the map data processing device and the control terminal of the vehicle provided in the aforementioned embodiment, such as the hard disk or memory of the control terminal. The computer-readable storage medium may also be an external storage device of the control terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the control terminal. Furthermore, the computer-readable storage medium may also include both the internal storage unit of the control terminal and the external storage device. The computer-readable storage medium can store computer programs and other programs and data required by the control terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
本领域普通技术人员可以意识到,本申请各个实施方式提供的模块和算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现;为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以针对每个特定的应用,使用不同方法来实现所描述的功能,但是这些实现方式不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps provided in each embodiment of the present application can be implemented in electronic hardware, computer software, or a combination of the two; in order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but these implementations should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述各个实施方式提供的装置的模块和车辆的控制终端的具体工作过程,可以参考前述方法实施方式中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the modules of the device and the control terminal of the vehicle provided in the above-mentioned embodiments can refer to the corresponding processes in the aforementioned method implementation, and will not be repeated here.
在本申请所提供的各个实施方式中,应该理解,所提供的装置、控制终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的;模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口或单元的间接耦合或通信连接,也可以是电的,机械的或其它形式的连接。In each embodiment provided in the present application, it should be understood that the provided device, control terminal and method can be implemented in other ways. For example, the device implementation described above is only schematic; the division of modules is only a logical function division, and there may be other division methods in actual implementation; for example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.
上述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元。即,上述作为分离部件说明的模块可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请的实施方式提供各个方案的目的。The modules described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units. That is, the modules described above as separate components may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of providing various solutions in the embodiments of the present application.
另外,本申请的实施方式提供的各功能模块可以集成在一个处理单元中,也可以是各个处理单元单独物理存在,也可以是两个或两个以上处理单元(处理器)集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional modules provided in the embodiments of the present application may be integrated into one processing unit, or each processing unit may exist physically separately, or two or more processing units (processors) may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
以上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请公开的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (15)

  1. 一种地图数据的处理方法,其特征在于,所述处理方法包括:A method for processing map data, characterized in that the processing method comprises:
    获取导航路径对应的多个地图数据,根据设定距离将所述导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据;Acquire multiple map data corresponding to the navigation path, and divide the navigation path into multiple continuous path units according to a set distance, each path unit corresponding to one map data;
    将所述多个地图数据更新至预先构建的路径单元数据矩阵中,其中,所述路径单元数据矩阵包括至少一个数据合并行,所述数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。The plurality of map data are updated into a pre-constructed path unit data matrix, wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
  2. 如权利要求1所述的地图数据的处理方法,其特征在于,所述导航路径为从导航出发点至导航目的地的全程导航路径,The method for processing map data according to claim 1, wherein the navigation path is a full navigation path from a navigation starting point to a navigation destination.
    将所述多个地图数据更新至预先构建的路径单元数据矩阵中包括:Updating the plurality of map data into a pre-constructed path unit data matrix comprises:
    将所述多个地图数据按照设定的固定位置对应关系更新至预先构建的路径单元数据矩阵中,其中,所述固定位置对应关系包括每个地图数据对应的路径单元在所述路径单元数据矩阵中的固定位置。The plurality of map data are updated to a pre-constructed path unit data matrix according to a set fixed position correspondence relationship, wherein the fixed position correspondence relationship includes a fixed position of a path unit corresponding to each map data in the path unit data matrix.
  3. 如权利要求1所述的地图数据的处理方法,其特征在于,所述导航路径为车辆离开导航出发点后从车辆实时位置至导航目的地的导航路径,The method for processing map data according to claim 1, wherein the navigation path is a navigation path from the vehicle's real-time position to the navigation destination after the vehicle leaves the navigation starting point,
    将所述多个地图数据更新至预先构建的路径单元数据矩阵中包括:Updating the plurality of map data into a pre-constructed path unit data matrix comprises:
    根据车辆实时位置和所述多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位;Determine the first data bit of this update according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data;
    将所述多个地图数据从所述第一数据位开始,按照设定的相对位置对应关系更新至预先构建的路径单元数据矩阵中,其中,所述相对位置对应关系包括每个地图数据对应的路径单元在所述路径单元数据矩阵中相对于第一数据位的位置关系。The plurality of map data are updated starting from the first data bit to a pre-constructed path unit data matrix according to a set relative position correspondence, wherein the relative position correspondence includes a position relationship of a path unit corresponding to each map data in the path unit data matrix relative to the first data bit.
  4. 如权利要求3所述的地图数据的处理方法,其特征在于,包括:The method for processing map data according to claim 3, characterized in that it comprises:
    根据每个路径单元与导航出发点的距离,确定每个路径单元的偏移量。The offset of each path unit is determined according to the distance between each path unit and the navigation starting point.
  5. 如权利要求4所述的地图数据的处理方法,其特征在于,在所述根据车辆实时位置和所述多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位之前,包括:The method for processing map data according to claim 4, characterized in that before determining the first data bit of the current update based on the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data, it comprises:
    判断当前路径单元的偏移量是否小于前一路径单元的偏移量;Determine whether the offset of the current path unit is less than the offset of the previous path unit;
    当判断结果为是时,进行所述根据车辆实时位置和所述多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位。When the judgment result is yes, the first data bit of this update is determined according to the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data.
  6. 如权利要求3所述的地图数据的处理方法,其特征在于,所述根据车辆实时位置和所述多个地图数据中第一个地图数据对应的路径单元的位置关系,确定本次更新的第一数据位包括:The method for processing map data according to claim 3, wherein determining the first data bit of the current update based on the position relationship between the real-time position of the vehicle and the path unit corresponding to the first map data among the plurality of map data comprises:
    获取车辆实时位置相对于导航出发点的第一偏移量;Obtaining a first offset of the vehicle's real-time position relative to the navigation starting point;
    获取所述多个地图数据中第一个地图数据对应的路径单元相对于导航出发点的第二偏移量;Obtaining a second offset of a path unit corresponding to a first map data among the plurality of map data relative to a navigation starting point;
    基于所述第二偏移量与所述第一偏移量的差,在所述路径单元数据矩阵中确定本次更新的第一数据位。Based on the difference between the second offset and the first offset, a first data bit of this update is determined in the path unit data matrix.
  7. 如权利要求1至6中任一项所述的地图数据的处理方法,其特征在于,所述路径单元数据矩阵中行号大的行元素的数据合并个数大于等于行号小的行元素的数据合并个数。The method for processing map data according to any one of claims 1 to 6 is characterized in that the number of data merged of row elements with larger row numbers in the path unit data matrix is greater than or equal to the number of data merged of row elements with smaller row numbers.
  8. 如权利要求1至6中任一项所述的地图数据的处理方法,其特征在于,每个地图数据包括其对应的路径单元上的车速信息,所述路径单元数据矩阵包括路径单元车速数据矩阵;The method for processing map data according to any one of claims 1 to 6, characterized in that each map data includes vehicle speed information on its corresponding path unit, and the path unit data matrix includes a path unit vehicle speed data matrix;
    每个地图数据还包括其对应的路径单元上的坡度信息,所述路径单元数据矩阵还包括路径单元坡度数据矩阵。Each map data also includes the slope information on the corresponding path unit, and the path unit data matrix also includes the path unit slope data matrix.
  9. 如权利要求6所述的地图数据的处理方法,其特征在于,在将所述多个地图数据更新至预先构建的路径单元数据矩阵中之后还包括:The method for processing map data according to claim 6, characterized in that after updating the plurality of map data into the pre-constructed path unit data matrix, it further comprises:
    基于所述路径单元车速数据矩阵以及所述路径单元坡度数据矩阵计算当前导航路径的油耗和/或电耗。The fuel consumption and/or electricity consumption of the current navigation route is calculated based on the route unit vehicle speed data matrix and the route unit slope data matrix.
  10. 如权利要求1所述的地图数据的处理方法,其特征在于,包括:The method for processing map data according to claim 1, characterized in that it comprises:
    根据每个路径单元与导航出发点的距离,确定每个路径单元的偏移量。The offset of each path unit is determined according to the distance between each path unit and the navigation starting point.
  11. 如权利要求1所述的地图数据的处理方法,其特征在于,所述地图数据按照预设的时间间隔更新。The method for processing map data according to claim 1, wherein the map data is updated at a preset time interval.
  12. 如权利要求1所述的地图数据的处理方法,其特征在于,所述设定距离为128米或256米。The method for processing map data according to claim 1, characterized in that the set distance is 128 meters or 256 meters.
  13. 一种地图数据的处理装置,其特征在于,所述处理装置包括:A map data processing device, characterized in that the processing device comprises:
    地图数据获取模块,用于获取导航路径对应的多个地图数据,根据设定距离将所述导航路径划分为多个连续的路径单元,每个路径单元对应一个地图数据;A map data acquisition module, used to acquire a plurality of map data corresponding to a navigation path, and divide the navigation path into a plurality of continuous path units according to a set distance, each path unit corresponding to a piece of map data;
    数据矩阵更新模块,用于将所述多个地图数据更新至预先构建的路径单元数据矩阵中,其中,所述路径单元数据矩阵包括至少一个数据合并行,所述数据合并行中每个行元素的值由至少两个相邻的路径单元的地图数据合并得到。A data matrix update module is used to update the multiple map data into a pre-constructed path unit data matrix, wherein the path unit data matrix includes at least one data merging row, and the value of each row element in the data merging row is obtained by merging the map data of at least two adjacent path units.
  14. 一种车辆,其特征在于,包括:控制终端;A vehicle, characterized by comprising: a control terminal;
    所述控制终端包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至12任一项所述地图数据的处理方法的步骤。The control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for processing map data according to any one of claims 1 to 12 are implemented.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至12任一项所述地图数据的处理方法的步骤。A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for processing map data as claimed in any one of claims 1 to 12.
PCT/CN2023/121849 2022-10-11 2023-09-27 Map data processing method and apparatus, and vehicle and readable storage medium WO2024078334A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211241132.4 2022-10-11
CN202211241132.4A CN116860762A (en) 2022-10-11 2022-10-11 Map data processing method, device, vehicle and readable storage medium

Publications (1)

Publication Number Publication Date
WO2024078334A1 true WO2024078334A1 (en) 2024-04-18

Family

ID=88217732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/121849 WO2024078334A1 (en) 2022-10-11 2023-09-27 Map data processing method and apparatus, and vehicle and readable storage medium

Country Status (2)

Country Link
CN (1) CN116860762A (en)
WO (1) WO2024078334A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080078484A (en) * 2007-02-23 2008-08-27 엘지전자 주식회사 Method for searching traveling route of vehicle in navigation system
CN107436148A (en) * 2016-05-25 2017-12-05 深圳市朗驰欣创科技股份有限公司 A kind of robot navigation method and device based on more maps
US20190204088A1 (en) * 2017-12-29 2019-07-04 Lyft, Inc. Utilizing artificial neural networks to evaluate routes based on generated route tiles
CN110440819A (en) * 2018-05-04 2019-11-12 沈阳美行科技有限公司 Air navigation aid, device and system
CN114264298A (en) * 2021-12-30 2022-04-01 神思电子技术股份有限公司 Navigation path generation method, device and medium for indoor map
CN114812596A (en) * 2022-05-06 2022-07-29 云控智行科技有限公司 Navigation path generation method, device, equipment and computer readable medium
CN114954527A (en) * 2022-06-01 2022-08-30 驭势(上海)汽车科技有限公司 Lane-level navigation planning method, device, equipment, medium and vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080078484A (en) * 2007-02-23 2008-08-27 엘지전자 주식회사 Method for searching traveling route of vehicle in navigation system
CN107436148A (en) * 2016-05-25 2017-12-05 深圳市朗驰欣创科技股份有限公司 A kind of robot navigation method and device based on more maps
US20190204088A1 (en) * 2017-12-29 2019-07-04 Lyft, Inc. Utilizing artificial neural networks to evaluate routes based on generated route tiles
CN110440819A (en) * 2018-05-04 2019-11-12 沈阳美行科技有限公司 Air navigation aid, device and system
CN114264298A (en) * 2021-12-30 2022-04-01 神思电子技术股份有限公司 Navigation path generation method, device and medium for indoor map
CN114812596A (en) * 2022-05-06 2022-07-29 云控智行科技有限公司 Navigation path generation method, device, equipment and computer readable medium
CN114954527A (en) * 2022-06-01 2022-08-30 驭势(上海)汽车科技有限公司 Lane-level navigation planning method, device, equipment, medium and vehicle

Also Published As

Publication number Publication date
CN116860762A (en) 2023-10-10

Similar Documents

Publication Publication Date Title
JP5461065B2 (en) Current position specifying device and current position specifying method
EP4134630A1 (en) Method and apparatus for providing point of interest information
CN112738171B (en) Vehicle control method, device, system, equipment and storage medium
KR102575727B1 (en) Apparatus for controlling platooning driving of vehicle, system having the same and method thereof
CN109641593B (en) Travel plan correction device and travel plan correction method
WO2022134365A1 (en) Vehicle scheduling method, apparatus, and system, device, and storage medium
JP2016125952A (en) Movement guiding apparatus, map information updating method of movement guiding apparatus, and computer program
JP7087794B2 (en) Information processing systems, programs, and control methods
US8989997B2 (en) Map display system, method, and program
JP6160364B2 (en) Map information update system, map information update device, map information update method, and computer program
EP4086783A1 (en) Electronic horizon creation method and system
KR102564016B1 (en) Apparatus for alerting state of autonomous vehicle, system having the same and method thereof
WO2024078334A1 (en) Map data processing method and apparatus, and vehicle and readable storage medium
WO2024027112A1 (en) Vehicle control methods, apparatus and system, automated parking assist controller, and terminal
CN116359942A (en) Point cloud data acquisition method, equipment, storage medium and program product
US20230280179A1 (en) Navigation system with address index mechanism and method of operation thereof
EP3742124A1 (en) Method, apparatus, and computer program product for traffic dependent route guidance
WO2020250368A1 (en) High-definition map data utilizing device and method for utilizing high-definition map data
JP7228698B2 (en) vehicle controller
JP5742552B2 (en) Navigation system, representative travel time setting method and program
US11776064B2 (en) Driver classification systems and methods for obtaining an insurance rate for a vehicle
US12008819B2 (en) Navigation system with mono-camera based traffic sign tracking and positioning mechanism and method of operation thereof
CN113252050A (en) Route matching method, device, equipment and storage medium
CN118289024A (en) Lane line display method and device, computer program product and electronic equipment
US20190234757A1 (en) Navigating method and system for determining and displaying intersection information

Legal Events

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

Ref document number: 23876538

Country of ref document: EP

Kind code of ref document: A1