Robot global positioning method and device

Through the fusion of global point cloud map and inertial measurement unit data, combined with the NDT matching model and UKF prediction model, the problem of inaccurate positioning of lidar and IMU integral error in complex outdoor environments is solved, and accurate positioning and global positioning of the robot are achieved. Improved reliability.

CN118707540APending Publication Date: 2024-09-27CHINA ELECTRONIC TECH ROBOT CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410812139.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing lidar-based robot global positioning methods are inaccurate or lost in complex outdoor environments and cannot meet the reliability requirements of robot navigation operations. Moreover, there are cumulative errors in IMU integrals, and extended Kalman filtering causes information in highly nonlinear systems. Lost, affecting positioning reliability.

Method used

The global point cloud map is integrated with the inertial measurement unit and lidar data, and the NDT matching model and the UKF prediction model are used to optimize and update the pose. The dynamic window and the UKF prediction model are used to improve the accuracy of the robot's initial pose and real-time pose. reliability.

Benefits of technology

It achieves accurate global positioning of the robot in complex indoor and outdoor environments, improves the accuracy of the robot's initial pose and the reliability of pose prediction, reduces positioning errors and information loss, and meets the reliability requirements of robot navigation operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707540A
    Figure CN118707540A
Patent Text Reader

Abstract

The invention provides a robot global positioning method. The robot global positioning method comprises the following steps: acquiring a global point cloud map and an estimated initial pose of a robot; based on the global point cloud map and the estimated initial pose of the robot, optimizing the initial pose of the robot; acquiring measurement data of the inertial measurement unit and the laser radar; predicting the pose of the robot in the operation process based on the optimized initial pose of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar; the pose of the robot in the operation process is updated through the NDT matching model and the UKF prediction model. According to the method, the relatively reliable pre-estimated pose is provided for robot operation in real time; according to the estimated pose of the robot, the NDT and UKF fusion method is adopted to complete robot pose optimization and covariance updating corresponding to the real-time state space of the robot, and an accurate state space mean value and covariance are provided for follow-up robot pose estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot positioning, and in particular to a robot global positioning method and device. Background Art

[0002] In recent years, with the continuous breakthroughs in robot SLAM and automatic navigation technology, robot global positioning technology has become a prerequisite for its precise autonomous navigation operations. Based on the Global Positioning System (GPS) or Real Time Kinematic (RTK), it is easily affected by environmental factors and cannot meet the positioning robustness requirements of robots in various environments. The robot positioning system based on LiDAR has gradually become a research hotspot in the field of robot global positioning due to its high positioning robustness and good reliability. However, because it cannot extract enough environmental feature information in an open outdoor environment, it leads to inaccurate positioning or positioning loss, and cannot meet the reliability requirements of robot navigation operations in special environments. Therefore, the existing robot global positioning method based on LiDAR is often used in combination with other sensors such as wheel speed meter, inertial measurement unit (IMU), industrial camera, etc. For example, based on the initial posture of the robot, IMU is used to continuously obtain the real-time posture of the robot through motion model integration, and then the posture is optimized through laser point cloud feature matching. However, the point cloud matching method based on the iterative closest point (ICP) series cannot adapt to the robot positioning in complex outdoor environments due to its poor robustness and low reliability. In addition, there is a cumulative error in IMU integration, which will also cause its positioning accuracy to decrease over time. The extended Kalman filter (EKF) method uses the Taylor linear approximation idea, which can effectively improve the robot positioning accuracy, but it will cause information loss in highly nonlinear systems, affecting the robot positioning reliability, and cannot meet the robot global positioning reliability requirements in complex indoor and outdoor environments. Summary of the invention

[0003] The purpose of the present invention is to provide a robot global positioning method and device to achieve accurate positioning of the robot.

