Method, device and electronic system for creating a map

By setting markers in large-area scenes and utilizing their positional relationships, the problem of difficult identification of common areas between multiple maps is solved and the efficiency and accuracy of SLAM mapping are improved.

CN112685527BActive Publication Date: 2024-09-17YUANLI JUHE (CHONGQING) ROBOTICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011643740.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-09-17
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

In large-area scenarios, in SLAM mapping tasks, it is difficult to identify common areas between multiple maps, resulting in low mapping efficiency and accuracy.

Method used

By setting markers in the target area, multiple sub-maps and their auxiliary information are obtained, the relative position relationship between sub-maps is determined based on the position relationship of the same marker, and a map of the target area is constructed.

Benefits of technology

It realizes the rapid and accurate determination of the relative position relationship between adjacent sub-maps, improves the efficiency and accuracy of map construction, and avoids the need to find public areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685527B
    Figure CN112685527B
Patent Text Reader

Abstract

The present invention provides a method, device and electronic system for establishing a map; wherein the method comprises: obtaining multiple submaps of a target area and auxiliary information of each submap; each submap corresponds to a part of the target area; a marker is pre-set in a part of the area; the auxiliary information is used to indicate the position of the marker in the submap; for multiple designated submaps containing the same marker, the relative position relationship between the multiple designated submaps is determined based on the position of the same marker in each designated submap in the multiple designated submaps; based on the relative position relationship between the designated submaps corresponding to each marker and the multiple submaps, a map of the target area is established. The marker is set in the target area, and the relative position relationship between adjacent submaps can be quickly and accurately determined through the marker contained in the submap. There is no need to find the common area between the submaps during the map building process, and the efficiency and accuracy of map building are high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device and electronic system for establishing a map. Background Art

[0002] SLAM (Simultaneous Localization And Mapping) mapping tasks are usually completed by AGV (Automated Guided Vehicle) robots. For mapping tasks in large-area scenes, robots can be used to build maps in different areas to obtain multiple maps. In order to facilitate the subsequent application of maps, multiple maps need to be merged based on the common areas between maps. However, if the scenes between multiple maps are similar, it is more difficult to find the common areas, and it is also prone to errors. It takes a lot of time, resulting in low efficiency and accuracy of mapping. Summary of the invention

[0003] In view of this, an object of the present invention is to provide a method, device and electronic system for establishing a map, so as to improve the efficiency and accuracy of the map.

[0004] In a first aspect, an embodiment of the present invention provides a method for establishing a map, which is applied to a server; the method comprises: obtaining multiple sub-maps of a target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a portion of the target area; a marker is pre-set in the portion of the area; the auxiliary information is used to indicate the position of the marker in the sub-map; for multiple designated sub-maps containing the same marker, based on the position of each designated sub-map of the same marker in the multiple designated sub-maps, determining the relative position relationship between the multiple designated sub-maps; based on the relative position relationship between the designated sub-maps corresponding to each marker, and the multiple sub-maps, establishing a map of the target area.

[0005] The auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0006] The above-mentioned step of determining the relative position relationship between the multiple designated submaps based on the position of the same marker in each of the multiple designated submaps for the multiple designated submaps containing the same marker includes: performing the following operations for two designated submaps containing the same marker: determining the first position data of the first submap relative to the second submap based on the position data of the same marker relative to the first submap of the two designated submaps and the position data of the same marker relative to the second submap of the two designated submaps; and determining the first position data of the first submap relative to the second submap as the relative position relationship between the two designated submaps.

[0007] The above-mentioned step of determining the first position data of the first submap relative to the second submap as the relative position relationship between the two designated submaps includes: if the first submap and the second submap contain the same marker, and there are multiple same markers, obtaining the first position data corresponding to each same marker; wherein the same marker is a marker that appears in both the first submap and the second submap; based on multiple first position data, determining the final first position data; and determining the final first position data as the relative position relationship between the two designated submaps.

[0008] The above-mentioned step of establishing a map of the target area based on the relative position relationship between the designated submaps corresponding to each marker and the multiple submaps includes: determining a reference submap from the multiple submaps, and determining the coordinate origin of the reference submap as the reference coordinate origin; for each submap except the reference submap in the multiple submaps, converting the coordinate origin of the current submap to the reference coordinate origin according to the relative position relationship between the current submap and the reference submap, to obtain a map of the target area; wherein the map of the target area includes: multiple submaps with the reference coordinate origin as the coordinate origin.

[0009] The above method also includes: if the current submap and the benchmark submap do not include the same marker, determining at least one intermediate submap from multiple submaps; wherein at least one intermediate submap has the same marker as the current submap, and at least one intermediate submap has the same marker as the benchmark submap; based on the relative position relationship between the current submap and the at least one intermediate submap, and the relative position relationship between the benchmark submap and the at least one intermediate submap, determining the relative position relationship between the current submap and the benchmark submap.

[0010] The above-mentioned identifier includes a barcode and / or a QR code.

[0011] If the marker includes a barcode, the barcode includes multiple barcodes; a first designated barcode in the multiple barcodes is used to indicate the position of the barcode; and a second designated barcode in the multiple barcodes is used to indicate the code identifier of the barcode.

[0012] The above-mentioned step of obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: receiving multiple sub-maps of the target area and auxiliary information of each sub-map uploaded by the robot; the above-mentioned method also includes: saving the auxiliary information of each sub-map into a preset information queue; traversing the information queue, taking each auxiliary information in the information queue as target information one by one, and performing the following operations on the target information: querying whether there is first auxiliary information containing the same marker as the target information in the auxiliary information other than the target information in the information queue; if the first auxiliary information exists, determining the sub-map corresponding to the first auxiliary information and the sub-map corresponding to the target information as multiple designated sub-maps containing the same marker.

[0013] The above-mentioned step of obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: collecting multiple sub-maps by a robot, and obtaining auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0014] In a second aspect, an embodiment of the present invention provides a method for establishing a map, which is applied to a robot, and the method includes: scanning a target area to obtain multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a portion of the target area; a marker is pre-set in the portion of the area; the auxiliary information is used to indicate the position of the marker in the sub-map; uploading the multiple sub-maps of the target area and the auxiliary information of each sub-map to a server, and the multiple sub-maps of the target area and the auxiliary information of each sub-map are used to determine a map of the target area.

[0015] The above-mentioned step of scanning the target area and obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: collecting multiple sub-maps and determining the auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0016] The above-mentioned step of determining the auxiliary information of each sub-map includes: for each sub-map, performing the following operations: determining the second pose data of the robot relative to the marker in the sub-map, and the third pose data of the robot relative to the sub-map; wherein the second pose data includes: the position data and angle data of the robot in a coordinate system established with the marker as the origin; the third pose data includes: the position data and angle data of the robot in the coordinate system corresponding to the sub-map; based on the second pose data and the third pose data, determining the pose data of the marker in the sub-map relative to the sub-map.

