A method and system for posture conversion of multi-scene two-dimensional maps

By using a combination of rough matching and fine matching in multi-map scenarios, the problem of excessive calculations in the existing technology is solved, fast and accurate mapping of large scene maps and efficient switching in multi-map scenarios are achieved, improving efficiency Switch between speed and accuracy.

CN112611371BInactive Publication Date: 2024-09-10SHANGHAI MROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011358966.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve fast and accurate switching in multiple map scenes, especially in large scene maps, the calculation amount is too large and cannot be applied to the needs of multiple map scenes.

Method used

Using a combined method of rough matching and precise matching, by obtaining the robot's positioning information and point cloud data in different maps, an approximate matrix and an accurate matrix are constructed to achieve conversion of point cloud data and precise matching of pose information, overcoming the amount of calculations. Too big a problem.

Benefits of technology

It realizes fast and accurate mapping in large scene maps, and improves the switching speed and accuracy in multi-map scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112611371B
    Figure CN112611371B
Patent Text Reader

Abstract

The present invention discloses a posture conversion method and system for a multi-scene two-dimensional map, including: obtaining first positioning information of a robot in a first map; obtaining first point cloud data in the first map and second point cloud data in a second map; performing coarse matching based on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix; performing precise matching on the first positioning information based on the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information. The technical effect of the present invention overcomes the defects of the original technology that the amount of calculation is too large and cannot be applied to large scene maps through the combination of coarse matching and precise matching, realizes fast and accurate mapping in large scene maps, and improves the switching speed and accuracy in multi-map scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot movement control, and in particular to a posture conversion method and system for a multi-scene two-dimensional map. Background Art

[0002] With the development of technology, the application scenarios of mobile robots are becoming more and more extensive. Most indoor robots, in combination with application requirements, will use single-line lidar sensors as the main sensors for mapping, positioning, and obstacle detection in order to reduce costs. Because single-line lidar can only detect objects within a fixed height range, only two-dimensional plane maps can be established. Moreover, due to the defects of common mapping software algorithms, it is difficult to ensure the operability of mapping for large scenes (thousands or tens of thousands of square meters).

[0003] In order to solve the above defects and solve multi-map scenarios, such as multiple floors or large scenes that need to be divided into multiple maps, the robot will switch maps during the task execution. However, in actual use, due to the large amount of calculation and the high computing power required, it is difficult to achieve fast and accurate switching between multiple maps. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a method and system for posture conversion of a multi-scene two-dimensional map. The specific technical solution is as follows:

[0005] On the one hand, a method for posture conversion of a multi-scene two-dimensional map is provided, comprising:

[0006] Obtaining first positioning information of the robot in the first map;

[0007] Acquire first point cloud data in the first map and second point cloud data in the second map;

[0008] A rough match is performed on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix; a precise match is performed on the first positioning information based on the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information.

[0009] In this technical solution, through the combination of coarse matching and fine matching, the defects of the original technology that the amount of calculation is too large and it cannot be applied to large scene maps are overcome, and fast and accurate mapping in large scene maps is achieved, which improves the switching speed and accuracy in multi-map scenes.

[0010] Preferably, the rough matching specifically includes:

[0011] Constructing a first reference point in the first point cloud data;

[0012] constructing a second reference point in the second point cloud data;

[0013] constructing an approximation matrix according to the first reference point and the second reference point;

[0014] According to the approximate matrix, approximately converting the second point cloud data into the first point cloud map to obtain second approximate point cloud data;

[0015] The precise matching specifically includes:

[0016] Constructing a map transformation matrix according to the second approximate point cloud data and the first point cloud;

[0017] constructing an accurate transformation matrix based on the map transformation matrix and the approximate transformation matrix;

[0018] The first positioning information is converted into second positioning information according to the accurate conversion matrix.

[0019] Further preferably, the first reference point is a point in a specific area in the first map;

[0020] The second reference point is a point in a specific area in the second map;

[0021] The specific area in the first map and the specific area in the second map are the intersection areas of the first map and the second map.

[0022] Further preferably, the specific area is an elevator car.

[0023] The first point cloud data is point cloud data of the specific area in the first map;

[0024] The second point cloud data is point cloud data of the specific area in the second map.

[0025] In another aspect, a multi-scene two-dimensional map posture conversion system is provided, comprising:

[0026] A first positioning information acquisition module, used to acquire first positioning information of the robot in the first map;

[0027] A point cloud data acquisition module, used to acquire first point cloud data in the first map and second point cloud data in the second map;

[0028] A coarse matching module, used for performing coarse matching based on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix;

[0029] The precise matching module is used to perform precise matching on the first positioning information according to the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information.

[0030] Preferably, the coarse matching module specifically includes:

[0031] A reference point establishment module, used to construct a first reference point in the first point cloud data and a second reference point in the second point cloud data;