[0004] In order to achieve the above-mentioned objectives, the present invention provides the following technical solutions: a robot global positioning method, comprising the following steps: obtaining a global point cloud map and an estimated initial posture of the robot; optimizing the initial posture of the robot based on the global point cloud map and the estimated initial posture of the robot; obtaining measurement data of an inertial measurement unit and a lidar; predicting the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the lidar; updating the posture of the robot during operation through an NDT matching model and a UKF prediction model.

[0005] Further, the optimization of the initial posture of the robot includes: downsampling the global point cloud map; constructing a grid pyramid map; constructing a dynamic window; constructing an optimal posture candidate queue of the dynamic matching window for the grid map at the end of the queue of the grid pyramid map through the dynamic matching window and the estimated initial posture of the robot; calculating the matching score of the current posture of the robot through a brute force matching method; taking the posture with the highest current matching score as the current optimal initial posture of the robot; eliminating the grid map corresponding to the end of the current grid pyramid map, and judging whether the queue of the current grid pyramid map is empty, if the queue of the current grid pyramid map is empty, then taking the current optimal initial posture of the robot as the optimized initial posture of the robot; if the queue of the current grid pyramid map is not empty, then re-constructing the optimal posture candidate queue for the grid map at the end of the queue of the grid pyramid map through the dynamic matching window and the current optimal initial posture of the robot, and the dynamic matching window only selects a number of grids near the current optimal initial posture of the robot as the sliding window range data.

[0006] Further, the construction of the grid pyramid map includes: performing dimensionality reduction processing on the global point cloud map; traversing all laser points of the global point cloud map, detecting whether the Z-axis coordinates of the laser points are within a set interval; eliminating the laser points whose Z-axis coordinates are not within the set interval, and saving the remaining laser points to a grid map data queue; calculating the grid coordinates of all the laser points in the grid map data queue in the X-axis direction and the Y-axis direction according to the preset resolution of the grid map, and determining the number of laser points in each grid in the grid map; using the ratio of the number of laser points in each grid in the grid map to the maximum number threshold as the cost value of the grid occupancy state; according to the preset number of grid pyramid map layers, reducing the width and height of the grid map in proportion to the preset base number, and using the scaled grid map as the grid pyramid map, wherein the cost value of the scaled grid is the maximum value of the cost values ​​of the corresponding multiple grids before scaling.

[0007] Furthermore, constructing the optimal pose candidate queue of the dynamic matching window for the grid map at the end of the queue of the grid pyramid map through the dynamic matching window and the estimated initial pose of the robot includes: determining the center of the dynamic matching window according to the estimated initial pose of the robot; determining the dimensions of the dynamic matching window of the grid pyramid map in the X-axis direction and the Y-axis direction according to the center of the dynamic matching window, a preset X-axis coordinate range of the dynamic matching window, a preset Y-axis coordinate range of the dynamic matching window, a range of the robot rotation angle, and a resolution of the grid map at the end of the queue of the grid pyramid map; calculating the pose increments of all positions within the dynamic matching window of the grid pyramid map relative to the estimated initial pose of the robot; and constructing the optimal pose candidate queue of the dynamic matching window through coordinate transformation based on the pose increments and the dimensions of the dynamic matching window of the grid pyramid map in the X-axis direction and the Y-axis direction.

[0008] Furthermore, the prediction of the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar includes: obtaining the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit based on the measurement data of the laser radar; constructing the initial state space of the robot according to the initial posture, velocity, linear acceleration and angular acceleration of the robot; constructing a UKF prediction model based on the linear acceleration and angular acceleration of the robot; judging whether the covariance of the initial state space of the robot is positive definite; when the process covariance of the initial state space of the robot is positive definite, calculating the Sigma point of the UKF prediction model, when the process covariance of the initial state space of the robot is not positive definite, reconstructing the process covariance of the initial state space, and then calculating the Sigma point of the UKF prediction model; calculating the weight of the Sigma point; predicting the Sigma point of the current frame; predicting the state space mean and covariance of the robot in the current frame according to the predicted Sigma point of the current frame and the weight of the Sigma point.

