A method for indoor positioning of substation inspection robot based on information fusion
By fusing the information of the QR code and the inertial measurement unit, the observer model is constructed, which solves the problem of low indoor positioning accuracy of the substation inspection robot and achieves more accurate and faster pose estimation.
Patent Information
- Application Number
- CN202110778600.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-07-09
AI Technical Summary
In the indoor positioning of substation inspection robots, the single use of inertial measurement units and artificial road sign visual markers results in low accuracy, especially in complex environments where the problem of missing visual positioning is prone to occur.
By fusing the information from the QR code and the inertial measurement unit, an observer model is constructed to iteratively calculate the pose deviation of the robot, and the data from the QR code and the inertial measurement unit are combined for information fusion to improve positioning accuracy.
It achieves more accurate pose estimation, improves indoor positioning accuracy, has stronger pertinence and anti-interference capabilities, and can quickly and accurately estimate the real-time pose of the robot in real time.
Smart Images

Figure CN113566827B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of indoor positioning of a substation inspection robot, and in particular to an indoor positioning method of a substation inspection robot based on information fusion. Background Art
[0002] The substation inspection robot is a fully autonomous ground mobile robot that can carry visible light cameras, infrared thermal imagers, microphones and other sensors to automatically inspect power equipment, effectively reducing the labor intensity of manual inspections and ensuring the safe operation of substation equipment.
[0003] In the application of substation inspection robots, accurate positioning and navigation are the key to ensure that they can complete the inspection tasks. At present, substation inspection robots use differential GPS, dead reckoning, inertial measurement, and artificial landmark visual identification and other positioning and navigation methods.
[0004] An inertial measurement unit (IMU) is a device that measures the three-axis attitude angle and acceleration of an object. Gyroscopes and accelerometers are the main components of IMUs, which are mostly used for posture estimation of aircraft and substation inspection robots.
[0005] Common gyroscopes and accelerometers used in substation inspection robots on the market, such as microcomputer gyroscopes and MEMS accelerometers, have the advantages of small size, light weight, good reliability, and easy system integration. However, since gyroscopes and accelerometers estimate the current position of the substation inspection robot through integration, long-term movement will cause accumulation of deviations.
[0006] Currently, the most widely used visual identifier for artificial road signs is the QR code. The positioning algorithm required for this positioning technology is relatively simple and easy to use, with high accuracy and faster calculation speed. However, in a more complex environment, it is easy to cause visual positioning loss at a certain moment. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide an indoor positioning method for a substation inspection robot based on information fusion. The method obtains the precise posture of the substation inspection robot by fusing the measurement information of a two-dimensional code and an inertial measurement unit, thereby improving the accuracy of its indoor positioning.
[0008] The technical solution of the present invention is:
[0009] A method for indoor positioning of a substation inspection robot based on information fusion, comprising the following steps:
[0010] (1) Using a camera installed at the center of the robot to be tested, scan and photograph the QR code, and process the obtained QR code image;
[0011] (2) Using the coordinate information carried by the processed two-dimensional code image, calculate the position and posture of the robot under test under the two-dimensional code positioning method;
[0012] (3) according to the calculated position and posture of the robot under test under the two-dimensional code positioning method, estimating the linear velocity and angular velocity of the robot under test under the two-dimensional code positioning method;
[0013] (4) using an inertial measurement unit installed on the robot to be tested, measuring the linear velocity and angular velocity of the robot to be tested under the inertial measurement positioning mode;
[0014] (5) estimating the position and posture of the robot under the inertial measurement positioning mode according to the measured linear velocity and angular velocity of the robot under the inertial measurement positioning mode;
[0015] (6) constructing an observer that takes the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning method and the inertial measurement positioning method as input and takes the estimated value of the posture deviation of the robot under test in the inertial measurement positioning method as output;
[0016] (7) Inputting the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning mode and the inertial measurement positioning mode into the constructed observer, iteratively calculating the estimated value of the posture deviation of the robot under test in the inertial measurement positioning mode;
[0017] (8) Calculate the final posture of the robot under test based on the posture deviation estimate and posture of the robot under test in the inertial measurement positioning mode.
[0018] The method for indoor positioning of a substation inspection robot based on information fusion, in step (1), the obtained two-dimensional code image is processed, specifically comprising:
[0019] (11) graying the obtained two-dimensional code image to obtain a grayed image;
[0020] (12) The grayscale image is binarized using the following formula to obtain a binary image:
[0021]
[0022] Where f(x, y) represents the grayscale value of the pixel in the grayscale image, g(x, y) represents the grayscale value of the pixel in the binary image, and T represents the threshold;
[0023] (13) The obtained binary image is divided into rectangular regions, the median of the grayscale values of all pixels in each rectangular region is taken as the window value, and the corresponding rectangular region is filtered with the help of the window value of each rectangular region.
[0024] In the method for indoor positioning of a substation inspection robot based on information fusion, in step (2), the following formula is used to calculate the position and posture of the robot to be tested in the two-dimensional code positioning mode:
[0025]
[0026] Among them, T es1 Indicates the position of the robot under test in the QR code positioning mode, x c ,y c and θ c They represent the horizontal coordinate, vertical coordinate and yaw angle of the center position of the robot to be tested in the robot coordinate system under the two-dimensional code positioning method, T A represents the coordinates of the center position of the QR code in the QR code coordinate system, R1 represents the mapping matrix between the camera coordinate system and the QR code coordinate system, and R2 represents the mapping matrix between the robot coordinate system and the camera coordinate system;
[0027] In step (3), the following kinematic equations are used to estimate the linear velocity and angular velocity of the robot under test in the QR code positioning mode:
[0028]
[0029] Among them, v c ,ω c They respectively represent the linear velocity and angular velocity of the robot under test in the QR code positioning mode;
[0030] In step (5), the following kinematic equation is used to estimate the position and posture of the robot under inertial measurement positioning:
[0031]
[0032]
[0033] Where v and ω represent the linear velocity and angular velocity of the robot under inertial measurement positioning mode, respectively. es2 represents the position and posture of the robot under test in the inertial measurement positioning mode, and x, y and θ represent the horizontal coordinate, vertical coordinate and yaw angle of the center position of the robot under test in the robot coordinate system in the inertial measurement positioning mode respectively;
[0034] In step (6), the constructed observer is as follows:
[0035]
[0036] Among them, φ and ψ are intermediate variables, φ = sinθ e , ψ=cosθ e , x e ,ye and θ e They represent the horizontal coordinate deviation, vertical coordinate deviation and yaw angle deviation of the center position of the robot to be measured in the robot coordinate system under the inertial measurement positioning mode. and Respectively represent x e ,y e , φ and ψ are estimated values, k is a constant value, A is a 2×2 Hurwitz matrix, P and Q are 2×2 positive definite matrices;
[0037] In step (7), the estimated value of the posture deviation of the robot under test in the inertial measurement positioning mode is as follows:
[0038]
[0039] Among them, T es3 It indicates the posture deviation of the robot under test in the inertial measurement positioning mode. Indicates T es3 The estimated value of Represents θ e An estimated value of
[0040] In step (8), the final position and posture of the robot to be tested is calculated using the following formula:
[0041]
[0042] Among them, T es Indicates the final pose of the robot under test.
[0043] It can be seen from the above technical scheme that the present invention fuses the information of the two-dimensional code positioning method and the inertial measurement positioning method, and the final posture of the substation inspection robot obtained is more accurate than the posture information obtained by a single positioning method; an observer model based on the posture kinematics of the substation inspection robot is constructed, which has stronger targeting, higher anti-interference and faster convergence; therefore, the present invention can quickly and accurately estimate the real-time posture of the substation inspection robot in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0045] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] like Figure 1 As shown, a method for indoor positioning of a substation inspection robot based on information fusion includes the following steps:
[0047] S1. Use a camera installed at the center of the robot to be tested to scan and take a picture of the QR code, and process the obtained QR code image, specifically including:
[0048] S11, performing grayscale processing on the obtained two-dimensional code image to obtain a grayscale image.
[0049] S12, performing binarization processing on the obtained grayscale image, that is, changing the grayscale values of all pixels in the grayscale image to 0 (black) or 255 (white), to obtain a binary image.
[0050] In order to obtain the ideal result, it is necessary to determine a threshold to distinguish and classify the grayscale values of the pixels in the grayscale image. The grayscale value of each pixel is compared with the threshold. The grayscale value less than or equal to the threshold becomes 0, and the grayscale value greater than the threshold becomes 255, as follows:
[0051]
[0052] Among them, f(x,y) represents the grayscale value of the pixel in the grayscale image, g(x,y) represents the grayscale value of the pixel in the binary image, and T represents the threshold.
[0053] S13, performing median filtering on the obtained binary image to remove noise from the binary image and smooth edge information of the binary image.
[0054] First, the binary image is divided into rectangular areas, and then the median of the grayscale values of all pixels in each rectangular area is calculated using the following formula. The median of each rectangular area is used as the window value, and finally the corresponding rectangular area is filtered with the help of the window value of each rectangular area:
[0055]
[0056] Among them, y represents the grayscale median in the rectangular area, Med represents the median function, n represents the number of pixels in the rectangular area, t1, t2, t3, …, t n Respectively represent the grayscale values of the 1st, 2nd, 3rd, ..., nth pixels in the rectangular area; It means that when n is an odd number, the The gray value of a pixel, and They respectively represent that when n is an even number, and The gray value of a pixel.
[0057] S2. Use the coordinate information carried by the processed QR code image to calculate the position and posture of the robot under test in the QR code positioning mode:
[0058] The camera is installed at the geometric center of the robot to be tested. The camera imaging center coincides with the center of the robot to be tested and has the same positive direction. Therefore, the coordinates of the camera imaging center position can be converted into the coordinates of the center position of the robot to be tested.
[0059] After extracting the center coordinates of the QR code, the following coordinate transfer formula can be used to calculate the position and posture of the robot under the QR code positioning method:
[0060]
[0061] Among them, T es1 Indicates the position of the robot under test in the QR code positioning mode, x c ,y c and θ c They represent the horizontal coordinate, vertical coordinate and yaw angle of the center position of the robot to be tested in the robot coordinate system under the two-dimensional code positioning method, T A represents the coordinates of the center position of the QR code in the QR code coordinate system, R1 represents the mapping matrix between the camera coordinate system and the QR code coordinate system, and R2 represents the mapping matrix between the robot coordinate system and the camera coordinate system.
[0062] S3. According to the calculated position and posture of the robot under test in the two-dimensional code positioning mode, the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning mode are estimated using the following kinematic equations:
[0063]
[0064] Among them, v c ,ω c They respectively represent the linear velocity and angular velocity of the robot under test in the QR code positioning mode.
[0065] S4. Using an inertial measurement unit installed on the robot to be tested, measure the linear velocity and angular velocity of the robot to be tested in an inertial measurement positioning mode, wherein the linear velocity can be obtained by integrating an accelerometer, and the angular velocity can be obtained by a gyroscope.
[0066] S5. According to the measured linear velocity and angular velocity of the robot under inertial measurement positioning mode, the position and posture of the robot under inertial measurement positioning mode are estimated using the following kinematic equations:
[0067]
[0068]
[0069] Where v and ω represent the linear velocity and angular velocity of the robot under inertial measurement positioning mode, respectively. es2represents the position and posture of the robot under test in the inertial measurement positioning mode, and x, y, and θ represent the horizontal coordinate, vertical coordinate, and yaw angle of the center position of the robot under test in the robot coordinate system in the inertial measurement positioning mode, respectively.
[0070] S6. Construct an observer that takes the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning mode and the inertial measurement positioning mode as input and takes the estimated value of the posture deviation of the robot under test in the inertial measurement positioning mode as output:
[0071]
[0072] Among them, φ and ψ are intermediate variables, φ = sinθ e , ψ=cosθ e , x e ,y e and θ e They represent the horizontal coordinate deviation, vertical coordinate deviation and yaw angle deviation of the center position of the robot to be measured in the robot coordinate system under the inertial measurement positioning mode. and Respectively represent x e ,y e , φ, and ψ are estimated values, k is a constant value, A is a 2×2 Hurwitz matrix, and P and Q are 2×2 positive definite matrices.
[0073] S7. Input the linear velocity and angular velocity of the robot to be tested in the two-dimensional code positioning mode and the inertial measurement positioning mode into the constructed observer, and iteratively calculate the estimated value of the posture deviation of the robot to be tested in the inertial measurement positioning mode:
[0074]
[0075] Among them, T es3 It indicates the posture deviation of the robot under test in the inertial measurement positioning mode. Indicates T es3 The estimated value of Represents θ e The estimated value of .
[0076] S8. According to the estimated value of the posture deviation and the posture of the robot under inertial measurement positioning mode, the final posture of the robot under test is calculated using the following formula:
[0077]
[0078] Among them, T es Indicates the final pose of the robot under test.
[0079] The observer construction process of the present invention is as follows:
[0080] The posture deviation equation of the robot to be tested under inertial measurement positioning mode is given:
[0081]
[0082] After calculation, the first-order derivative of the above formula is obtained as follows:
[0083]
[0084] For the convenience of calculation, the following definition is made:
[0085]
[0086] Substituting into the previous formula, we have:
[0087]
[0088] The observer is constructed as follows:
[0089]
[0090] The rationality analysis of the constructed observer is as follows:
[0091] Defining intermediate variables and
[0092]
[0093] Then we have:
[0094]
[0095]
[0096] From Barbalat's lemma, we know that Approaching the origin, that is, the estimated value of the position deviation of the robot under test obtained by the observer under the inertial measurement positioning mode Approaching the true value T es3 .
[0097] To sum up, the present invention locates the posture of the substation inspection robot through indoor QR code, uses the inertial measurement unit inside the substation inspection robot to compensate the output result, and constructs an observer by analyzing the motion model of the substation inspection robot to fuse the relevant information obtained by the inertial measurement unit of the substation inspection robot and the QR code positioning, so as to obtain more accurate posture information of the substation inspection robot.
[0098] The above-described embodiments are merely descriptions of preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A method for indoor positioning of a substation inspection robot based on information fusion, characterized in that: The following steps are involved: (1) Using a camera installed at the center of the robot to be tested, scan and photograph the QR code, and process the obtained QR code image; (2) Using the coordinate information carried by the processed two-dimensional code image, calculate the position and posture of the robot under test under the two-dimensional code positioning method; (3) according to the calculated position and posture of the robot under test under the two-dimensional code positioning method, estimating the linear velocity and angular velocity of the robot under test under the two-dimensional code positioning method; (4) using an inertial measurement unit installed on the robot to be tested, measuring the linear velocity and angular velocity of the robot to be tested under the inertial measurement positioning mode; (5) estimating the position and posture of the robot under the inertial measurement positioning mode according to the measured linear velocity and angular velocity of the robot under the inertial measurement positioning mode; (6) constructing an observer that takes the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning method and the inertial measurement positioning method as input and takes the estimated value of the posture deviation of the robot under test in the inertial measurement positioning method as output; (7) Inputting the linear velocity and angular velocity of the robot under test in the two-dimensional code positioning mode and the inertial measurement positioning mode into the constructed observer, iteratively calculating the estimated value of the posture deviation of the robot under test in the inertial measurement positioning mode; (8) calculating the final posture of the robot under test according to the posture deviation estimation value and posture of the robot under test in the inertial measurement positioning mode; In step (6), the constructed observer is as follows: Among them, φ and ψ are intermediate variables, φ = sinθ e , ψ=cosθ e , x e ,y e and θ e They represent the horizontal coordinate deviation, vertical coordinate deviation and yaw angle deviation of the center position of the robot to be measured in the robot coordinate system under the inertial measurement positioning mode. and Respectively represent x e ,y e , φ, and ψ are estimated values, k is a constant value, A is a 2×2 Hurwitz matrix, P and Q are 2×2 positive definite matrices, v c ,ω c They represent the linear velocity and angular velocity of the robot under test in the QR code positioning mode, and v and ω represent the linear velocity and angular velocity of the robot under test in the inertial measurement positioning mode.
2. The method for indoor positioning of a substation inspection robot based on information fusion according to claim 1 is characterized in that: In step (1), the obtained two-dimensional code image is processed, specifically including: (11) graying the obtained two-dimensional code image to obtain a grayed image; (12) The grayscale image is binarized using the following formula to obtain a binary image: Where f(x,y) represents the grayscale value of the pixel in the grayscale image, g(x,y) represents the grayscale value of the pixel in the binary image, and T represents the threshold value; (13) The obtained binary image is divided into rectangular regions, the median of the grayscale values of all pixels in each rectangular region is taken as the window value, and the corresponding rectangular region is filtered with the help of the window value of each rectangular region.
Citation Information
Patent Citations
Positioning method and device for patrol robot of transformer substation
CN106323294A
QR code-based navigation attitude determining and positioning method and system
CN110345937A
