Robot repositioning method, device and equipment

By constructing a raster map and a loop semantic map, using a depth camera to obtain the map coordinates and distances of semantic objects, and calculating the robot's prior pose, it solves the problem of long relocation time after the robot's positioning is lost, and achieves fast and accurate relocation and robustness.

CN118533164APending Publication Date: 2024-08-23WUHAN LING ZHI YUN CHUANG TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410597266.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When the robot's positioning is lost in different environments, the existing technology takes a long time to reposition and is prone to positioning errors in similar environments, especially in the absence of initial poses.

Method used

A grid map is constructed based on the lidar sensor, and a loop semantic map is constructed based on the semantic information of the object collected by the depth camera. The prior pose of the robot is calculated by obtaining the map coordinates and distance of the semantic object to achieve fast and accurate relocation.

Benefits of technology

It improves the accuracy and real-time performance of robot relocation, reduces relocation time, and enhances the robustness of the positioning algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533164A
    Figure CN118533164A
Patent Text Reader

Abstract

The invention discloses a robot repositioning method, device and equipment, relates to the technical field of robot positioning, and discloses a robot repositioning method comprising the following steps: constructing a grid map based on robot platform information collected by a laser radar sensor; constructing a loopback semantic map based on object semantic information collected by a depth camera and the grid map; respectively acquiring map coordinates of two semantic objects and distances between the two semantic objects and a robot platform based on the loopback semantic map; the prior pose of the robot is obtained based on the map coordinates of the two semantic objects and the distance between the two semantic objects and the robot platform; and repositioning the robot according to the prior pose of the robot. According to the method, the prior pose of the robot can be obtained after the positioning of the robot is lost, repositioning is accurately carried out, and the robustness and the real-time performance of a robot positioning algorithm are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot positioning technology, and in particular to a robot repositioning method, device and equipment. Background Art

[0002] With the widespread application of mobile robots, the requirements for accurate positioning and autonomous navigation of robots in different environments are getting higher and higher. However, during the robot positioning process, positioning loss often occurs due to factors such as environmental changes, sensor errors and map matching.

[0003] The existing technology generally obtains the robot's position and posture by matching radar data frames with maps. However, if there is no initial position for repositioning after losing positioning, the repositioning time will be long or even wrong in similar environments. Although the Cartographer algorithm is simple in constructing raster maps and repositioning, it only uses the texture information in the environment. Due to the lack of prior information, the robot repositions slowly or even wrong in similar environments.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a robot repositioning method, device, equipment and storage medium, aiming to solve the technical problem of how to accurately reposition the robot.

[0006] To achieve the above objectives, the present application proposes a robot repositioning method, the robot repositioning method comprising:

[0007] Build a grid map based on the robot platform information collected by the lidar sensor;

[0008] Constructing a loop semantic map based on the object semantic information collected by the depth camera and the grid map;

[0009] Based on the loop semantic map, respectively obtain the map coordinates of the two semantic objects and the distances from the robot platform;

[0010] Obtaining a priori posture of the robot based on the map coordinates of the two semantic objects and the distances from the robot platform;

[0011] The robot is repositioned according to the prior posture of the robot.

[0012] In one embodiment, the step of constructing a loop semantic map based on the object semantic information collected by the depth camera and the grid map includes:

[0013] Converting the object semantic information in the camera coordinate system acquired by the depth camera into the object semantic information in the map coordinate system;

[0014] Based on the object semantic information in the map coordinate system, the object semantic label of each grid of the grid map is obtained according to the Bayesian algorithm to construct a loop semantic map.

[0015] In one embodiment, the step of converting the object semantic information in the camera coordinate system acquired by the depth camera into the object semantic information in the map coordinate system comprises:

[0016] The object semantic information in the camera coordinate system is converted into the object semantic information in the robot coordinate system based on the conversion matrix between the camera coordinate system and the robot coordinate system;