[0009] Furthermore, the updating of the posture of the robot during operation by the NDT matching model and the UKF prediction model includes: judging whether to use the odometer data of the robot according to the flag of the state space mean and covariance at the current moment; if the flag of the state space mean and covariance at the current moment uses the odometer data, the odometer data between two adjacent laser frames will be predicted by the UKF prediction model, and the corresponding weights of the state space covariance of the robot and the covariance of the odometer data will be calculated according to the size of the state space covariance of the robot and the covariance of the odometer data, and the posture estimation value of the robot will be calculated by the weight of the state space covariance of the robot and the weight of the covariance of the odometer data; constructing the NDT matching model, and converting the point cloud map of the current frame to the coordinate system of the global point cloud map according to the robot posture estimation value. The global point cloud map is used to construct NDT matching; the NDT matching model is used to iteratively optimize the pose estimation value of the robot, and the optimized pose estimation value of the robot is added to the state space of the robot; and the covariance matrix of the state space of the robot is expanded according to the measurement noise corresponding to the pose estimation value of the robot; the weights of the Sigma points and the Sigma points in the state space of the robot in the current frame are calculated; the mean and covariance of the state space of the robot after measurement optimization are calculated according to the Sigma points and the weights of the Sigma points; the Kalman gain is calculated according to the Sigma points, the weights of the Sigma points, the state space of the robot, and the mean of the state space of the robot; based on the Kalman gain and the pose estimation value of the robot, the optimal pose of the current frame of the robot is obtained and the covariance of the state space of the robot is updated.

[0010] Furthermore, obtaining the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit based on the measurement data of the lidar includes: obtaining the measurement data of the lidar of the current frame; and filtering the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit based on the laser frame timestamp of the measurement data of the lidar of the current frame.

[0011] Furthermore, the preset cardinality is 2.

[0012] The present invention also discloses a robot global positioning device, comprising: a robot data acquisition module, which acquires a global point cloud map and an estimated initial posture of the robot; an initial posture calculation module, which optimizes the initial posture of the robot through a dynamic window brute force matching method based on the global point cloud map and the estimated initial posture of the robot; a measurement data collection module, which acquires measurement data of an inertial measurement unit and a laser radar; a posture prediction module, which predicts the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar; and a posture update module, which updates the posture of the robot during operation through an NDT matching model and a UKF prediction model.

[0013] The present invention also discloses an electronic device, which includes: a processor and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above positioning method.

[0014] From the analysis, it can be known that the present invention discloses a robot global positioning method and device. The present invention is based on a preset initial posture and a global point cloud map, and adopts a method based on dynamic window brute force matching to realize the repositioning of the robot's initial state, thereby improving the accuracy of the robot's initial posture; by fusing the inertial measurement unit and the lidar data, the reliability of perceiving the surrounding environment is increased, and a uniform speed and uniform acceleration motion model and UKF are adopted to predict the robot's global posture, thereby providing a more reliable estimated posture for the robot operation in real time; according to the estimated posture of the robot, the NDT and UKF fusion method is adopted to complete the robot posture optimization corresponding to the real-time state space of the robot and the update of the covariance, thereby providing accurate state space mean and covariance for subsequent robot posture estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings constituting a part of the present application 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 an improper limitation of the present invention. Among them:

[0016] Figure 1 Flowchart of an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. Each example is provided by way of explanation of the present invention and does not limit the present invention. In fact, it will be clear to those skilled in the art that modifications and variations may be made in the present invention without departing from the scope or spirit of the present invention. For example, a feature shown or described as a part of one embodiment may be used in another embodiment to produce yet another embodiment. Therefore, it is desired that the present invention encompasses such modifications and variations within the scope of the appended claims and their equivalents.