[0017] The above-mentioned step of determining the second pose data of the robot relative to the marker in the sub-map includes: obtaining the fourth pose data of the sensor on the robot relative to the marker in the sub-map; wherein the fourth pose data includes: the position data and angle data of the sensor in the coordinate system established with the marker as the origin; based on the fourth pose data and the fifth pose data of the sensor relative to the robot, determining the second pose data of the robot relative to the marker in the sub-map; wherein the fifth pose data includes: the position data and angle data of the sensor in the coordinate system established with the robot as the origin.

[0018] The auxiliary information of each sub-map is obtained in the following manner: for each marker in each sub-map, multiple initial pose data of the marker relative to the sub-map collected multiple times are obtained, and based on the multiple initial pose data, the pose data of the marker relative to the sub-map is determined.

[0019] The above auxiliary information is used to build a large scene map of the target area.

[0020] In a third aspect, an embodiment of the present invention provides a device for establishing a map, which is arranged on a server; the device includes: an information acquisition module, used to obtain multiple sub-maps of a target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; the auxiliary information is used to indicate the position of the marker in the sub-map; a relationship determination module, used to determine the relative position relationship between the multiple designated sub-maps containing the same marker based on the position of the same marker in each of the multiple designated sub-maps; a sub-map establishment module, used to establish a map of the target area based on the relative position relationship between the designated sub-maps corresponding to each marker, and the multiple sub-maps.

[0021] In a fourth aspect, an embodiment of the present invention provides a device for establishing a map, which is arranged on a robot, and comprises: a scanning module, used to scan a target area to obtain multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; the auxiliary information is used to indicate the position of the marker in the sub-map; an uploading module, used to upload the multiple sub-maps of the target area and the auxiliary information of each sub-map to a server, and the multiple sub-maps of the target area and the auxiliary information of each sub-map are used to determine a map of the target area.

[0022] In a fifth aspect, an embodiment of the present invention provides an electronic system, the electronic system comprising: a processing device and a storage device; a computer program is stored on the storage device, and the computer program executes the method of establishing a map as described above when the processing device runs.

[0023] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processing device, the steps of the method for establishing a map as described above are executed.

[0024] The embodiments of the present invention bring the following beneficial effects:

[0025] In the above-mentioned method, device and electronic system for establishing a map, markers are set in each part of the target area. First, multiple sub-maps of the target area and auxiliary information of each sub-map are obtained; the auxiliary information is used to indicate the position of the marker in the sub-map; for multiple designated sub-maps containing the same marker, the relative position relationship between the multiple designated sub-maps is determined based on the position of the same marker in each sub-map in the multiple designated sub-maps; based on the relative position relationship between the designated sub-maps corresponding to each marker and the multiple sub-maps, a map of the target area is established. In this method, markers are set in the target area to be mapped, and the relative position relationship between adjacent sub-maps can be quickly and accurately determined through the markers contained in the sub-maps, and then a complete map of the target area can be constructed based on the relative position relationship between the sub-maps; in the process of mapping, there is no need to find common areas between sub-maps, and the efficiency and accuracy of mapping are high.

[0026] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 A schematic diagram of the structure of an electronic system provided by an embodiment of the present invention;

[0030] Figure 2 A flowchart of a method for establishing a map provided by an embodiment of the present invention;

[0031] Figure 3A schematic diagram of a laser barcode provided by an embodiment of the present invention;

[0032] Figure 4 A schematic diagram of a visual positioning QR code provided by an embodiment of the present invention;

[0033] Figure 5 A flowchart of another method for establishing a map provided by an embodiment of the present invention;

[0034] Figure 6 A schematic diagram of the structure of a device for establishing a map provided by an embodiment of the present invention;

[0035] Figure 7 A schematic diagram of the structure of another device for establishing a map provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0037] In the related technology, in order to realize the SLAM mapping task performed by AGV in large-area scenes, one way is to optimize the mapping algorithm and improve the compatibility of the mapping algorithm with large scenes by deleting unnecessary or insignificant data. Although these deleted data do not play a key role, they will reduce the accuracy of mapping and therefore cannot fundamentally solve the mapping problem in ultra-large scenes. In addition, this method is very unfriendly to mapping staff, and no mistakes can be made in the middle of the mapping process, otherwise they will need to start over.

[0038] In another way, multiple robots can be used to build maps and obtain multiple sub-maps; sub-maps need to be switched back and forth when used, or multiple sub-maps need to be merged. Among them, the solution of switching sub-maps back and forth requires calibrating the relationship between each sub-map, and multiple sub-maps need to be saved at the same time. When using, the user needs to switch repeatedly between multiple sub-maps, adding additional operations, resulting in reduced work efficiency. For the sub-map merging solution, it is not easy to find the common intersection between sub-maps, especially for sub-maps with similar scenes, it is easy to make mistakes. It is not easy to use the common intersection to obtain the relative position relationship between each sub-map, and it takes a lot of time, resulting in low efficiency and accuracy of map building.

[0039] Based on the above problems, the embodiments of the present invention provide a method, device and electronic system for establishing a map. The technology can be applied to the mapping process in various scenarios, especially to the mapping of large area scenarios.

[0040] Embodiment 1:

[0041] First, refer to Figure 1 An exemplary electronic system 100 for implementing the method, apparatus, and electronic system for establishing a map according to an embodiment of the present invention is described.

[0042] like Figure 1 The electronic system 100 includes one or more processing devices 102 and one or more storage devices 104. Optionally, the electronic system may also include an input device 106, an output device 108, and one or more image acquisition devices 110. These components are interconnected via a bus system 112 and / or other forms of connection mechanisms (not shown). It should be noted that Figure 1 The components and structure of the electronic system 100 shown are merely exemplary and not limiting. The electronic system may also have other components and structures as required.

[0043] The processing device 102 can be a server, a smart terminal, or a device including a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities. It can process data of other components in the electronic system 100 and control other components in the electronic system 100 to perform desired functions.

[0044] The storage device 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processing device 102 may run the program instructions to implement the client functions and / or other desired functions in the embodiments of the present invention (implemented by the processing device) described below. Various applications and various data, such as various data used and / or generated by the application, may also be stored in the computer-readable storage medium.

[0045] The input device 106 may be a device used by a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.

[0046] The output device 108 may output various information (eg, images or sounds) to the outside (eg, a user), and may include one or more of a display, a speaker, and the like.

[0047] The image acquisition device 110 can acquire preview video frames or picture data (such as images to be detected or target video frames), and store the acquired preview video frames or image data in the storage device 104 for use by other components.

[0048] Exemplarily, the components in the example electronic system for implementing the method, device, and electronic system for establishing a map according to an embodiment of the present invention may be integrated or dispersed, such as integrating the processing device 102, the storage device 104, the input device 106, and the output device 108 into one body, and setting the image acquisition device 110 at a specified position where the image can be acquired. When the components in the above electronic system are integrated, the electronic system may be implemented as a robot or a server, or may also be implemented as an intelligent terminal such as a camera, a smart phone, a tablet computer, a computer, a vehicle-mounted terminal, a video camera, etc.

[0049] Embodiment 2:

