A computer room fusion positioning method, system, device and storage medium

Through the combination of cabinet key point detection and odometer data, a cabinet key point map is established, and particle set update and maximum likelihood estimation are used to realize robot pose positioning, which solves the problems of illumination changes and high cost in the existing technology, and provides an efficient, Accurate and flexible computer room positioning solution.

CN115060268BActive Publication Date: 2024-08-27GUANGZHOU INST OF RAILWAY TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210617478.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-08-27
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

Existing indoor positioning technology is prone to failure when lighting changes, is costly or requires scene modification, lacks flexibility, and is difficult to achieve efficient, accurate, and low-cost positioning in the computer room.

Method used

Cabinet key point detection is used to combine odometer and IMU data to establish a cabinet key point map. The robot pose is obtained through particle set update and maximum likelihood estimation, achieving high-precision positioning without the need to modify the site.

Benefits of technology

It improves the robustness and accuracy of positioning under different lighting environments, reduces hardware costs, enhances the applicability and flexibility of the solution, and achieves efficient and precise positioning of robots in the computer room.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115060268B
    Figure CN115060268B
Patent Text Reader

Abstract

The present invention relates to the field of SLAM technology, and in particular to a computer room fusion positioning method, system, device and storage medium, including: obtaining the odometer of the robot chassis; obtaining body observation information according to the key point body coordinates; establishing a cabinet key point map, and scattering particle sets within the preset error range of the robot starting coordinate point, and updating the particle set according to the posture change difference and the body observation information; obtaining particle probability values, and obtaining the maximum likelihood estimated posture according to the particle probability values; based on the maximum likelihood estimated posture, repeatedly iterating to obtain the optimal posture of the robot and its corresponding positioning posture confidence. The present invention uses the prior information of the computer room cabinet to realize the patrol positioning of the computer room robot, which not only reduces the overall hardware cost, but also does not require the transformation of the on-site scene, greatly reduces the workload and working time of subsequent maintenance, and enhances the flexibility of the solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of SLAM technology, and in particular to a computer room fusion positioning method, system, equipment and storage medium. Background Art

[0002] With the development of robotics technology, more and more inspection robots have been widely used in outdoor and indoor inspection fields. Positioning technology is the basis of autonomous robot movement and the key to giving robots perception and action capabilities. The basis for solving the positioning problem is to find a reference object in the real world. This reference object can be a low-level image or laser feature point, or it can be object segmentation information with semantic information, or it can be a specific positioning marker.

[0003] Traditional indoor positioning methods include positioning technology based on ORB visual features and bag-of-words (DBOW) loop closure, positioning technology based on two-dimensional laser SLAM, and positioning technology based on ground QR code. Among them, the positioning technology based on ORB visual features and bag-of-words (DBOW) loop closure is highly dependent on ambient light. When there is a significant change in light, this positioning method is prone to positioning failure, thereby increasing labor costs and is not suitable for industrial unmanned patrol scenarios with high stability; in contrast, although the positioning technology based on two-dimensional laser SLAM can improve its robustness, the hardware cost of the laser radar itself is too high, which is not conducive to promotion; the positioning technology based on ground QR code requires the modification of the application site and the arrangement of visual markers, which not only brings difficulty and complexity to the implementation, but also requires regular maintenance of the visual markers, and the flexibility of the solution is low. In summary, the current positioning technologies all have their own shortcomings, and finding a solution to achieve efficient and accurate positioning in the computer room is an urgent problem to be solved. Summary of the invention

[0004] The purpose of the present invention is to provide a computer room fusion positioning method, system, device and storage medium, which can realize efficient, accurate and low-cost fusion positioning in the computer room without the need for scene modification.

[0005] In order to solve the above technical problems, the present invention provides a computer room fusion positioning method, system, device and storage medium.

[0006] In a first aspect, the present invention provides a method for fusion positioning of a computer room, the method comprising the following steps:

[0007] Perform cabinet key point detection on the collected original cabinet image to obtain the two-dimensional coordinates of the key points;

[0008] According to the odometer and attitude angle change values ​​of each frame of the original cabinet image, the attitude change difference between two adjacent frames is obtained;

[0009] Convert the cabinet key points to the vehicle body coordinate system to obtain the key point vehicle body coordinates;

[0010] Obtaining vehicle body observation information, positioning posture confidence, and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probabilities;

[0011] Based on the key point vehicle body coordinates, a grid map is updated to establish a cabinet key point map, and a robot starting coordinate point is set in the cabinet key point map;

[0012] Spreading a particle set within a preset error range of the robot's starting coordinate point, and updating the particle set according to the posture change difference and the vehicle body observation information;

[0013] Obtaining a particle probability value according to the vehicle body direction vector of the key point, and obtaining a maximum likelihood estimated pose according to the particle probability value;

[0014] Based on the maximum likelihood estimation posture, iterations are repeated until a preset convergence condition is reached to obtain the optimal posture of the robot and its corresponding positioning posture confidence.

[0015] In a further embodiment, the step of obtaining the vehicle body observation information according to the key point vehicle body coordinates comprises:

[0016] Obtaining key point measurement values ​​according to the key point body coordinates and the origin coordinates in the body coordinate system;

[0017] Obtaining a key point weight according to the key point measurement value, a pre-acquired homography scale factor, and a weight normalization factor;