[0018] One or more examples of the present invention are shown in the accompanying drawings. The detailed description uses numbers and letter labels to refer to features in the drawings. Like or similar labels in the drawings and description have been used to refer to like or similar parts of the present invention. As used herein, the terms "first", "second", "third", and "fourth", etc. are used interchangeably to distinguish one component from another and are not intended to indicate the location or importance of individual components.

[0019] like Figure 1 As shown, according to an embodiment of the present invention, a robot global positioning method is provided, comprising the following steps:

[0020] Step S101, obtaining a global point cloud map and an estimated initial position of the robot;

[0021] In actual applications, the global point cloud map data can be loaded according to the set map file path to obtain the global point cloud map, and then the initial estimated pose of the robot in the map can be manually specified with reference to the surrounding environment information to obtain the preset initial pose.

[0022] Step S102, optimizing the initial posture of the robot based on the global point cloud map and the estimated initial posture of the robot;

[0023] Step S102 specifically includes:

[0024] Step S1021, downsampling the global point cloud map; the downsampling method is usually a voxel grid filtering method.

[0025] Step S1022, constructing a grid pyramid map, specifically: performing dimensionality reduction processing on the global point cloud map; traversing all laser points in the global point cloud map, detecting whether the Z-axis coordinates of the laser points are within a set interval; eliminating laser points whose Z-axis coordinates are not within the set interval, and saving the remaining laser points to a grid map data queue; calculating the grid coordinates of all laser points in the grid map data queue in the X-axis direction and the Y-axis direction according to a preset resolution of the grid map, and determining the number of laser points in each grid in the grid map; using the ratio of the number of laser points in each grid in the grid map to a maximum number threshold as a cost value of the grid occupancy state, thereby constructing an occupied grid map; according to a preset number of grid pyramid map layers, reducing the width and height of the grid map in proportion to a preset base number, and using the scaled grid map as a grid pyramid map, wherein the cost value of the scaled grid is the maximum value of the cost values ​​of the corresponding multiple grids before scaling. For example, if a 3×3 grid (9 in total) is scaled to one grid, the maximum value among the cost values ​​of the 9 grids is used as the cost value of the scaled grid, and the preset base is 2. According to the set number of pyramid levels, the width and height of the grid map are proportionally reduced with 2 as the base, and each image after reduction is equivalent to one layer of the pyramid level.

[0026] Step S1023, constructing a dynamic window, and constructing an optimal pose candidate queue of the dynamic matching window by using the dynamic matching window and the estimated initial pose of the robot to the grid map at the end of the queue of the grid pyramid map, specifically: determining the center of the dynamic matching window according to the estimated initial pose of the robot; determining the optimal pose candidate queue of the dynamic matching window according to the center of the dynamic matching window, the preset X-axis coordinate range of the dynamic matching window, the preset Y-axis coordinate range of the dynamic matching window, The dimensions of the dynamic matching window of the grid pyramid map in the X-axis and Y-axis directions are determined according to the range of the grid pyramid map and the resolution of the grid map of the last layer of the queue of the grid pyramid map; the pose increments of all positions within the dynamic matching window of the grid pyramid map relative to the initial pose of the robot are calculated; and the optimal pose candidate queue of the dynamic matching window is constructed through coordinate transformation based on the pose increments and the dimensions of the dynamic matching window of the grid pyramid map in the X-axis and Y-axis directions.

[0027] Step S1024, calculate the matching score of the current posture of the robot by a brute force matching method; take the posture with the highest current matching score as the optimal initial posture of the current robot, and select the posture that best matches the current candidate queue by a brute force matching method.

[0028] Step S1025, remove the grid map corresponding to the last layer of the current grid pyramid map, and determine whether the queue of the current grid pyramid map is empty. If the queue of the current grid pyramid map is empty, the optimal initial pose of the current robot is used as the initial pose of the optimized robot; if the queue of the current grid pyramid map is not empty, the optimal pose candidate queue is re-constructed for the grid map of the last layer of the queue of the grid pyramid map through the dynamic matching window and the optimal initial pose of the current robot, and the dynamic matching window only selects a number of grids (usually 8) near the optimal initial pose of the current robot as the sliding window range data. After the optimal pose candidate queue is reconstructed, steps S1024-S1025 are repeated until the queue of the current grid pyramid map is empty.

