Mobile robot visual positioning system based on ground texture

Through a visual positioning system based on ground texture, using a monocular camera and multi-resolution map construction, combined with photometric error and least squares optimization, the problem of sensor occlusion and high environmental modification costs is solved, and the autonomous high-precision positioning of mobile robots is realized. Effect.

CN118840422APending Publication Date: 2024-10-25NORTHEASTERN UNIV CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804952.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

In most application scenarios, traditional mobile robot positioning systems suffer from reduced positioning accuracy due to sensor occlusion, and the cost of environmental modification and maintenance is high. It is difficult for existing SLAM technology to achieve high-precision autonomous positioning under occlusion.

Method used

Using a mobile robot visual positioning system based on ground texture, through the camera installation calibration module, map deployment and construction algorithm module and map positioning algorithm module, using a monocular camera and multi-resolution map construction, combined with photometric error and least squares optimization method, Real-time estimation and positioning of robot posture.

Benefits of technology

It achieves autonomous high-precision positioning of the robot without the need for additional markings, avoids sensor occlusion problems, reduces maintenance costs, and improves the robustness and accuracy of positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840422A_ABST
    Figure CN118840422A_ABST
Patent Text Reader

Abstract

The invention discloses a mobile robot visual positioning system based on ground texture, the system is realized based on a camera installation calibration module, a map deployment and construction algorithm module and a map positioning algorithm module, and the system comprises the camera installation calibration module used for camera installation and camera internal and external parameter calibration; the map deployment and construction algorithm module is used for environment data acquisition, map construction and quadtree storage; and the map positioning algorithm module is used for creating dynamic map points and estimating the pose of the robot. The visual positioning technology based on indoor roof characteristics and the visual positioning technology based on ground textures are widely proposed; the visual positioning technology based on the ground texture can greatly avoid the problem of camera shielding, and is affected by less environment illumination changes relative to roof features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of technical robot visual positioning, in particular to a mobile robot visual positioning system based on ground texture. Background Art

[0002] Traditional mobile robot positioning systems require the deployment of tracks, magnetic strips, and ground QR code labels to ensure that the robot can accurately identify its own position. These methods require the transformation of the working environment, which brings troubles to the actual application of factories: on the one hand, not all factory environments have the conditions for environmental transformation; on the other hand, as the number of uses increases, problems such as track aging, magnetic strips, and QR code loss increase the subsequent maintenance costs.

[0003] With the development of computer hardware and sensor technology, laser radar and vision mapping and positioning methods are gradually being widely used in the autonomous positioning of mobile robots. The main technology used is SLAM technology, which extracts the inherent characteristics of the robot's working environment through sensors and models the factory environment, thereby using factory environment information to achieve real-time high-precision positioning of the robot without adding additional identification.

[0004] However, in most mobile robot usage scenarios, it is inevitable that the robot's sensors are blocked. For example, the movement of people in squares and indoors may cause sensor occlusion, or the placement of goods in warehouses may cause the current sensor detection environment to be inconsistent with the modeling environment. These problems are affecting the application of autonomous positioning technology.

[0005] In summary, it is necessary to propose a mobile robot visual positioning system based on ground texture to solve the above problems. Summary of the invention

[0006] The purpose of the present invention is to provide a mobile robot visual positioning system based on ground texture to solve the problems raised in the above background technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] A mobile robot visual positioning system based on ground texture, which is implemented based on a camera installation calibration module, a map deployment and construction algorithm module, and a map positioning algorithm module, including:

[0009] A camera installation and calibration module, which is used for camera installation and camera internal and external parameter calibration;

[0010] A map deployment and construction algorithm module, which is used for environmental data collection, map construction and quadtree storage;

[0011] A map positioning algorithm module, wherein the map positioning algorithm module is used for dynamic map point creation and robot posture estimation.

[0012] Preferably, the camera installation calibration module further includes a camera installation unit and a camera internal and external parameter calibration unit;

[0013] The camera mounting unit is used to mount the monocular camera on the mobile robot, and can be mounted at any position, including behind, inside or on the side of the robot;

[0014] The camera internal and external parameter calibration unit is used to complete the calibration of camera internal parameters and lens distortion using Zhang Zhengyou calibration method, and calibrate the camera external parameters at the same time to obtain a homography matrix for the conversion relationship between image coordinate points and real ground coordinate points.