[0050] This embodiment provides a method for establishing a map, which first describes the target area of ​​the map to be established. The mobile robot scans the target area through a laser or a visual sensor; specifically, the robot can start scanning from a point in the target area. After scanning for a period of time, if the scanning needs to be paused, one or more markers are placed near the area where the robot is currently located to demarcate and mark the scanned area and the area that needs to be scanned subsequently; then, the robot can be used or replaced with another robot to continue scanning. At this time, the robot can still scan the markers placed above; in this way, the same markers exist in the sub-maps of the two areas. In another way, the target area can be divided into multiple sub-areas in advance, and one or more markers are placed between adjacent sub-areas. At this time, the sub-maps corresponding to the adjacent sub-areas all have the same markers.

[0051] Based on the above, see Figure 2 The flowchart of a method for establishing a map is shown, and the method can be executed by a server, and the method includes the following steps:

[0052] Step S202, obtaining multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part; the auxiliary information is used to indicate the position of the marker in the sub-map; and one or more markers may be set in each part of the target area.

[0053] When the target area is relatively large, multiple sub-maps can be obtained by scanning one robot in stages, or multiple sub-maps can be obtained by scanning multiple robots; each sub-map corresponds to a part of the target area; multiple sub-maps can be spliced ​​to obtain a complete map of the target area; in order to accurately identify the relative position relationship between sub-maps, the aforementioned markers can be set in the area corresponding to each sub-map when scanning the sub-maps; when the robot scans the area, it can scan and obtain relevant information of the marker; based on the relevant information of the marker, auxiliary information of the sub-map can be obtained. The marker can be in the form of a barcode, a QR code, a reflective strip, a ribbon, etc. The robot can identify and locate the marker, thereby obtaining the position of the marker in the sub-map.

[0054] Step S204, for multiple designated sub-maps containing the same marker, based on the position of the same marker in each sub-map in the multiple designated sub-maps, determining the relative position relationship between the multiple designated sub-maps;

[0055] When the robot scans the submaps of two or more adjacent areas, it will scan the same marker into the submap corresponding to each area. At this time, multiple designated submaps will contain the same marker. When multiple designated submaps contain the same marker, the relative position relationship between the multiple designated submaps can be determined based on the marker. The above-mentioned designated submap can include two or more submaps. The designated submaps can contain one or more identical markers.

[0056] Step S206: Building a map of the target area based on the relative position relationship between the designated sub-maps corresponding to each marker and the multiple sub-maps.

[0057] In actual implementation, an ID (Identity Document) number can be set for each marker to distinguish different markers; through each marker, the specified sub-map containing the marker and the relative position relationship between the specified sub-maps can be obtained; at this time, the relative position relationship between multiple sub-maps corresponding to various parts of the target area can be determined; by splicing sub-maps or unifying the coordinate system, a map corresponding to the entire target area can be constructed.

[0058] In the above-mentioned method for establishing a map, markers are set in each partial area of ​​the target area. First, multiple submaps corresponding to the partial areas of the target area and auxiliary information of each submap are obtained; the auxiliary information is used to indicate the position of the marker in the submap; for multiple designated submaps containing the same marker, the relative position relationship between the multiple designated submaps is determined based on the position of the same marker in each designated submap in the multiple designated submaps; based on the relative position relationship between the designated submaps corresponding to each marker and the multiple submaps, a map corresponding to the entire target area is established. In this method, markers are set in the target area to be mapped, and the relative position relationship between adjacent submaps can be quickly and accurately determined through the markers contained in the submaps, and then a complete map of the target area can be constructed based on the relative position relationship between the submaps; in the process of mapping, there is no need to find common areas between submaps, and the efficiency and accuracy of mapping are high.

[0059] Embodiment three:

[0060] This embodiment describes the specific form of the marker. The marker may include a barcode and / or a two-dimensional code. The marker may include only one of the barcode or the two-dimensional code, or may include both the barcode and the two-dimensional code. The barcode may be a laser barcode, which is used by the robot to scan with a laser sensor, and the two-dimensional code may also be called a visual positioning two-dimensional code, which is used by the robot to scan with a camera. They are described below.

[0061] If the marker includes a barcode, the barcode includes multiple barcodes; a first designated barcode in the multiple barcodes is used to indicate the position of the barcode; and a second designated barcode in the multiple barcodes is used to indicate the code identifier of the barcode. Figure 3 As an example of a laser barcode, a laser barcode is also called a laser mark. Figure 3 The laser barcode includes ten barcodes, and may also include other numbers of barcodes. In order to facilitate robot recognition, the laser barcode can be made of reflective material. The robot needs to identify the position of the laser barcode and the ID number of the laser barcode. Based on this, the laser barcode needs to be encoded. Specifically, the first designated barcode in the multiple barcodes of the laser barcode can be set to indicate the position of the laser barcode; the second designated barcode in the multiple barcodes is used to indicate the code identifier of the laser barcode. The first designated barcode can be one or more barcodes specified in the laser barcode; the second designated barcode can also be one or more barcodes specified in the laser barcode.

[0062] Continue to refer Figure 3 , starting from the left, the first two barcodes are used by the robot to identify the position of the laser barcode, that is, to locate the laser barcode, and can be made of high-intensity reflective material. Figure 3The first two barcodes are black and white, and other colors can also be set; the next eight barcodes are used by the robot to identify the ID number of the barcode, and the barcode can be encoded and identified in the Hamming encoding method. The width of each barcode can be set to 5 cm or other widths; the color of the barcode can be determined according to the position of each laser barcode, the ID number, and the encoding method. Figure 4 It is an example of a visual positioning QR code; the visual positioning QR code can be obtained by using AruCo QR code and Hamming encoding.

[0063] Embodiment 4:

[0064] This embodiment describes a specific method for obtaining multiple sub-maps and the auxiliary information of each sub-map. It can be seen from the above embodiments that when the robot scans and obtains the sub-map, it scans and identifies the markers in the area. In a specific implementation method, multiple sub-maps can be collected by the robot and uploaded to the server, and then the server determines the auxiliary information of each sub-map. In another implementation method, multiple sub-maps can be collected by the robot, and then the auxiliary information of each sub-map can be determined by the robot, and the robot uploads multiple sub-maps and the auxiliary information of each sub-map to the server.

[0065] The above auxiliary information includes: the position data of the marker in the submap relative to the submap. The position data of the marker in the submap relative to the submap specifically includes the position data and angle data of the marker in the coordinate system corresponding to the submap; wherein the position data is used to indicate the position of the marker, for example, the position coordinates of the marker in the coordinate system corresponding to the submap; while keeping the position unchanged, the marker itself can be rotated in three-dimensional space, so that the angle of the marker changes, and the angle data is used to record the angle of the marker in the above coordinate system.

[0066] When the robot scans and obtains a sub-map, a coordinate system is set for the sub-map, and each position point in the sub-map corresponds to a coordinate value. When there are multiple markers in the target area, in order to distinguish different markers, the auxiliary information may also include the ID number of the marker, and the ID number of the marker can be obtained by the robot scanning the marker.

[0067] When determining the auxiliary information of each sub-map, the following steps (11)-(12) may be specifically performed for each sub-map:

[0068] Step (11), determining the second pose data of the robot relative to the marker in the sub-map, and the third pose data of the robot relative to the sub-map; wherein the second pose data includes: the position data and angle data of the robot in a coordinate system established with the marker as the origin; the third pose data includes: the position data and angle data of the robot in a coordinate system corresponding to the sub-map;