[0017] Converting the object semantic information in the robot coordinate system into the object semantic information in the world coordinate system based on the conversion matrix between the robot coordinate system and the world coordinate system;

[0018] The object semantic information in the world coordinate system is converted into the object semantic information in the map coordinate system.

[0019] In one embodiment, the step of constructing a loop closure semantic map includes:

[0020] Build a preliminary semantic map based on the semantic labels of objects in each grid and obtain the relative coordinates of the semantic objects;

[0021] Performing loop closure optimization on the preliminary semantic map based on the grid map, and remapping the relative coordinates of the semantic objects;

[0022] The loop semantic map is constructed based on the remapped relative coordinates of the semantic objects.

[0023] In one embodiment, obtaining the relative coordinates of the semantic object includes:

[0024] Obtain the nearest node position of the semantic object before loop closure optimization;

[0025] A preliminary coordinate system is established with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate;

[0026] The relative coordinates of the semantic object are obtained based on the preliminary coordinate system.

[0027] In one embodiment, the simultaneously remapping the relative coordinates of the semantic objects includes:

[0028] Obtaining the nearest node position of the semantic object after loop closure optimization;

[0029] A loop coordinate system is established with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate;

[0030] The semantic object is remapped to the loop closure coordinate system according to the nearest node position of the semantic object and the relative coordinates of the semantic object after loop closure optimization.

[0031] In one embodiment, the step of obtaining the robot's prior posture based on the map coordinates of the two semantic objects and the distances from the robot platform comprises:

[0032] Draw circles with the map coordinates of the two semantic objects as the center and the distance between the semantic objects and the robot platform as the radius to obtain two possible coordinates of the robot;

[0033] Obtaining four possible orientations of the robot based on the map coordinates of the two semantic objects and the two possible coordinates of the robot respectively;

[0034] The robot prior pose is determined based on two possible coordinates and four possible orientations of the robot.

[0035] In one embodiment, the step of obtaining four possible orientations of the robot based on the map coordinates of the two semantic objects and the two possible coordinates of the robot comprises:

[0036] Calculating the angle of the semantic object in the robot coordinate system based on the map coordinates of the semantic object;

[0037] Calculating the angle of the line connecting the semantic object and the robot position in the world coordinate system based on the map coordinates of the semantic object and two possible coordinates of the robot;

[0038] The possible orientation of the robot is calculated based on the angle of the semantic object in the robot coordinate system and the angle of the line connecting the semantic object and the robot position in the world coordinate system.

[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a robot repositioning device, the robot repositioning device comprising:

[0040] The acquisition module is used to build a grid map based on the robot platform information collected by the lidar sensor;

[0041] A construction module, used to construct a loop semantic map based on the object semantic information collected by the depth camera and the grid map;

[0042] An acquisition module, used for respectively acquiring the map coordinates of two semantic objects and their distances from the robot platform based on the semantic map;

[0043] A determination module, configured to obtain a priori posture of the robot based on the map coordinates of the two semantic objects and the distances between the two semantic objects and the robot platform acquired by the depth camera;

[0044] A positioning module is used to reposition the robot according to the prior posture of the robot.

[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a robot repositioning device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the robot repositioning method as described above.

[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the robot repositioning method described above are implemented.

[0047] One or more technical solutions proposed in the present application have at least the following technical effects: a robot repositioning method is provided, a grid map is constructed based on robot platform information collected by a lidar sensor, a loop closure semantic map is constructed based on object semantic information collected by a depth camera and the grid map, map coordinates of two semantic objects and their distances from the robot platform are respectively obtained based on the loop closure semantic map, a priori position and posture of the robot is obtained based on the map coordinates of the two semantic objects and their distances from the robot platform, the robot is repositioned according to the priori position and posture of the robot, and when the robot positioning is lost, due to the lack of an initial posture for its repositioning, resulting in a long repositioning time or even positioning errors in similar environments, the robot prior position and posture can be obtained based on the map coordinates of the two semantic objects in the constructed loop closure semantic map and their distances from the robot platform, and accurate repositioning is performed to ensure the robustness and real-time performance of the robot positioning algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the robot repositioning method of the present application;

[0051] Figure 2 A grid map of a robot repositioning method is provided for the first embodiment of the present application;

[0052] Figure 3 A triangulated positioning diagram of a robot repositioning method is provided for the first embodiment of the present application;

[0053] Figure 4 A schematic diagram of a flow chart provided for the second embodiment of the robot repositioning method of the present application;

[0054] Figure 5 Provide a semantic map after the grid map loop of the robot relocalization method in the second embodiment of the present application;

[0055] Figure 6 A semantic object schematic diagram of a robot relocalization method is provided for the second embodiment of the present application;

[0056] Figure 7 Provide a semantic map after the semantic information loopback of the robot relocalization method for the second embodiment of the present application;

[0057] Figure 8 This is a schematic diagram of the module structure of the robot repositioning device according to an embodiment of the present application;

[0058] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the robot repositioning method in the embodiment of the present application.

[0059] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0060] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0061] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0062] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a robot control device, etc. The following takes a robot control device as an example to illustrate this embodiment and the following embodiments.