[0029] Step S103, obtaining measurement data of the inertial measurement unit and the laser radar;

[0030] Step S104, predicting the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar; Step S104 specifically includes:

[0031] Based on the measurement data of the laser radar, the linear acceleration and angular acceleration of the robot measured by the latest inertial measurement unit are obtained; based on the measurement data of the laser radar, the linear acceleration and angular acceleration of the robot measured by the latest inertial measurement unit are obtained, including: obtaining the measurement data of the laser radar of the current frame; based on the laser frame timestamp of the measurement data of the laser radar of the current frame, the linear acceleration and angular acceleration of the robot measured by the latest inertial measurement unit are filtered, usually the inertial measurement unit data between the previous laser frame and the current laser frame is filtered according to the current laser frame timestamp.

[0032] The initial state space of the robot is constructed according to the initial position, velocity, linear acceleration and angular acceleration of the robot; the UKF prediction model is constructed based on the linear acceleration and angular acceleration of the robot; it is determined whether the process covariance of the initial state space of the robot is positive definite; when the process covariance of the initial state space of the robot is positive definite, the Sigma point of the UKF prediction model is calculated; when the process covariance of the initial state space of the robot is not positive definite, the process covariance of the initial state space is reconstructed, and the Sigma point of the UKF prediction model is calculated;

[0033] To reconstruct the process covariance of the initial state space, we first need to perform eigenvalue decomposition on the covariance matrix, as shown in the following formula:

[0034] Coυ=QΔQ -1 (1)

[0035] In the formula, Cov refers to the covariance matrix, Q refers to the eigenvector matrix, and Δ refers to the eigenvalue matrix. If the value of a diagonal element in Δ is too small and close to 0, the specific judgment of whether the value of a diagonal element is close to 0 can be set according to actual needs. For example, when it is set to be less than 0.0000001, it is close to 0, and then the set value is used instead, and then Cov is reconstructed using formula (1).

[0036] Calculate the weight of Sigma points;

[0037] The Sigma state space points and corresponding weights are calculated based on the covariance, as shown in the following formula.

[0038]

[0039]

[0040] In the formula, Represents μ i The i-th Sigma point pair that is bilaterally symmetric; μ i is the state mean of the state space corresponding to the i-th laser frame moment; n is the dimension of the state space; δ is the proportional factor, the larger its value, the further away the Sigma point pair is from μ i On the contrary, the closer the Sigma point pair is to μ i ; σ i is the state space covariance corresponding to the i-th laser frame; ω0 represents μ i The weight, ω i is the weight of the Sigma point (since it is a Sigma point pair, it is 2 n ).

[0041] Predict the Sigma point of the current frame;

[0042] The specific method for predicting the Sigma point of the current frame is to predict the displacement, velocity and posture of the Sigma point corresponding to the current frame, as shown in the following formula.

[0043]

[0044] In the formula, p j ,υ j , Q j They represent the displacement, speed, and rotation corresponding to the data of the j-th frame of the inertial measurement unit. Since the inertial sensor data is not continuous and is sent frame by frame, j represents the j-th frame data based on the starting position, Δt is the time difference between the data of the current frame of the inertial measurement unit and the data of the previous frame, g is the gravitational acceleration, and a j is the linear acceleration corresponding to the frame time of the j-th frame inertial measurement unit, is the angular acceleration corresponding to the frame time of the j-th frame inertial measurement unit, and ΔQ is the rotation increment: that is, the rotation increment generated by the angular velocity of the Sigma point within the j-frame time interval.