[0015] Preferably, the map deployment and construction algorithm module further includes an environment data acquisition unit, a map construction unit and a quadtree storage unit;

[0016] The environmental data acquisition unit is used to collect position information and image data on the robot's running path;

[0017] The map construction unit is used to directly use image pixels as map elements and construct a multi-resolution map, and use a Gaussian pyramid to downsample the image to improve the robustness of the map;

[0018] The quadtree storage unit is used to store map points in a quadtree manner to increase the search speed of map points.

[0019] Preferably, the map positioning algorithm module further includes a dynamic map point creation unit and a robot posture estimation unit;

[0020] The dynamic map point creation unit is used to create local dynamic map points in real time to fill in the gaps in the inherent map for positioning supplementation;

[0021] The robot posture estimation unit is used to measure the consistency between the current robot posture and the observation information through the photometric error, and use the least squares optimization method to solve the optimal posture of the current robot.

[0022] Preferably, the implementation process of the camera installation calibration module is:

[0023] S1.1. Prepare the calibration tool: Use non-elastic materials, such as oilcloth or paper, to make a flat calibration tool that is about three times the length and width of the mobile robot body. Draw a central chessboard on the calibration tool, making sure that the size and position of the chessboard have been measured in advance and can be accurately captured by the camera.

[0024] S1.2. Place the calibration tool: Place the calibration tool on a flat surface and ensure that it is stable and does not move;

[0025] S1.3. Robot parking: Control the mobile robot to move to the calibration tool so that the calibration tool is located in the parking area of ​​the robot. Use auxiliary markings to ensure that the robot stops at the position specified by the calibration tool to ensure the accuracy of the calibration process;

[0026] S1.4. Image acquisition: Use a monocular camera mounted on the mobile robot to acquire images of the checkerboard on the calibration tool, ensuring that the camera can cover the entire checkerboard and the checkerboard is clearly visible;

[0027] S1.5. Extract corner points: extract corner points from the acquired image and use corner point detection algorithms, including Harris corner point detection or Shi-Tomasi corner point detection, to detect the corner points of the chessboard;

[0028] S1.6. Point pair matching: Match the corner points detected in the image with the known corner points on the chessboard to form point pairs. The formation of point pairs requires that the corner points in the image correspond to the corresponding corner points on the chessboard one by one to ensure the accuracy of calibration;

[0029] S1.7. Calculate the homography matrix: Use the information of the point pairs to solve the homography matrix through the least squares method or other fitting methods. The homography matrix describes the correspondence between the image coordinate points and the vehicle coordinate system, and converts the coordinate points on the image into coordinate points in the vehicle coordinate system.

[0030] Preferably, the implementation process of the map deployment and construction algorithm module is as follows:

[0031] S2.1. Original environment data acquisition: Set the image acquisition position on the robot's running path, usually divided into grid areas to ensure that the entire environment is covered. Each time an image is acquired, the robot's coordinate position and corresponding image data are recorded;

[0032] S2.2. Image downsampling: For each original image collected, the Gaussian pyramid method is used for downsampling to generate images with multiple resolutions. The Gaussian pyramid method can reduce the image resolution while retaining the main features of the image, thereby reducing the computational complexity of map construction.

[0033] S2.3. Construct a multi-resolution map: For each downsampled resolution image, the image pixels are directly used as map elements. Each resolution image constitutes a level of the map, i.e., a multi-resolution map.

[0034] S2.4. Point calculation method: calculate the position of each image pixel in the robot coordinate system;

[0035] S2.5. Store maps: Store maps of each resolution for subsequent use. In order to increase the speed of finding points in the map, a quadtree method is used to store map points.

[0036] Preferably, the implementation process of the map positioning algorithm module is:

[0037] S3.1. Creation of dynamic map points: Since the image of a fixed location cannot completely cover the ground texture of the robot's operating area, it is necessary to create local dynamic map points in real time to fill the gaps in the map. In the positioning mode, solid points represent pre-built map points, and hollow points represent temporary points calculated based on the current position and real-time images.

[0038] S3.2. Selection of robot pose estimation method: Photometric error is used to measure the consistency between the current robot pose and the observed information, and the optimal pose of the current robot is solved based on the least squares optimization method;

