WO2020014990A1 - Multi-map alignment method and device, terminal and storage medium - Google Patents

Multi-map alignment method and device, terminal and storage medium Download PDF

Info

Publication number
WO2020014990A1
WO2020014990A1 PCT/CN2018/096539 CN2018096539W WO2020014990A1 WO 2020014990 A1 WO2020014990 A1 WO 2020014990A1 CN 2018096539 W CN2018096539 W CN 2018096539W WO 2020014990 A1 WO2020014990 A1 WO 2020014990A1
Authority
WO
WIPO (PCT)
Prior art keywords
map
path
information
direction information
points
Prior art date
Application number
PCT/CN2018/096539
Other languages
French (fr)
Chinese (zh)
Inventor
王超鹏
林义闽
廉士国
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2018/096539 priority Critical patent/WO2020014990A1/en
Priority to CN201880001191.XA priority patent/CN109073387B/en
Publication of WO2020014990A1 publication Critical patent/WO2020014990A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations

Definitions

  • the present application relates to the field of computer vision, and in particular, to a method, device, terminal, and storage medium for multiple map alignment.
  • vSLAM Current visual localization and mapping
  • a technical problem to be solved in some embodiments of the present application is how to reduce the deviation of localization results of maps at the same location.
  • An embodiment of the present application provides a method for multi-map alignment, including: obtaining N maps including description information of map points of a first path; wherein the description information in N maps is different, and N is greater than 1. Integer; select one map from N maps as the reference map, and the remaining maps as the correction map; adjust the description information of the map points of the first path in the revised map according to the description information of the map points of the first path .
  • An embodiment of the present application further provides a multi-map alignment device, including: an obtaining module, configured to obtain N maps including description information of map points of a first path; wherein the description information in the N maps is different N is an integer greater than 1.
  • the adjustment module is used to select one map from the N maps as the reference map and the remaining maps as the correction map; adjust the correction map according to the description information of the map points of the first path in the reference map. The description information of the map points of the first path.
  • An embodiment of the present application further provides a terminal, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor.
  • the processor executes to enable at least one processor to execute the method for multi-map alignment mentioned in the above embodiment.
  • An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the method for multi-map alignment mentioned in the above embodiment when executed by a processor.
  • the embodiments of the present application adjust the description information of the map points of the first path in the modified map according to the description information of the map points of the first path in the reference map, so that the reference map and the modified map pair The description information of the map points of the first path are consistent. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
  • FIG. 1 is a flowchart of a multi-map alignment method according to a first embodiment of the present application
  • FIG. 2 is a flowchart of a multi-map alignment method according to a second embodiment of the present application.
  • FIG. 3a is a schematic diagram of a first path of a forward map according to a second embodiment of the present application.
  • 3b is a schematic diagram of a first path of a reverse map according to a second embodiment of the present application.
  • 3c is a schematic diagram of a path after A-B is divided into 6 segments in the second embodiment of the present application;
  • FIG. 4 is a schematic structural diagram of a multi-map alignment device according to a third embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal according to a fourth embodiment of the present application.
  • the first embodiment of the present application relates to a multi-map alignment method, which is applied to a terminal or a cloud.
  • the terminal may be a blind navigation device, an intelligent robot, and the like.
  • the cloud communicates with the terminal, providing the terminal with a map for positioning or providing positioning results directly to the terminal.
  • a terminal is used as an example to describe the execution process of the multi-map alignment method.
  • the method for multi-map alignment includes the following steps:
  • Step 101 Obtain N maps including description information of map points of a first path.
  • the terminal obtains a forward map of the first path and a reverse map of the first path.
  • the terminal moves from one point to the first direction, collects first image data of the first path, and establishes a forward map of the first path according to the first image data of the first path.
  • the terminal moves in the second direction, collects second image data of the first path, and establishes a reverse map of the first path according to the second image data of the first path.
  • the directions of the first direction and the second direction are opposite.
  • Step 102 Select one map from the N maps as the reference map and the remaining maps as the correction map.
  • the forward map of the first path is selected as the reference map, and the reverse map of the first path is used as the correction map.
  • Step 103 Adjust the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map.
  • the description information of the map points of the first path includes the direction information of the map points of the first path and the position information of the map points.
  • the terminal adjusts the direction information of the map points of the first path in the correction map according to the direction information of the map points of the first path in the reference map, and adjusts the position of the correction map according to the position information of the map points of the first path in the reference map Location information for map points.
  • the multi-map alignment method provided in this embodiment adjusts and corrects the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map, so that The reference map and the modified map have the same description information of the map points of the first path. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
  • the second embodiment of the present application relates to a method for multi-map alignment.
  • This embodiment is a further refinement of the first embodiment, and specifically describes step 103.
  • this embodiment includes steps 201 to 204.
  • Step 201 and step 202 are substantially the same as step 101 and step 102 in the first embodiment, respectively, and will not be described in detail here. The differences are mainly introduced below:
  • Step 203 Divide the first path in each of the N maps into M segments of the second path.
  • M is a positive integer.
  • the terminal determines the key point information of the first path of each map in the N maps, and according to the key point information of the first path of each map in the N maps, each of the N maps
  • the first path in the map is divided into M segments of the second path.
  • the key points refer to special position points in the first path, such as inflection points.
  • the terminal can divide the first path into different road segments according to these special position points.
  • the method for the terminal to determine the key point information of the first path of each of the N maps is as follows: each of the N maps performs the following operations: obtaining the direction information of the map points collected during the map establishment process ; Determining the key point information of the first path in the map according to the direction information of the map points.
  • the following describes the method for the terminal to obtain the direction information of the map points collected during the map establishment process.
  • Method 1 The terminal uses vSLAM technology to create a map based on the image data of the first path collected by the visual sensor set on the terminal, and outputs the position information and direction information corresponding to each frame of image, and uses the position information corresponding to each frame of the image as a map For the position information of the points, the direction information corresponding to each frame of the image is used as the direction information of the map points.
  • Method 2 The terminal determines the direction information of the map point according to data collected by other sensors such as an odometer or an Inertial Measurement Unit (IMU).
  • the terminal carries a visual sensor and an odometer, and moves along the first path.
  • the vision sensor collects the image data of the first path, determines the time stamp information corresponding to each frame of image
  • the odometer collects the direction information and position information of the terminal.
  • the terminal aligns the time stamp of the visual sensor with the time stamp of the odometer, and determines the direction information and location information of the map point according to the time stamp information corresponding to each frame of the image.
  • the terminal determines the description information of the map points according to the image information of each frame, the direction information and the position information corresponding to each frame of the image.
  • the following describes a method for determining key point information of a first path in a map according to direction information of a map point.
  • the key point is an inflection point in the first path.
  • the direction information of two adjacent map points is similar.
  • the terminal arranges the direction information of the map points of the first path in the order of obtaining the direction information of the map points of the first path.
  • the following operations are respectively performed: calculating the direction information of the map points and The first difference value of the direction information of the next map point, to determine whether the first difference value is greater than the first threshold, and if determined to be, use the position information of the map point corresponding to the direction information of the map point as a key point candidate for the first path information.
  • the terminal determines key point information of the first path according to all candidate key point information of the first path.
  • the first threshold may be set according to actual needs.
  • the terminal may set a certain moving distance dt, and separately record the direction information of the map point corresponding to each moving dt of the terminal.
  • Set a certain direction threshold that is, the first threshold. If the difference between the direction information of two adjacent map points is greater than the direction threshold, it is considered that there is a key point in the path between the two map points, and the starting point of the path.
  • the corresponding map point and / or the map point corresponding to the end point of the path are used as key points.
  • the position information of the key points can be determined according to the position information of the points whose continuous movement direction changes greatly, as shown in formula 1:
  • t j represents the position information of key points
  • k i represents the position information of map points with large changes in the direction of movement
  • n represents the number of map points with large changes in the direction of movement.
  • Step 204 For each segment of the second path in each revised map, the following operations are respectively performed: determining the second path of the reference map corresponding to the second path of the revised map; and according to the second path of the corresponding reference map The description information of the map points is adjusted to modify the description information of the map points of the second path of the map.
  • the following describes a method for the terminal to determine the second path of the reference map corresponding to the second path of the modified map.
  • the terminal obtains a forward map and a reverse map of the first path, and uses the forward map of the first path as a reference map and the reverse map of the first path as a correction map.
  • the key points in the forward map of the first path are ⁇ t P
  • the order of the key points of the forward map of the first path and the order of the key points of the reverse map of the first path are reversed, that is, ⁇ t P -t N
  • the second path is divided according to the key points in the forward map of the first path and the key points in the reverse map of the first path, the key points in the forward map of the first path and the first path are divided.
  • the correspondence between the key points in the reverse map can determine the correspondence between the second path in the forward map and the second path in the reverse map.
  • the following is a method for adjusting the description information of the map points of the second path of the revised map based on the second path of the reference map corresponding to the second path of the revised map (hereinafter referred to as the corresponding path of the second path of the revised map). Instructions.
  • the terminal determines the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the modified map, according to the direction information of the corresponding path of the modified second path of the map, and the direction information of the second path of the modified map. , Adjust the direction information of the map points of the second path of the correction map.
  • the terminal adjusts the position information of the map points of the second path of the modified map according to the position information of the map points of the second path of the reference map and the direction information of the adjusted map points of the second path of the modified map.
  • the terminal determines the direction information of the second path of each map in the N maps according to the direction information of the map points collected during the establishment of each map in the N maps. Specifically, the terminal performs the following operations respectively for the second path of each map in the N maps: obtaining all direction information of the map points of the second path, and for the direction information of the map points of each second path, respectively The following operations are performed: determining the second difference between the direction information of the map points of the second path and the direction information of the map points of the other second paths; and determining all the second differences corresponding to the direction information of the map points of the second path, Whether there is a second difference greater than the second threshold, and if it is determined not to exist, the direction information of the map points of the second path is used as the direction information of the second path.
  • the following describes the process in which the terminal updates the description information of the corrected map according to the description information of the reference map in different situations.
  • Case 1 The number of direction information of the corresponding path of the second path of the modified map is one, and the number of direction information of the second path of the corrected map is one.
  • the terminal adjusts the direction information of the map points of the second path of the modified map according to the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the modified map;
  • the position information of the map point corresponding to the map point at the start of the second path of the revised map is substituted for the position information of the map point at the start of the second path of the revised map; from the second path of the revised map after the replacement
  • the position information of the starting map point starts, and is calculated according to the scale of the modified map, the position information of the current map point, the adjusted direction information of the current map point, and the distance information between the current map point and the next map point.
  • Case 2 The number of direction information of the corresponding path of the second path of the modified map is greater than one, or the number of direction information of the second path of the corrected map is greater than one.
  • the terminal performs the following operations on the direction information of the corresponding path of the second path of each modified map: sequentially selects one direction information from the direction information of the second path of the modified map, and performs the following operations:
  • the direction information of the corresponding path of the second path of the map and the direction information of the second path of the selected modified map are used to adjust the direction information of the map points of the second path of the modified map;
  • the position information of the map point corresponding to the map point starting from the second path of the map replaces the position information of the map point starting from the second path of the revised map; the map point starting from the second path of the revised map after the replacement Starting from the position information of the map, the calculation is used to replace the next one according to the scale of the modified map, the position information of the current map point, the adjusted direction information of the current map point, and the distance
  • the terminal determines the position information of the map points corresponding to the map points at which the second path of the modified map ends in the second path of the reference map.
  • the terminal calculates a third difference between the position information of the map point corresponding to the map point where the second path of the modified map ends and the position information of the map point where the second path of the modified map ends after the replacement.
  • the terminal After the terminal completes the foregoing operations for all the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the corrected map, the terminal determines the smallest third difference value, and performs the operation corresponding to the smallest third difference value. As a result, the adjustment result of the description information of the map points of the first path in the final revised map.
  • the first path of the forward map is shown in FIG. 3a
  • the first path of the reverse map is shown in FIG. 3b.
  • the forward map is used as the reference map and the reverse map is used as the modified map.
  • the terminal determines the key points of the first path of the forward map as A, B, C, D, E, and F. According to the above key points, the first path of the forward map is divided into six second paths, which are: AB, BC, CD, DE, EF, and FA.
  • the terminal determines the key points of the first path of the reverse map as a, b, c, d, e, and f. According to the above key points, the first path of the reverse map is divided into 6 second paths, which are ab and bc, respectively.
  • AB corresponds to ab
  • BC corresponds to bc
  • CD corresponds to cd
  • DE corresponds to de
  • EF corresponds to ef
  • FA corresponds to fa.
  • the direction information of map point h is determined by the difference between the direction information of map point h and the direction information of other map points (i, j, k, l, m, and n). If the difference between the direction information of map point h and other map points is not greater than the second
  • the threshold value uses the direction information of the map point h as the direction information of the second path.
  • the direction information of other map points of AB is judged. Finally, if the direction information of each map point meets the requirements, the direction information of AB may be the direction information of map point h, the direction information of map point i, the direction information of map point j, the direction information of map point k, and the map.
  • any one of the direction information of the point l, the direction information of the map point m, and the direction information of the map point n is determined. Because there may be multiple possible direction information for each second path of the reference map and each second path of the reverse map, the adjustment results corresponding to each type of direction information are different. Therefore, corrections need to be made according to each possible direction information.
  • the map is adjusted. The following uses AB in the forward map and ab in the reverse map as examples to illustrate the adjustment process. Assume that the direction information of only one map point u in the ab in the reverse map meets the requirements. Let the direction information of map point u be the direction information of ab.
  • the direction information of map point h and map point j in AB meet the requirements.
  • the difference ⁇ d between the direction information of the map point h and the direction information of the map point u is calculated.
  • the direction information of each map point in ab is adjusted according to Formula 2.
  • ⁇ cor indicates the direction information after the map points are adjusted in the second path of the modified map
  • ⁇ org indicates the direction information before the map points are adjusted in the second path of the modified map
  • ⁇ d indicates the second path of the modified map. The difference between the direction information and the direction information of the second path of the reference map.
  • (x, y) represents the position information of the current map point in the modified map
  • s represents the scale of the modified map
  • d represents the distance between the current map point and the next map point
  • ⁇ cor represents the adjusted current map point.
  • Direction information, (x ', y') represents replacement information for replacing the direction information of the next map point.
  • the difference q 1 between the position information of the end point (map point b) of ab and the position information of the end point (map point B) of ab is calculated according to Formula 5.
  • q represents the difference between the adjusted position information of the map point at the end of the second path of the modified map and the position information of the map point at the end of the second path of the reference map
  • (x pe , y pe ) represents each segment in the reference map.
  • the position information of the end point of the path, (x ne , y ne ) represents the adjusted position information of the end point of each segment of the path in the correction map.
  • the terminal judges the sizes of q 1 and q 2 and determines that q 1 is less than q 2 , then uses the direction information of the map point h as the direction information of AB of the forward map, and the direction information and position information of the map points of ab of the reverse map.
  • the adjustment result is used as the final adjustment result.
  • the multi-map alignment method provided in this embodiment adjusts and corrects the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map, so that The reference map and the modified map have the same description information of the map points of the first path. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
  • the third embodiment of the present application relates to an apparatus for multi-map alignment.
  • the apparatus includes an obtaining module 301 and an adjusting module 302.
  • the obtaining module 301 is configured to obtain N maps including description information of map points of the first path; the description information in the N maps is different, and N is an integer greater than 1.
  • the adjustment module 302 is configured to retrieve N maps from N maps. One of the maps is selected as the reference map, and the rest of the maps are used as the correction map. According to the description information of the map points of the first path in the reference map, the description information of the map points of the first path in the correction map is adjusted.
  • this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still valid in this embodiment. To reduce repetition, details are not described here. Accordingly, the related technical details mentioned in this embodiment can also be applied in the first embodiment.
  • a fourth embodiment of the present application relates to a terminal.
  • the terminal includes at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401.
  • the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the above-mentioned multi-map alignment method.
  • the processor 401 uses a central processing unit (CPU) as an example, and the memory 402 uses a readable and writable memory (Random Access Memory, RAM) as an example.
  • the processor 401 and the memory 402 may be connected through a bus or other methods. In FIG. 5, the connection through the bus is taken as an example.
  • the memory 402 is a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules.
  • the reference map and the modified map are stored in the embodiment of the present application.
  • the processor 401 executes various functional applications and data processing of the device by running non-volatile software programs, instructions, and modules stored in the memory 402, that is, a method for implementing the multi-map alignment described above.
  • the memory 402 may include a storage program area and a storage data area, where the storage program area may store an operating system and an application program required for at least one function; the storage data area may store a list of options and the like.
  • the memory 402 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device.
  • the memory 402 may optionally include a memory remotely set relative to the processor, and these remote memories may be connected to an external device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • One or more modules are stored in the memory, and when executed by one or more processors, the multi-map alignment method in any of the foregoing method embodiments is executed.
  • a fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, the method for multi-map alignment described in any of the above method embodiments is implemented.
  • the program is stored in a storage medium and includes several instructions for making a device ( It may be a single-chip microcomputer, a chip, or the like) or a processor to perform all or part of the steps of the method described in each embodiment of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