[0063] The present application embodiment provides a robot repositioning method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the robot repositioning method of the present application.

[0064] In this embodiment, the robot repositioning method includes steps S10 to S50:

[0065] Step S10, constructing a grid map based on the robot platform information collected by the laser radar sensor;

[0066] It should be noted that the laser radar is a single-line laser radar, specifically, the single-line laser radar can be a 270° single-line laser radar of Wanji Technology, which is mounted on the robot platform and can scan objects in the indoor environment to obtain indoor environment texture information, that is, the robot platform information. The robot platform information includes the distance between the laser radar sensor and the indoor object, the angle between the laser radar sensor and the indoor object, etc., wherein the indoor object includes indoor walls and indoor furniture, etc., and this embodiment does not make specific restrictions on this.

[0067] It should be understood that the grid map constructed based on the robot platform information collected by the lidar sensor is a two-dimensional map. Figure 2 , Figure 2 A grid map of the robot relocation method is provided for Example 1. In a specific implementation, a laser SLAM (Simultaneous Localization and Mapping) algorithm is required to process the robot platform information transmitted by the laser radar sensor to obtain the grid map. The laser SLAM algorithm may be a Cartographer algorithm, which is not specifically limited in this embodiment.

[0068] Step S20, constructing a loop semantic map based on the object semantic information collected by the depth camera and the grid map;

[0069] It should be noted that the depth camera combined with the target detection algorithm can obtain object category information and depth information. Specifically, the depth camera can be a Realsense d455 camera, and the maximum horizontal viewing angle range of its depth map can be 85°, and the vertical viewing angle can be 58°. This embodiment does not impose specific restrictions on this.

[0070] It should be understood that when the robot moves in an indoor environment, the cumulative error of the robot's positioning will gradually increase due to sensor errors, map modeling errors or environmental changes, resulting in inconsistencies between the map and the actual position of the robot. Constructing a loop semantic map based on the object semantic information collected by the depth camera and the grid map can eliminate the cumulative errors that occur in the mapping process of the laser SLAM algorithm, perform position correction, and improve the accuracy and completeness of the mapping.

[0071] Step S30, obtaining map coordinates of two semantic objects and their distances from the robot platform respectively based on the loop semantic map;

[0072] It should be noted that after the map coordinates of the two semantic objects are identified, it is necessary to obtain the depth camera information corresponding to the map coordinates, and calculate the distance between the semantic object and the robot platform through the depth information of the depth camera.

[0073] Step S40, obtaining a priori position and posture of the robot based on the map coordinates of the two semantic objects and the distances from the robot platform.