[0069] The second posture data can be obtained by the following steps a and b:

[0070] Step a, obtaining fourth pose data of a sensor on the robot relative to a marker in the sub-map; wherein the fourth pose data includes: position data and angle data of the sensor in a coordinate system established with the marker as the origin;

[0071] The above-mentioned sensor can be a laser sensor or an image acquisition device; taking the laser sensor as an example, when the robot scans, it projects the collected laser point cloud into a preset laser coordinate system, identifies the first designated barcode in the laser barcode through the adjacent relationship of the laser points, thereby determining the position of the laser barcode, and then identifies the second designated barcode in the laser barcode, thereby obtaining the ID number of the laser barcode, and at the same time, the position data of the laser sensor relative to the laser barcode can be obtained. That is the fourth posture data mentioned above; among them, Mark i Represents the i-th marker, i.e., the laser barcode; i here represents the ID number of the marker; points represents the laser sensor; and T represents the pose data.

[0072] Step b, based on the fourth posture data and the fifth posture data of the sensor relative to the robot, determine the second posture data of the robot relative to the marker in the sub-map; wherein the fifth posture data includes: the position data and angle data of the sensor in the coordinate system established with the robot as the origin.

[0073] The fifth pose data of the sensor relative to the robot can be expressed as Among them, base i represents the i-th robot; i here represents the robot ID number; the fifth pose data is known data and can be obtained when the robot scans the area. Perform geometric operations on the fourth pose data and the fifth pose data to obtain the second pose data of the robot relative to the marker in the submap.

[0074] When the robot performs visual scanning, the aforementioned visual positioning QR code may specifically be AruCoMark, and the second position data of the robot relative to the marker in the sub-map may also be obtained through the corresponding recognition and matching algorithm in opencv.

[0075] After obtaining the second pose data of the robot relative to the marker in the sub-map, it is also necessary to obtain the third pose data of the robot relative to the sub-map. The third pose data is output by the mapping algorithm; for laser scanning, the input of the mapping algorithm can be data output by devices such as laser sensors, inertial measurement units and odometers; for visual scanning, the input of the mapping algorithm can be data output by devices such as camera units (for collecting image data), inertial measurement units and odometers. The mapping algorithm can be executed by the robot or by the server; based on the above input data, the mapping algorithm can output the sub-map and the above third pose data. The mapping algorithm can adopt the existing mapping algorithm in the relevant technology.

[0076] Step (12), determining the pose data of the marker in the sub-map relative to the sub-map based on the second pose data and the third pose data.

[0077] Based on the second posture data and the third posture data of the robot relative to the submap, the posture data of the marker in the submap relative to the submap can be determined. The second posture data of the robot relative to the marker in the submap can be expressed as The third position data of the robot relative to the submap can be expressed as Among them, map i represents the i-th submap, where i represents the ID number of the submap; the position data of the marker in the submap relative to the submap can be expressed as Should It can be calculated by the following formula:

[0078] When obtaining the auxiliary information of each sub-map, a marker may be scanned only once, and a pose data of the marker is obtained. At this time, the pose data of the marker is directly saved as the auxiliary information of the sub-map. During the map-building process, the robot may scan the same marker multiple times, and multiple initial pose data of the marker relative to the sub-map will be collected. At this time, for each marker in each sub-map, multiple initial pose data of the marker relative to the sub-map collected multiple times are obtained, and the pose data of the marker relative to the sub-map is determined based on the multiple initial pose data. In this way, the auxiliary information of each sub-map can be obtained.

[0079] Specifically, multiple initial pose data corresponding to a marker can be processed in a variety of ways to obtain the pose data of the marker, for example, the average value of multiple initial pose data is obtained as the pose data of the marker. In order to obtain more accurate pose data and minimize the error of the pose data finally obtained, the final pose data can be calculated using a nonlinear least square method.

[0080] Specifically, the optimization variables of the nonlinear least squares method are: the relative relationship between the i-th mark and the m-th submap The error function obtained is: Among them, M refers to the map m Mark i The total number of observations is the total number of initial pose data corresponding to the same marker; k represents the kth initial pose data of the marker; min is the minimum value; the meanings of other letters can refer to the above content of this embodiment. Theoretically, each and Based on this, the error of a single initial pose data is The sum of the errors of all initial posture data constitutes the above error function; the purpose is to find the minimum value of the above error function. When the error function reaches the minimum value, The sum of the errors with each initial pose data is the smallest. That is, the final pose data, which is saved as auxiliary information of the above sub-map.

[0081] Embodiment five:

[0082] Through the above method, the submap and the auxiliary information of the submap can be obtained. The auxiliary information of the submap can be saved in the following ways: the name or ID number of the submap, the ID number of the marker contained in the submap, and the position data of the marker relative to the submap. That is, each piece of auxiliary information includes the ID number of a submap, the ID number of a marker and the position data of the marker relative to the submap. After obtaining the above auxiliary information, this embodiment needs to determine the relative position relationship between the submaps based on the auxiliary information. Usually, submaps containing the same marker often have an adjacent relationship. In order to determine the specific relative position relationship between submaps containing the same marker, it is necessary to perform the following steps (21) and (22) for the two specified submaps containing the same marker:

[0083] Step (21), based on the position data of the same marker relative to the first submap of the two specified submaps, and the position data of the same marker relative to the second submap of the two specified submaps, determining the first position data of the first submap relative to the second submap;

[0084] First, after obtaining the above-mentioned multiple auxiliary information, each auxiliary information can be matched with other auxiliary information. If two sub-maps with different ID numbers correspond to markers with the same ID number, it means that the two sub-maps are related or have an adjacent relationship; in this way, multiple pairs of two specified sub-maps with the same marker can be obtained.

[0085] The first position data of the first submap relative to the second submap can be obtained by the following formula: Among them, map i Represents the first submap, where i represents the ID number of the first submap; map j represents the second submap, and j represents the ID number of the second submap; Represents the position data of the same marker relative to the first submap, mark i Represents the same marker, where i represents the ID number of the marker; Represents the pose data of the same marker relative to the second submap.

[0086] Step (22), determining the first position data of the first submap relative to the second submap as the relative position relationship between the two designated submaps.

[0087] If there is only one identical marker between the first submap and the second submap, the first position data can be directly determined as the relative position relationship between the two specified submaps. If the first submap and the second submap contain the same marker, and there are multiple identical markers, obtain the first position data corresponding to each identical marker; wherein the same marker is a marker that appears in both the first submap and the second submap. If the first submap and the second submap include multiple identical markers, obtain the first position data corresponding to each identical marker; determine the final first position data based on the multiple first position data; and determine the final first position data as the relative position relationship between the two specified submaps.

[0088] Specifically, the final first pose data can be determined in a variety of ways, for example, the average of multiple first pose data is calculated to obtain the final first pose data. In order to obtain more accurate first pose data and minimize the error of the final pose data, the final first pose data can be calculated using a nonlinear least square method.