[0018] According to the key point measurement values ​​and a pre-established random Gaussian noise model, the random measurement error probability of the key point of the cabinet is obtained.

[0019] In a further embodiment, the step of obtaining the positioning posture confidence and the key point vehicle body direction vector according to the key point vehicle body coordinates includes:

[0020] Calculate the covariance matrix according to the body coordinates of the key points;

[0021] Decomposing the covariance matrix, sorting the eigenvalues, and obtaining the positioning posture confidence according to the maximum eigenvalue and the second largest eigenvalue;

[0022] In the body coordinate system, each cabinet key point is traversed, and its nearest neighbor cabinet key point is found, and the key point body direction vector of the current key point is determined based on the key point body coordinates of the two cabinet key points.

[0023] In a further embodiment, the step of updating the particle set according to the posture change difference and the vehicle body observation information comprises:

[0024] In the initial iteration, the state quantity of each particle at each moment is obtained;

[0025] The posture change difference is added to the state quantity of each particle at the previous moment to obtain the state update quantity of each particle at the current moment;

[0026] Calculate the blank area probability value in the cabinet key point map, and obtain the map observation probability value according to the blank area probability value, the key point weight, the random measurement error probability and the preset key point probability value;

[0027] The particle set is updated according to the state update amount and the map observation probability value.

[0028] In a further embodiment, the step of calculating the probability value of the blank area in the cabinet key point map includes:

[0029] Treat the non-key point areas in the cabinet key point map as blank areas;

[0030] Traverse each pixel of the blank area, obtain the Euclidean distance from the pixel to the nearest cabinet key point, and obtain the blank area probability value according to a Gaussian probability lookup table with a mean of zero.

[0031] In a further embodiment, the step of obtaining the particle probability value according to the key point vehicle body direction vector comprises:

[0032] Projecting the state update amount into the cabinet key point map, and searching for the map matching key point of the nearest neighbor of each cabinet key point;

[0033] Obtain a matching key point direction vector of each map matching key point in the cabinet key point map;

[0034] Obtaining a direction difference probability value according to the key point vehicle body direction vector and the matching key point direction vector;

[0035] A particle probability value is obtained according to the map observation probability value and the direction difference probability value.

[0036] In a further embodiment, the step of obtaining a maximum likelihood estimated pose according to the particle probability value comprises:

[0037] All particle probability values ​​are normalized and resampled according to a preset probability threshold to obtain a new particle set, and the maximum likelihood estimated pose is obtained according to the normalized particle probability values ​​corresponding to the new particle set.

[0038] In a second aspect, the present invention provides a computer room fusion positioning system, the system comprising:

[0039] The image data processing module is used to detect the cabinet key points on the collected original cabinet image to obtain the two-dimensional coordinates of the key points; it is also used to obtain the attitude change difference between two adjacent frames based on the odometer and attitude angle change values ​​of each frame of the original cabinet image;

[0040] An observation information acquisition module is used to convert the cabinet key points into a vehicle body coordinate system to obtain the key point vehicle body coordinates; and is also used to obtain vehicle body observation information, positioning posture confidence and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probabilities;

[0041] A key point map establishment module, used to update the grid map based on the key point vehicle body coordinates, establish a cabinet key point map, and set the robot starting coordinate point in the cabinet key point map;

[0042] A particle set updating module, used for spreading the particle set within a preset error range of the robot's starting coordinate point, and updating the particle set according to the posture change difference and the vehicle body observation information;

[0043] The robot positioning module is used to obtain the particle probability value according to the direction vector of the key point vehicle body, and obtain the maximum likelihood estimated posture according to the particle probability value; it is also used to repeatedly iterate based on the maximum likelihood estimated posture until the preset convergence condition is reached, so as to obtain the optimal posture of the robot and its corresponding positioning posture confidence.

[0044] In a third aspect, the present invention further provides a computer device, comprising a processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the computer device performs the steps of implementing the above method.

[0045] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps of the above method when executed by a processor.

[0046] The present invention provides a computer room fusion positioning method, system, device and storage medium. The method realizes positioning by importing the data collected by IMU and wheel encoder into the established cabinet key point map, so that in the positioning process, fusion positioning can be realized by camera, IMU and wheel encoder, without using laser SLAM technology. Compared with the existing positioning technologies based on QR code, RFID, etc., this method directly uses the on-site information of the computer room cabinet to obtain relatively accurate robot posture information, without additional on-site appearance modification, which increases the applicability and flexibility of the solution; at the same time, the present invention utilizes the odometer prior of the key point detection network, IMU and encoder, so that the robot positioning has accuracy and robustness in highly similar environments, and can adapt to different lighting environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of a flow chart of a computer room fusion positioning method provided by an embodiment of the present invention;

[0048] Figure 2 is a schematic diagram of key points of a cabinet provided by an embodiment of the present invention;

[0049] Figure 3 It is a block diagram of a computer room fusion positioning system provided by an embodiment of the present invention;

[0050] Figure 4 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following specifically illustrates the implementation mode of the present invention in conjunction with the accompanying drawings. The embodiments are provided for illustrative purposes only and cannot be understood as limiting the present invention. The accompanying drawings are provided for reference and illustration only and do not constitute a limitation on the scope of patent protection of the present invention, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.