A multi-map alignment method applied to a terminal or a cloud includes: acquiring N maps including description information of map points of a first path (S101); the description information in the N maps being different, N being an integer greater than one; selecting a map from the N maps as a reference map, the remaining maps being used as correction maps (S102); adjusting the description information of the map points of the first path in the correction maps according to the description information of the map point of the first path in the reference map (S103). The present invention also relates to a multi-map alignment device, a terminal and a storage medium.

Description

一种多地图对齐的方法、装置、终端及存储介质Multi-map alignment method, device, terminal and storage medium 技术领域Technical field
本申请涉及计算机视觉领域,尤其涉及一种多地图对齐的方法、装置、终端及存储介质。The present application relates to the field of computer vision, and in particular, to a method, device, terminal, and storage medium for multiple map alignment.
背景技术Background technique
当前的视觉即时定位和建图(visual simultaneous localization and mapping,vSLAM)技术,使用视觉传感器采集图像数据,并根据采集的图像数据建立地图。Current visual localization and mapping (vSLAM) technology uses visual sensors to collect image data and build maps based on the collected image data.
技术问题technical problem
发明人在研究现有技术过程中发现,通过vSLAM技术建立的地图存在相对性。对于同一条路径,正向运动采集的图像数据与反向运动采集的图像数据存在差异,导致定位过程中对同一位置的输出结果有所差异,即直接使用采集的图像数据建立的地图进行定位时,会得到两个不同的结果。同理,对于两个存在共同路径的地图,建图及定位过程中也存在以上情况。In the process of studying the prior art, the inventor found that the maps established by the vSLAM technology have relativity. For the same path, there is a difference between the image data collected in the forward motion and the image data collected in the reverse motion, resulting in a difference in the output results for the same location during the positioning process, that is, when the map directly established by the collected image data is used for positioning , You will get two different results. In the same way, for two maps with common paths, the above situation also exists in the process of mapping and positioning.
可见,如何减少各地图对同一位置的定位结果的偏差,是需要解决的问题。It can be seen that how to reduce the deviation of the localization results of the maps at the same location is a problem that needs to be solved.
技术解决方案Technical solutions
本申请部分实施例所要解决的一个技术问题在于如何减少各地图对同一位置的定位结果的偏差。A technical problem to be solved in some embodiments of the present application is how to reduce the deviation of localization results of maps at the same location.
本申请的一个实施例提供了一种多地图对齐的方法,包括:获取包括第一路径的地图点的描述信息的N幅地图;其中,N幅地图中的描述信息不同,N为大于1的整数;从N幅地图中选择一副地图作为基准地图,其余地图作为修正地图;根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息。An embodiment of the present application provides a method for multi-map alignment, including: obtaining N maps including description information of map points of a first path; wherein the description information in N maps is different, and N is greater than 1. Integer; select one map from N maps as the reference map, and the remaining maps as the correction map; adjust the description information of the map points of the first path in the revised map according to the description information of the map points of the first path .
本申请的一个实施例还提供了一种多地图对齐的装置,包括:获取模块,用于获取包括第一路径的地图点的描述信息的N幅地图;其中,N幅地图中的描述信息不同,N为大于1的整数;调整模块,用于从N幅地图中选择一副地图作为基准地图,其余地图作为修正 地图;根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息。An embodiment of the present application further provides a multi-map alignment device, including: an obtaining module, configured to obtain N maps including description information of map points of a first path; wherein the description information in the N maps is different N is an integer greater than 1. The adjustment module is used to select one map from the N maps as the reference map and the remaining maps as the correction map; adjust the correction map according to the description information of the map points of the first path in the reference map. The description information of the map points of the first path.
本申请的一个实施例还提供了一种终端,包括至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例提及的多地图对齐的方法。An embodiment of the present application further provides a terminal, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor. The processor executes to enable at least one processor to execute the method for multi-map alignment mentioned in the above embodiment.
本申请的一个实施例还提供了一种计算机可读存储介质,存储有计算机程序,其中,计算机程序被处理器执行时实现上述实施例提及的多地图对齐的方法。An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the method for multi-map alignment mentioned in the above embodiment when executed by a processor.
有益效果Beneficial effect
本申请的实施例相对于现有技术而言,根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息,使得基准地图和修正地图对第一路径的地图点的描述信息一致。由于多幅地图中的第一路径的地图点的描述信息一致,使得终端在定位过程中,无论加载哪幅地图,都能得到相同的定位结果,减少各地图对同一位置的定位结果的偏差。Compared with the prior art, the embodiments of the present application adjust the description information of the map points of the first path in the modified map according to the description information of the map points of the first path in the reference map, so that the reference map and the modified map pair The description information of the map points of the first path are consistent. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the accompanying drawings. These exemplary descriptions do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the drawings in the drawings do not constitute a limitation on scale.
图1是本申请第一实施例的多地图对齐的方法的流程图;1 is a flowchart of a multi-map alignment method according to a first embodiment of the present application;
图2是本申请第二实施例的多地图对齐的方法的流程图;2 is a flowchart of a multi-map alignment method according to a second embodiment of the present application;
图3a是本申请第二实施例的正向地图的第一路径的示意图;3a is a schematic diagram of a first path of a forward map according to a second embodiment of the present application;
图3b是本申请第二实施例的反向地图的第一路径的示意图;3b is a schematic diagram of a first path of a reverse map according to a second embodiment of the present application;
图3c是本申请第二实施例中将A-B划分为6段后的路径示意图;3c is a schematic diagram of a path after A-B is divided into 6 segments in the second embodiment of the present application;
图4是本申请第三实施例的多地图对齐的装置的结构示意图;4 is a schematic structural diagram of a multi-map alignment device according to a third embodiment of the present application;
图5是本申请第四实施例的终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal according to a fourth embodiment of the present application.
本发明的实施方式Embodiments of the invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结 合附图及实施例,对本申请部分实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, some embodiments of the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本申请的第一实施例涉及一种多地图对齐的方法,应用于终端或云端。终端可以是盲人导航装置、智能机器人等。云端与终端通信连接,为终端提供用于定位的地图或直接为终端提供定位结果。本实施例以终端为例说明多地图对齐的方法的执行过程,云端执行该多对图对齐的方法的过程可以参考本申请实施例的内容。如图1所示,该多地图对齐的方法包括以下步骤:The first embodiment of the present application relates to a multi-map alignment method, which is applied to a terminal or a cloud. The terminal may be a blind navigation device, an intelligent robot, and the like. The cloud communicates with the terminal, providing the terminal with a map for positioning or providing positioning results directly to the terminal. In this embodiment, a terminal is used as an example to describe the execution process of the multi-map alignment method. For the process of executing the multi-map alignment method in the cloud, reference may be made to the content of the embodiment of the present application. As shown in FIG. 1, the method for multi-map alignment includes the following steps:
步骤101:获取包括第一路径的地图点的描述信息的N幅地图。Step 101: Obtain N maps including description information of map points of a first path.
具体地说,N幅地图中的描述信息不同,N为大于1的整数。例如,终端获取第一路径的正向地图和第一路径的反向地图。终端从一点出发,朝第一方向运动,采集第一路径的第一图像数据,并根据第一路径的第一图像数据建立第一路径的正向地图。终端从同一点出发,朝第二方向运动,采集第一路径的第二图像数据,并根据第一路径的第二图像数据建立第一路径的反向地图。其中,第一方向和第二方向的方向相反。Specifically, the description information in N maps is different, and N is an integer greater than 1. For example, the terminal obtains a forward map of the first path and a reverse map of the first path. The terminal moves from one point to the first direction, collects first image data of the first path, and establishes a forward map of the first path according to the first image data of the first path. Starting from the same point, the terminal moves in the second direction, collects second image data of the first path, and establishes a reverse map of the first path according to the second image data of the first path. Wherein, the directions of the first direction and the second direction are opposite.
步骤102:从N幅地图中选择一副地图作为基准地图,其余地图作为修正地图。Step 102: Select one map from the N maps as the reference map and the remaining maps as the correction map.
例如,选择第一路径的正向地图作为基准地图,第一路径的反向地图作为修正地图。For example, the forward map of the first path is selected as the reference map, and the reverse map of the first path is used as the correction map.
步骤103:根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息。Step 103: Adjust the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map.
具体地说,第一路径的地图点的描述信息包括第一路径的地图点的方向信息和地图点的位置信息。终端根据基准地图中的第一路径的地图点的方向信息,调整修正地图中的第一路径的地图点的方向信息,根据基准地图中的第一路径的地图点的位置信息,调整修正地图的地图点的位置信息。Specifically, the description information of the map points of the first path includes the direction information of the map points of the first path and the position information of the map points. The terminal adjusts the direction information of the map points of the first path in the correction map according to the direction information of the map points of the first path in the reference map, and adjusts the position of the correction map according to the position information of the map points of the first path in the reference map Location information for map points.
与现有技术相比,本实施例中提供的多地图对齐的方法,根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息,使得基准地图和修正地图对第一路径的地 图点的描述信息一致。由于多幅地图中的第一路径的地图点的描述信息一致,使得终端在定位过程中,无论加载哪幅地图,都能得到相同的定位结果,减少各地图对同一位置的定位结果的偏差。Compared with the prior art, the multi-map alignment method provided in this embodiment adjusts and corrects the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map, so that The reference map and the modified map have the same description information of the map points of the first path. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
本申请的第二实施例涉及一种多地图对齐的方法,本实施例是对第一实施例的进一步细化,具体说明了步骤103。The second embodiment of the present application relates to a method for multi-map alignment. This embodiment is a further refinement of the first embodiment, and specifically describes step 103.
如图2所示,本实施例包括步骤201至步骤204。其中,步骤201、步骤202分别与第一实施例中的步骤101、步骤102大致相同,此处不再详述,下面主要介绍不同之处:As shown in FIG. 2, this embodiment includes steps 201 to 204. Step 201 and step 202 are substantially the same as step 101 and step 102 in the first embodiment, respectively, and will not be described in detail here. The differences are mainly introduced below:
执行步骤201和步骤202。Perform steps 201 and 202.
步骤203:分别将N幅地图中的每幅地图中的第一路径分为M段第二路径。M为正整数。Step 203: Divide the first path in each of the N maps into M segments of the second path. M is a positive integer.
具体实现中,终端确定N幅地图中的每幅地图的第一路径的关键点信息,根据N幅地图中的每幅地图的第一路径的关键点信息,分别将N幅地图中的每幅地图中的第一路径分为M段第二路径。其中,关键点是指第一路径中的特殊位置点,如拐点,终端可以根据这些特殊位置点,将第一路径分为不同的路段。In specific implementation, the terminal determines the key point information of the first path of each map in the N maps, and according to the key point information of the first path of each map in the N maps, each of the N maps The first path in the map is divided into M segments of the second path. The key points refer to special position points in the first path, such as inflection points. The terminal can divide the first path into different road segments according to these special position points.
其中,终端确定N幅地图中的每幅地图的第一路径的关键点信息的方法如下:对N幅地图中的每幅地图分别进行以下操作:获取地图建立过程中采集的地图点的方向信息;根据地图点的方向信息,确定地图中的第一路径的关键点信息。The method for the terminal to determine the key point information of the first path of each of the N maps is as follows: each of the N maps performs the following operations: obtaining the direction information of the map points collected during the map establishment process ; Determining the key point information of the first path in the map according to the direction information of the map points.
以下对终端获取地图建立过程中采集的地图点的方向信息的方法进行说明。The following describes the method for the terminal to obtain the direction information of the map points collected during the map establishment process.
方法1:终端根据设置在终端上的视觉传感器采集的第一路径的图像数据,使用vSLAM技术建图,输出每帧图像对应的位置信息及方向信息,并将每帧图像对应的位置信息作为地图点的位置信息,将每帧图像对应的方向信息作为地图点的方向信息。Method 1: The terminal uses vSLAM technology to create a map based on the image data of the first path collected by the visual sensor set on the terminal, and outputs the position information and direction information corresponding to each frame of image, and uses the position information corresponding to each frame of the image as a map For the position information of the points, the direction information corresponding to each frame of the image is used as the direction information of the map points.
方法2:终端根据里程计或惯性单元测量装置(Inertial Measurement Unit,IMU)等其他传感器采集的数据确定地图点的方向信息。以里程计为例,终端携带视觉传感器和里程计,沿第一路径运动。终端运动过程中,视觉传感器采集第一路径的图像数据,确定每帧图像对应的时间戳信息,里程计采集终端的方向信息和位置信息。 终端将视觉传感器的时间戳和里程计的时间戳对齐,根据每帧图像对应的时间戳信息,确定地图点的方向信息和位置信息。终端根据每帧图像信息、每帧图像对应的方向信息和位置信息,确定地图点的描述信息。Method 2: The terminal determines the direction information of the map point according to data collected by other sensors such as an odometer or an Inertial Measurement Unit (IMU). Taking the odometer as an example, the terminal carries a visual sensor and an odometer, and moves along the first path. During the movement of the terminal, the vision sensor collects the image data of the first path, determines the time stamp information corresponding to each frame of image, and the odometer collects the direction information and position information of the terminal. The terminal aligns the time stamp of the visual sensor with the time stamp of the odometer, and determines the direction information and location information of the map point according to the time stamp information corresponding to each frame of the image. The terminal determines the description information of the map points according to the image information of each frame, the direction information and the position information corresponding to each frame of the image.
值得一提的是,加入其他传感器辅助确定地图点的位置信息和方向信息,可以避免使用vSLAM技术对未回环路径建图时,由于终端没有检测到回环,不会对终端的位姿进行优化,从而造成的累积误差。It is worth mentioning that adding other sensors to assist in determining the location information and direction information of map points can avoid using vSLAM technology to map unlooped paths. Because the terminal does not detect a loop, the terminal's pose will not be optimized. The resulting cumulative error.
以下对根据地图点的方向信息,确定地图中的第一路径的关键点信息的方法进行说明。The following describes a method for determining key point information of a first path in a map according to direction information of a map point.
例如,关键点为第一路径中的拐点。在直线路径中,相邻的两个地图点的方向信息相近,在拐弯处,相邻的两个地图点的方向信息会出现较大的变化。终端按照第一路径的地图点的方向信息的获取顺序排列第一路径的地图点的方向信息,针对每个第一路径的地图点的方向信息,分别进行以下操作:计算地图点的方向信息与下一地图点的方向信息的第一差值,判断第一差值是否大于第一阈值,若确定是,将地图点的方向信息对应的地图点的位置信息作为第一路径的候选的关键点信息。终端根据所有的第一路径的候选的关键点信息,确定第一路径的关键点信息。其中,第一阈值可以根据实际需要设置。For example, the key point is an inflection point in the first path. In a straight path, the direction information of two adjacent map points is similar. At the turn, the direction information of two adjacent map points will change greatly. The terminal arranges the direction information of the map points of the first path in the order of obtaining the direction information of the map points of the first path. For the direction information of the map points of each first path, the following operations are respectively performed: calculating the direction information of the map points and The first difference value of the direction information of the next map point, to determine whether the first difference value is greater than the first threshold, and if determined to be, use the position information of the map point corresponding to the direction information of the map point as a key point candidate for the first path information. The terminal determines key point information of the first path according to all candidate key point information of the first path. The first threshold may be set according to actual needs.
具体实现中,终端可设置一定的移动距离dt,分别记录终端每移动dt对应的地图点的方向信息。设置一定的方向阈值,即第一阈值,若相邻的两个地图点的方向信息的差值大于方向阈值,则认为是这两个地图点之间的路径中存在关键点,将该路径起点对应的地图点和/或该路径终点对应的地图点作为关键点。在实际运行过程中,在一处拐弯位置,可以检测到多个连续的运动方向变化较大的点。因此,可根据连续的运动方向变化较大的点的位置信息,确定关键点的位置信息,如公式1所示:In specific implementation, the terminal may set a certain moving distance dt, and separately record the direction information of the map point corresponding to each moving dt of the terminal. Set a certain direction threshold, that is, the first threshold. If the difference between the direction information of two adjacent map points is greater than the direction threshold, it is considered that there is a key point in the path between the two map points, and the starting point of the path The corresponding map point and / or the map point corresponding to the end point of the path are used as key points. In the actual running process, at a turning position, a plurality of points with large continuous movement directions can be detected. Therefore, the position information of the key points can be determined according to the position information of the points whose continuous movement direction changes greatly, as shown in formula 1:
公式1:
Figure PCTCN2018096539-appb-000001
Formula 1:
Figure PCTCN2018096539-appb-000001
其中,t j表示关键点的位置信息,k i表示运动方向变化较大的地图点的位置信息,n表示运动方向变化较大的地图点的个数。 Among them, t j represents the position information of key points, k i represents the position information of map points with large changes in the direction of movement, and n represents the number of map points with large changes in the direction of movement.
步骤204:针对每幅修正地图中的每段第二路径,分别进行以 下操作:确定与修正地图的第二路径相对应的基准地图的第二路径;根据相对应的基准地图的第二路径的地图点的描述信息,调整修正地图的第二路径的地图点的描述信息。Step 204: For each segment of the second path in each revised map, the following operations are respectively performed: determining the second path of the reference map corresponding to the second path of the revised map; and according to the second path of the corresponding reference map The description information of the map points is adjusted to modify the description information of the map points of the second path of the map.
以下对终端确定与修正地图的第二路径相对应的基准地图的第二路径的方法进行说明。The following describes a method for the terminal to determine the second path of the reference map corresponding to the second path of the modified map.
例如,终端获取第一路径的正向地图和反向地图,并将第一路径的正向地图作为基准地图,第一路径的反向地图作为修正地图。第一路径的正向地图中的关键点为{t P|(t P0,t P1,t P2……t Pn-2,t Pn-1)},第一路径的反向地图中的关键点为{t N|(t N0,t N1,t N2……t Nn-2,t Nn-1)}。由于第一路径的正向地图和反向地图的起点相同,仅方向相反,第一路径的正向地图的关键点的顺序和第一路径的反向地图的关键点的顺序相反,即{t P-t N|t P0-t N0,t P1-t N1,t P2-t N2,……t Pn-2-t Nn-2,t Pn-1-t Nn-1}。由于第二路径是根据第一路径的正向地图中的关键点和第一路径的反向地图中的关键点划分的,所以,根据第一路径的正向地图的关键点和第一路径的反向地图的关键点的对应关系,即可确定正向地图中的第二路径与反向地图中的第二路径的对应关系。 For example, the terminal obtains a forward map and a reverse map of the first path, and uses the forward map of the first path as a reference map and the reverse map of the first path as a correction map. The key points in the forward map of the first path are {t P | (t P0 , t P1 , t P2 ...... t Pn-2 , t Pn-1 )}, and the key points in the reverse map of the first path Is {t N | (t N0 , t N1 , t N2 ...... t Nn-2 , t Nn-1 )}. Since the starting point of the forward map and the reverse map of the first path are the same and only the directions are opposite, the order of the key points of the forward map of the first path and the order of the key points of the reverse map of the first path are reversed, that is, {t P -t N | t P0 -t N0 , t P1 -t N1 , t P2 -t N2 , ... t Pn-2 -t Nn-2 , t Pn-1 -t Nn-1 }. Since the second path is divided according to the key points in the forward map of the first path and the key points in the reverse map of the first path, the key points in the forward map of the first path and the first path are divided. The correspondence between the key points in the reverse map can determine the correspondence between the second path in the forward map and the second path in the reverse map.
以下对根据与修正地图的第二路径相对应的基准地图的第二路径(以下简称为修正地图的第二路径的对应路径),调整修正地图的第二路径的地图点的描述信息的方法进行说明。The following is a method for adjusting the description information of the map points of the second path of the revised map based on the second path of the reference map corresponding to the second path of the revised map (hereinafter referred to as the corresponding path of the second path of the revised map). Instructions.
终端确定修正地图的第二路径的对应路径的方向信息,以及修正地图的第二路径的方向信息,根据修正地图的第二路径的对应路径的方向信息,以及修正地图的第二路径的方向信息,调整修正地图的第二路径的地图点的方向信息。终端根据基准地图的第二路径的地图点的位置信息,以及修正地图的第二路径调整后的地图点的方向信息,调整修正地图的第二路径的地图点的位置信息。The terminal determines the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the modified map, according to the direction information of the corresponding path of the modified second path of the map, and the direction information of the second path of the modified map. , Adjust the direction information of the map points of the second path of the correction map. The terminal adjusts the position information of the map points of the second path of the modified map according to the position information of the map points of the second path of the reference map and the direction information of the adjusted map points of the second path of the modified map.
其中,终端根据N幅地图中每幅地图建立过程中采集的地图点的方向信息,确定N幅地图中每幅地图的第二路径的方向信息。具体地说,终端针对N幅地图中每幅地图的第二路径,分别进行以下操作:获取第二路径的地图点的所有方向信息,并针对每个第二路径的地图点的方向信息,分别进行以下操作:确定第二路径的地图点的方向信息与其他第二路径的地图点的方向信息的第二差值;判断第 二路径的地图点的方向信息对应的所有第二差值中,是否存在大于第二阈值的第二差值,若确定不存在,将第二路径的地图点的方向信息作为第二路径的方向信息。The terminal determines the direction information of the second path of each map in the N maps according to the direction information of the map points collected during the establishment of each map in the N maps. Specifically, the terminal performs the following operations respectively for the second path of each map in the N maps: obtaining all direction information of the map points of the second path, and for the direction information of the map points of each second path, respectively The following operations are performed: determining the second difference between the direction information of the map points of the second path and the direction information of the map points of the other second paths; and determining all the second differences corresponding to the direction information of the map points of the second path, Whether there is a second difference greater than the second threshold, and if it is determined not to exist, the direction information of the map points of the second path is used as the direction information of the second path.
以下对不同情况下,终端根据基准地图的描述信息更新修正地地图的描述信息的过程进行说明。The following describes the process in which the terminal updates the description information of the corrected map according to the description information of the reference map in different situations.
情况1:修正地图的第二路径的对应路径的方向信息的个数为1,且修正地图的第二路径的方向信息的个数为1。该情况下,终端根据修正地图的第二路径的对应路径的方向信息,以及修正地图的第二路径的方向信息,调整修正地图的第二路径的地图点的方向信息;用基准地图的第二路径中,与修正地图的第二路径起始的地图点相对应的地图点的位置信息,替换修正地图的第二路径起始的地图点的位置信息;从替换后的修正地图的第二路径起始的地图点的位置信息开始,根据修正地图的比例、当前的地图点的位置信息、当前的地图点的调整后的方向信息,以及当前的地图点与下一地图点的距离信息,计算用于替换下一个地图点的位置信息的替换信息,用替换信息替换下一个地图点的位置信息,直至替换完修正地图的第二路径上的所有地图点的位置信息。Case 1: The number of direction information of the corresponding path of the second path of the modified map is one, and the number of direction information of the second path of the corrected map is one. In this case, the terminal adjusts the direction information of the map points of the second path of the modified map according to the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the modified map; In the path, the position information of the map point corresponding to the map point at the start of the second path of the revised map is substituted for the position information of the map point at the start of the second path of the revised map; from the second path of the revised map after the replacement The position information of the starting map point starts, and is calculated according to the scale of the modified map, the position information of the current map point, the adjusted direction information of the current map point, and the distance information between the current map point and the next map point. Replacement information used to replace the position information of the next map point, and replace the position information of the next map point with the replacement information until the position information of all map points on the second path of the modified map is replaced.
情况2:修正地图的第二路径的对应路径的方向信息的个数大于1,或,修正地图的第二路径的方向信息的个数大于1。该情况下,终端针对每个修正地图的第二路径的对应路径的方向信息,分别进行以下操作:从修正地图的第二路径的方向信息中,依次选择一个方向信息,进行以下操作:根据修正地图的第二路径的对应路径的方向信息,以及选择的修正地图的第二路径的方向信息,调整修正地图的第二路径的地图点的方向信息;用基准地图的第二路径中,与修正地图的第二路径起始的地图点相对应的地图点的位置信息,替换修正地图的第二路径起始的地图点的位置信息;从替换后的修正地图的第二路径起始的地图点的位置信息开始,根据修正地图的比例、当前的地图点的位置信息、当前的地图点的调整后的方向信息,以及当前的地图点与下一地图点的距离信息,计算用于替换下一个地图点的位置信息的替换信息,用替换信息替换下一个地图点的位置信息,直至替换完修正地图的第二路径上的所有地图点的位置信息。终端确定基准地图 的第二路径中与修正地图的第二路径结束的地图点相对应的地图点的位置信息。终端计算与修正地图的第二路径结束的地图点相对应的地图点的位置信息和替换后的修正地图的第二路径结束的地图点的位置信息的第三差值。终端在针对所有的修正地图的第二路径的对应路径的方向信息和修正地图的第二路径的方向信息完成上述操作后,确定最小的第三差值,将最小的第三差值对应的操作结果,作为最终的修正地图中的第一路径的地图点的描述信息的调整结果。Case 2: The number of direction information of the corresponding path of the second path of the modified map is greater than one, or the number of direction information of the second path of the corrected map is greater than one. In this case, the terminal performs the following operations on the direction information of the corresponding path of the second path of each modified map: sequentially selects one direction information from the direction information of the second path of the modified map, and performs the following operations: The direction information of the corresponding path of the second path of the map and the direction information of the second path of the selected modified map are used to adjust the direction information of the map points of the second path of the modified map; The position information of the map point corresponding to the map point starting from the second path of the map replaces the position information of the map point starting from the second path of the revised map; the map point starting from the second path of the revised map after the replacement Starting from the position information of the map, the calculation is used to replace the next one according to the scale of the modified map, the position information of the current map point, the adjusted direction information of the current map point, and the distance information of the current map point and the next map point. Replacement information of the position information of the map point, and replace the position information of the next map point with the replacement information until the replacement Map location information of all points on the path to complete the second amendment of the map. The terminal determines the position information of the map points corresponding to the map points at which the second path of the modified map ends in the second path of the reference map. The terminal calculates a third difference between the position information of the map point corresponding to the map point where the second path of the modified map ends and the position information of the map point where the second path of the modified map ends after the replacement. After the terminal completes the foregoing operations for all the direction information of the corresponding path of the second path of the modified map and the direction information of the second path of the corrected map, the terminal determines the smallest third difference value, and performs the operation corresponding to the smallest third difference value. As a result, the adjustment result of the description information of the map points of the first path in the final revised map.
例如,正向地图的第一路径如图3a所示,反向地图的第一路径如图3b所示,以正向地图为基准地图,反向地图为修正地图。终端确定正向地图的第一路径的关键点为A、B、C、D、E和F,根据上述关键点将正向地图的第一路径分为6段第二路径,分别为:A-B、B-C、C-D、D-E、E-F和F-A。终端确定反向地图的第一路径的关键点为a、b、c、d、e和f,根据上述关键点将反向地图的第一路径分为6段第二路径,分别为a-b、b-c、c-d、d-e、e-f和f-a。其中,A-B与a-b相对应,B-C与b-c相对应,C-D与c-d相对应,D-E与d-e相对应,E-F与e-f相对应,F-A与f-a相对应。由于单个地图点的方向不足以代表一条直线的整体方向,使用vSLAM技术建立地图后,一条路径上能获取很多点,直接使用其中一点的方向会造成较大的差异。因此,终端将第二路径划分为多个第三路径,例如,将A-B划分为6段后的路径示意图如图3c所示。确定地图点h的方向信息与其他地图点(i、j、k、l、m和n)的方向信息的差值,若地图点h与其他地图点的方向信息的差值都不大于第二阈值,将地图点h的方向信息作为第二路径的方向信息。以此类推,对A-B的其他地图点的方向信息判断。最终,若每个地图点的方向信息都符合要求,则A-B的方向信息可能是地图点h的方向信息、地图点i的方向信息、地图点j的方向信息、地图点k的方向信息、地图点l的方向信息、地图点m的方向信息和地图点n的方向信息中的任意一个方向信息。参考上述方法确定正向地图的其他第二路径的方向信息,以及反向地图的第二路径的方向信息。由于基准地图的每段第二路径和反向地图的每段第二路径可能存在多个可能的方向信息,每种方向信息对应的调整结果不同,因此,需要根据每种可能的方向信息对修正地图进行调整。以 下以正向地图中的A-B和反向地图中的a-b为例说明调整过程。假设反向地图中a-b中只有一个地图点u的方向信息符合要求,将地图点u的方向信息作为a-b的方向信息,A-B中的地图点h、地图点j的方向信息均符合要求,则先将地图点h的方向信息作为A-B的方向信息,计算地图点h的方向信息和地图点u的方向信息的差值θ d。根据该差值θ d,按照公式2调整a-b中每个地图点的方向信息。 For example, the first path of the forward map is shown in FIG. 3a, and the first path of the reverse map is shown in FIG. 3b. The forward map is used as the reference map and the reverse map is used as the modified map. The terminal determines the key points of the first path of the forward map as A, B, C, D, E, and F. According to the above key points, the first path of the forward map is divided into six second paths, which are: AB, BC, CD, DE, EF, and FA. The terminal determines the key points of the first path of the reverse map as a, b, c, d, e, and f. According to the above key points, the first path of the reverse map is divided into 6 second paths, which are ab and bc, respectively. , Cd, de, ef, and fa. Among them, AB corresponds to ab, BC corresponds to bc, CD corresponds to cd, DE corresponds to de, EF corresponds to ef, and FA corresponds to fa. Because the direction of a single map point is not sufficient to represent the overall direction of a straight line, after the map is created using vSLAM technology, many points can be obtained on a path, and the direction of directly using one point will cause a large difference. Therefore, the terminal divides the second path into multiple third paths. For example, a schematic diagram of the path after dividing AB into 6 segments is shown in FIG. 3c. Determine the difference between the direction information of map point h and the direction information of other map points (i, j, k, l, m, and n). If the difference between the direction information of map point h and other map points is not greater than the second The threshold value uses the direction information of the map point h as the direction information of the second path. By analogy, the direction information of other map points of AB is judged. Finally, if the direction information of each map point meets the requirements, the direction information of AB may be the direction information of map point h, the direction information of map point i, the direction information of map point j, the direction information of map point k, and the map. Any one of the direction information of the point l, the direction information of the map point m, and the direction information of the map point n. With reference to the above method, the direction information of the other second paths of the forward map and the direction information of the second path of the reverse map are determined. Because there may be multiple possible direction information for each second path of the reference map and each second path of the reverse map, the adjustment results corresponding to each type of direction information are different. Therefore, corrections need to be made according to each possible direction information. The map is adjusted. The following uses AB in the forward map and ab in the reverse map as examples to illustrate the adjustment process. Assume that the direction information of only one map point u in the ab in the reverse map meets the requirements. Let the direction information of map point u be the direction information of ab. The direction information of map point h and map point j in AB meet the requirements. Using the direction information of the map point h as the direction information of AB, the difference θ d between the direction information of the map point h and the direction information of the map point u is calculated. According to the difference θ d , the direction information of each map point in ab is adjusted according to Formula 2.
公式2:θ cor=θ orgd Formula 2: θ cor = θ org + θ d
其中,θ cor表示修正地图的第二路径中的地图点调整后的方向信息,θ org表示修正地图的第二路径中的地图点调整前的方向信息,θ d表示修正地图的第二路径的方向信息和基准地图的第二路径的方向信息的差值。 Among them, θ cor indicates the direction information after the map points are adjusted in the second path of the modified map, θ org indicates the direction information before the map points are adjusted in the second path of the modified map, and θ d indicates the second path of the modified map. The difference between the direction information and the direction information of the second path of the reference map.
用A-B的起点A的位置信息替换a-b的起点a的位置信息,按照公式3和公式4计算用于替换下一个地图点的位置信息的替换信息,直至替换完修正地图的第二路径上的所有地图点的位置信息。Replace the position information of the start point a of ab with the position information of the start point A of AB, and calculate the replacement information for replacing the position information of the next map point according to formulas 3 and 4, until all the information on the second path of the modified map is replaced. Location information for map points.
公式3:x'=x+s*d*cos(θ cor) Formula 3: x '= x + s * d * cos (θ cor )
公式4:y'=y+s*d*sin(θ cor) Formula 4: y '= y + s * d * sin (θ cor )
其中,(x,y)表示修正地图中当前的地图点的位置信息,s代表修正地图的比例尺;d代表当前的地图点与下一个地图点的距离,θ cor表示当前的地图点调整后的方向信息,(x',y')代表用于替换下一个地图点的方向信息的替换信息。 Among them, (x, y) represents the position information of the current map point in the modified map, s represents the scale of the modified map; d represents the distance between the current map point and the next map point, and θ cor represents the adjusted current map point. Direction information, (x ', y') represents replacement information for replacing the direction information of the next map point.
在替换完a-b中的每个地图点的位置信息后,按照公式5计算a-b的终点(地图点b)的位置信息和A-B的终点(地图点B)的位置信息的差值q 1After replacing the position information of each map point in ab, the difference q 1 between the position information of the end point (map point b) of ab and the position information of the end point (map point B) of ab is calculated according to Formula 5.
公式5:
Figure PCTCN2018096539-appb-000002
Equation 5:
Figure PCTCN2018096539-appb-000002
其中,q表示修正地图的第二路径结束的地图点调整后的位置信息和基准地图的第二路径结束的地图点的位置信息的差值,(x p-e,y p-e)表示基准地图中每段路径的终点的位置信息,(x n-e,y n-e)表示修正地图中每段路径的终点调整后的位置信息。 Among them, q represents the difference between the adjusted position information of the map point at the end of the second path of the modified map and the position information of the map point at the end of the second path of the reference map, and (x pe , y pe ) represents each segment in the reference map. The position information of the end point of the path, (x ne , y ne ) represents the adjusted position information of the end point of each segment of the path in the correction map.
然后,将地图点j的方向信息作为正向地图的A-B的方向信息,参考将地图点h的方向信息作为正向地图的A-B的方向信息,调整反向地图的a-b的地图点的位置信息,确定该调整结果对应的反向地 图的a-b的终点(地图点b)的位置信息和正向地图的A-B的终点(地图点B)的位置信息的差值q 2。终端判断q 1和q 2的大小,确定q 1小于q 2,则将地图点h的方向信息作为正向地图的A-B的方向信息,对反向地图的a-b的地图点的方向信息和位置信息的调整结果作为最终的调整结果。 Then, use the direction information of the map point j as the direction information of the AB of the forward map, and refer to the direction information of the map point h as the direction information of the AB of the forward map, and adjust the position information of the map points of the ab of the reverse map. A difference q 2 between the position information of the end point (map point b) of ab of the reverse map and the end point (map point B) of AB of the forward map corresponding to the adjustment result is determined. The terminal judges the sizes of q 1 and q 2 and determines that q 1 is less than q 2 , then uses the direction information of the map point h as the direction information of AB of the forward map, and the direction information and position information of the map points of ab of the reverse map. The adjustment result is used as the final adjustment result.
与现有技术相比,本实施例中提供的多地图对齐的方法,根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息,使得基准地图和修正地图对第一路径的地图点的描述信息一致。由于多幅地图中的第一路径的地图点的描述信息一致,使得终端在定位过程中,无论加载哪幅地图,都能得到相同的定位结果,减少各地图对同一位置的定位结果的偏差。Compared with the prior art, the multi-map alignment method provided in this embodiment adjusts and corrects the description information of the map points of the first path in the map according to the description information of the map points of the first path in the reference map, so that The reference map and the modified map have the same description information of the map points of the first path. Because the description information of the map points of the first path in the multiple maps are consistent, the terminal can obtain the same positioning result no matter which map is loaded during the positioning process, and reduce the deviation of the positioning results of the same location in the maps.
本申请的第三实施例涉及一种多地图对齐的装置,如图4所示,包括获取模块301和调整模块302。其中,获取模块301用于获取包括第一路径的地图点的描述信息的N幅地图;其中,N幅地图中的描述信息不同,N为大于1的整数;调整模块302用于从N幅地图中选择一副地图作为基准地图,其余地图作为修正地图;根据基准地图中的第一路径的地图点的描述信息,调整修正地图中的第一路径的地图点的描述信息。The third embodiment of the present application relates to an apparatus for multi-map alignment. As shown in FIG. 4, the apparatus includes an obtaining module 301 and an adjusting module 302. The obtaining module 301 is configured to obtain N maps including description information of map points of the first path; the description information in the N maps is different, and N is an integer greater than 1. The adjustment module 302 is configured to retrieve N maps from N maps. One of the maps is selected as the reference map, and the rest of the maps are used as the correction map. According to the description information of the map points of the first path in the reference map, the description information of the map points of the first path in the correction map is adjusted.
不难发现,本实施例为与第一实施例相对应的系统实施例,本实施例可与第一实施例互相配合实施。第一实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment. To reduce repetition, details are not described here. Accordingly, the related technical details mentioned in this embodiment can also be applied in the first embodiment.
本申请的第四实施例涉及一种终端,如图5所示,包括至少一个处理器401;以及,与至少一个处理器401通信连接的存储器402。其中,存储器402存储有可被至少一个处理器401执行的指令,指令被至少一个处理器401执行,以使至少一个处理器401能够执行上述多地图对齐的方法。A fourth embodiment of the present application relates to a terminal. As shown in FIG. 5, the terminal includes at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401. The memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the above-mentioned multi-map alignment method.
本实施例中,处理器401以中央处理器(Central Processing Unit,CPU)为例,存储器402以可读写存储器(Random Access Memory,RAM)为例。处理器401、存储器402可以通过总线或者其他方式连接,图5中以通过总线连接为例。存储器402作为一种非易失性计算 机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中基准地图和修正地图就存储于存储器402中。处理器401通过运行存储在存储器402中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述多地图对齐的方法。In this embodiment, the processor 401 uses a central processing unit (CPU) as an example, and the memory 402 uses a readable and writable memory (Random Access Memory, RAM) as an example. The processor 401 and the memory 402 may be connected through a bus or other methods. In FIG. 5, the connection through the bus is taken as an example. The memory 402 is a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. For example, the reference map and the modified map are stored in the embodiment of the present application. In memory 402. The processor 401 executes various functional applications and data processing of the device by running non-volatile software programs, instructions, and modules stored in the memory 402, that is, a method for implementing the multi-map alignment described above.
存储器402可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器402可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 402 may include a storage program area and a storage data area, where the storage program area may store an operating system and an application program required for at least one function; the storage data area may store a list of options and the like. In addition, the memory 402 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely set relative to the processor, and these remote memories may be connected to an external device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
一个或者多个模块存储在存储器中,当被一个或者多个处理器执行时,执行上述任意方法实施例中的多地图对齐的方法。One or more modules are stored in the memory, and when executed by one or more processors, the multi-map alignment method in any of the foregoing method embodiments is executed.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can execute the method provided in the embodiment of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details not described in this embodiment, refer to the method provided in the embodiment of the present application.
本申请的第五实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现以上任意方法实施例所描述的多地图对齐的方法。A fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by the processor, the method for multi-map alignment described in any of the above method embodiments is implemented.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above embodiments can be implemented by a program instructing related hardware. The program is stored in a storage medium and includes several instructions for making a device ( It may be a single-chip microcomputer, a chip, or the like) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种 改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the foregoing embodiments are specific embodiments for implementing the present application, and in practical applications, various changes can be made in form and details without departing from the spirit and range.