[0039] S3.3. Photometric error calculation: Two images are used to calculate the photometric error: the image captured by the current camera and the reference image generated using the map. The process of generating the reference image includes constructing a virtual image based on the initial robot predicted pose, and then projecting all possible observed map points onto the virtual image.

[0040] S3.4. Calculation formula of photometric error and derivative: The photometric error formula is used to express the difference between the pixel grayscale values ​​of the map-generated image and the current image, and the derivative formula is used to express the derivative of the photometric error to the robot's posture, where the derivative is obtained by Laplace filtering;

[0041] S3.5. Constructing a nonlinear least squares problem: Constructing a nonlinear least squares problem based on the photometric error and its derivative;

[0042] S3.6. Optimize and solve the robot posture: Finally, the optimal estimate of the current robot posture is solved by the Gauss-Newton or Levenberg-Marquardt method.

[0043] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention uses an ordinary monocular camera to realize the autonomous positioning function of the mobile robot, which is easy to deploy and install in hardware. The multi-scale photometric error is used in the algorithm to construct the robot pose optimization problem, thereby avoiding the point feature matching failure problem caused by unclear ground texture. At the same time, on the basis of a fixed map, temporary map points generated by historical images are used. Even if the map construction of all areas is not completed when the equipment is deployed, the present invention can locate any position on the robot's motion path in real time. Finally, 3 degrees of freedom are used to describe the robot's planar motion. Compared with the 6-degree-of-freedom pose estimation problem, the calculation amount is smaller, and the pose estimation error caused by the additional degrees of freedom is avoided, and the calculation result is more accurate. Therefore, the visual positioning technology based on indoor roof features and the visual positioning technology based on ground texture of the present invention are widely proposed, among which the visual positioning technology based on ground texture can greatly avoid the camera occlusion problem and is less affected by ambient light changes relative to roof features. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The present invention shows the use process of the mobile robot positioning system of the present invention;

[0045] Figure 2 A schematic diagram showing the installation method of the camera of the present invention on a mobile robot is shown;

[0046] Figure 3 A schematic diagram of a plane calibration tool of the present invention is shown;

[0047] Figure 4 The flowchart of the robot environment acquisition method of the present invention is shown;

[0048] Figure 5 The present invention shows a schematic diagram of constructing a two-dimensional multi-scale map based on an image;

[0049] Figure 6 A schematic diagram of the positioning process of the mobile robot based on map points of the present invention is shown;

[0050] Figure 7 The present invention shows a schematic diagram of generating an image based on a map and estimating the robot's posture using photometric errors;

[0051] Figure 8 The present invention shows a schematic diagram of generating an image by back-projecting two-dimensional map points based on the initial robot posture. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] See also Figures 1 to 8 , the present invention provides a technical solution:

[0054] A mobile robot visual positioning system based on ground texture, the system is implemented based on a camera installation calibration module, a map deployment and construction algorithm module and a map positioning algorithm module. The camera installation calibration module is used for camera installation and camera internal and external parameter calibration, the map deployment and construction algorithm module is used for environmental data collection, map construction and quadtree storage, and the map positioning algorithm module is used for dynamic map point creation and robot pose estimation.

[0055] Among them, it should be noted that the camera installation and calibration module of the present invention also includes a camera installation unit and a camera internal and external parameter calibration unit; the camera installation unit is used to install the monocular camera on the mobile robot, and can be installed at any position, including behind, inside or on the side of the robot; the camera internal and external parameter calibration unit is used to use Zhang Zhengyou calibration method to complete the calibration of camera intrinsic parameters and lens distortion, and at the same time calibrate the camera extrinsic parameters to obtain a homography matrix for the conversion relationship between image coordinate points and real ground coordinate points.

[0056] Among them, it should be noted that the map deployment and construction algorithm module of the present invention also includes an environmental data acquisition unit, a map construction unit and a quadtree storage unit; the environmental data acquisition unit is used to collect position information and image data on the robot's running path; the map construction unit is used to directly use image pixels as map elements, and construct a multi-resolution map, and use a Gaussian pyramid to downsample the image to improve the robustness of the map; the quadtree storage unit is used to store map points using a quadtree method to improve the search speed of the map midpoint.

[0057] Among them, it should be noted that the map positioning algorithm module of the present invention also includes a dynamic map point creation unit and a robot pose estimation unit; the dynamic map point creation unit is used to create local dynamic map points in real time to fill the gaps in the inherent map for positioning supplement; the robot pose estimation unit is used to measure the consistency between the current robot pose and the observation information through photometric error, and use the least squares optimization method to solve the optimal pose of the current robot.

