A positioning method and system for indoor mobile robot
By combining the Scan-Matching and Amcl positioning methods, using indoor maps and lidar data, and fusing feature values and speed estimates, the reliability and accuracy problems of indoor robot positioning in the existing technology are solved, and the rapid and accurate positioning of indoor mobile robots is achieved. Stable positioning.
Patent Information
- Application Number
- CN202111255199.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing indoor robot positioning methods have shortcomings in reliability and accuracy. A single method cannot guarantee the stability of positioning, and it is difficult to judge the accuracy between multiple methods.
Two positioning methods, Scan-Matching and Amcl, are used to combine indoor map data and LiDAR scanning data. Through comparison of eigenvalues and eigenvectors and speed estimation, the fusion of the pose matrix is realized, and the accurate position of the robot is finally determined.
It improves the positioning reliability and stability of indoor mobile robots, makes up for the shortcomings of a single positioning method, and achieves accurate and stable positioning results.
Smart Images

Figure CN113984064B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous positioning of indoor mobile robots, and in particular to a positioning method and system for indoor mobile robots. Background Art
[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.
[0003] In the prior art, indoor robot positioning methods usually require that the robot be placed in a real environment first, and then the robot is continuously moved in the real environment by remote control; then, the real environment is scanned using a 3D laser scanner carried by the robot, and a point cloud map (environmental model) of the real environment is created using a SLAM mapping algorithm; finally, the environmental model is used to align with the point cloud scanned by the current robot at any position to determine the robot's current position in the real environment.
[0004] The inventors have found that most of the existing indoor robot positioning methods use a single positioning method, which cannot fully guarantee the reliability of robot positioning. When multiple positioning methods are used, it is impossible to judge the accuracy of various positioning methods relative to each other. Summary of the invention
[0005] In order to address the deficiencies of the prior art, the present invention provides a positioning method and system for an indoor mobile robot, which achieves rapid and stable positioning of the indoor mobile robot and makes up for the inaccurate positioning problem caused by a single positioning method.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A first aspect of the present invention provides a positioning method for an indoor mobile robot.
[0008] A positioning method for an indoor mobile robot includes the following processes:
[0009] Obtain indoor map data and lidar scan data;
[0010] According to the laser radar scanning data and the first positioning matching algorithm, combined with the indoor map data, the first pose data is obtained, and then the first pose matrix of the indoor mobile robot is obtained;
[0011] According to the laser radar scanning data and the second positioning matching algorithm, combined with the indoor map data, the second posture data is obtained, and then the second posture matrix of the indoor mobile robot is obtained;
[0012] By comparing the eigenvalues and eigenvectors of the first pose matrix and the second pose matrix, when the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average pose of the two positioning results is taken as the final positioning pose.
[0013] Furthermore, if the absolute difference between the eigenvalues of the two matrices is greater than or equal to a preset threshold, or the angle between the two eigenvectors is greater than or equal to a first set value, it is determined that the positioning is abnormal;
[0014] Perform velocity estimation on the first pose data and the second pose data respectively, and obtain the first pose estimation data and the second pose estimation data respectively according to the pose velocity estimation results;
[0015] Determine the close proximity between the first pose estimation data and the first pose data and the close proximity between the second pose estimation data and the second pose data;
[0016] The pose data with a higher degree of proximity is taken as the final positioning pose.
[0017] Furthermore, the first positioning matching algorithm is a Scan-Matching positioning algorithm.
[0018] Furthermore, the second positioning matching algorithm is the Amcl positioning algorithm.
[0019] Furthermore, the first pose data and the second pose data are both incremental poses obtained by superimposing odometer data and gyroscope data on the absolute pose.
[0020] Furthermore, the first pose data and the second pose data are stored respectively by window recursion. When the number of stored poses is greater than a set threshold, the stored poses are combined into a pose matrix to obtain the first pose matrix and the second pose matrix respectively.
[0021] Furthermore, the window recursive storage method includes: storing data according to a fixed number, and when the number is greater than the fixed value, the overall order of the stored data is shifted backward.
[0022] A second aspect of the present invention provides a positioning system for an indoor mobile robot.
[0023] A positioning system for an indoor mobile robot, comprising:
[0024] The data acquisition module is configured to: acquire indoor map data and laser radar scanning data;
[0025] The first pose matrix calculation module is configured to: obtain the first pose data according to the laser radar scanning data and the first positioning matching algorithm in combination with the indoor map data, and then obtain the first pose matrix of the indoor mobile robot;
[0026] The second posture matrix calculation module is configured to: obtain second posture data according to the laser radar scanning data and the second positioning matching algorithm in combination with the indoor map data, and then obtain a second posture matrix of the indoor mobile robot;
[0027] The posture fusion module is configured to: compare the eigenvalues and eigenvectors of the first posture matrix and the second posture matrix. When the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average posture of the two positioning results is taken as the final positioning posture.
[0028] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, characterized in that when the program is executed by a processor, the steps of the positioning method for an indoor mobile robot as described in the first aspect of the present invention are implemented.
[0029] The fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the positioning method for an indoor mobile robot as described in the first aspect of the present invention are implemented.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] 1. The present invention adopts two positioning methods to obtain positioning results respectively, and then obtains two posture matrices, and solves the eigenvalues and eigenvectors of the posture matrices. If the two positioning results are close, the average of the two is taken as the final positioning result; if there is a disagreement between the two positioning results, the speed estimation result is calculated, and the adjacent result is taken as the final positioning result, which improves the positioning reliability and makes up for the problem of subsequent inability to position normally once a single positioning algorithm fails.
[0032] 2. In order to solve the problem that a single positioning method cannot fully guarantee the reliability of positioning and the problem that the results of positioning methods cannot be accurately evaluated, the present invention introduces the scan-matching positioning method and the amcl positioning method, and combines the two positioning methods with a method based on feature analysis and data fusion, ultimately achieving the fusion of positioning results and realizing accurate and stable positioning of indoor mobile robots. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0034] Figure 1 A schematic flow chart of a positioning method for an indoor mobile robot provided in Example 1 of the present invention.
[0035] Figure 2 This is a schematic diagram of the positioning result fusion method provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0036] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0037] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0038] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0039] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0040] Embodiment 1:
[0041] like Figure 1 and 2 As shown, Embodiment 1 of the present invention provides a positioning method for an indoor mobile robot, comprising the following process:
[0042] Obtain indoor map data and lidar scan data;
[0043] According to the laser radar scanning data and the first positioning matching algorithm, combined with the indoor map data, the first pose data is obtained, and then the first pose matrix of the indoor mobile robot is obtained;
[0044] According to the laser radar scanning data and the second positioning matching algorithm, combined with the indoor map data, the second posture data is obtained, and then the second posture matrix of the indoor mobile robot is obtained;
[0045] By comparing the eigenvalues and eigenvectors of the first pose matrix and the second pose matrix, when the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average pose of the two positioning results is taken as the final positioning pose.
[0046] Furthermore, if the absolute difference between the eigenvalues of the two matrices is greater than or equal to a preset threshold, or the angle between the two eigenvectors is greater than or equal to a first set value, it is determined that the positioning is abnormal;
[0047] Perform velocity estimation on the first pose data and the second pose data respectively, and obtain the first pose estimation data and the second pose estimation data respectively according to the pose velocity estimation results;
[0048] Determine the close proximity between the first pose estimation data and the first pose data and the close proximity between the second pose estimation data and the second pose data;
[0049] The pose data with a higher degree of proximity is taken as the final positioning pose.
[0050] Specifically, it includes the following:
[0051] S1: Using simultaneous localization and mapping to build a map of the work environment
[0052] S1.1: Use LiDAR to scan the working environment and obtain odometer data and gyroscope data at the same time;
[0053] S1.2: Create maps of the operating environment using simultaneous localization and mapping methods.
[0054] S2: Get the positioning result based on Amcl and Scan-Matching scan matching
[0055] Specifically, after receiving the lidar data, it is matched with the map established in step 1, and the matching poses are obtained using the Amcl and Scan-Matching methods respectively.
[0056] S3: Store the above matching pose results in a window recursive storage manner
[0057] S3.1: According to the recursive window method, the results of the two positioning methods are stored respectively.
[0058] S3.2: When both storage results are full, the two sets of data are respectively formed into pose matrices.
[0059] S3.3: Obtain the eigenvalues and eigenvectors of the two pose matrices.
[0060] S4: Trade-offs in positioning results
[0061] S4.1: Compare the feature values of the two sets of positioning results. If the absolute difference between the two is less than the threshold, the two results are considered to be similar, and the average pose of the two positioning results is taken as the final positioning pose.
[0062] S4.2: If the difference between the eigenvalues of the two matrices is greater than a threshold, the two positioning results are considered to be divergent.
[0063] S4.3: According to the posture distribution and the corresponding time, the velocity of the data in the two groups of windows is estimated respectively.
[0064] Specifically, according to the posture and the corresponding time, a fitting equation can be established to fit a curve with posture and time as variables, so that the posture at the new moment can be obtained, and the estimated speed value can be obtained by comparing it with the time increment.
[0065] S4.4: Calculate estimated posture data based on the estimated posture velocity.
[0066] Specifically, after the velocity estimation data is obtained, the pose increment at the current time increment can be calculated = time increment multiplied by velocity, and then the pose at the previous moment is superimposed to obtain the estimated pose.
[0067] S4.5: Determine the closeness between the two sets of positioning results and the estimated pose, and take the pose with the higher closeness as the final positioning pose.
[0068] Simultaneous positioning and map construction include: the gyroscope provides the angle, angular velocity and linear acceleration of the AGV movement, the encoder uses an incremental rotary encoder to provide the wheel change increment, based on the incremental data, the posture increment is obtained through the differential model, and the lidar is used as a laser sensor to scan the working environment. The lidar obtains the contour features of the working environment and the reflector features corresponding to the light intensity, and the environmental information of the robot is expressed based on the data of the above three sensors.
[0069] The window recursive storage method is as follows: data is stored in a fixed quantity, and when the quantity is greater than the fixed value, the overall order of the stored data is moved backward.
[0070] Embodiment 2:
[0071] Embodiment 2 of the present invention provides a positioning system for an indoor mobile robot, comprising:
[0072] The data acquisition module is configured to: acquire indoor map data and laser radar scanning data;
[0073] The first pose matrix calculation module is configured to: obtain the first pose data according to the laser radar scanning data and the first positioning matching algorithm in combination with the indoor map data, and then obtain the first pose matrix of the indoor mobile robot;
[0074] The second posture matrix calculation module is configured to: obtain second posture data according to the laser radar scanning data and the second positioning matching algorithm in combination with the indoor map data, and then obtain a second posture matrix of the indoor mobile robot;
[0075] The posture fusion module is configured to: compare the eigenvalues and eigenvectors of the first posture matrix and the second posture matrix. When the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average posture of the two positioning results is taken as the final positioning posture.
[0076] The working method of the system is the same as the positioning method for an indoor mobile robot provided in Example 1, and will not be repeated here.
[0077] Embodiment 3:
[0078] Embodiment 3 of the present invention provides a computer-readable storage medium having a program stored thereon, characterized in that when the program is executed by a processor, the steps of the positioning method for an indoor mobile robot as described in Embodiment 1 of the present invention are implemented.
[0079] Embodiment 4:
[0080] Embodiment 4 of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the positioning method for an indoor mobile robot as described in Embodiment 1 of the present invention are implemented.
[0081] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0082] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0085] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A positioning method for an indoor mobile robot, Features: The process includes: Obtain indoor map data and lidar scan data; According to the laser radar scanning data and the first positioning matching algorithm, combined with the indoor map data, the first pose data is obtained, and then the first pose matrix of the indoor mobile robot is obtained; According to the laser radar scanning data and the second positioning matching algorithm, combined with the indoor map data, the second posture data is obtained, and then the second posture matrix of the indoor mobile robot is obtained; By comparing the eigenvalues and eigenvectors of the first pose matrix and the second pose matrix, when the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average pose of the two positioning results is taken as the final positioning pose.
2. The positioning method for an indoor mobile robot according to claim 1, Features: If the absolute difference between the eigenvalues of the two matrices is greater than or equal to a preset threshold, or the angle between the two eigenvectors is greater than or equal to a first set value, the positioning is determined to be abnormal; Perform velocity estimation on the first pose data and the second pose data respectively, and obtain the first pose estimation data and the second pose estimation data respectively according to the pose velocity estimation results; Determine the close proximity between the first pose estimation data and the first pose data and the close proximity between the second pose estimation data and the second pose data; The pose data with a higher degree of proximity is taken as the final positioning pose.
3. The positioning method for an indoor mobile robot according to claim 1 or 2, Features: The first positioning matching algorithm is the Scan-Matching positioning algorithm.
4. The positioning method for an indoor mobile robot according to claim 1 or 2, Features: The second positioning matching algorithm is the Amcl positioning algorithm.
5. The positioning method for an indoor mobile robot according to claim 1 or 2, Features: The first pose data and the second pose data are stored respectively by window recursion. When the number of stored poses is greater than the set threshold, the stored poses are combined into a pose matrix to obtain the first pose matrix and the second pose matrix respectively.
6. The positioning method for an indoor mobile robot according to claim 5, Features: The window recursive storage method includes: storing data according to a fixed number, and when the number is greater than the fixed value, the overall order of the stored data is shifted backward.
7. A positioning system for an indoor mobile robot, Features: include: The data acquisition module is configured to: acquire indoor map data and laser radar scanning data; The first pose matrix calculation module is configured to: obtain the first pose data according to the laser radar scanning data and the first positioning matching algorithm in combination with the indoor map data, and then obtain the first pose matrix of the indoor mobile robot; The second posture matrix calculation module is configured to: obtain second posture data according to the laser radar scanning data and the second positioning matching algorithm in combination with the indoor map data, and then obtain the second posture matrix of the indoor mobile robot; The posture fusion module is configured to: compare the eigenvalues and eigenvectors of the first posture matrix and the second posture matrix. When the angle between the two eigenvectors is less than the first set value and the eigenvalue difference is less than the second set value, it is determined that there is no abnormality in the positioning, and the average posture of the two positioning results is taken as the final positioning posture.
8. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the positioning method for an indoor mobile robot as described in any one of claims 1 to 6 are implemented.
9. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the positioning method for an indoor mobile robot as described in any one of claims 1-6 are implemented.