Claims (13)

  1. 一种多地图对齐的方法,其中,包括:A multi-map alignment method, including:
    获取包括第一路径的地图点的描述信息的N幅地图;其中,所述N幅地图中的描述信息不同,N为大于1的整数;Obtaining N maps including description information of map points of the first path; wherein the description information in the N maps is different, and N is an integer greater than 1;
    从所述N幅地图中选择一副地图作为基准地图,其余地图作为修正地图;Selecting one map from the N maps as a reference map and the remaining maps as correction maps;
    根据所述基准地图中的第一路径的地图点的描述信息,调整所述修正地图中的第一路径的地图点的描述信息。And adjusting the description information of the map points of the first path in the modified map according to the description information of the map points of the first path in the reference map.
  2. 根据权利要求1所述的多地图对齐的方法,其中,所述根据所述基准地图中的第一路径的地图点的描述信息,调整所述修正地图中的第一路径的地图点的描述信息,具体包括:The method for multi-map alignment according to claim 1, wherein the description information of the map points of the first path in the modified map is adjusted according to the description information of the map points of the first path in the reference map , Including:
    分别将所述N幅地图中的每幅地图的所述第一路径分为M段第二路径,M为正整数;Dividing the first path of each of the N maps into M segments of the second path, where M is a positive integer;
    针对每幅所述修正地图中的每段所述第二路径,分别进行以下操作:For each segment of the second path in the revised map, the following operations are respectively performed:
    确定与所述修正地图的第二路径相对应的所述基准地图的第二路径;Determining a second path of the reference map corresponding to the second path of the modified map;
    根据所述相对应的所述基准地图的第二路径的地图点的描述信息,调整所述修正地图的第二路径的地图点的描述信息。And adjusting the description information of the map points of the second path of the modified map according to the description information of the map points of the second path of the reference map.
  3. 根据权利要求2所述的多地图对齐的方法,其中,所述描述信息包括地图点的位置信息和所述地图点的方向信息;The method for multi-map alignment according to claim 2, wherein the description information includes position information of a map point and direction information of the map point;
    所述根据所述相对应的所述基准地图的第二路径的地图点的描述信息,调整所述修正地图的第二路径的地图点的描述信息,具体包括:Adjusting the description information of the map points of the second path of the revised map according to the description information of the map points of the second path of the corresponding reference map specifically includes:
    确定所述相对应的所述基准地图的第二路径的方向信息,以及所述修正地图的第二路径的方向信息;Determining direction information of a corresponding second path of the reference map, and direction information of a second path of the modified map;
    根据所述相对应的所述基准地图的第二路径的方向信息,以及所述修正地图的第二路径的方向信息,调整所述修正地图的第二路径的地图点的方向信息;根据所述基准地图的第二路径的地图点的位置信息,以及所述修正地图的第二路径调整后的地图点的方向信息,调整所述修正地图的第二路径的地图点的位置信息。Adjusting the direction information of the map points of the second path of the modified map according to the corresponding direction information of the second path of the reference map and the direction information of the second path of the modified map; according to the The position information of the map points of the second path of the reference map and the direction information of the adjusted map points of the second path of the modified map adjust the position information of the map points of the second path of the modified map.
  4. 根据权利要求2或3所述的多地图对齐的方法,其中,所述分别将所述N幅地图中的每幅地图的所述第一路径分为M段第二路径,具体包括:The method for multi-map alignment according to claim 2 or 3, wherein the dividing the first path of each of the N maps into M segments of the second path specifically includes:
    确定所述N幅地图中的每幅地图的所述第一路径的关键点信息;Determining key point information of the first path of each of the N maps;
    根据所述N幅地图中的每幅地图的所述第一路径的关键点信息,分别将所述N幅地图中的每幅地图中的所述第一路径分为M段第二路径。According to the key point information of the first path of each of the N maps, the first path of each of the N maps is divided into M segments of the second path.
  5. 根据权利要求4所述的多地图对齐的方法,其中,所述确定所述N幅地图中的每幅地图中的所述第一路径的关键点信息,具体包括:The method for multi-map alignment according to claim 4, wherein the determining key point information of the first path in each of the N maps specifically comprises:
    对所述N幅地图中的每幅地图分别进行以下操作:获取所述地图建立过程中采集的地图点的方向信息;根据所述地图点的方向信息,确定所述地图中的所述第一路径的关键点信息。The following operations are performed on each of the N maps: obtaining the direction information of the map points collected during the map establishment process; and determining the first of the maps according to the direction information of the map points. Key information for the path.
  6. 根据权利要求5所述的多地图对齐的方法,其中,所述根据所述地图点的方向信息,确定所述地图中的所述第一路径的关键点信息,具体包括:The method for multi-map alignment according to claim 5, wherein determining the key point information of the first path in the map according to the direction information of the map points comprises:
    按照所述第一路径的地图点的方向信息的获取顺序排列所述第一路径的地图点的方向信息;Arrange the direction information of the map points of the first path according to the order of obtaining the direction information of the map points of the first path;
    针对每个所述第一路径的地图点的方向信息,分别进行以下操作:计算所述地图点的方向信息与下一地图点的方向信息的第一差值,判断所述第一差值是否大于第一阈值,若确定是,将所述地图点的方向信息对应的地图点的位置信息作为所述第一路径的候选的关键点信息;For the direction information of the map point of each of the first paths, the following operations are respectively performed: calculating a first difference between the direction information of the map point and the direction information of the next map point, and determining whether the first difference is Is greater than the first threshold, and if it is determined to be, the position information of the map point corresponding to the direction information of the map point is used as the candidate key point information of the first path;
    根据所有的所述第一路径的候选的关键点信息,确定所述第一路径的关键点信息。Determining key point information of the first path according to all candidate key point information of the first path.
  7. 根据权利要求3所述的多地图对齐的方法,其中,所述确定所述相对应的所述基准地图的第二路径的方向信息,以及所述修正地图的第二路径的方向信息,具体包括:The method for multi-map alignment according to claim 3, wherein the determining direction information of the second path of the corresponding reference map and the direction information of the second path of the modified map specifically include :
    根据所述N幅地图中每幅地图建立过程中采集的地图点的方向信息,确定所述N幅地图中每幅地图的第二路径的方向信息。Determine the direction information of the second path of each map in the N maps according to the direction information of the map points collected during the establishment of each map in the N maps.
  8. 根据权利要求7所述的多地图对齐的方法,其中,所述根据 所述N幅地图中每幅地图建立过程中采集的地图点的方向信息,确定所述N幅地图中每幅地图的第二路径的方向信息,具体包括:The method for multi-map alignment according to claim 7, wherein the determining the first position of each map in the N maps according to the direction information of the map points collected during the establishment of each map in the N maps The direction information of the two paths includes:
    针对所述N幅地图中每幅地图的第二路径,分别进行以下操作:For the second path of each of the N maps, perform the following operations:
    获取所述第二路径的地图点的所有方向信息;Acquiring all direction information of the map points of the second path;
    针对每个所述第二路径的地图点的方向信息,分别进行以下操作:确定所述第二路径的地图点的方向信息与其他第二路径的地图点的方向信息的第二差值;判断所述第二路径的地图点的方向信息对应的所有第二差值中,是否存在大于第二阈值的第二差值,若确定不存在,将所述第二路径的地图点方向信息作为第二路径的方向信息。For the direction information of the map points of each of the second paths, the following operations are respectively performed: determining a second difference between the direction information of the map points of the second path and the direction information of the map points of other second paths; Whether there is a second difference greater than a second threshold value among all the second differences corresponding to the direction information of the map points of the second path, and if it is determined not to exist, the map point direction information of the second path is used as the first Direction information of two paths.
  9. 根据权利要求8所述的多地图对齐的方法,其中,所述根据所述相对应的所述基准地图的第二路径的方向信息,以及所述修正地图的第二路径的方向信息,调整所述修正地图的第二路径的地图点的方向信息;根据所述基准地图的第二路径的地图点的位置信息,以及所述修正地图的第二路径调整后的地图点的方向信息,调整所述修正地图的第二路径的地图点的位置信息,具体包括:The method for multi-map alignment according to claim 8, wherein, according to the direction information of the corresponding second path of the reference map and the direction information of the second path of the modified map, adjusting Adjusting the direction information of the map points of the second path of the modified map; adjusting the position information of the map points of the second path of the reference map and the direction information of the map points after the second path of the modified map is adjusted The position information of the map points on the second path of the modified map specifically includes:
    若确定所述相对应的所述基准地图的第二路径的方向信息的个数为1,且所述修正地图的第二路径的方向信息的个数为1,根据所述相对应的所述基准地图的第二路径的方向信息,以及所述修正地图的第二路径的方向信息,调整所述修正地图的第二路径的地图点的方向信息;用所述基准地图的第二路径中,与所述修正地图的第二路径起始的地图点相对应的地图点的位置信息,替换所述修正地图的所述第二路径起始的地图点的位置信息;从替换后的所述修正地图的第二路径起始的地图点的位置信息开始,根据所述修正地图的比例、当前的地图点的位置信息、当前的地图点的调整后的方向信息,以及当前的地图点与下一地图点的距离信息,计算用于替换下一个地图点的位置信息的替换信息,用所述替换信息替换所述下一个地图点的位置信息,直至替换完所述修正地图的第二路径上的所有地图点的位置信息;If it is determined that the number of direction information of the second path of the corresponding reference map is 1, and the number of direction information of the second path of the modified map is 1, according to the corresponding Use the direction information of the second path of the reference map and the direction information of the second path of the modified map to adjust the direction information of the map points of the second path of the modified map; using the second path of the reference map, Position information of a map point corresponding to a map point starting from a second path of the revised map, replacing position information of a map point starting from the second path of the revised map; The position information of the map point at the start of the second path of the map starts, according to the scale of the modified map, the position information of the current map point, the adjusted direction information of the current map point, and the current map point and the next. Distance information of map points, calculating replacement information for replacing position information of the next map point, and replacing the position information of the next map point with the replacement information until the replacement is completed Map the location information of all points on the map a second correction path;
    若确定所述相对应的所述基准地图的第二路径的方向信息的个数大于1,或,所述修正地图的第二路径的方向信息的个数大于1,针对每个所述相对应的所述基准地图的第二路径的方向信息,分别进行以下操作:从所述修正地图的第二路径的方向信息中,依次选择一 个方向信息,进行以下操作:根据所述相对应的所述基准地图的第二路径的方向信息,以及选择的所述修正地图的第二路径的方向信息,调整所述修正地图的第二路径的地图点的方向信息;用所述基准地图的第二路径中,与所述修正地图的第二路径起始的地图点相对应的地图点的位置信息,替换所述修正地图的所述第二路径起始的地图点的位置信息;从替换后的所述修正地图的第二路径起始的地图点的位置信息开始,根据所述修正地图的比例、当前的地图点的位置信息、当前的地图点的调整后的方向信息,以及当前的地图点与下一地图点的距离信息,计算用于替换下一个地图点的位置信息的替换信息,用所述替换信息替换所述下一个地图点的位置信息,直至替换完所述修正地图的第二路径上的所有地图点的位置信息;确定所述基准地图的第二路径中与所述修正地图的第二路径结束的地图点相对应的地图点的位置信息;计算所述与所述修正地图的第二路径结束的地图点相对应的地图点的位置信息和所述替换后的所述修正地图的第二路径结束的地图点的位置信息的第三差值;If it is determined that the number of direction information of the corresponding second path of the reference map is greater than 1, or that the number of direction information of the second path of the modified map is greater than 1, for each of the corresponding For the direction information of the second path of the reference map, the following operations are respectively performed: from the direction information of the second path of the modified map, one direction information is sequentially selected, and the following operations are performed: according to the corresponding one of the Direction information of the second path of the reference map and direction information of the selected second path of the modified map, adjusting direction information of map points of the second path of the modified map; using the second path of the reference map The position information of the map point corresponding to the map point starting from the second path of the modified map replaces the position information of the map point starting from the second path of the modified map; The position information of the map point at the start of the second path of the modified map is described, according to the scale of the modified map, the position information of the current map point, and the adjustment of the current map point. Subsequent direction information, and distance information between the current map point and the next map point, calculating replacement information for replacing the position information of the next map point, and replacing the position information of the next map point with the replacement information, Until the position information of all the map points on the second path of the modified map is replaced; determining the positions of the map points in the second path of the reference map corresponding to the map points where the second path of the modified map ends Information; calculating a third position information of the map point corresponding to the map point where the second path of the modified map ends and a third position information of the map point where the second path of the modified map ends Difference
    在针对所有的所述相对应的所述基准地图的第二路径的方向信息和所述修正地图的第二路径的方向信息完成上述操作后,确定最小的所述第三差值,将所述最小的第三差值对应的操作结果,作为最终的所述修正地图中的第一路径的地图点的描述信息的调整结果。After the above operations are completed for all the corresponding direction information of the second path of the reference map and the direction information of the second path of the modified map, the smallest third difference is determined, and the The operation result corresponding to the smallest third difference is used as the final adjustment result of the description information of the map points of the first path in the modified map.
  10. 根据权利要求5至9中任一项所述的多地图对齐的方法,其中,所述地图点的方向信息根据里程计或惯性测量装置IMU采集的数据确定。The method for multi-map alignment according to any one of claims 5 to 9, wherein the direction information of the map points is determined according to data collected by an odometry or inertial measurement device IMU.
  11. 一种多地图对齐的装置,其中,包括:A multi-map alignment device, including:
    获取模块,用于获取包括第一路径的地图点的描述信息的N幅地图;其中,所述N幅地图中的描述信息不同,N为大于1的整数;An obtaining module, configured to obtain N maps including description information of map points of a first path; wherein the description information in the N maps is different, and N is an integer greater than 1;
    调整模块,用于从所述N幅地图中选择一副地图作为基准地图,其余地图作为修正地图;根据所述基准地图中的第一路径的地图点的描述信息,调整所述修正地图中的第一路径的地图点的描述信息。An adjustment module, configured to select one map from the N maps as a reference map and the remaining maps as modified maps; and adjust the Description information of the map points of the first path.
  12. 一种终端,其中,包括至少一个处理器;以及,A terminal comprising at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个 处理器执行,以使所述至少一个处理器能够执行如权利要求1至10任一项所述的多地图对齐的方法。A memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processing The device can execute the method for multi-map alignment according to any one of claims 1 to 10.
  13. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至10任一项所述的多地图对齐的方法。A computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the method for multi-map alignment according to any one of claims 1 to 10 is implemented.