[0052] refer to Figure 1 , the embodiment of the present invention provides a computer room fusion positioning method, such as Figure 1 As shown, the method comprises the following steps:

[0053] S1. Detect cabinet key points on the collected original cabinet image to obtain the two-dimensional coordinates of the key points.

[0054] In this embodiment, the fisheye camera on the robot patrol car is used to collect the original cabinet image, and the original cabinet image is input into the key point detection model obtained by pre-training to obtain a specific number of cabinet key points, and the key point two-dimensional coordinates of each cabinet key point are obtained. In the offline training data preparation and offline training, this embodiment preferentially sets the cabinet key point as the cabinet foot key point, such as Figure 2As shown, the cabinet leg key points are the cabinet foot key points where the cabinet contacts the ground plane in the image, and the original cabinet image is an RGB image, which includes cabinet images under a variety of environmental backgrounds, ambient lighting and a variety of camera perspectives in a specific computer room scene; it should be noted that those skilled in the art can set the cabinet key points according to the specific implementation situation, which is not limited to the present invention.

[0055] Specifically, the key point detection model is an Openpose key point detection model based on Mobilenet as the backbone that has been pre-trained, wherein Openpose is a bottom-up key point extraction model; Mobilenet is a lightweight feature extraction network that can run in real time on a consumer-grade CPU. This embodiment uses Mobilenet as the backbone network to replace the second-order feature extraction module in Openpose. Its parameter volume is only 15%, but the performance is almost the same (the accuracy is reduced by 1%). The model can reach 10 frames per second on the CPU of this embodiment.

[0056] In this embodiment, the internal parameters of the fisheye camera are calibrated to eliminate the distortion in the image. In actual operation, a 12*9 checkerboard calibration plate with a grid side length of 5 cm is selected, and the checkerboard calibration plate is laid on the ground plane to calibrate the homography matrix of the camera, wherein the x-axis direction of the calibration plate and the x-axis direction of the robot patrol car body are strictly aligned and coincident, so that the coordinate system of the image plane is aligned with the world coordinate system represented by the ground plane. This embodiment adopts the Mei model of the fisheye camera. Assuming that the key points of the cabinet legs are always distributed on an absolutely horizontal ground plane, the corrected image plane point coordinates p i and the ground plane real 2D coordinates There is a homography transformation between them:

[0057]

[0058] The homography matrix has 8 degrees of freedom. In this embodiment, the real two-dimensional coordinates of the plane are replaced by the physical calibration plate, with a total of 12*9=108 coordinate points. According to the principle of direct linear transformation (DLT), the equations of 108 points are combined to solve the homography matrix H.

[0059] At the same time, this embodiment is based on the actual size scale of the chessboard calibration plate b And the scale of the calibration plate detected by the image p , calculate the homography scale factor (in meters per pixel) of the homography transformation between the two planes. In this embodiment, the calculation formula of the homography scale factor is:

[0060] scale=scale b ÷scalep

[0061] That is, the homography scale factor scale is the ratio of the image pixel plane to the world coordinate ground plane. After calibration, the world coordinate value in meters can be directly calculated on the image pixel plane. Specifically, for the checkerboard calibration plate used in this embodiment, the width of the calibration plate is 12*5cm, and the pixel width is the L2 norm of the sub-pixel difference of the corner points with sequence number 0 and sequence number 11. The ratio of the calibration plate width to the L2 norm is scale.

[0062] S2. Obtain the attitude change difference between two adjacent frames based on the odometer and attitude angle change values ​​of each frame of the original cabinet image.

[0063] Specifically, this embodiment collects the travel speed of the left and right wheels of the robot through the wheel encoder, collects the angular acceleration of the robot through the gyroscope of the IMU, integrates the angular acceleration to obtain the angle, and then corrects the roll of the angle to obtain the pitch angle through the output of the accelerometer, and finally corrects the yaw angle through the magnetometer.

[0064]

[0065] In the formula, Indicates the difference in attitude change, The angle obtained by integration is expressed in the form of four elements Δq acc ^ represents the accelerometer calculated value, Δq maq ^Indicates magnetometer correction value.

[0066] This embodiment uses the attitude angle change value of each frame of the original cabinet image obtained by the wheel encoder and IMU, and combines the differential wheel chassis model of the patrol car to calculate the motion increment of the chassis. The odometer of the car chassis is calculated by dead reckoning. The odometer motion model is:

[0067]

[0068]

[0069]

[0070] In the formula, v r 、v l They represent the left and right wheel speeds obtained by multiplying the left and right wheel encoder pulses by the encoder resolution; Δt represents the time interval between two adjacent frames; l represents the left and right wheel widths of the differential wheels, which is a chassis parameter obtained through query; v, w, r represent the calculated linear velocity, angular velocity, and turning radius of the odometer, respectively.

[0071] Dead Reckoning is as follows:

[0072]

[0073] In the formula, (dx, dy, dθ) represents the kinematic solution increment, (x, y, θ) represents the chassis posture at the last moment, Indicates the chassis posture at the current moment.

[0074] In this embodiment, the x and y calculated by the track calculation and the yaw angle of the complementary filter are taken as θ to obtain the final odometer of the car chassis, and the attitude change difference between two adjacent frames is calculated based on the odometer and attitude angle change value of each frame of the original cabinet image.