[0032] An approximate matrix construction module, configured to construct an approximate matrix according to the first reference point and the second reference point;

[0033] An approximate point cloud construction module, used for approximately converting the second point cloud data into the first point cloud map according to the approximate matrix to obtain second approximate point cloud data;

[0034] The precise matching module specifically includes:

[0035] A map conversion matrix construction module, used to construct a map conversion matrix according to the second approximate point cloud data and the first point cloud;

[0036] The accurate conversion matrix construction module constructs an accurate conversion matrix according to the map conversion matrix and the approximate conversion matrix, and converts the first positioning information into second positioning information according to the accurate conversion matrix.

[0037] Further preferably, the first reference point is a point in a specific area in the first map;

[0038] The second reference point is a point in a specific area in the second map;

[0039] The specific area in the first map and the specific area in the second map are the intersection areas of the first map and the second map.

[0040] Further preferably, the specific area is an elevator car.

[0041] The first point cloud data is point cloud data of the specific area in the first map;

[0042] The second point cloud data is point cloud data of the specific area in the second map.

[0043] The technical effect of the present invention is as follows: through the combination of coarse matching and fine matching, the defects of the existing technology that the amount of calculation is too large and cannot be applied to large scene maps are overcome, and fast and accurate mapping in large scene maps is achieved, and the switching speed and accuracy in multi-map scenes are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 This is a schematic diagram of the process of Example 1 of the present invention;

[0046] Figure 2 This is a schematic diagram of the process of Embodiment 2 of the present invention;

[0047] Figure 3 This is a schematic diagram of the process of Example 3 of the present invention. DETAILED DESCRIPTION

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0049] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0050] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0051] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0052] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0054] Embodiment 1:

[0055] like Figure 1 As shown, this embodiment provides a posture conversion method for a multi-scene two-dimensional map, including:

[0056] S1: Obtain first positioning information of the robot in a first map;

[0057] S2: Acquire first point cloud data in the first map and second point cloud data in the second map;

[0058] S3: performing rough matching according to the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix;

[0059] S4: Perform precise matching on the first positioning information according to the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information.

[0060] In the traditional map data conversion process, the ICP (Interactive Iterative Closest Point) algorithm is generally used to calculate the transformation matrix of two map point clouds and obtain map2_to_map3_transform. However, usually, there are many map point cloud data, and matching them all will be very time-consuming. In addition, if the two sets of point cloud data are far apart, matching is likely to fail.

[0061] In this embodiment, in order to reduce the matching time and increase the probability of successful matching, this embodiment first performs a rough match and then performs a further match through a fine match to complete the entire process.

[0062] This embodiment overcomes the defects of the existing technology that the amount of calculation is too large and cannot be applied to large scene maps by combining coarse matching and fine matching, realizes fast and accurate mapping in large scene maps, and improves the switching speed and accuracy in multi-map scenarios.

[0063] Embodiment 2:

[0064] like Figure 2 As shown, this embodiment provides a posture conversion method for a multi-scene two-dimensional map, including:

[0065] S1: Obtain first positioning information of the robot in a first map;

[0066] S2: Acquire first point cloud data in the first map and second point cloud data in the second map;

[0067] S3-1: Construct a first reference point in the first point cloud data; construct a second reference point in the second point cloud data; the first reference point is a point in a specific area in the first map; the second reference point is a point in a specific area in the second map; the specific area in the first map and the specific area in the second map are the intersection area of ​​the first map and the second map.

[0068] S3-2: construct an approximate matrix according to the first reference point and the second reference point;

[0069] S3-3: according to the approximate matrix, approximately converting the second point cloud data into the first point cloud map to obtain second approximate point cloud data;

[0070] S4-1: constructing a map transformation matrix according to the second approximate point cloud data and the first point cloud;

[0071] S4-2: constructing an accurate transformation matrix according to the map transformation matrix and the approximate transformation matrix;

[0072] S4-3: Convert the first positioning information into second positioning information according to the accurate conversion matrix.

[0073] In this embodiment, the robot's position robot_pose_in_map2 in the first map is first obtained, that is, the robot's position in the first map, and then the point cloud data in the first map and the second map are obtained. At the same time, in view of the fact that maps generally use the ROS format, in order to facilitate the use of PCL for map matching to calculate the coordinate system conversion between the original map and the target map, the ROS format map data used by the robot needs to be converted into a point cloud format that is easy for PCL to process, that is, converted into point cloud data of the pcl::PointXYZ type, and saved as map2_pointcloud_data and map3_pointcloud_data, that is, the first point cloud data and the second point cloud data, respectively.