[0045] According to the predicted Sigma point of the current frame and the weight ω of the Sigma point i Predict the state space mean and covariance of the robot in the current frame. Specifically, the prediction is made according to the uniform velocity model. Based on the state space data corresponding to the sigma point (including the angular velocity, speed and bias corresponding to the point), the prediction is made according to the uniform velocity model according to the time difference. The state space of the robot reflects the posture of the robot, and the covariance of the state space reflects the confidence of the posture.

[0046] Afterwards, the outdated data in the IMU data queue is cleaned up, and the IMU data used in the prediction process is cleaned up to reduce storage occupancy.

[0047] Step S105: updating the position and posture of the robot during operation by using the NDT matching model and the UKF prediction model.

[0048] The posture of the robot during operation is updated through the NDT matching model and the UKF prediction model, including:

[0049] Determine whether to use the robot's odometer data based on the flags of the current state space mean and covariance; if the flags of the current state space mean and covariance use odometer data, the odometer data between two adjacent laser frames will be predicted using the UKF prediction model, and the corresponding weights of the robot's state space covariance and the covariance of the odometer data will be calculated based on the size of the robot's state space covariance and the covariance of the odometer data, and the robot's pose estimation value will be calculated using the weights of the robot's state space covariance and the weights of the covariance of the odometer data;

[0050] The formula for calculating the robot's pose estimate is as follows:

[0051]

[0052] In the formula, x represents the fusion robot posture (posture estimation value), C imu is the pose covariance predicted by the inertial measurement unit, C odom is the covariance of the odometry prediction, x imu is the robot pose predicted by the inertial measurement unit, x odom Robot pose predicted by odometry.

[0053] If the flags of the state space mean and covariance at the current moment do not use odometer data, C odomSet to 0 and use the predicted value of the inertial measurement unit as the current robot pose estimate.

[0054] Construct an NDT matching model, and convert the point cloud map of the current frame to the coordinate system of the global point cloud map according to the robot's pose estimation value, and construct an NDT matching with the global point cloud map; the NDT matching model iteratively optimizes the robot's pose estimation value, and adds the optimized robot's pose estimation value to the robot's state space; and expands the covariance matrix of the robot's state space according to the measurement noise corresponding to the robot's pose estimation value; calculate the weights of Sigma points and Sigma points in the robot's state space of the current frame; calculate the mean and covariance of the robot's state space after measurement optimization according to the weights of Sigma points and Sigma points; calculate the Kalman gain according to the Sigma points, the weights of the Sigma points, the robot's state space, and the mean of the robot's state space;

[0055] The Kalman gain is calculated according to the following formula;

[0056]

[0057] Where K is the Kalman gain, k is the dimension of the optimized robot’s pose estimate, and n is the dimension of the robot’s state space. is the weight of the i-th Sigma point in the measurement space, S i is the i-th Sigma point, x ndt The robot state space constructed after optimizing the pose for the NDT matching model, μ e is the covariance matrix of the robot's state space expanded according to the measurement noise corresponding to the robot's pose estimate.

[0058] Based on the Kalman gain and the estimated value of the robot's posture, the optimal posture of the robot in the current frame is obtained and the covariance of the robot's state space is updated.

[0059] The present invention also discloses a robot global positioning device, comprising: a robot data acquisition unit, which acquires a global point cloud map and an estimated initial posture of the robot; an initial posture calculation module, which optimizes the initial posture of the robot based on the global point cloud map and the estimated initial posture of the robot; a measurement data collection module, which acquires measurement data of an inertial measurement unit and a laser radar; a posture prediction module, which predicts the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar; and a posture update module, which updates the posture of the robot during operation through an NDT matching model and a UKF prediction model.

[0060] The present invention also discloses an electronic device, which includes: a processor and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above positioning method.

[0061] The present invention also discloses a computer-readable storage medium, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above-mentioned positioning method.