[0075] S3. Convert the cabinet key points to the vehicle body coordinate system to obtain the key point vehicle body coordinates.

[0076] This embodiment establishes the relationship between the camera coordinate system, the image coordinate system, the vehicle body coordinate system and the world coordinate system according to the external parameter matrix and the internal parameters of the adopted camera, and transforms the detected two-dimensional coordinates of the key points into the vehicle body coordinate system through homogeneous coordinates. The specific transformation formula is:

[0077]

[0078] Where P base Indicates the coordinates of the cabinet key points relative to the body coordinate system. represents the transformation matrix from the image coordinate system to the vehicle body coordinate system, P keypoint Represents the 2D coordinates of the cabinet key points relative to the image coordinate system.

[0079] S4. Obtain vehicle body observation information, positioning posture confidence and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probability.

[0080] In one embodiment, the step of obtaining vehicle body observation information according to the key point vehicle body coordinates includes:

[0081] Obtaining key point measurement values ​​according to the key point body coordinates and the origin coordinates in the body coordinate system;

[0082] Obtaining a key point weight according to the key point measurement value, a pre-acquired homography scale factor, and a weight normalization factor;

[0083] According to the key point measurement values ​​and a pre-established random Gaussian noise model, the random measurement error probability of the key point of the cabinet is obtained.

[0084] Specifically, the key point measurement value is the Euclidean distance between the key point body coordinate and the origin coordinate in the body coordinate system, and the key point weight (importance factor) is calculated according to the Euclidean distance. In this embodiment, the calculation formula of the key point weight is:

[0085]

[0086] In the formula, A represents the key point weight, d represents the key point measurement value, scale represents the homography scale factor, and f norm represents a preset weight normalization factor. The weight normalization factor is set in this embodiment to remove key points that are far away and normalize the weights of key points within the range. In this embodiment, f is preferred norm It is set to 3, and those skilled in the art can set the weight normalization factor according to the specific implementation situation.

[0087] Since the key point measurement values ​​obtained in this embodiment always contain noise, this noise is a common approximate Gaussian noise around the true value, which is affected by the characteristics of the camera sensor itself such as pixel resolution, calibration accuracy, and environmental conditions. Therefore, this embodiment establishes a random Gaussian noise model for key point measurement values, and obtains the probability of random measurement errors of cabinet key points based on the random Gaussian noise model. Specifically, this embodiment assumes that this noise conforms to a Gaussian noise model with a mean of the key point measurement value and a standard deviation of σ, where σ can be manually set according to the scene debugging situation, and at the same time, a random noise is added to the key point measurement value d and substituted into the one-dimensional Gaussian probability distribution function:

[0088]

[0089] Wherein, p(x) represents the probability of random measurement error of the key point of the cabinet, σ represents the manually set standard deviation, μ represents the key point measurement value, and x represents the random value after adding a random noise to the key point measurement value d.

[0090] In one embodiment, the step of obtaining the positioning posture confidence and the key point vehicle body direction vector according to the key point vehicle body coordinates includes:

[0091] Calculate the covariance matrix according to the body coordinates of the key points;

[0092] Decomposing the covariance matrix, sorting the eigenvalues, and obtaining the positioning posture confidence according to the maximum eigenvalue and the second largest eigenvalue;

[0093] In the body coordinate system, each cabinet key point is traversed, and its nearest neighbor cabinet key point is found, and the key point body direction vector of the current key point is determined based on the key point body coordinates of the two cabinet key points.

[0094] Specifically, since the two-dimensional coordinates of the key points are converted to the coordinate points of the vehicle body coordinate system in this embodiment, the two-dimensional coordinates of the key points at this time eliminate the deformation of the projective transformation. Therefore, this embodiment can traverse the N key points of the current frame, solve the covariance matrix for the N key points of the current frame, and use it as the discrete value of the current frame, wherein the covariance matrix C is as follows:

[0095]

[0096] In the formula, represents the mean coordinate value of all cabinet key points in the vehicle body coordinate system in the current frame, p i Represents the two-dimensional coordinates of the i-th key point.

[0097] Then, this embodiment performs SVD decomposition on the covariance matrix C, sorts the eigenvalues, selects the largest eigenvalue and the second largest eigenvalue, and takes the ratio of the second largest eigenvalue to the largest eigenvalue as the positioning posture confidence score, that is, score = second largest eigenvalue ÷ maximum eigenvalue. This embodiment uses the positioning posture confidence score as the score of the current positioning posture and the key point discreteness score. In this embodiment, the score measures the distribution of the key points of the cabinet in the current frame, that is, the more evenly the key points are distributed in the image coordinate system, the more evenly the error distribution is, and the faster and better the convergence can be in the subsequent positioning.

[0098] In this embodiment, the method for calculating the key point vehicle body direction vector is:

[0099] Traverse each key point in the current frame, use the nearest neighbor search algorithm to find a key point that is closest to it, form a straight line between the key point and its nearest neighbor key point, and use the slope of the straight line as the direction of the current key point. Specifically, this embodiment calculates the arc tangent value of the two key points as the key point body direction vector of the current key point:

[0100]

[0101] Where n represents the body direction vector of the key point, Δy represents the longitudinal difference between the two key points in the body coordinate system, and Δx represents the lateral difference between the two key points in the body coordinate system.