PCT/CN2018/096539 2018-07-20 2018-07-20 Multi-map alignment method and device, terminal and storage medium WO2020014990A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/096539 WO2020014990A1 (en) 2018-07-20 2018-07-20 Multi-map alignment method and device, terminal and storage medium
CN201880001191.XA CN109073387B (en) 2018-07-20 2018-07-20 Method, device, terminal and storage medium for aligning multiple maps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/096539 WO2020014990A1 (en) 2018-07-20 2018-07-20 Multi-map alignment method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2020014990A1 true WO2020014990A1 (en) 2020-01-23

Family

ID=64789336

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/096539 WO2020014990A1 (en) 2018-07-20 2018-07-20 Multi-map alignment method and device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN109073387B (en)
WO (1) WO2020014990A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020019115A1 (en) * 2018-07-23 2020-01-30 深圳前海达闼云端智能科技有限公司 Fusion mapping method, related device and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010710A (en) * 2005-07-07 2007-08-01 松下电器产业株式会社 Map information correction device, map information correction method, program, information providing device and information acquisition device using the map information correction device
CN101586962A (en) * 2008-05-21 2009-11-25 环隆电气股份有限公司 Map feedback correction method of inertial navigation system
CN102901501A (en) * 2011-07-26 2013-01-30 高德软件有限公司 Target position query method and server
CN104330081A (en) * 2014-10-14 2015-02-04 北京奇虎科技有限公司 Descriptive position prompt message generation method and device
CN104457772A (en) * 2013-09-13 2015-03-25 伊莱比特汽车公司 Technique for correcting digitized map data
CN106767755A (en) * 2016-11-30 2017-05-31 北京贝虎机器人技术有限公司 Method and device for planning autonomous formula equipment operating point
CN107687860A (en) * 2016-08-04 2018-02-13 鸿富锦精密工业(深圳)有限公司 The autonomous mobile apparatus and method of automatic amendment environmental information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060096729A (en) * 2005-03-02 2006-09-13 삼성전자주식회사 Personal navigation system and method for guiding path in personal navigation system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010710A (en) * 2005-07-07 2007-08-01 松下电器产业株式会社 Map information correction device, map information correction method, program, information providing device and information acquisition device using the map information correction device
CN101586962A (en) * 2008-05-21 2009-11-25 环隆电气股份有限公司 Map feedback correction method of inertial navigation system
CN102901501A (en) * 2011-07-26 2013-01-30 高德软件有限公司 Target position query method and server
CN104457772A (en) * 2013-09-13 2015-03-25 伊莱比特汽车公司 Technique for correcting digitized map data
CN104330081A (en) * 2014-10-14 2015-02-04 北京奇虎科技有限公司 Descriptive position prompt message generation method and device
CN107687860A (en) * 2016-08-04 2018-02-13 鸿富锦精密工业(深圳)有限公司 The autonomous mobile apparatus and method of automatic amendment environmental information
CN106767755A (en) * 2016-11-30 2017-05-31 北京贝虎机器人技术有限公司 Method and device for planning autonomous formula equipment operating point