[0074] In this embodiment, the step S40 further includes steps S41 to S42:

[0075] Step S41, drawing a circle with the map coordinates of the two semantic objects as the center and the distance between the semantic objects and the robot platform as the radius, to obtain two possible coordinates of the robot;

[0076] Specifically, refer to Figure 3 , Figure 3 A triangulated positioning diagram of a robot repositioning method is provided for the first embodiment of the present application. Figure 2 As shown, P1 and P2 are the positions of the two semantic objects in the loop semantic map, and d'1 and d'2 are the distances between the two semantic objects and the robot platform. After obtaining the map coordinates of P1 and P2, circle 1 is obtained with P1 as the center and d'1 as the radius, and circle 2 is obtained with P2 as the center and d'2 as the radius. Circle 1 and circle 2 intersect at two points I1 and I2. I1 and I2 are the two possible positions of the robot, and the map coordinates of I1 and I2 are the two possible coordinates of the robot.

[0077] Step S42, obtaining four possible orientations of the robot based on the map coordinates of the two semantic objects and the two possible coordinates of the robot respectively;

[0078] Specifically, based on the map coordinates of P1 and I1, the angle 1 of the robot's orientation in the world coordinate system can be calculated, with I1 as the origin and the angle 1 as the orientation to obtain ray 1; based on the map coordinates of P2 and I1, the angle 2 of the robot's orientation in the world coordinate system can be calculated, with I1 as the origin and the angle 2 as the orientation to obtain ray 2; based on the map coordinates of P1 and I2, the angle 3 of the robot's orientation in the world coordinate system can be calculated, with I2 as the origin and the angle 3 as the orientation to obtain ray 3; based on the map coordinates of P2 and I2, the angle 4 of the robot's orientation in the world coordinate system can be calculated, with I2 as the origin and the angle 4 as the orientation to obtain ray 4. Ray 1, ray 2, ray 3 and ray 4 point to four possible orientations of the robot respectively.

[0079] The following is a specific description of the steps of obtaining the possible orientation of the robot based on the map coordinates of P1 and I1, which includes steps A11 to A13:

[0080] Step A11, calculating the angle of the semantic object in the robot coordinate system based on the map coordinates of the semantic object;

[0081] Among them, the map coordinates of the semantic object P1 are (x p1 ,y p1 ), the angle θ1 of P1 in the robot coordinate system is calculated by the following formula:

[0082]

[0083] Step A12, calculating the angle of the line connecting the semantic object and the robot position in the world coordinate system based on the map coordinates of the semantic object and two possible coordinates of the robot;

[0084] Among them, the two possible coordinates I1 of the robot are (x i1 ,y i1 ), the angle θ2 between P1 and the line connecting the robot position and the world coordinate system is calculated by the following formula:

[0085]

[0086] Step A13, calculating the possible orientation of the robot based on the angle of the semantic object in the robot coordinate system and the angle of the line connecting the semantic object and the robot position in the world coordinate system.

[0087] The angle θ3 of the robot's orientation in the world coordinate system is calculated by the following formula:

[0088] θ3=θ1+θ2

[0089] θ3 is the possible orientation of the robot. Similarly, the other three possible orientations of the robot can be obtained, which will not be described in detail here.

[0090] Step S43, determining the robot's prior position and posture based on the two possible coordinates and four possible orientations of the robot.

[0091] It should be understood that the four possible orientations of the robot can be divided into two groups based on the two possible coordinates of the robot, and the difference between the two groups of possible orientations is compared, and the possible coordinates corresponding to the group of possible orientations with a smaller difference are used as the map coordinates of the robot, and the average of the group of possible orientations with a smaller difference is used as the orientation of the robot. The robot prior pose is determined according to the map coordinates of the robot and the orientation of the robot.