[0102] S5. Update the grid map based on the key point vehicle body coordinates, establish a cabinet key point map, and set the robot starting coordinate point in the cabinet key point map.

[0103] Considering that single-line laser radar has high precision in the mapping process, the embodiment of the present invention adopts positioning information based on single-line laser SLAM to construct a high-precision key point semantic map, wherein single-line laser SLAM is a prior art and will not be elaborated in detail in this embodiment.

[0104] Specifically, the laser slam positioning module outputs the high-precision positioning information of the current robot patrol car, and obtains the position and posture of the cabinet key points in the world coordinate system based on the key point body coordinates:

[0105]

[0106] In the formula, represents the laser SLAM positioning posture; P world Indicates the coordinate point of the cabinet key point relative to the world coordinate system; P keypoint Represents the two-dimensional coordinates of key points.

[0107] Then, a sub-graph sliding window is established to probabilistically update the key points of the vehicle body in the window. The sub-graph corresponds to a small-scale local map of the global environment map. The sub-graph is created to increase the number of key points in the field of view within a small range. The small range of laser positioning information can be jumped by updating the probability map. The specific probability update method is as follows:

[0108] For each frame of image, after obtaining the coordinates of the key points in the vehicle body coordinate system, each key point is inserted into the submap one by one, and the occupancy grid of the submap is updated. The occupancy grid is a form of map, which is a fine-grained grid that is continuously projected onto a two-dimensional position space, describing a two-dimensional slice in a three-dimensional space, or a two-dimensional projection. The grid is updated as follows: for each cell in the grid, an accumulation counter is associated. If the cell is hit by the projection of the key point, the accumulator of the cell is increased by 1.

[0109] If the difference (delta) between the positioning pose of the laser slam in the current frame and the pose of the previous frame is greater than a certain threshold, the key points of the current image frame are added to the sliding window:

[0110]

[0111] In the formula, Indicates the positioning posture of the laser in the previous frame relative to the world coordinates. Indicates the positioning pose of the laser in the current frame relative to the world coordinates;

[0112] Assuming that the number of sliding windows is N, a probability update is performed for each key point in a sliding window, and the map after the probability update is inserted into the global map. In this embodiment, the operation of inserting the sub-map into the global map is to superimpose the grayscale value in the corresponding coordinates of the global map, wherein the probability update is to traverse each frame in the sliding window and perform a logarithmic update of the accumulator for the occupied grid corresponding to each key point in the frame; it should be noted that if the number of frames after adding the new frame is greater than N, the earliest window frame in the window queue is discarded, wherein the probability value after the logarithmic update is:

[0113] P(m i )=log(counter i )

[0114] In the formula, P(m i ) represents the probability value after logarithmic update, counter i Represents the cumulative value of the grid;

[0115] In the process of the patrol car building the map, the above steps are repeated continuously, and finally a high-precision map of the key points of all cabinet legs on site is obtained. The non-key point area in the map is called the blank area. In the blank area, according to the law of one-dimensional Gaussian distribution, the Gaussian distance probability from the blank area to the nearest key point is established to obtain the blank area probability value, where the probability of the key point in the map is 1.

[0116] In one embodiment, the step of calculating the probability value of the blank area in the cabinet key point map includes:

[0117] Treat the non-key point areas in the cabinet key point map as blank areas;

[0118] Traverse each pixel of the blank area, obtain the Euclidean distance from the pixel to the nearest cabinet key point, and obtain the blank area probability value according to a Gaussian probability lookup table with a mean of zero.

[0119] Specifically, the Gaussian probability of the blank area is established by traversing each blank area pixel in the map, querying the Euclidean distance from the pixel to the nearest key point, passing the distance through a Gaussian probability lookup table with a mean of 0, obtaining a blank area probability value, and filling the value into the pixel.

[0120] S6. Spread the particle set within a preset error range of the robot's starting coordinate point, and update the particle set according to the posture change difference and the vehicle body observation information.

[0121] Since IMU and wheel encoders do not always provide accurate dead reckoning data, other tools are needed in addition to IMU and encoders. The Monte Carlo positioning with directional information used in the embodiment of the present invention is a method of positioning using the data generated by these sensors. In this embodiment, mapping and positioning are not performed simultaneously. This embodiment first establishes a cabinet key point map, and then imports and uses the cabinet key point map that has been established in advance for positioning. In the positioning process, the laser SLAM module is not used, and the camera, IMU and wheel encoder fusion positioning are used.

[0122] Specifically, a pre-established cabinet key point map is loaded, and the approach probability, position, key point direction and other information in the map are parsed. Before the car starts to move, the starting point of the car is manually given, and within the error range of the coordinates of the starting point of the map car, a preset number of particles based on normal distribution are scattered, and the state quantity of each particle is (x, y, θ), wherein x represents the horizontal coordinate value of the particle, y represents the vertical coordinate value of the particle, and θ represents the orientation angle of the particle; in this embodiment, the error range is preferentially set to Δx∈[-1, 1], Δy∈[-1, 1], Δθ∈[-π, π], and the number of particles is set to 500, that is, m={[x0, y0, θ0], [x1, y1, θ1], ...}. In the initial iteration process, the weights of all particles are the same and the sum of probabilities is 1. It should be noted that this embodiment uses the posture change difference as the predicted posture of the current frame. Considering that the odometer based on IMU and wheel encoder has cumulative errors, and at the same time, the odometer has great reference significance within the time interval between the previous and next image frames, M particles are scattered near the predicted posture of the current frame in the key point map through the law of normal distribution.