[0058] It should be noted that the implementation process of the camera installation calibration module of the present invention is as follows:

[0059] S1.1. Prepare the calibration tool: Use non-elastic materials, such as oilcloth or paper, to make a flat calibration tool that is about three times the length and width of the mobile robot body. Draw a central chessboard on the calibration tool, making sure that the size and position of the chessboard have been measured in advance and can be accurately captured by the camera.

[0060] S1.2. Place the calibration tool: Place the calibration tool on a flat surface and ensure that it is stable and does not move;

[0061] S1.3. Robot parking: Control the mobile robot to move to the calibration tool so that the calibration tool is located in the parking area of ​​the robot. Use auxiliary markings to ensure that the robot stops at the position specified by the calibration tool to ensure the accuracy of the calibration process;

[0062] S1.4. Image acquisition: Use a monocular camera mounted on the mobile robot to acquire images of the checkerboard on the calibration tool, ensuring that the camera can cover the entire checkerboard and the checkerboard is clearly visible;

[0063] S1.5. Extract corner points: extract corner points from the acquired image and use corner point detection algorithms, including Harris corner point detection or Shi-Tomasi corner point detection, to detect the corner points of the chessboard;

[0064] S1.6. Point pair matching: Match the corner points detected in the image with the known corner points on the chessboard to form point pairs. The formation of point pairs requires that the corner points in the image correspond to the corresponding corner points on the chessboard one by one to ensure the accuracy of calibration;

[0065] S1.7. Calculate the homography matrix: Use the information of the point pairs to solve the homography matrix through the least squares method or other fitting methods. The homography matrix describes the correspondence between the image coordinate points and the vehicle coordinate system, and converts the coordinate points on the image into coordinate points in the vehicle coordinate system.

[0066] It should be noted that the implementation process of the map deployment and construction algorithm module of the present invention is as follows:

[0067] S2.1. Original environment data acquisition: Set the image acquisition position on the robot's running path, usually divided into grid areas to ensure that the entire environment is covered. Each time an image is acquired, the robot's coordinate position and corresponding image data are recorded;

[0068] S2.2. Image downsampling: For each original image collected, the Gaussian pyramid method is used for downsampling to generate images with multiple resolutions. The Gaussian pyramid method can reduce the image resolution while retaining the main features of the image, thereby reducing the computational complexity of map construction.

[0069] S2.3. Construct a multi-resolution map: For each downsampled resolution image, the image pixels are directly used as map elements. Each resolution image constitutes a level of the map, i.e., a multi-resolution map.

[0070] S2.4. Point calculation method: calculate the position of each image pixel in the robot coordinate system;

[0071] S2.5. Store maps: Store maps of each resolution for subsequent use. In order to increase the speed of finding points in the map, a quadtree method is used to store map points.

[0072] It should be noted that the implementation process of the map positioning algorithm module of the present invention is as follows:

[0073] S3.1. Creation of dynamic map points: Since the image of a fixed location cannot completely cover the ground texture of the robot's operating area, it is necessary to create local dynamic map points in real time to fill the gaps in the map. In the positioning mode, solid points represent pre-built map points, and hollow points represent temporary points calculated based on the current position and real-time images.

[0074] S3.2. Selection of robot pose estimation method: Photometric error is used to measure the consistency between the current robot pose and the observed information, and the optimal pose of the current robot is solved based on the least squares optimization method;

[0075] S3.3. Photometric error calculation: Two images are used to calculate the photometric error: the image captured by the current camera and the reference image generated using the map. The process of generating the reference image includes constructing a virtual image based on the initial robot predicted pose, and then projecting all possible observed map points onto the virtual image.

[0076] S3.4. Calculation formula of photometric error and derivative: The photometric error formula is used to express the difference between the pixel grayscale values ​​of the map-generated image and the current image, and the derivative formula is used to express the derivative of the photometric error to the robot's posture, where the derivative is obtained by Laplace filtering;

[0077] S3.5. Constructing a nonlinear least squares problem: Constructing a nonlinear least squares problem based on the photometric error and its derivative;

[0078] S3.6. Optimize and solve the robot posture: Finally, the optimal estimate of the current robot posture is solved by the Gauss-Newton or Levenberg-Marquardt method.