[0089] In this nonlinear least squares approach, the optimization variables are The error function is: Among them, min represents the minimum value; M represents the total amount of the first-position data, and k represents the ID number of the first-position data; the meanings of other letters can refer to the content of the aforementioned embodiment.

[0090] In the above error function, Represents the kth first pose data, that is, the relationship between the jth map and the ith map, represents the error of the kth first pose data, that is, the error of a single first pose data. The sum of the errors of all first pose data constitutes the above error function; the purpose is to find the minimum value of the above error function. When the error function reaches the minimum value, The sum of the errors with each first pose data is the smallest. That is the final first position data.

[0091] After obtaining the relative position relationship between each pair of sub-maps with the same marker, a complete map of the target area can be established. This can be achieved through the following steps (31)-(32):

[0092] Step (31), determining a reference submap from the plurality of submaps, and determining the coordinate origin of the reference submap as the reference coordinate origin;

[0093] A base submap may be randomly determined from multiple submaps, or a base submap may be determined from multiple submaps according to the area location corresponding to each submap. Each of the multiple submaps is provided with a coordinate system, and the coordinate system includes a coordinate origin.

[0094] Step (32), for each submap among the above-mentioned multiple submaps except the reference submap, according to the relative position relationship between the current submap and the reference submap, the coordinate origin of the current submap is converted to the reference coordinate origin, so as to obtain a map of the target area; wherein the map of the target area includes: the multiple submaps with the reference coordinate origin as the coordinate origin.

[0095] According to the relative position relationship between the current submap and the reference submap, the relative position relationship between the coordinate origin of the current submap and the reference coordinate origin can be determined. Based on the relative position relationship between the coordinate origins, the coordinate values ​​of each point in the current submap can be converted to the coordinate values ​​under the reference coordinate origin. In this way, the data points in multiple submaps use the same coordinate system, and the data points between each submap have a clear position relationship, so a complete map of the target area can be obtained.

[0096] In addition, if the areas corresponding to the current submap and the reference submap are far apart and not adjacent to each other, the current submap and the reference submap may not contain the same marker. If the current submap and the reference submap do not contain the same marker, at least one intermediate submap is determined from multiple submaps; wherein at least one intermediate submap has the same marker as the current submap, and at least one intermediate submap has the same marker as the reference submap; based on the relative positional relationship between the current submap and the at least one intermediate submap, and the relative positional relationship between the reference submap and the at least one intermediate submap, the relative positional relationship between the current submap and the reference submap is determined.

[0097] The above-mentioned intermediate submap can be one, which has the same marker as the current submap and the same marker as the benchmark submap. Based on the relative position relationship between the current submap and the intermediate submap, and the relative position relationship between the benchmark submap and the intermediate submap, the relative position relationship between the current submap and the benchmark submap can be calculated.

[0098] There may be multiple intermediate submaps. If there is no intermediate submap having a relative position relationship with both the current submap and the reference submap, the relative position relationship between the current submap and the reference submap may be determined through multiple submaps. In this case, there may be multiple intermediate submaps.

[0099] As an example, suppose there are two intermediate submaps, namely intermediate submap A and intermediate submap B; among them, intermediate submap A has the same marker as the current submap, but does not have the same marker as the benchmark submap; intermediate submap B has the same marker as the benchmark submap, but does not have the same marker as the current submap; at this time, it is necessary to first obtain the relative position relationship A between the intermediate submap A and the current submap, and then obtain the relative position relationship B between the intermediate submap B and the benchmark submap, and then based on the relative position relationship A, the relative position relationship B, and the relative position relationship between the intermediate submap A and the intermediate submap B, the relative position relationship between the current submap and the benchmark submap can be derived.

[0100] It should be noted that the above-mentioned intermediate submap A and intermediate submap B need to have the same marker in order to obtain the relative position relationship between the intermediate submap A and the intermediate submap B; if the intermediate submap A and the intermediate submap B do not have the same marker, then the intermediate submap C or even more intermediate submaps are required to obtain the relative position relationship between the intermediate submap A and the intermediate submap B, and the number of intermediate submaps at this time will be greater than two.

[0101] In other feasible implementations, the robot may collect multiple sub-maps of the target area and determine the auxiliary information of each sub-map. Then, the robot sends the multiple sub-maps of the target area and the auxiliary information of each sub-map to the server, and the server receives the multiple sub-maps of the target area and the auxiliary information of each sub-map uploaded by the robot. Then, the server saves the auxiliary information of each sub-map into a preset information queue; the information queue stores the auxiliary information of all sub-maps. The information queue is traversed, and each auxiliary information in the information queue is used as the target information one by one. The following operation is performed for the target information: query the auxiliary information in the information queue other than the target information to see whether there is a first auxiliary information containing the same marker as the target information; if the first auxiliary information exists, the sub-map corresponding to the first auxiliary information and the sub-map corresponding to the target information are determined to be multiple designated sub-maps containing the same marker.

[0102] Through the above method, multiple groups of designated sub-maps containing the same marker can be obtained. For each group of designated sub-maps containing the same marker, the relative position relationship between each group of designated sub-maps containing the same marker can be obtained through the above embodiment, thereby obtaining a map of the target area.

[0103] The following describes the above map-building method from the perspective of the robot. Figure 5 A flowchart of a method for establishing a map is shown, the method is applied to a robot, and the method comprises:

[0104] Step S502, scanning the target area to obtain multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; and the auxiliary information is used to indicate the position of the marker in the sub-map;

[0105] The auxiliary information is used to establish a large scene submap of the target area, which is particularly suitable for establishing a complete large submap of the target area through the small submaps corresponding to each sub-area in the target area when the target area is large.

[0106] Step S504: uploading the multiple sub-maps of the target area and the auxiliary information of each sub-map to the server. The multiple sub-maps of the target area and the auxiliary information of each sub-map are used to determine the map corresponding to the target area.

[0107] The above-mentioned step of scanning the target area and obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: collecting multiple sub-maps and determining the auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0108] The above-mentioned step of determining the auxiliary information of each sub-map includes: for each sub-map, performing the following operations: determining the second pose data of the robot relative to the marker in the sub-map, and the third pose data of the robot relative to the sub-map; wherein the second pose data includes: the position data and angle data of the robot in a coordinate system established with the marker as the origin; the third pose data includes: the position data and angle data of the robot in the coordinate system corresponding to the sub-map; based on the second pose data and the third pose data, determining the pose data of the marker in the sub-map relative to the sub-map.

[0109] The above-mentioned step of determining the second pose data of the robot relative to the marker in the sub-map includes: obtaining the fourth pose data of the sensor on the robot relative to the marker in the sub-map; wherein the fourth pose data includes: the position data and angle data of the sensor in the coordinate system established with the marker as the origin; based on the fourth pose data and the fifth pose data of the sensor relative to the robot, determining the second pose data of the robot relative to the marker in the sub-map; wherein the fifth pose data includes: the position data and angle data of the sensor in the coordinate system established with the robot as the origin.

[0110] The auxiliary information of each sub-map is obtained in the following manner: for each marker in each sub-map, multiple initial pose data of the marker relative to the sub-map collected multiple times are obtained, and based on the multiple initial pose data, the pose data of the marker relative to the sub-map is determined.