[0123] In one embodiment, the step of updating the particle set according to the posture change difference and the vehicle body observation information includes:

[0124] In the initial iteration, the state quantity of each particle at each moment is obtained;

[0125] The posture change difference is added to the state quantity of each particle at the previous moment to obtain the state update quantity of each particle at the current moment;

[0126] Calculate the blank area probability value in the cabinet key point map, and obtain the map observation probability value according to the blank area probability value, the key point weight, the random measurement error probability and the preset key point probability value;

[0127] The particle set is updated according to the state update amount and the map observation probability value.

[0128] Specifically, for two adjacent image frames, i.e., the (i-1)th image frame and the i-th image frame, the odometer offset of the time interval between the two adjacent frames is obtained, which is recorded as (dx, dy, dθ). By implementing the calibration data of step S1, (dx, dy, dθ) is transformed into coordinates, and then the odometer offset is superimposed on the state of each particle at time (i-1) by updating the coordinates, so as to obtain the state update based on the odometer prior at time i of a single particle. The state update is projected onto the cabinet key point map, and the map grid of each matching key point is searched. If a blank area in the map is hit, the probability value of the blank area is multiplied by the observation weight, and then the probability of random measurement error is added to obtain the current probability (map observation probability value); if the key point is hit, the current probability (map observation probability value) is 1; in this embodiment, if the key point is hit, the preset key point probability value is the map observation probability value.

[0129] S7. Obtain a particle probability value according to the vehicle body direction vector of the key point, and obtain a maximum likelihood estimated pose according to the particle probability value.

[0130] In one embodiment, the step of obtaining the particle probability value according to the key point vehicle body direction vector comprises:

[0131] Projecting the state update amount into the cabinet key point map, and searching for the map matching key point of the nearest neighbor of each cabinet key point;

[0132] Obtain a matching key point direction vector of each map matching key point in the cabinet key point map;

[0133] Obtaining a direction difference probability value according to the key point vehicle body direction vector and the matching key point direction vector;

[0134] A particle probability value is obtained according to the map observation probability value and the direction difference probability value.

[0135] Specifically, the state update amount is projected into the cabinet key point map, and each nearest matching key point is searched for, and the direction difference probability value is calculated according to the matching key point, specifically:

[0136]

[0137] In the formula, The keypoint body direction vector representing the current keypoint of the current frame; The matching keypoint direction vector representing the map matching keypoint is obtained by the nearest neighbor query of the keypoint in the current frame; The modulus represents the direction difference probability value of the current key point in the current frame.

[0138] Then, the map observation probability value and the direction difference probability value are multiplied to obtain a particle probability value, the particle set is normalized according to the particle weight so that the sum of all particle probability values ​​is 1, and resampling is performed according to a preset probability threshold to obtain a new particle set, retaining particles with large weights, discarding particles with weights less than the threshold, and summing all particles with weights greater than the threshold to obtain the current maximum likelihood estimated pose; in this embodiment, the probability threshold is preferably set to 0.6, and particles greater than 0.6 are particles with large weights.

[0139] S8. Based on the maximum likelihood estimation posture, iterate repeatedly until a preset convergence condition is reached to obtain the optimal posture of the robot and its corresponding positioning posture confidence.

[0140] Specifically, this embodiment is based on the maximum likelihood estimation posture, re-places particles in the current convergent posture, and narrows the particle range near the particles with large weights according to the preset particle range threshold. At this time, the error range is Δx∈[-0.5, 0.5], Δy∈[-0.5, 0.5], Δθ∈[-π / 2, π / 2]. It is iterated repeatedly until the preset convergence condition is reached to obtain the optimal posture of the robot, and output the corresponding positioning posture confidence to achieve the positioning of the robot. It should be noted that each particle after the weight is updated is approximated to the posterior probability density function, and the summation operation is approximated to integration.

[0141] An embodiment of the present invention provides a computer room fusion positioning method, which updates the particle set in the cabinet key point map through the odometer prior and vehicle body observation information obtained by the sensor, and obtains the maximum likelihood estimated pose according to the particle probability value to obtain the optimal pose of the robot and its corresponding positioning pose confidence, thereby realizing accurate and efficient positioning of the robot in the computer room; the computer room fusion positioning method provided by this embodiment can not only effectively avoid the situation where the existing positioning method is easily affected by environmental changes and causes poor positioning accuracy, but also can realize the high-precision, robust and fast positioning of the robot in highly similar or dynamic environments without the need for additional on-site appearance modification.

[0142] It should be noted that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0143] In one embodiment, Figure 3 As shown, an embodiment of the present invention provides a computer room fusion positioning system, the system comprising:

[0144] The image data processing module 101 is used to detect cabinet key points on the collected original cabinet image to obtain the two-dimensional coordinates of the key points; it is also used to obtain the attitude change difference between two adjacent frames based on the odometer and attitude angle change values ​​of each frame of the original cabinet image;

[0145] The observation information acquisition module 102 is used to convert the cabinet key points into the vehicle body coordinate system to obtain the key point vehicle body coordinates; and is also used to obtain vehicle body observation information, positioning posture confidence and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probabilities;