[0092] Specifically, based on the two possible coordinates I1(x i1 ,y i1 )、I2(x i2 ,y i2 ) and four possible orientations ray 1, ray 2, ray 3 and ray 4 are used as examples to illustrate the process of determining the robot's prior posture: Assume that ray 1 and ray 2 are two possible orientations corresponding to I1, respectively θ 11 ,θ 12 ; Ray 3 and Ray 4 are two possible directions corresponding to I2, which are θ 21 ,θ 22 Calculate θ 11 With θ 12 The absolute value of the difference △θ1,θ 21 ,θ 22 The absolute value of the difference △θ2 is used to compare △θ1 and △θ2. If △θ2 is smaller than △θ1, then △θ2 corresponds to the possible coordinates, that is, I2(x i2 ,y i2 ), is the map coordinate of the robot. 21 With θ 22 The mean value θ of is the orientation of the robot. Finally, the robot’s prior position is determined as (x i2 ,y i2 ,θ)

[0093] Step S50: repositioning the robot according to the prior posture of the robot.

[0094] It should be noted that after determining the robot's prior posture, the robot's prior posture needs to be passed into the laser SLAM algorithm. The SLAM algorithm will match the robot's prior posture with the indoor environment map to update the robot's current posture and achieve repositioning.

[0095] The present embodiment provides a robot relocalization method, which constructs a grid map based on robot platform information collected by a lidar sensor, constructs a loop closure semantic map based on object semantic information collected by a depth camera and the grid map, obtains map coordinates of two semantic objects and their distances from the robot platform based on the loop closure semantic map, obtains a priori position and posture of the robot based on the map coordinates of the two semantic objects and their distances from the robot platform, and relocates the robot based on the a priori position and posture of the robot. When the robot positioning is lost, there is no initial position and posture for relocalization, resulting in a long relocalization time or even positioning errors in similar environments. The robot a priori position and posture can be obtained based on the map coordinates of the two semantic objects in the constructed loop closure semantic map and their distances from the robot platform, and relocalization can be performed accurately, thereby ensuring the robustness and real-time performance of the robot positioning algorithm.

[0096] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , step S20 of the robot repositioning method further includes steps S21 and S22:

[0097] Step S21, converting the object semantic information in the camera coordinate system acquired by the depth camera into the object semantic information in the map coordinate system;

[0098] In this embodiment, step S21 includes: converting the object semantic information in the camera coordinate system into the object semantic information in the robot coordinate system based on the transformation matrix between the camera coordinate system and the robot coordinate system; converting the object semantic information in the robot coordinate system into the object semantic information in the world coordinate system based on the transformation matrix between the robot coordinate system and the world coordinate system; converting the object semantic information in the world coordinate system into the object semantic information in the map coordinate system.

[0099] It should be understood that the object semantic information collected by the depth camera is three-dimensional depth information, which includes the internal parameter information of the depth camera calibration, and the grid map is a two-dimensional plane map. Before mapping the object semantic information collected by the depth camera to the grid map, it is necessary to convert the three-dimensional depth information into two-dimensional plane information, that is, to convert the object semantic information in the camera coordinate system into the object semantic information in the map coordinate system.

[0100] Specifically, the object semantic information in the three-dimensional coordinate system established with the camera optical center as the origin can be converted to the three-dimensional coordinate system established with the robot as the origin through the conversion matrix between the camera coordinate system and the robot coordinate system. Then, the object semantic information in the three-dimensional coordinate system established with the robot as the origin can be converted to the global reference coordinate system of the entire indoor environment, that is, the world coordinate system, through the conversion matrix between the robot coordinate system and the world coordinate system. Finally, based on the mapping ratio of the scale between the indoor environment and the raster map, the object semantic information in the world coordinate system is converted into the object semantic information in the map coordinate system.

[0101] Step S22, based on the object semantic information in the map coordinate system, obtain the object semantic label of each grid of the grid map according to the Bayesian algorithm, and construct a loop semantic map.