[0111] The specific implementation method of determining the auxiliary information in this embodiment can refer to the above embodiment and will not be described in detail here.

[0112] In the above-mentioned method for establishing a map, markers are set in each part of the target area. First, multiple submaps of the target area and auxiliary information of each submap are obtained; the auxiliary information is used to indicate the position of the marker in the submap; for multiple designated submaps containing the same marker, the relative position relationship between the multiple designated submaps is determined based on the position of the same marker in each designated submap in the multiple designated submaps; based on the relative position relationship between the designated submaps corresponding to each marker and the multiple submaps, a map of the target area is established. In this method, markers are set in the target area to be mapped, and the relative position relationship between adjacent submaps can be quickly and accurately determined through the markers contained in the submaps, and then a complete map of the target area can be constructed based on the relative position relationship between the submaps; in the process of mapping, there is no need to find common areas between submaps, and the efficiency and accuracy of mapping are high.

[0113] Embodiment six:

[0114] When the robot performs tasks based on the map, it can only work normally if it obtains the correct posture. When the robot obtains the posture, the sub-map in the current scene needs to provide the posture standard. The posture standard of the robot refers to the relative relationship between the robot and a certain coordinate origin. The sub-map can provide the coordinate origin. The sub-map can provide the global posture in real time and eliminate the accumulated error. Therefore, the construction of the sub-map is very important for the normal operation of the robot. Based on this, this embodiment provides a method for constructing a map in a large area scene.

[0115] In order to solve the problem of low efficiency of robot mapping in large scene areas, mapping can be carried out in batches, that is, a single robot builds submaps multiple times or multiple robots build submaps collaboratively; at this time, the core problem that needs to be solved is how to accurately and efficiently calculate the relative position relationship between each submap. In order to identify the intersection area between each submap in the earth coordinate system and calculate the relative position relationship between each submap, this embodiment uses auxiliary Mark (equivalent to the marker in the previous embodiment) to quickly and efficiently calculate the relative position relationship between each submap, thereby obtaining a map for building a large area scene.

[0116] The mapping method in this embodiment is simple to deploy and does not require modification of the existing mapping algorithm in the related art. It only requires placing a recognizable mark at the junction of the corresponding areas of the two sub-maps during the robot mapping process to assist each sub-map in identifying and matching the common areas. After the mapping process is completed, each sub-map and auxiliary information are uploaded to the server to obtain the relative position relationship of each sub-map.

[0117] The mapping method in this embodiment specifically includes the following steps:

[0118] Step 41, Mark selection; select the Mark type based on the mapping type; if it is 2D laser mapping, use a straight board with reflective strip coding as an auxiliary Mark; if it is visual mapping, use AruCo QR code, where AruCo is a minimum library of augmented reality applications based on opencv.

[0119] Step 42, start the auxiliary node; during the mapping process, the auxiliary large scene algorithm is started at the same time as the mapping algorithm, and the auxiliary large scene algorithm can identify the position and ID number of the Mark placed in the scene.

[0120] Step 43, placing a Mark; placing an auxiliary Mark at the junction of the two sub-maps. To improve the mapping accuracy, multiple auxiliary Marks can be placed. The junction of the two sub-maps is generally determined by the mapping staff.

[0121] Step 44, calculate the relative position relationship of the Mark; based on the detected Mark information and the robot posture during the mapping process, the posture of the Mark relative to the sub-map, that is, the auxiliary information of the sub-map, can be obtained;

[0122] Step 45, saving auxiliary information; after the sub-map is completed, the sub-map generated by the mapping algorithm is saved, and the auxiliary information of the sub-map is saved at the same time;

[0123] Step 46, calculate the relative position relationship between each sub-map; upload the auxiliary information of multiple sub-maps in the large scene to the server, and obtain the relative position relationship of each sub-map based on the auxiliary information of each sub-map; the specific calculation method can refer to the above embodiment.

[0124] Step 47, the large scene map is constructed; the sub-maps can be associated with each other using the relative position relationship of each sub-map; since the relative position relationship of each sub-map is known, the complete map of the entire large scene can be represented at the same reference origin, and the large scene map is now constructed.

[0125] Using auxiliary Marks to construct large-scene SLAM submaps not only solves the problem encountered in constructing large-scene submaps in a single time, but also uses auxiliary Marks to accurately identify the common areas between each submap, avoiding erroneous results caused by similar scenes; in related technologies, the purpose of identifying common scenes is to find the relative position relationship between two submaps, and similar scenes will lead to errors in the recognition of common scenes, resulting in errors in the calculation of relative position relationships. At the same time, in this embodiment, each auxiliary Mark robot can be observed multiple times in the public area. The robot's sensor sends data at a certain frequency per second, and each data can detect the auxiliary Mark, so it can be observed multiple times; then the nonlinear least squares can be used to accurately obtain the relative position relationship of the auxiliary Mark relative to the submap, avoiding inaccurate results from a single observation, resulting in large errors. When calculating the relative position relationship between two submaps at the same time, the accuracy can be improved by placing multiple Marks in the public area, and then the final relative position relationship between each submap can be obtained.

[0126] The above-mentioned mapping method for large scenes places auxiliary Marks in the common areas between sub-maps to assist in the recognition of the common areas of multiple sub-maps. The recognition results are stable and reliable and do not rely on environmental influences. In addition, multiple auxiliary Marks can be placed between two adjacent sub-maps. Based on each auxiliary Mark, a relative position relationship between the two sub-maps can be obtained. Multiple relative position relationships can be obtained through multiple auxiliary Marks. Through the nonlinear least squares method, the optimal relative position relationship can be obtained based on multiple relative position relationships. This solution does not rely on the mapping algorithm itself, is easy to deploy, and can obtain the relative position relationship of multiple sub-maps based on auxiliary information.

[0127] Embodiment seven:

[0128] Corresponding to the above method embodiment, see Figure 6 A schematic diagram of a structure of a device for establishing a map is shown, and the device is arranged on a server; the device comprises:

[0129] The information acquisition module 60 is used to acquire multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; and the auxiliary information is used to indicate the position of the marker in the sub-map;

[0130] A relationship determination module 61, for determining, for a plurality of designated sub-maps including the same marker, a relative position relationship between the plurality of designated sub-maps based on the position of the same marker in each of the plurality of designated sub-maps;

[0131] The map building module 62 is used to build a map of the target area based on the relative position relationship between the designated sub-maps corresponding to each marker and the multiple sub-maps.

[0132] The auxiliary information includes: the position data of the marker in the submap relative to the submap; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the submap. The relationship determination module is also used to: for two designated submaps containing the same marker, perform the following operations: based on the position data of the same marker relative to the first submap of the two designated submaps, and the position data of the same marker relative to the second submap of the two designated submaps, determine the first position data of the first submap relative to the second submap; determine the first position data of the first submap relative to the second submap as the relative position relationship between the two designated submaps.

[0133] The above-mentioned relationship determination module is also used for: if the first submap and the second submap contain the same marker, and there are multiple same markers, obtaining the first position data corresponding to each same marker; wherein the same marker is a marker that appears in both the first submap and the second submap; based on multiple first position data, determining the final first position data; determining the final first position data as the relative position relationship between the two specified submaps.