[0062] From the above description, it can be seen that the above-mentioned embodiments of the present invention achieve the following technical effects: The present invention designs a robot global positioning method based on complex indoor and outdoor environments. This method realizes the repositioning of the robot's initial state based on a pre-set initial posture and a global point cloud map, and adopts a method based on dynamic window brute force matching, thereby improving the accuracy of the robot's initial posture; by fusing the inertial measurement unit and the lidar data, the reliability of sensing the surrounding environment is increased, and the uniform speed and uniform acceleration motion model and UKF are used to predict the robot's global posture, providing a more reliable estimated posture for the robot operation in real time; according to the estimated posture of the robot, the NDT and UKF fusion method is used to complete the robot posture optimization and covariance update corresponding to the robot's real-time state space, providing accurate state space mean and covariance for subsequent robot posture estimation.

[0063] 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 robot global positioning method, It is characterized in that The following steps are involved: Obtain the global point cloud map and the estimated initial pose of the robot; Optimizing the initial pose of the robot based on the global point cloud map and the estimated initial pose of the robot; Obtaining measurement data from the inertial measurement unit and lidar; Predicting the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit, and the measurement data of the laser radar; The position and posture of the robot during operation are updated through the NDT matching model and the UKF prediction model.

2. A robot global positioning method according to claim 1, It is characterized in that The optimizing the initial posture of the robot comprises: Performing downsampling processing on the global point cloud map; Build raster pyramid maps; Build dynamic windows; Constructing the optimal pose candidate queue of the dynamic matching window by dynamically matching the window and the estimated initial pose of the robot to the grid map at the end of the queue of the grid pyramid map; Calculating the matching score of the current posture of the robot by a brute force matching method; Taking the posture with the highest current matching score as the current optimal initial posture of the robot; Eliminate the grid map corresponding to the last layer of the current grid pyramid map, and determine whether the queue of the current grid pyramid map is empty; If the queue of the current grid pyramid map is empty, the current optimal initial pose of the robot is used as the optimized initial pose of the robot; if the queue of the current grid pyramid map is not empty, the optimal pose candidate queue is re-constructed for the grid map at the end layer of the queue of the grid pyramid map through the dynamic matching window and the current optimal initial pose of the robot, and the dynamic matching window only selects several grids near the current optimal initial pose of the robot as the sliding window range data.

3. A robot global positioning method according to claim 2, It is characterized in that The construction of the raster pyramid map includes: Performing dimensionality reduction processing on the global point cloud map; Traversing all laser points of the global point cloud map, and detecting whether the Z-axis coordinates of the laser points are within a set range; Eliminate the laser points whose Z-axis coordinates are not within the set interval, and save the remaining laser points into the grid map data queue; According to the preset resolution of the grid map, the grid coordinates of all the laser points in the grid map data queue in the X-axis direction and the Y-axis direction are calculated to determine the number of laser points in each grid in the grid map; The ratio of the number of the laser points in each grid in the grid map to a maximum number threshold is used as a cost value of the grid occupancy state; According to a preset number of grid pyramid map layers, the width and height of the grid map are proportionally reduced with a preset base, and the scaled grid map is used as the grid pyramid map, wherein the cost value of the scaled grid is the maximum value of the cost values ​​of the corresponding multiple grids before scaling.

4. A robot global positioning method according to claim 3, It is characterized in that The step of constructing the optimal pose candidate queue of the dynamic matching window by dynamically matching the window with the estimated initial pose of the robot to the grid map at the end of the queue of the grid pyramid map comprises: Determining the center of the dynamic matching window according to the estimated initial position of the robot; Determine the dimensions of the dynamic matching window of the grid pyramid map in the X-axis direction and the Y-axis direction according to the center of the dynamic matching window, the preset X-axis coordinate range of the dynamic matching window, the preset Y-axis coordinate range of the dynamic matching window, the range of the robot rotation angle, and the resolution of the grid map of the last layer of the queue of the grid pyramid map; Calculating the pose increments of all positions within the dynamic matching window of the grid pyramid map relative to the estimated initial pose of the robot; Based on the pose increment and the dimensions of the dynamic matching window of the grid pyramid map in the X-axis direction and the Y-axis direction, an optimal pose candidate queue of the dynamic matching window is constructed through coordinate transformation.