[0146] A key point map establishment module 103 is used to update the grid map based on the key point vehicle body coordinates, establish a cabinet key point map, and set the robot starting coordinate point in the cabinet key point map;

[0147] The particle set updating module 104 is used to spread the particle set within a preset error range of the robot's starting coordinate point, and to update the particle set according to the posture change difference and the vehicle body observation information;

[0148] The robot positioning module 105 is used to obtain the particle probability value according to the key point vehicle body direction vector, and obtain the maximum likelihood estimated posture according to the particle probability value; it is also used to repeatedly iterate based on the maximum likelihood estimated posture until a preset convergence condition is reached, so as to obtain the optimal posture of the robot and its corresponding positioning posture confidence.

[0149] For the specific definition of a computer room fusion positioning system, please refer to the above-mentioned definition of a computer room fusion positioning method, which will not be repeated here. A person of ordinary skill in the art can appreciate that the various modules and steps described in conjunction with the embodiments disclosed in this application can be implemented in hardware, software, or a combination of both. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] An embodiment of the present invention provides a computer room fusion positioning system, which obtains the motion state of the robot through the image data processing module and the observation information acquisition module, establishes a cabinet key point map through the key point map establishment module, updates the particle set through the particle set updating module and the robot positioning module and obtains high-precision pose estimation; compared with the prior art, the system provided by the present application not only has a simple structure and low computational complexity, but also can achieve precise positioning in a short time, effectively improving the accuracy and robustness of positioning, and has low hardware cost and no need to modify the on-site environment.

[0151] Figure 4 A computer device provided by an embodiment of the present invention includes a memory, a processor and a transceiver, which are connected via a bus; the memory is used to store a set of computer program instructions and data, and can transmit the stored data to the processor, and the processor can execute the program instructions stored in the memory to perform the steps of the above method.

[0152] The memory may include a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories; the processor may be a central processing unit, a microprocessor, an application-specific integrated circuit, a programmable logic device, or a combination thereof. By way of example but not limitation, the programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0153] Additionally, the memory may be a physically separate unit or may be integrated with the processor.

[0154] It can be understood by those skilled in the art that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have the same component arrangement.

[0155] In one embodiment, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0156] The embodiments of the present invention provide a computer room fusion positioning method, system, device and storage medium. The computer room fusion positioning method can achieve high-precision, low-cost posture positioning without special modification of the environment and without using a large number of auxiliary positioning markers on site, and can meet the needs of complex scenes with better adaptability and robustness. At the same time, the method provided by the embodiments of the present invention adopts the odometer prior update particle set of IMU and encoder, so that the system can be robustly and quickly positioned in a highly similar environment, and in the absence of serious obstruction of the camera's field of view, it can achieve positioning in a dynamic environment in the presence of people or other dynamic obstacles, thereby improving the inspection efficiency and accuracy.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.

[0158] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0159] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.

Claims

1. A computer room fusion positioning method, characterized in that: The following steps are involved: Perform cabinet key point detection on the collected original cabinet image to obtain the two-dimensional coordinates of the key points; According to the odometer and attitude angle change values ​​of each frame of the original cabinet image, the attitude change difference between two adjacent frames is obtained; Convert the two-dimensional coordinates of the key points into a vehicle body coordinate system to obtain the vehicle body coordinates of the key points; Obtaining vehicle body observation information, positioning posture confidence, and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probabilities; Based on the key point vehicle body coordinates, a grid map is updated to establish a cabinet key point map, and a robot starting coordinate point is set in the cabinet key point map; Spreading a particle set within a preset error range of the robot's starting coordinate point, and updating the particle set according to the posture change difference and the vehicle body observation information; Obtaining a particle probability value according to the vehicle body direction vector of the key point, and obtaining a maximum likelihood estimated pose according to the particle probability value; Based on the maximum likelihood estimation posture, iterate repeatedly until a preset convergence condition is reached to obtain the optimal posture of the robot and its corresponding positioning posture confidence; The step of spreading the particle set within a preset error range of the robot's starting coordinate point and updating the particle set according to the posture change difference and the vehicle body observation information includes: Scatter a preset number of particles based on normal distribution within the error range of the robot's starting point coordinates, and obtain the state quantity of each particle at each moment in the initial iteration; The difference between the posture changes of two adjacent frames is added to the state of each particle at the previous moment to obtain the state update of each particle at the current moment; Establish the Gaussian distance probability from the blank area to the nearest key point in the cabinet key point map, and obtain the blank area probability value in the cabinet key point map. If the blank area in the map is hit, the blank area probability value is multiplied by the key point weight value, and then the random measurement error probability is added to obtain the map observation probability value; if the key point is hit, the preset key point probability value is the map observation probability value; Update the particle set according to the state update amount and the map observation probability value; The step of obtaining a particle probability value according to the key point vehicle body direction vector and obtaining a maximum likelihood estimated pose according to the particle probability value comprises: Project the state update amount to the cabinet key point map, search for the map matching key point of the nearest neighbor of each cabinet key point, and obtain the matching key point direction vector of each map matching key point in the cabinet key point map; The direction difference probability value is obtained according to the key point vehicle body direction vector and the matching key point direction vector; wherein the direction difference probability value is calculated as follows: In the formula, The keypoint body direction vector representing the current keypoint of the current frame; The matching keypoint direction vector representing the map matching keypoint is obtained by the nearest neighbor query of the keypoint in the current frame; The modulus represents the direction difference probability value of the current key point in the current frame; The map observation probability value and the direction difference probability value are multiplied to obtain a particle probability value, and a maximum likelihood estimated pose is obtained according to the particle probability value.