[0074] In the rough matching stage, a reference point is taken in a specific area in the same physical space on the first map and the second map, which are map2_elevator and map3_elevator. Since these two points are taken on the map, their coordinate values ​​are known. In theory, if map2_elevator and map3_elevator are exactly the same point, then the coordinate system transformation matrix approximate_transform from map2 to map3 calculated using these two points is the accurate matrix of the coordinate system transformation from map2 to map3. However, it is very difficult to take out the same point in the physical space relative to a specific area on map2 and map3. Therefore, map2_elevator and map3_elevator are only used as two reference points, so that the map3 point cloud can be converted to the point cloud approximate_map3_pointcloud under map2 according to the approximate transformation approximate_transform, and the deviation between it and map2_pointcloud is constrained to a specific area. The actual gap is the gap between map2_elevator and map3_elevator.

[0075] In the precise matching stage, the map transformation matrix map2_to_map3_transform is obtained according to approximate_map3_pointcloud and map2_pointcolud, and then map2_to_map3_transform is multiplied with approximate_transform to obtain the accurate transformation matrix from map2 to map3.

[0076] Preferably, the specific area is an elevator car.

[0077] In this preferred embodiment, generally speaking, the most common specific area is the elevator car. If an elevator car is used, the first map can be a map of the 2nd floor of a building, and the second map can be a map of the 3rd floor. The error during coarse matching can be constrained to the elevator range, thereby completing the entire process.

[0078] Preferably, the first point cloud data is the point cloud data of the specific area in the first map; and the second point cloud data is the point cloud data of the specific area in the second map.

[0079] At the same time, in this preferred embodiment, in order to reduce the amount of calculation and avoid time-consuming matching, it is only necessary to extract the point cloud data of the regular outline of the part near the elevator to meet the actual calculation requirements.

[0080] Embodiment 3:

[0081] like Figure 3 As shown, this embodiment provides a posture conversion system for a multi-scene two-dimensional map, including:

[0082] A first positioning information acquisition module, used to acquire first positioning information of the robot in the first map;

[0083] A point cloud data acquisition module, used to acquire first point cloud data in the first map and second point cloud data in the second map;

[0084] A coarse matching module, used for performing coarse matching based on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix;

[0085] The precise matching module is used to perform precise matching on the first positioning information according to the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information.

[0086] In the traditional map data conversion process, the ICP (Interactive Iterative Closest Point) algorithm is generally used to calculate the transformation matrix of two map point clouds and obtain map2_to_map3_transform. However, usually, there are many map point cloud data, and matching them all will be very time-consuming. In addition, if the two sets of point cloud data are far apart, matching is likely to fail.

[0087] In this embodiment, in order to reduce the matching time and increase the probability of successful matching, this embodiment first performs a rough match and then performs a further match through a fine match to complete the entire process.

[0088] Embodiment 4:

[0089] Based on Example 3, this embodiment provides a posture conversion system for a multi-scene two-dimensional map, including: the coarse matching module specifically includes: a reference point establishment module, which is used to construct a first reference point in the first point cloud data and a second reference point in the second point cloud data; an approximate matrix construction module, which is used to construct an approximate matrix according to the first reference point and the second reference point; an approximate point cloud construction module, which is used to approximately convert the second point cloud data into the first point cloud map according to the approximate matrix to obtain second approximate point cloud data; a map conversion matrix construction module, which is used to construct a map conversion matrix according to the second approximate point cloud data and the first point cloud; an accurate conversion matrix construction module, which constructs an accurate conversion matrix according to the map conversion matrix and the approximate conversion matrix, and converts the first positioning information into the second positioning information according to the accurate conversion matrix. The first reference point is a point in a specific area in the first map; the second reference point is a point in a specific area in the second map; the specific area in the first map and the specific area in the second map are the intersection area of ​​the first map and the second map.

[0090] In this embodiment, the robot's position robot_pose_in_map2 in the first map is first obtained, that is, the robot's position in the first map, and then the point cloud data in the first map and the second map are obtained. At the same time, in view of the fact that maps generally use the ROS format, in order to facilitate the use of PCL for map matching to calculate the coordinate system conversion between the original map and the target map, the ROS format map data used by the robot needs to be converted into a point cloud format that is easy for PCL to process, that is, converted into point cloud data of the pcl::PointXYZ type, and saved as map2_pointcloud_data and map3_pointcloud_data, that is, the first point cloud data and the second point cloud data, respectively.

[0091] In the rough matching stage, a reference point is taken in a specific area in the same physical space on the first map and the second map, which are map2_elevator and map3_elevator. Since these two points are taken on the map, their coordinate values ​​are known. In theory, if map2_elevator and map3_elevator are exactly the same point, then the coordinate system transformation matrix approximate_transform from map2 to map3 calculated using these two points is the accurate matrix of the coordinate system transformation from map2 to map3. However, it is very difficult to take out the same point in the physical space relative to a specific area on map2 and map3. Therefore, map2_elevator and map3_elevator are only used as two reference points, so that the map3 point cloud can be converted to the point cloud approximate_map3_pointcloud under map2 according to the approximate transformation approximate_transform, and the deviation between it and map2_pointcloud is constrained to a specific area. The actual gap is the gap between map2_elevator and map3_elevator.