5. A robot global positioning method according to claim 1, It is characterized in that The predicting of the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar includes: Acquire the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit based on the measurement data of the laser radar; Constructing the initial state space of the robot according to the initial position, velocity, linear acceleration and angular acceleration of the robot; Constructing a UKF prediction model based on the linear acceleration and angular acceleration of the robot; Determining whether the covariance of the initial state space of the robot is positive definite; When the process covariance of the initial state space of the robot is positive, the Sigma point of the UKF prediction model is calculated; when the process covariance of the initial state space of the robot is not positive, the process covariance of the initial state space is reconstructed, and the Sigma point of the UKF prediction model is calculated again; Calculate the weight of the Sigma point; Predict the Sigma point of the current frame; The state space mean and covariance of the robot in the current frame are predicted based on the predicted Sigma points of the current frame and the weights of the Sigma points.

6. A robot global positioning method according to claim 5, It is characterized in that The updating of the posture of the robot during operation by using the NDT matching model and the UKF prediction model includes: Determining whether to use the odometer data of the robot according to the flags of the state space mean and covariance at the current moment; If the flag bit of the state space mean and covariance at the current moment uses the odometer data, the odometer data between two adjacent laser frames will be predicted by the UKF prediction model, and the corresponding weights of the state space covariance of the robot and the covariance of the odometer data will be calculated according to the size of the state space covariance of the robot and the covariance of the odometer data, and the pose estimation value of the robot will be calculated by the weight of the state space covariance of the robot and the weight of the covariance of the odometer data; Constructing an NDT matching model, and converting the point cloud map of the current frame into the coordinate system of the global point cloud map according to the estimated value of the robot posture, and constructing an NDT matching with the global point cloud map; The NDT matching model iteratively optimizes the estimated value of the robot's posture, and adds the optimized estimated value of the robot's posture to the state space of the robot; and expanding the covariance matrix of the state space of the robot according to the measurement noise corresponding to the estimated value of the posture of the robot; Calculate the Sigma point and the weight of the Sigma point in the state space of the robot in the current frame; Calculate the mean and covariance of the state space of the robot after measurement optimization according to the Sigma points and the weights of the Sigma points; Calculate the Kalman gain according to the Sigma point, the weight of the Sigma point, the state space of the robot, and the mean of the state space of the robot; The optimal posture of the robot in the current frame is obtained based on the Kalman gain and the estimated value of the posture of the robot, and the covariance of the state space of the robot is updated.

7. A robot global positioning method according to claim 5, It is characterized in that The obtaining of the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit based on the measurement data of the laser radar includes: Obtaining measurement data of the laser radar in the current frame; Based on the laser frame timestamp of the laser radar measurement data of the current frame, the latest linear acceleration and angular acceleration of the robot measured by the inertial measurement unit are filtered.

8. A robot global positioning method according to claim 3, It is characterized in that The preset cardinality is 2.

9. A robot global positioning device, It is characterized in that include: The robot data acquisition module obtains the global point cloud map and the estimated initial position of the robot; An initial posture calculation module, which optimizes the initial posture of the robot by a dynamic window brute force matching method based on the global point cloud map and the estimated initial posture of the robot; The measurement data collection module obtains the measurement data of the inertial measurement unit and the lidar; A posture prediction module predicts the posture of the robot during operation based on the optimized initial posture of the robot, the measurement data of the inertial measurement unit and the measurement data of the laser radar; The posture updating module updates the posture of the robot during operation through the NDT matching model and the UKF prediction model.

10. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory for storing executable instructions of the processor; The processor is configured to execute the positioning method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Mobile equipment control method and device, electronic equipment and storage medium

    CN119717812A

  • Robot positioning confidence coefficient determination method and device, equipment and storage medium

    CN120891486A