2. A computer room fusion positioning method as claimed in claim 1, characterized in that: The step of obtaining the vehicle body observation information according to the key point vehicle body coordinates comprises: Obtaining key point measurement values ​​according to the key point body coordinates and the origin coordinates in the body coordinate system; Obtaining a key point weight according to the key point measurement value, a pre-acquired homography scale factor, and a weight normalization factor; According to the key point measurement values ​​and a pre-established random Gaussian noise model, the random measurement error probability of the key point of the cabinet is obtained.

3. A computer room fusion positioning method as claimed in claim 1, characterized in that: The step of obtaining the positioning posture confidence and the key point vehicle body direction vector according to the key point vehicle body coordinates comprises: Calculate the covariance matrix according to the body coordinates of the key points; Decomposing the covariance matrix, sorting the eigenvalues, and obtaining the positioning posture confidence according to the maximum eigenvalue and the second largest eigenvalue; In the body coordinate system, each cabinet key point is traversed, and its nearest neighbor cabinet key point is found, and the key point body direction vector of the current key point is determined based on the key point body coordinates of the two cabinet key points.

4. A computer room fusion positioning method as claimed in claim 1, characterized in that: The specific calculation process of the blank area probability value in the cabinet key point map includes: Treat the non-key point areas in the cabinet key point map as blank areas; Traverse each pixel of the blank area, obtain the Euclidean distance from the pixel to the nearest cabinet key point, and obtain the blank area probability value according to a Gaussian probability lookup table with a mean of zero.

5. A computer room fusion positioning method as claimed in claim 1, characterized in that: The step of obtaining the maximum likelihood estimation pose according to the particle probability value comprises: All particle probability values ​​are normalized and resampled according to a preset probability threshold to obtain a new particle set, and the maximum likelihood estimated pose is obtained according to the normalized particle probability values ​​corresponding to the new particle set.

6. A computer room fusion positioning system, characterized in that: The system comprises: The image data processing module is used to detect the cabinet key points on the collected original cabinet image to obtain the two-dimensional coordinates of the key points; it is also used to obtain the attitude change difference between two adjacent frames based on the odometer and attitude angle change values ​​of each frame of the original cabinet image; An observation information acquisition module is used to convert the two-dimensional coordinates of the key points into a vehicle body coordinate system to obtain the vehicle body coordinates of the key points; and is also used to obtain vehicle body observation information, positioning posture confidence and key point vehicle body direction vector according to the key point vehicle body coordinates, wherein the vehicle body observation information includes key point weight values ​​and random measurement error probabilities; A key point map establishment module, used to update the grid map based on the key point vehicle body coordinates, establish a cabinet key point map, and set the robot starting coordinate point in the cabinet key point map; A particle set updating module, used for spreading the particle set within a preset error range of the robot's starting coordinate point, and updating the particle set according to the posture change difference and the vehicle body observation information; The robot positioning module is used to obtain the particle probability value according to the direction vector of the key point body, and obtain the maximum likelihood estimated posture according to the particle probability value; it is also used to repeatedly iterate based on the maximum likelihood estimated posture until a preset convergence condition is reached to obtain the optimal posture of the robot and its corresponding positioning posture confidence; Wherein, spreading the particle set within a preset error range of the robot's starting coordinate point, and updating the particle set according to the posture change difference and the vehicle body observation information, specifically includes: Scatter a preset number of particles based on normal distribution within the error range of the robot's starting point coordinates, and obtain the state quantity of each particle at each moment in the initial iteration; The difference between the posture changes of two adjacent frames is added to the state of each particle at the previous moment to obtain the state update of each particle at the current moment; Establish the Gaussian distance probability from the blank area to the nearest key point in the cabinet key point map, and obtain the blank area probability value in the cabinet key point map. If the blank area in the map is hit, the blank area probability value is multiplied by the key point weight value, and then the random measurement error probability is added to obtain the map observation probability value; if the key point is hit, the preset key point probability value is the map observation probability value; Update the particle set according to the state update amount and the map observation probability value; The step of obtaining a particle probability value according to the key point vehicle body direction vector and obtaining a maximum likelihood estimated pose according to the particle probability value comprises: Project the state update amount to the cabinet key point map, search for the map matching key point of the nearest neighbor of each cabinet key point, and obtain the matching key point direction vector of each map matching key point in the cabinet key point map; The direction difference probability value is obtained according to the key point vehicle body direction vector and the matching key point direction vector; wherein the direction difference probability value is calculated as follows: In the formula, The keypoint body direction vector representing the current keypoint of the current frame; The matching keypoint direction vector representing the map matching keypoint is obtained by the nearest neighbor query of the keypoint in the current frame; The modulus represents the direction difference probability value of the current key point in the current frame; The map observation probability value and the direction difference probability value are multiplied to obtain a particle probability value, and a maximum likelihood estimated pose is obtained according to the particle probability value.

7. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the computer device executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.