[0079] Example

[0080] In the practical application of mobile robot positioning, the mobile robot visual positioning system based on ground texture specifically includes the following steps:

[0081] 1. Mobile robot usage process

[0082] Positioning system usage process Figure 1 As shown in the figure, camera installation and calibration are completed when the robot leaves the factory; map information collection and mapping are the preparations before the robot is officially put into operation in the designated site; map-based positioning is the working mode when the robot is officially put into use;

[0083] 2. Camera installation and calibration on mobile robots

[0084] The present invention uses a monocular camera as a sensor. The monocular camera on the mobile robot is installed as follows: Figure 2 As shown, the camera observation direction is downward, and allows the camera to be installed in any position, such as behind, inside, or on the side of the robot;

[0085] Furthermore, since the field of view of a single camera is limited, the system of the present invention can use multiple cameras installed at different positions of the robot and used for positioning at the same time;

[0086] Before using the camera, it needs to be calibrated. First, the camera's intrinsic parameters and lens distortion calibration algorithm are completed using the popular Zhang Zhengyou calibration method, which will not be described here;

[0087] Then, the camera extrinsic parameters are calibrated. The camera extrinsic parameters calibrated by this system are not the rotation and translation between the camera coordinate system and the body coordinate system, but the transformation relationship between the coordinate points on the image and the real ground coordinate points. The transformation relationship is the homography matrix, which is shown in formula (1).

[0088]

[0089] Where H is the homography matrix obtained by calibration, which has three rows and three columns. The H matrix acts as a point on the image with coordinates (u, v, 1) T Calculate the position of the corresponding ground point in the vehicle coordinate system (x b ,y b , 1) T ;

[0090] Since the camera used is always fixed relative to the vehicle body and the mobile robot moves on a plane, the vehicle body coordinate system is set to be two-dimensional, and the coordinate plane is parallel to the ground;

[0091] For any point on the image, we can uniquely determine the point in the vehicle coordinate system that corresponds to it, and then by calculating the H matrix, we can accurately convert the coordinate point on the image to a point in the vehicle coordinate system;

[0092] The method of calculating the H matrix uses multiple corresponding points (u i , v i , 1) T and (x i ,y i , 1) T , obtained by solving formula (2);

[0093]

[0094] where h 11 、h 12 、h 13 ...h 33 There are 9 variables in total that are the parameters of the matrix H. The image coordinate points and the points in the vehicle coordinate system are expressed using homogeneous coordinates. Since the H matrix has scale uncertainty, at least 8 point pairs are used to complete the calculation of the H matrix. When the number of point pairs is greater than 8, the H matrix parameters can also be obtained by calculating the least squares solution of the matrix equation.

[0095] In order to quickly find the key points corresponding to the image points and the vehicle body coordinate system, a plane calibration tool as shown in Figure (3) is designed;

[0096] The calibration tool is made of inelastic oilcloth or paper, and its size is about three times the length and width of the mobile robot body.

[0097] During calibration, the calibration tool is laid on a flat ground, and then the robot is moved to the calibration tool. The middle area is the parking area for the mobile robot. Auxiliary markings are used to ensure that the robot stops accurately at the position specified by the calibration tool. The size and position of the chessboard around and in the center of the calibration tool have been measured in advance. The corner points of the chessboard collected by the camera can quickly and accurately obtain the point pairs required for calibration.

[0098] 3. Map deployment and map building algorithm

[0099] The map deployment mode requires collecting the position of the robot on the running path, such as Figure 4 As shown, the grid area is the image acquisition position of the mobile robot;

[0100] After completing the image acquisition, the original environment data set is obtained. The data content is the image and the corresponding coordinates of the robot when acquiring the image (t x , t y ,θ);

[0101] After collecting environmental data, we build a two-dimensional map. Different from traditional maps based on features and keyframes, we directly use image pixels as map elements and build multi-resolution maps.

[0102] In order to improve the robustness of the map, the original image is downsampled and a map is constructed for each downsampled resolution, such as Figure 5 As shown in the figure, the variable c is the grayscale value of the image pixel, the image downsampling method is Gaussian pyramid, and the resolution of the upper layer image is half of the lower layer;

[0103] Point (x w ,y w ) The calculation method is shown in formula (3);

[0104]