[0102] It should be understood that the grid map constructed based on the robot platform information collected by the lidar sensor does not include object semantic information. In order to obtain a grid map with object semantic information, it is necessary to map the object semantic information in the map coordinate system to the constructed grid map. This embodiment obtains the object semantic label of the grid map through the Bayesian algorithm, which can reduce the sensor's perception error and adapt to the positioning requirements in different indoor environments.

[0103] In this embodiment, the step of constructing a loop semantic map in step S22 includes steps A21 to A23:

[0104] Step A21, constructing a preliminary semantic map based on the semantic labels of the objects in each grid, and obtaining the relative coordinates of the semantic objects;

[0105] It should be noted that after constructing the preliminary semantic map, in order to eliminate the accumulated errors generated in the robot mapping process, it is necessary to obtain the relative coordinates of the semantic objects corresponding to each object in the indoor environment based on the mapping trajectory for subsequent construction of the loop semantic map. The relative coordinates are the coordinates of each semantic object in the mapping trajectory relative to the nearest node.

[0106] In this embodiment, the step of obtaining the relative coordinates of the semantic object includes: obtaining the nearest node position of the semantic object before loop optimization; establishing a preliminary coordinate system with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate; and obtaining the relative coordinates of the semantic object based on the preliminary coordinate system.

[0107] It should be understood that for an object in an indoor environment, it is assumed that its corresponding semantic object S in the preliminary semantic map is O , the nearest node found in the mapping trajectory is X O . Then X O The position of the node is the origin, the direction of the node is the y coordinate, and the right direction is the x coordinate to establish a coordinate system, that is, the preliminary coordinate system, and obtain the X O The coordinates in this coordinate system are the relative coordinates of the semantic object.

[0108] Step A22, performing loop closure optimization on the preliminary semantic map based on the grid map, and remapping the relative coordinates of the semantic objects;

[0109] It should be noted that the loop optimization step includes: detecting the path closure or cycle features that may exist in the robot's movement process, generally by comparing the previous path with the current path; when a loop is detected, generating corresponding constraints based on the loop characteristics, with the goal of minimizing the cumulative error of all constraints; adding the constraints to the graph optimization problem, solving the graph optimization problem through the graph optimization algorithm, and obtaining the optimal map estimate. Figure 5 , Figure 5 A semantic map after the grid map loop is provided for the robot relocalization method in Example 2 of the present application.

[0110] In this embodiment, the relative coordinates of the semantic object are simultaneously remapped, including: obtaining the nearest node position of the semantic object after loop closure optimization; establishing a loop closure coordinate system with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate; and remapping the semantic object to the loop closure coordinate system according to the nearest node position of the semantic object after loop closure optimization and the relative coordinates of the semantic object.

[0111] Specifically, refer to Figure 6 , Figure 7 The semantic object principle diagram of the robot relocation method is provided for the second embodiment of the present application. Figure 5 , assuming that for an object in an indoor environment, the position of the corresponding semantic object before the loop is SO, and the positions of the nearest nodes of the semantic object before and after the loop are X O (x O ,y O ),X N (x N ,y N ). SO is based on the position X of the nearest node before looping back O (x O ,y O ) The relative coordinates in the preliminary coordinate system established are When the position X of the near node after looping is obtained N (x N ,y N ) then, according to X N (x N ,y N ) and relative coordinates The remapped semantic object coordinates S can be obtained N (x,y).

[0112] Step A23: construct the loop semantic map based on the remapped relative coordinates of the semantic objects.

[0113] It should be understood that after remapping each semantic object after loop closure, all remapped semantic objects are updated to the semantic map after loop closure optimization, so that a loop closure semantic map that integrates observation information at different times and locations can be obtained. Figure 7 , Figure 7 The second embodiment of the present application provides a semantic map after the semantic information loop of the robot relocalization method. While looping the preliminary semantic map, all semantic objects in the map are remapped, which strengthens the consistency of the semantic map and improves the accuracy of the robot relocalization.