[0092] In the precise matching stage, the map transformation matrix map2_to_map3_transform is obtained according to approximate_map3_pointcloud and map2_pointcolud, and then map2_to_map3_transform is multiplied with approximate_transform to obtain the accurate transformation matrix from map2 to map3.

[0093] Preferably, the specific area is an elevator car.

[0094] In this preferred embodiment, generally speaking, the most common specific area is the elevator car. If an elevator car is used, the first map can be a map of the 2nd floor of a building, and the second map can be a map of the 3rd floor. The error during coarse matching can be constrained to the elevator range, thereby completing the entire process.

[0095] Preferably, the first point cloud data is the point cloud data of the specific area in the first map; and the second point cloud data is the point cloud data of the specific area in the second map.

[0096] At the same time, in this preferred embodiment, in order to reduce the amount of calculation and avoid time-consuming matching, it is only necessary to extract the point cloud data of the regular outline of the part near the elevator to meet the actual calculation requirements.

[0097] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0098] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A posture conversion method for a multi-scene two-dimensional map, characterized in that: include: Obtaining first positioning information of the robot in the first map; Acquire first point cloud data in the first map and second point cloud data in the second map; Performing rough matching based on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix; According to the second approximate point cloud data, the first point cloud data, and the approximate matrix, the first positioning information is precisely matched to obtain second positioning information; The rough matching specifically includes: Constructing a first reference point in the first point cloud data; constructing a second reference point in the second point cloud data; constructing an approximation matrix according to the first reference point and the second reference point; According to the approximate matrix, approximately converting the second point cloud data into the first point cloud map to obtain second approximate point cloud data; The precise matching specifically includes: Constructing a map transformation matrix according to the second approximate point cloud data and the first point cloud; Constructing an accurate conversion matrix according to the map conversion matrix and the approximate matrix; multiplying the map conversion matrix and the approximate matrix to obtain an accurate conversion matrix; The first positioning information is converted into second positioning information according to the accurate conversion matrix.

2. The method for posture conversion of a multi-scene two-dimensional map according to claim 1, characterized in that: The first reference point is a point in a specific area in the first map; The second reference point is a point in a specific area in the second map; The specific area in the first map and the specific area in the second map are the intersection areas of the first map and the second map.

3. The method for posture conversion of a multi-scene two-dimensional map according to claim 2, characterized in that: The specific area is an elevator car.

4. The method for posture conversion of a multi-scene two-dimensional map according to claim 2, characterized in that: The first point cloud data is point cloud data of the specific area in the first map; The second point cloud data is point cloud data of the specific area in the second map.

5. A multi-scene two-dimensional map posture conversion system, characterized in that: include: A first positioning information acquisition module, used to acquire first positioning information of the robot in the first map; A point cloud data acquisition module, used to acquire first point cloud data in the first map and second point cloud data in the second map; A coarse matching module, used for performing coarse matching based on the first point cloud data and the second point cloud data to obtain second approximate point cloud data and an approximate matrix; A precise matching module, configured to perform precise matching on the first positioning information according to the second approximate point cloud data, the first point cloud data, and the approximate matrix to obtain second positioning information; The coarse matching module specifically includes: A reference point establishment module, used to construct a first reference point in the first point cloud data and a second reference point in the second point cloud data; An approximate matrix construction module, configured to construct an approximate matrix according to the first reference point and the second reference point; An approximate point cloud construction module, used for approximately converting the second point cloud data into the first point cloud map according to the approximate matrix to obtain second approximate point cloud data; The precise matching module specifically includes: A map conversion matrix construction module, used to construct a map conversion matrix according to the second approximate point cloud data and the first point cloud; The accurate conversion matrix construction module constructs an accurate conversion matrix according to the map conversion matrix and the approximate matrix, and converts the first positioning information into second positioning information according to the accurate conversion matrix; and multiplies the map conversion matrix and the approximate matrix to obtain the accurate conversion matrix.

6. A multi-scene two-dimensional map posture conversion system according to claim 5, characterized in that: The first reference point is a point in a specific area in the first map; The second reference point is a point in a specific area in the second map; The specific area in the first map and the specific area in the second map are the intersection areas of the first map and the second map.

7. A multi-scene two-dimensional map posture conversion system according to claim 6, characterized in that: The specific area is an elevator car.

8. The multi-scene two-dimensional map posture conversion system according to claim 6, characterized in that: The first point cloud data is point cloud data of the specific area in the first map; The second point cloud data is point cloud data of the specific area in the second map.