[0105] The H matrix is ​​obtained by calibration, and the parameters (t x , t y , θ) is the robot posture when collecting images, which is obtained by measuring with a ruler;

[0106] Finally, we get a map composed of multiple layers. For each point in the map layer, the grayscale value c of the corresponding image pixel is stored;

[0107] At the same time, in order to improve the search speed of each layer of the map, we use a quadtree to store map points;

[0108] 4. Map-based positioning algorithm

[0109] First, since only images of fixed locations are collected during the map construction process, it is impossible to cover the entire ground texture of the robot's operating area. Therefore, our positioning method not only uses pixel points in the map, but also creates local dynamic map points in real time to fill the gaps in the inherent map;

[0110] Its positioning mode is as follows Figure 6 As shown in the figure, the solid points are pre-built map points, and the hollow points are temporary points calculated by the real-time image according to the current position of the robot during its movement;

[0111] Based on the above temporary points as a supplement, the mobile robot can estimate its own posture corresponding to the next captured image through the current map;

[0112] In terms of robot pose estimation, due to the single ground texture, the accuracy of traditional feature extraction and matching methods is low, so we use photometric error to measure the consistency between the current robot pose and the observed information, and use the least squares optimization method to solve the optimal pose of the current robot;

[0113] The solution process is as follows Figure 7 As shown;

[0114] The two images used to calculate the photometric error are the image captured by the current camera and the reference image generated using the map;

[0115] The image generation process is based on the initial robot predicted posture, constructing a virtual image, and then obtaining all possible observed map points and projecting the map points onto the virtual image, such as Figure 8 The photometric error constructed by the current robot collecting images is shown in formula (5), and the derivative of the photometric error to the robot posture is shown in formula (6);

[0116] E I =I m (u,v)-I c (u,v) (4);

[0117]

[0118] Where E I is the photometric error, i.e., the difference between the grayscale values ​​of the pixels in the image generated by the map and the current image, I m () and I c () represent the grayscale values ​​of the virtual image and the current image pixels, respectively, and the coordinates (p x , p y ) is the coordinate of the map point corresponding to the pixel point on the image;

[0119] Derivative dI m / du and dI m / dv is obtained by Laplace filtering of the image;

[0120] Construct a nonlinear least squares problem, as shown in formula (8);

[0121]

[0122] in is the optimal estimate of the robot's posture. The symbol ||·|| is used to calculate the second norm of the vector. Finally, the optimal estimate of the current robot's posture is obtained through the Gauss-Newton or Levenburg-Marquadt method.

[0123] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A mobile robot visual positioning system based on ground texture, the system is implemented based on a camera installation calibration module, a map deployment and construction algorithm module, and a map positioning algorithm module, and is characterized in that: include: A camera installation and calibration module, which is used for camera installation and camera internal and external parameter calibration; A map deployment and construction algorithm module, which is used for environmental data collection, map construction and quadtree storage; A map positioning algorithm module, wherein the map positioning algorithm module is used for dynamic map point creation and robot posture estimation.

2. The mobile robot visual positioning system based on ground texture according to claim 1, characterized in that: The camera installation and calibration module also includes a camera installation unit and a camera internal and external parameter calibration unit; The camera mounting unit is used to mount the monocular camera on the mobile robot, and can be mounted at any position, including behind, inside or on the side of the robot; The camera internal and external parameter calibration unit is used to complete the calibration of camera internal parameters and lens distortion using Zhang Zhengyou calibration method, and calibrate the camera external parameters at the same time to obtain a homography matrix for the conversion relationship between image coordinate points and real ground coordinate points.

3. The mobile robot visual positioning system based on ground texture according to claim 2, characterized in that: The map deployment and construction algorithm module also includes an environmental data acquisition unit, a map construction unit and a quadtree storage unit; The environmental data acquisition unit is used to collect position information and image data on the robot's running path; The map construction unit is used to directly use image pixels as map elements and construct a multi-resolution map, and use a Gaussian pyramid to downsample the image to improve the robustness of the map; The quadtree storage unit is used to store map points in a quadtree manner to increase the search speed of map points.

4. The mobile robot visual positioning system based on ground texture according to claim 3, characterized in that: The map positioning algorithm module also includes a dynamic map point creation unit and a robot posture estimation unit; The dynamic map point creation unit is used to create local dynamic map points in real time to fill in the gaps in the inherent map and to supplement positioning; The robot posture estimation unit is used to measure the consistency between the current robot posture and the observation information through the photometric error, and use the least squares optimization method to solve the optimal posture of the current robot.