[0114] In this embodiment, the object semantic information in the camera coordinate system collected by the depth camera is converted into the object semantic information in the map coordinate system, and the three-dimensional depth information collected by the depth camera can be matched to the two-dimensional grid map. Based on the object semantic information in the map coordinate system, the object semantic label of each grid of the grid map is obtained according to the Bayesian algorithm, and a loop semantic map is constructed, which can eliminate the cumulative error generated by the robot during movement and ensure that the object semantics corresponds to the grid map.

[0115] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the robot repositioning method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0116] This application also provides a robot repositioning device, please refer to Figure 8 , the robot repositioning device comprises:

[0117] The acquisition module 10 is used to construct a grid map based on the robot platform information acquired by the laser radar sensor;

[0118] A construction module 20, configured to construct a loop semantic map based on the object semantic information collected by the depth camera and the grid map;

[0119] An acquisition module 30, used for respectively acquiring the map coordinates of two semantic objects and their distances from the robot platform based on the semantic map;

[0120] A determination module 40, configured to obtain a priori posture of the robot based on the map coordinates of the two semantic objects and the distances between the two semantic objects and the robot platform acquired by the depth camera;

[0121] The positioning module 50 is used to reposition the robot according to the prior position and posture of the robot.

[0122] The robot repositioning device provided by the present application adopts the robot repositioning method in the above embodiment, which can solve the technical problem of how to accurately reposition the robot. Compared with the prior art, the beneficial effects of the robot repositioning device provided by the present application are the same as the beneficial effects of the robot repositioning method provided by the above embodiment, and the other technical features in the robot repositioning device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0123] The present application provides a robot repositioning device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the robot repositioning method in the above-mentioned embodiment 1.

[0124] Reference below Fig. 9 , which shows a schematic diagram of the structure of a robot repositioning device suitable for implementing the embodiment of the present application. The robot repositioning device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The robot repositioning device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0125] like Fig. 9As shown, the robot repositioning device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the robot repositioning device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a robot repositioning device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0126] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0127] The robot repositioning device provided by the present application adopts the robot repositioning method in the above embodiment, which can solve the technical problem of how to accurately reposition the robot. Compared with the prior art, the beneficial effects of the robot repositioning device provided by the present application are the same as the beneficial effects of the robot repositioning method provided by the above embodiment, and the other technical features in the robot repositioning device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0128] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0129] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0130] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the robot repositioning method in the above-mentioned embodiment.

[0131] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0132] The computer-readable storage medium may be included in the robot repositioning device; or may exist independently without being assembled into the robot repositioning device.

[0133] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the robot repositioning device, the robot repositioning device: constructs a grid map based on the robot platform information collected by the lidar sensor; constructs a loop semantic map based on the object semantic information collected by the depth camera and the grid map; obtains the map coordinates of two semantic objects and the distances from the robot platform based on the loop semantic map; obtains the robot's prior posture based on the map coordinates of the two semantic objects and the distances from the robot platform; and repositions the robot according to the robot's prior posture.

[0134] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0137] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned robot repositioning method, and can solve the technical problem of how to accurately reposition. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the robot repositioning method provided by the above-mentioned embodiment, and will not be repeated here.

[0138] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the robot repositioning method as described above are implemented.

[0139] The computer program product provided by the present application can solve the technical problem of how to accurately reposition. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the robot repositioning method provided by the above embodiment, which will not be repeated here.