Also Published As

Publication number Publication date
CN109073387B (en) 2021-03-23
CN109073387A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN110084832B (en) Method, device, system, equipment and storage medium for correcting camera pose
CN110118554B (en) SLAM method, apparatus, storage medium and device based on visual inertia
JP6469220B2 (en) Traveling lane discrimination device and traveling lane discrimination method
US20210158567A1 (en) Visual positioning method and apparatus, electronic device, and system
WO2020019115A1 (en) Fusion mapping method, related device and computer readable storage medium
US20110218733A1 (en) Method and apparatus for vision aided navigation using image registration
WO2022142185A1 (en) Pose data determination method and apparatus, and electronic device and vehicle
US11551552B2 (en) Distributing processing resources across local and cloud-based systems with respect to autonomous navigation
JP5886034B2 (en) Navigation device
US11238643B1 (en) High-definition city mapping
CN112183171A (en) Method and device for establishing beacon map based on visual beacon
JP2019191653A (en) Map information update system and map information update program
JP2022502654A (en) How to build a running coordinate system and its use
US11908198B2 (en) Contextualization and refinement of simultaneous localization and mapping
WO2022012281A1 (en) Map fusion method and vehicle, electronic device, and storage medium
AU2013237211B2 (en) Generating navigation data
CN110717141B (en) Lane line optimization method, device and storage medium
WO2020019117A1 (en) Localization method and apparatus, electronic device, and readable storage medium
WO2020014990A1 (en) Multi-map alignment method and device, terminal and storage medium
WO2020136770A1 (en) Mobile object control device, mobile object control learning device, and mobile object control method
JP2014197351A (en) Driving state determination system, driving state determination method and driving state determination program
WO2020019116A1 (en) Multi-source data mapping method, related apparatus, and computer-readable storage medium
WO2020014941A1 (en) Map establishment method, positioning method and apparatus, terminal and storage medium
CN112799430A (en) Programmable unmanned aerial vehicle-based road surface image intelligent acquisition method
CN116958452A (en) Three-dimensional reconstruction method and system

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: 18926886

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 16/03/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18926886

Country of ref document: EP

Kind code of ref document: A1