5. The mobile robot visual positioning system based on ground texture according to claim 2, characterized in that: The implementation process of the camera installation calibration module is as follows: S1.

1. Prepare the calibration tool: Use non-elastic materials, such as oilcloth or paper, to make a flat calibration tool that is about three times the length and width of the mobile robot body. Draw a central chessboard on the calibration tool, making sure that the size and position of the chessboard have been measured in advance and can be accurately captured by the camera. S1.

2. Place the calibration tool: Place the calibration tool on a flat surface and ensure that it is stable and does not move; S1.

3. Robot parking: Control the mobile robot to move to the calibration tool so that the calibration tool is located in the parking area of ​​the robot. Use auxiliary markings to ensure that the robot stops at the position specified by the calibration tool to ensure the accuracy of the calibration process; S1.

4. Image acquisition: Use a monocular camera mounted on the mobile robot to acquire images of the checkerboard on the calibration tool, ensuring that the camera can cover the entire checkerboard and the checkerboard is clearly visible; S1.

5. Extract corner points: extract corner points from the acquired image and use corner point detection algorithms, including Harris corner point detection or Shi-Tomasi corner point detection, to detect the corner points of the chessboard; S1.

6. Point pair matching: Match the corner points detected in the image with the known corner points on the chessboard to form point pairs. The formation of point pairs requires that the corner points in the image correspond to the corresponding corner points on the chessboard one by one to ensure the accuracy of calibration; S1.

7. Calculate the homography matrix: Use the information of the point pairs to solve the homography matrix through the least squares method or other fitting methods. The homography matrix describes the correspondence between the image coordinate points and the vehicle coordinate system, and converts the coordinate points on the image into coordinate points in the vehicle coordinate system.

6. The mobile robot visual positioning system based on ground texture according to claim 3, characterized in that: The implementation process of the map deployment and construction algorithm module is as follows: S2.

1. Original environment data acquisition: Set the image acquisition position on the robot's running path, usually divided into grid areas to ensure that the entire environment is covered. Each time an image is acquired, the robot's coordinate position and corresponding image data are recorded; S2.

2. Image downsampling: For each original image collected, the Gaussian pyramid method is used for downsampling to generate images with multiple resolutions. The Gaussian pyramid method can reduce the image resolution while retaining the main features of the image, thereby reducing the computational complexity of map construction. S2.

3. Construct a multi-resolution map: For each downsampled resolution image, the image pixels are directly used as map elements. Each resolution image constitutes a level of the map, i.e., a multi-resolution map. S2.

4. Point calculation method: calculate the position of each image pixel in the robot coordinate system; S2.

5. Store maps: Store maps of each resolution for subsequent use. In order to increase the speed of finding points in the map, a quadtree method is used to store map points.

7. The mobile robot visual positioning system based on ground texture according to claim 4, characterized in that: The implementation process of the map positioning algorithm module is as follows: S3.

1. Creation of dynamic map points: Since the image of a fixed location cannot completely cover the ground texture of the robot's operating area, it is necessary to create local dynamic map points in real time to fill the gaps in the map. In the positioning mode, solid points represent pre-built map points, and hollow points represent temporary points calculated based on the current position and real-time images. S3.

2. Selection of robot pose estimation method: Photometric error is used to measure the consistency between the current robot pose and the observed information, and the optimal pose of the current robot is solved based on the least squares optimization method; S3.

3. Photometric error calculation: Two images are used to calculate the photometric error: the image captured by the current camera and the reference image generated using the map. The process of generating the reference image includes constructing a virtual image based on the initial robot predicted pose, and then projecting all possible observed map points onto the virtual image. S3.

4. Calculation formula of photometric error and derivative: The photometric error formula is used to express the difference between the pixel grayscale values ​​of the map-generated image and the current image, and the derivative formula is used to express the derivative of the photometric error to the robot's posture, where the derivative is obtained by Laplace filtering; S3.

5. Constructing a nonlinear least squares problem: Constructing a nonlinear least squares problem based on the photometric error and its derivative; S3.

6. Optimize and solve the robot posture: Finally, the optimal estimate of the current robot posture is solved by the Gauss-Newton or Levenberg-Marquardt method.