[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A robot repositioning method, characterized in that: The robot repositioning method comprises: Build a grid map based on the robot platform information collected by the lidar sensor; Constructing a loop semantic map based on the object semantic information collected by the depth camera and the grid map; Based on the loop semantic map, respectively obtain the map coordinates of the two semantic objects and the distances from the robot platform; Obtaining a priori posture of the robot based on the map coordinates of the two semantic objects and the distances from the robot platform; The robot is repositioned according to the prior posture of the robot.

2. The method according to claim 1, characterized in that The step of constructing a semantic map based on the object semantic information collected by the depth camera and the grid map includes: Converting the object semantic information in the camera coordinate system acquired by the depth camera into the object semantic information in the map coordinate system; Based on the object semantic information in the map coordinate system, the object semantic label of each grid of the grid map is obtained according to the Bayesian algorithm to construct a loop semantic map.

3. The method according to claim 2, characterized in that The step of converting the object semantic information in the camera coordinate system acquired by the depth camera into the object semantic information in the map coordinate system comprises: The object semantic information in the camera coordinate system is converted into the object semantic information in the robot coordinate system based on the conversion matrix between the camera coordinate system and the robot coordinate system; Converting the object semantic information in the robot coordinate system into the object semantic information in the world coordinate system based on the conversion matrix between the robot coordinate system and the world coordinate system; The object semantic information in the world coordinate system is converted into the object semantic information in the map coordinate system.

4. The method according to claim 2, characterized in that The step of constructing the loop closure semantic map includes: Build a preliminary semantic map based on the semantic labels of objects in each grid and obtain the relative coordinates of the semantic objects; Performing loop closure optimization on the preliminary semantic map based on the grid map, and remapping the relative coordinates of the semantic objects; The loop semantic map is constructed based on the remapped relative coordinates of the semantic objects.

5. The method according to claim 4, characterized in that The obtaining of relative coordinates of the semantic object comprises: Obtain the nearest node position of the semantic object before loop closure optimization; A preliminary coordinate system is established with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate; The relative coordinates of the semantic object are obtained based on the preliminary coordinate system.

6. The method according to claim 4, characterized in that The simultaneously remapping the relative coordinates of the semantic objects comprises: Obtaining the nearest node position of the semantic object after loop closure optimization; A loop coordinate system is established with the nearest node as the origin, the direction of the nearest node as the y coordinate, and the right direction of the nearest node as the x coordinate; The semantic object is remapped to the loop closure coordinate system according to the nearest node position of the semantic object and the relative coordinates of the semantic object after loop closure optimization.

7. The method according to claim 1, characterized in that The step of obtaining the robot's prior position and posture based on the map coordinates of the two semantic objects and the distances from the robot platform comprises: Draw circles with the map coordinates of the two semantic objects as the center and the distance between the semantic objects and the robot platform as the radius to obtain two possible coordinates of the robot; Obtaining four possible orientations of the robot based on the map coordinates of the two semantic objects and the two possible coordinates of the robot respectively; The robot prior pose is determined based on two possible coordinates and four possible orientations of the robot.

8. The method according to claim 7, characterized in that The step of obtaining four possible orientations of the robot based on the map coordinates of the two semantic objects and the two possible coordinates of the robot comprises: Calculating the angle of the semantic object in the robot coordinate system based on the map coordinates of the semantic object; Calculating the angle of the line connecting the semantic object and the robot position in the world coordinate system based on the map coordinates of the semantic object and two possible coordinates of the robot; The possible orientation of the robot is calculated based on the angle of the semantic object in the robot coordinate system and the angle of the line connecting the semantic object and the robot position in the world coordinate system.

9. A robot repositioning device, characterized in that: The device comprises: The acquisition module is used to build a grid map based on the robot platform information collected by the lidar sensor; A construction module, used to construct a loop semantic map based on the object semantic information collected by the depth camera and the grid map; An acquisition module, used for respectively acquiring the map coordinates of two semantic objects and their distances from the robot platform based on the semantic map; A determination module, configured to obtain a priori posture of the robot based on the map coordinates of the two semantic objects and the distances between the two semantic objects and the robot platform acquired by the depth camera; A positioning module is used to reposition the robot according to the prior posture of the robot.

10. A robot repositioning device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the robot repositioning method according to any one of claims 1 to 8.