[0134] The map establishment module is further used to: determine a reference submap from the multiple submaps, and determine the coordinate origin of the reference submap as the reference coordinate origin; for each submap other than the reference submap in the multiple submaps, convert the coordinate origin of the current submap into the reference coordinate origin according to the relative position relationship between the current submap and the reference submap, so as to obtain a map of the target area; wherein the map of the target area includes: multiple submaps with the reference coordinate origin as the coordinate origin.

[0135] The above device also includes a first determining module, which is used to:

[0136] If the current submap and the reference submap do not include the same marker, determine at least one intermediate submap from the multiple submaps; wherein at least one intermediate submap and the current submap have the same marker, and at least one intermediate submap and the reference submap have the same marker; based on the relative positional relationship between the current submap and the at least one intermediate submap, and the relative positional relationship between the reference submap and the at least one intermediate submap, determine the relative positional relationship between the current submap and the reference submap.

[0137] The above-mentioned identifier includes a barcode and / or a QR code.

[0138] If the marker includes a barcode, the barcode includes multiple barcodes; a first designated barcode in the multiple barcodes is used to indicate the position of the barcode; and a second designated barcode in the multiple barcodes is used to indicate the code identifier of the barcode.

[0139] The above-mentioned information acquisition module is also used to: receive multiple sub-maps of the target area and auxiliary information of each sub-map uploaded by the robot;

[0140] The above-mentioned device also includes an information processing module, which is used to: save the auxiliary information of each sub-map into a preset information queue; traverse the information queue, take each auxiliary information in the information queue as target information one by one, and perform the following operations on the target information: query the auxiliary information other than the target information in the information queue to see whether there is first auxiliary information containing the same marker as the target information; if the first auxiliary information exists, determine the sub-map corresponding to the first auxiliary information and the sub-map corresponding to the target information as multiple designated sub-maps containing the same marker.

[0141] The above-mentioned information acquisition module is also used to: collect multiple sub-maps through a robot and obtain auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0142] See also Figure 7Another device for establishing a map is shown, the device is set on a robot, and the device includes:

[0143] The scanning module 70 is used to scan the target area and obtain multiple sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; and the auxiliary information is used to indicate the position of the marker in the sub-map;

[0144] The uploading module 72 is used to upload the multiple sub-maps of the target area and the auxiliary information of each sub-map to the server, and the multiple sub-maps of the target area and the auxiliary information of each sub-map are used to determine the map of the target area.

[0145] The above-mentioned scanning module is also used to: collect multiple sub-maps and obtain auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

[0146] The above-mentioned scanning module is also used to: perform the following operations for each sub-map: determine the second posture data of the robot relative to the marker in the sub-map, and the third posture data of the robot relative to the sub-map; wherein the second posture data includes: the position data and angle data of the robot in the coordinate system established with the marker as the origin; the third posture data includes: the position data and angle data of the robot in the coordinate system corresponding to the sub-map; based on the second posture data and the third posture data, determine the posture data of the marker in the sub-map relative to the sub-map.

[0147] The above-mentioned scanning module is also used to: obtain the fourth posture data of the sensor on the robot relative to the marker in the sub-map; wherein the fourth posture data includes: the position data and angle data of the sensor in the coordinate system established with the marker as the origin; based on the fourth posture data and the fifth posture data of the sensor relative to the robot, determine the second posture data of the robot relative to the marker in the sub-map; wherein the fifth posture data includes: the position data and angle data of the sensor in the coordinate system established with the robot as the origin.

[0148] The scanning module is further used to: for each marker in each sub-map, obtain multiple initial pose data of the marker relative to the sub-map collected multiple times, and determine the pose data of the marker relative to the sub-map based on the multiple initial pose data.

[0149] The above auxiliary information is used to build a large scene sub-map of the target area.

[0150] This embodiment also provides an electronic system, which includes: a processing device and a storage device; the storage device stores a computer program, and the computer program executes the method for establishing a map as described above when the processing device runs.

[0151] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processing device, the steps of the method for establishing a map as described above are executed.

[0152] The computer program product of the method, device and electronic system for establishing a map provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0154] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0155] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0156] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0157] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for establishing a map, characterized in that: The method is applied to a server; the method comprises: Acquire multiple submaps of the target area and auxiliary information of each submap; wherein each submap corresponds to a portion of the target area; a marker is pre-set in the portion; and the auxiliary information is used to indicate the position of the marker in the submap; For a plurality of designated sub-maps including the same marker, determining a relative position relationship between the plurality of designated sub-maps based on a position of the same marker in each of the plurality of designated sub-maps; Based on the relative position relationship between the designated sub-maps corresponding to each marker and the multiple sub-maps, establishing a map of the target area; The step of establishing a map of the target area based on the relative positional relationship between the designated submaps corresponding to each marker and the multiple submaps includes: determining a reference submap from the multiple submaps, and determining the coordinate origin of the reference submap as the reference coordinate origin; for each submap other than the reference submap in the multiple submaps, converting the coordinate origin of the current submap to the reference coordinate origin according to the relative positional relationship between the current submap and the reference submap, to obtain a map of the target area; wherein the map of the target area includes: the multiple submaps with the reference coordinate origin as the coordinate origin; If the current submap and the reference submap do not include the same marker, determine at least one intermediate submap from the multiple submaps; wherein the at least one intermediate submap and the current submap have the same marker, and the at least one intermediate submap and the reference submap have the same marker; based on the relative positional relationship between the current submap and the at least one intermediate submap, and the relative positional relationship between the reference submap and the at least one intermediate submap, determine the relative positional relationship between the current submap and the reference submap.

2. The method according to claim 1, characterized in that The auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map; The step of determining the relative position relationship between the multiple designated submaps including the same marker based on the position of each designated submap of the multiple designated submaps includes: For two specified submaps containing the same marker, perform the following operations: Determining first position data of the first submap relative to the second submap based on the position data of the same marker relative to the first submap of the two specified submaps and the position data of the same marker relative to the second submap of the two specified submaps; The first position data of the first sub-map relative to the second sub-map is determined as the relative position relationship between the two designated sub-maps.

3. The method according to claim 2, characterized in that The step of determining the first position data of the first submap relative to the second submap as the relative position relationship between the two designated submaps includes: If the first submap and the second submap contain the same marker, and there are multiple same markers, obtain the first posture data corresponding to each of the same markers; wherein the same marker is a marker that appears in both the first submap and the second submap; Based on the plurality of the first pose data, final first pose data is determined; and the final first pose data is determined as the relative position relationship between the two designated sub-maps.

4. The method according to any one of claims 1 to 3, characterized in that: The marker includes a barcode and / or a QR code.

5. The method according to claim 4, characterized in that If the marker includes a barcode, the barcode includes multiple barcodes; a first designated barcode in the multiple barcodes is used to indicate the position of the barcode; and a second designated barcode in the multiple barcodes is used to indicate the code identifier of the barcode.

6. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: receiving multiple sub-maps of the target area and auxiliary information of each sub-map uploaded by the robot; The method further comprises: Saving the auxiliary information of each sub-map into a preset information queue; Traverse the information queue, take each auxiliary information in the information queue as target information one by one, and perform the following operations on the target information: querying whether there is first auxiliary information including the same identifier as the target information in the auxiliary information other than the target information in the information queue; If the first auxiliary information exists, the submap corresponding to the first auxiliary information and the submap corresponding to the target information are determined as the multiple designated submaps containing the same marker.

7. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining multiple sub-maps of the target area and auxiliary information of each sub-map includes: The multiple sub-maps are collected by a robot, and auxiliary information of each of the sub-maps is obtained; the auxiliary information includes: posture data of the markers in the sub-map relative to the sub-map; wherein the posture data includes: position data and angle data of the markers in the coordinate system corresponding to the sub-map.

8. A method for establishing a map, characterized in that: The method is applied to a robot, and the method comprises: Scanning a target area to obtain a plurality of submaps of the target area and auxiliary information of each submap; wherein each submap corresponds to a portion of the target area; a marker is pre-set in the portion of the area; and the auxiliary information is used to indicate a position of the marker in the submap; The plurality of submaps of the target area and the auxiliary information of each of the submaps are uploaded to a server, and the plurality of submaps of the target area and the auxiliary information of each of the submaps are used to determine a map corresponding to the target area; the server determines a reference submap from the plurality of submaps, and determines the coordinate origin of the reference submap as the reference coordinate origin; for each submap of the plurality of submaps except the reference submap, according to the relative position relationship between the current submap and the reference submap, the coordinate origin of the current submap is converted to the reference coordinate origin, so as to obtain a map of the target area; wherein the map of the target area includes : the multiple submaps with the reference coordinate origin as the coordinate origin; if the current submap and the reference submap do not include the same marker, the server determines at least one intermediate submap from the multiple submaps; wherein the at least one intermediate submap has the same marker as the current submap, and the at least one intermediate submap has the same marker as the reference submap; based on the relative position relationship between the current submap and the at least one intermediate submap, and the relative position relationship between the reference submap and the at least one intermediate submap, determine the relative position relationship between the current submap and the reference submap.

9. The method according to claim 8, characterized in that The step of scanning a target area to obtain a plurality of sub-maps of the target area and auxiliary information of each sub-map includes: Collect the multiple sub-maps and determine the auxiliary information of each sub-map; the auxiliary information includes: the position data of the marker in the sub-map relative to the sub-map; wherein the position data includes: the position data and angle data of the marker in the coordinate system corresponding to the sub-map.

10. The method according to claim 9, characterized in that The step of determining the auxiliary information of each of the sub-maps comprises: For each of the sub-maps, perform the following operations: Determine second pose data of the robot relative to the marker in the submap, and third pose data of the robot relative to the submap; wherein the second pose data includes: position data and angle data of the robot in a coordinate system established with the marker as the origin; the third pose data includes: position data and angle data of the robot in a coordinate system corresponding to the submap; The pose data of the marker in the sub-map relative to the sub-map is determined according to the second pose data and the third pose data.

11. The method according to claim 10, characterized in that The step of determining second position data of the robot relative to the marker in the sub-map comprises: Acquire fourth pose data of the sensor on the robot relative to the marker in the sub-map; wherein the fourth pose data includes: position data and angle data of the sensor in a coordinate system established with the marker as the origin; Based on the fourth posture data and the fifth posture data of the sensor relative to the robot, the second posture data of the robot relative to the marker in the sub-map is determined; wherein the fifth posture data includes: the position data and angle data of the sensor in the coordinate system established with the robot as the origin.

12. The method according to any one of claims 9 to 11, characterized in that: The auxiliary information of each sub-map is obtained in the following way: For each marker in each of the sub-maps, multiple initial position data of the marker relative to the sub-map collected multiple times are obtained, and the position data of the marker relative to the sub-map is determined based on the multiple initial position data.

13. The method according to any one of claims 8 to 11, characterized in that: The auxiliary information is used to establish a large scene map of the target area.

14. A device for creating a map, characterized in that: The device is arranged on a server; the device comprises: An information acquisition module, used to acquire multiple sub-maps of a target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; and the auxiliary information is used to indicate the position of the marker in the sub-map; A relationship determination module, for determining, for a plurality of designated sub-maps containing the same marker, a relative position relationship between the plurality of designated sub-maps based on the position of the same marker in each of the plurality of designated sub-maps; A map building module, used to build a map of the target area based on the relative position relationship between the designated sub-maps corresponding to each marker and the multiple sub-maps; The map establishment module is used to determine a reference submap from the multiple submaps, and determine the coordinate origin of the reference submap as the reference coordinate origin; for each submap among the multiple submaps except the reference submap, according to the relative position relationship between the current submap and the reference submap, convert the coordinate origin of the current submap to the reference coordinate origin, so as to obtain a map of the target area; wherein the map of the target area includes: the multiple submaps with the reference coordinate origin as the coordinate origin; The first determination module is used to: if the current submap and the reference submap do not include the same marker, determine at least one intermediate submap from the multiple submaps; wherein the at least one intermediate submap and the current submap have the same marker, and the at least one intermediate submap and the reference submap have the same marker; and determine the relative position relationship between the current submap and the reference submap based on the relative position relationship between the current submap and the at least one intermediate submap, and the relative position relationship between the reference submap and the at least one intermediate submap.

15. A device for creating a map, characterized in that: The device is arranged on a robot, and comprises: A scanning module, used for scanning a target area, obtaining a plurality of sub-maps of the target area and auxiliary information of each sub-map; wherein each sub-map corresponds to a part of the target area; a marker is pre-set in the part of the area; and the auxiliary information is used for indicating the position of the marker in the sub-map; an uploading module, used for uploading a plurality of sub-maps of the target area and auxiliary information of each of the sub-maps to a server, wherein the plurality of sub-maps of the target area and the auxiliary information of each of the sub-maps are used to determine a map of the target area; the server determines a reference sub-map from the plurality of sub-maps, and determines the coordinate origin of the reference sub-map as the reference coordinate origin; for each sub-map among the plurality of sub-maps except the reference sub-map, according to the relative position relationship between the current sub-map and the reference sub-map, the coordinate origin of the current sub-map is converted to the reference coordinate origin, so as to obtain a map of the target area; wherein the map of the target area The method comprises: the plurality of submaps with the reference coordinate origin as the coordinate origin; if the current submap and the reference submap do not include the same marker, the server determines at least one intermediate submap from the plurality of submaps; wherein the at least one intermediate submap and the current submap have the same marker, and the at least one intermediate submap and the reference submap have the same marker; based on the relative position relationship between the current submap and the at least one intermediate submap, and the relative position relationship between the reference submap and the at least one intermediate submap, determining the relative position relationship between the current submap and the reference submap.

16. An electronic system, characterized in that: The electronic system includes: a processing device and a storage device; The storage device stores a computer program, which, when executed by the processing device, executes the method for establishing a map as claimed in any one of claims 1 to 13.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method for establishing a map according to any one of claims 1 to 13 are executed.