Intelligent masonry robot motion control method

By performing color space conversion and noise reduction processing on the images collected by the masonry robot, combined with the fusion positioning of the inertial measurement unit and encoder, and using the artificial potential field method to construct a motion control algorithm, the identification and positioning of the masonry robot in complex environments are solved. problem, improving masonry efficiency and safety.

CN118664584APending Publication Date: 2024-09-20JIANGSU UNIV OF SCI & TECH IND TECH RES INST OF ZHANGJIAGANG
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410674483.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In complex environments, the vision processing, target recognition and positioning technologies of masonry robots are difficult to meet high-precision requirements, resulting in insufficient accuracy and stability of robot motion control, affecting masonry efficiency and safety.

Method used

By performing color space conversion and noise reduction processing on the images collected by the camera, combined with the fusion positioning mechanism of the inertial measurement unit and the encoder, the artificial potential field method is used to construct a motion control algorithm to obtain the spatial pose information of the target brick and predict obstacles. object to realize speed calculation under four-wheel control.

Benefits of technology

It improves the robot's recognition accuracy and motion positioning accuracy for target bricks, reduces obstacle prediction errors, and enhances control efficiency and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118664584A
    Figure CN118664584A
Patent Text Reader

Abstract

The invention discloses an intelligent masonry robot motion control method, and the method comprises the steps: obtaining a target brick image based on computer vision, and recognizing a target brick more accurately through the weighting processing during color space conversion; according to the feature information of the visual identification target brick, the position coordinate of the target brick in the image coordinate system under the world coordinate system is solved; an inertial measurement unit and encoder fusion positioning system is designed according to the influence of a temperature influence factor on the positioning system in the masonry operation; based on a motion control deviator calculated by a positioning system, a virtual resultant force borne by the motion control deviator is obtained by combining an artificial potential field method principle, and according to an inverse motion analysis result of the motion control deviator, accurate control over the omni-directional mobile platform is finally achieved. The construction efficiency can be improved while safety is guaranteed in the field of automatic construction, and the problem that motion control of an omni-directional moving platform is difficult is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of masonry robot automation, and in particular to the design of a precise motion control method for an omnidirectional mobile platform, the optimization of a positioning system, the improvement of visual recognition and the realization of visual positioning. Background Art

[0002] It is difficult for masonry robots to achieve automation in complex working environments, especially in unknown environments where autonomous obstacle avoidance is particularly important. How to ensure the safety of automated masonry while improving masonry efficiency and accuracy remains a technical difficulty. Compared with two-wheeled mobile models of automatic masonry robots for construction, omnidirectional mobile platforms have higher flexibility, which is conducive to improving masonry efficiency and achieving autonomous obstacle avoidance. However, the precise motion control of the omnidirectional mobile platform depends on the accurate real-time calculation of its own position, which is still a major problem.

[0003] Among the existing technologies, the patent with publication number CN113147956A discloses a Mecanum wheel AGV trolley, which includes a mobile platform equipped with an electromagnetic or optical automatic navigation device, and can travel along a specified navigation path. This control method requires the path to be debugged in advance to complete repeated tasks on the same path, and it is difficult to give full play to the flexibility of the Mecanum wheel mobile platform in an unknown environment. The control strategy directly affects the operational accuracy and stability of masonry. The existing control algorithm often has difficulty in ensuring the smooth movement and stable control of the robot when facing obstacles and complex path planning.

[0004] In practical applications, robots rely on industrial cameras to collect images of bricks and the environment in real time. However, due to the complex environment and changing lighting conditions at the construction site, the original images often contain a lot of noise and interference. These noise and interference will seriously affect the image processing effect, resulting in difficulty in target recognition and high misrecognition rate. How to effectively perform color space conversion and noise reduction processing to improve image quality and target recognition accuracy requires an efficient solution.

[0005] Based on image processing, the robot needs to accurately locate and extract features of the target bricks. However, due to the limited robustness and accuracy of image processing algorithms, current target recognition and positioning technologies are difficult to meet the requirements of high-precision masonry operations. Especially in complex environments, how to accurately obtain the spatial position information of bricks is still a technical difficulty.

[0006] In summary, there are still many technical problems in autonomous masonry robots in terms of visual processing, target recognition and positioning, robot positioning and control, and motion control strategies. These problems not only affect the accuracy and efficiency of robot masonry operations, but also limit their wide application in practical engineering. Therefore, solving the above technical problems and achieving high accuracy, stability, and robustness of masonry robot motion control is of great significance to the realization of masonry robot automation. Summary of the invention

[0007] Purpose of the invention: The purpose of the present invention is to provide a motion control method for an intelligent masonry robot, which can effectively improve the recognition accuracy of the masonry robot for target bricks and the positioning accuracy during movement, realize the prediction of obstacles during the robot's movement, and improve the control efficiency.

[0008] In order to solve the above technical problems, the present invention is implemented by the following technical solutions: a motion control method of an intelligent masonry robot, comprising:

[0009] Perform color space conversion on the original images of the target brick and the environmental background collected by the camera in real time, determine the weighted processing factor of the color component by comparing the conversion effects, and perform noise reduction on the image;

[0010] Based on the processed image, feature extraction and spatial coordinate calculation are performed on the target brick to obtain the spatial position information of the target brick;

[0011] Based on the fusion positioning mechanism, the heading angle and current position coordinate information of the masonry robot are solved in real time, and the robot's motion control bias is obtained by calculating the coordinate difference between the masonry robot and the target position;

[0012] Based on the principle of artificial potential field method, the virtual force acting on the masonry robot is obtained and converted into the component velocity in the XY direction. According to the inverse motion analysis results of the masonry robot, its rotation speed under four-wheel control is further obtained.

[0013] Furthermore, the original image color space conversion and noise reduction process is as follows:

[0014] Use industrial cameras to collect original images of target bricks and environmental background in real time;

[0015] Convert the acquired image from RGB color space to YCbCr color space;

[0016] The three color components in the YCbCr color space are weighted as follows;

[0017] plmage=α×Y+β×Cb+γ×Cr

[0018] Where: α, β, γ are component weighting factors, Y, Cb, Cr are three components;

[0019] The image is filtered using a Gaussian kernel to remove image noise.

[0020] Furthermore, the process of filtering the image using the Gaussian kernel to remove image noise is as follows:

[0021] Determine the standard deviation σ of the Gaussian kernel and the size s of the Gaussian kernel;

[0022] Align the center of the Gaussian kernel and use the Gaussian function to calculate the value of each kernel element. The formula of the two-dimensional Gaussian function is:

[0023]

[0024] Normalize the Gaussian kernel by dividing each element by all elements of the kernel:

[0025]

[0026] Where: i and j are the position offsets relative to the center of the Gaussian kernel;

[0027] The convolution formula is used to convolve the Gaussian kernel with the image, aligning the center of the kernel with each pixel position in the image, and calculating the sum of the element products of the Gaussian kernel and the area it covers to obtain the new pixel value at that position. The Gaussian convolution formula is as follows:

[0028]

[0029] Where: I(x,y) is the original image; I'(x,y) is the processed image, and m is the Gaussian kernel radius.

[0030] Furthermore, the process of feature extraction and spatial coordinate transformation of the target brick is as follows:

[0031] Calibrate the camera: obtain the camera parameter matrix and distortion coefficient;

[0032] Correction of camera distortion: Based on the parameter matrix and distortion coefficients obtained in the previous step, the image is converted from distorted coordinates to corrected coordinates;

[0033] Transformation of the camera coordinate system: first transform the image coordinate system to the camera coordinate system, and then transform the camera coordinate system to the world coordinate system.

[0034] Furthermore, the specific process of the camera distortion correction is as follows:

[0035] Establish the camera distortion model, including radial distortion and tangential distortion, where:

[0036] xdistorted =x(1+k1r 2 +k2r 4 +k3r 6 )

[0037] y distorted =y(1+k1r 2 +k2r 4 +k3r 6 )

[0038] Radial distortion is the distortion caused by the spherical surface of the lens, and the correction formula is:

[0039] Where: (x, y) is the undistorted coordinate, (x distorted ,y distorted ) is the distorted coordinate, k1, k2, k3 are the radial distortion coefficients, is the radial distance of the normalized coordinates;

[0040] Tangential distortion is caused by the lens and the image not being completely parallel. The correction formula is:

[0041] x corrected =x distorted +[2p1y+p2(r 2 +2x 2 )]

[0042] y corrected =y distorted +[p1(r 2 +2y 2 )+2p2x]

[0043] Where p1, p2 are tangential distortion coefficients;

[0044] Use the camera intrinsic parameter matrix K to map the corrected normalized image coordinates to pixel coordinates:

[0045]

[0046] Where: K is the intrinsic parameter matrix of the camera; (u, e) is the image coordinate.

[0047] Furthermore, the process of transforming the spatial coordinates is as follows:

[0048] Use the camera intrinsic parameter matrix K to transform the image coordinates (u, e) of the target object and the corresponding depth Z c , converted to camera coordinates (X c ,Y c ,Z c ), where depth Z c The calculation formula is as follows:

[0049]

[0050] Where: f is the focal length of the camera, Z c is the depth of the target, A real and A image They are the actual area of ​​the target and the image area;

[0051] Use the rotation matrix R and the translation vector t to transform the camera coordinate system (X c ,Y c ,Z c ) is converted to the world coordinate system (x t ,y t ,z t ), the conversion formula is:

[0052]

[0053] Where: R is a 3×3 rotation matrix; t is a 3×1 translation vector.

[0054] Furthermore, the coordinate difference between the robot and the target position is calculated based on the fusion positioning mechanism. The specific process is as follows:

[0055] Design the inertial measurement unit and encoder fusion positioning mechanism;

[0056] Determine the heading angle Δθ based on the fusion positioning mechanism;

[0057] Obtain the axial displacement of the encoder in the x and y directions based on the heading angle and the target posture;

[0058] Based on the axial displacement of the encoder, calculate the linear movement distance of the encoder;

[0059] Based on the linear movement distance of the encoder, the corresponding omnidirectional wheel displacement increment is obtained.

[0060] Furthermore, based on the fusion positioning mechanism, the heading angle Δθ is determined, and the main process is as follows:

[0061] Temperature measurement: Based on the temperature sensor, the temperature of the environment where the masonry robot is located is measured in real time;

[0062] Temperature correction: Correct the IMU data based on the temperature sensor readings;

[0063] Heading angle judgment: Calculate the heading angle based on the temperature sensor reading. The formula is as follows:

[0064]

[0065]

[0066] Where: θ imu Acquired in real time by inertial measurement unit; θenc Calculated by the encoder; T is the temperature sensor reading, T threshold is the set temperature threshold; L l and L r is the linear movement distance of the encoder.

[0067] Loop execution: repeatedly measure the temperature and calculate the heading angle in real time;

[0068] Furthermore, the component velocity of the masonry robot in the XY direction is obtained based on the principle of the artificial potential field method, and the main process is as follows:

[0069] Based on machine vision and laser radar, the coordinates of the target brick (x t ,y t ) and obstacle coordinates (x ob ,y ob );

[0070] Based on the principle of artificial potential field method, generate the virtual gravitational force F of the robot on the target brick att and the virtual repulsive force F of the obstacle rep , and obtain the resultant force F of the two by calculation;

[0071] Based on Newton's second law, when the robot output power P is constant, the virtual force F is converted into the speed v of the masonry robot. The conversion formula is as follows:

[0072]

[0073] Where: v max The maximum movement speed that the robot can achieve, which is determined by the motor drive power;

[0074] Decompose the velocity v orthogonally to obtain the linear velocity v of the masonry robot in the x and y directions x and v y , the calculation formula is as follows:

[0075]

[0076] In the formula, θ is the current heading angle of the robot, and Δθ is the heading angle increment of the robot;

[0077] Based on the robot's motion time t and heading angle increment Δθ, assuming that it is subjected to uniform friction during driving, the angular velocity ω of the masonry robot is calculated as:

[0078]

[0079] Where: Δx, Δy are the distances that the robot positioning center moves in the x and y directions.

[0080] Furthermore, the rotation speed of the masonry robot under four-wheel control is obtained according to the inverse kinematic analysis. The specific process includes the following:

[0081] The speeds of the four wheels v1, v2, v3, and v4 are calculated based on inverse kinematics analysis:

[0082]

[0083] Where: J is the Jacobian matrix of the masonry robot drive mechanism, and its value is:

[0084]

[0085] Based on the calculated v1, v2, v3, and v4, the motion control of the masonry robot can be realized.

[0086] Based on the same inventive concept, a motion control method of an intelligent masonry robot of the present invention comprises:

[0087] The image processing module performs color space conversion on the original images of the target brick and the environmental background collected by the camera in real time, determines the weighted processing factor of the color component by comparing the conversion effects, and performs noise reduction on the image;

[0088] The coordinate extraction module is used to extract features and perform spatial coordinate calculations on the target bricks in the processed image to obtain the spatial position information of the target bricks;

[0089] The fusion positioning module is used to solve the heading angle and current position coordinate information of the masonry robot in real time, and obtain the robot's motion control bias by calculating the coordinate difference between the masonry robot and the target position;

[0090] The motion control module is used to obtain the virtual force acting on the masonry robot based on the principle of artificial potential field method, convert it into the component velocity in the XY direction, and further obtain the rotation speed of the masonry robot under four-wheel control according to the inverse motion analysis results of the masonry robot.

[0091] Beneficial effects: Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0092] The present invention collects target bricks and environmental background images in real time based on machine vision, and through YCbCr color space conversion and component weighting, it not only reduces the impact of light changes on the construction site on image processing, but also helps to make the difference between the brick target and the background significant, thereby improving the target recognition accuracy of the robot;

[0093] The present invention is based on a combination of an inertial measurement unit and a transverse and longitudinal encoder positioning mechanism, dynamically adjusts the acquisition source of heading angle data in a high temperature environment, reduces the tracking error of the heading angle, enhances the robustness of the system, and improves the overall positioning accuracy of the masonry robot.

[0094] Based on the positioning model of the masonry robot, the present invention further incorporates the artificial potential field method to construct a motion control algorithm, obtains surrounding obstacle information in real time through a laser radar, realizes the prediction of obstacles during the robot's movement, and improves control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 This is a flow chart of a motion control method for an intelligent masonry robot disclosed in Embodiment 1 of the present invention;

[0096] FIG2 is a schematic diagram showing a comparison of color space processing disclosed in Example 1 of the present invention;

[0097] FIG3 is a schematic diagram showing a comparison of images before and after denoising according to Embodiment 1 of the present invention;

[0098] Figure 4 The positioning model and schematic diagram of the masonry robot disclosed in Embodiment 1 of the present invention;

[0099] Figure 5 This is a schematic diagram of the heading angle determination process disclosed in Embodiment 1 of the present invention;

[0100] Figure 6 This is a schematic diagram of the principle of the artificial potential field disclosed in Example 1 of the present invention;

[0101] Figure 7 This is a schematic diagram of the experimental environment disclosed in Example 1 of the present invention;

[0102] Figure 8 This is a comparison diagram of the optimal planning paths disclosed in Example 1 of the present invention;

[0103] Fig. 9 This is a schematic structural diagram of an autonomous masonry robot motion control system based on vision guidance disclosed in Example 2 of the present invention. DETAILED DESCRIPTION

[0104] The technical solution of the present invention is described in detail below in conjunction with specific implementation methods and the accompanying drawings of the specification.

[0105] Example 1

[0106] The motion control method of an intelligent masonry robot of the present invention can effectively improve the recognition accuracy of the masonry robot for target bricks and the positioning accuracy during the motion process, realize the prediction of obstacles during the robot motion process, and improve the control efficiency. Figure 1As shown, the method comprises the following steps:

[0107] S1. Perform color space conversion on the original images of the target brick and the environmental background collected by the camera in real time, determine the weighted processing factor of the color component by comparing the conversion effects, and perform noise reduction on the image.

[0108] The details are as follows:

[0109] S1.1, the original image color space conversion and noise reduction process is as follows:

[0110] S1.1.1. Use industrial cameras to collect original images of target bricks and environmental background in real time;

[0111] S1.1.2, converting the acquired image from RGB color space to YCbCr color space;

[0112] S1.1.3. Weight the color components in the YCbCr color space as follows:

[0113] plmage=α×Y+β×Cb+γ×Cr

[0114] Where: α, β, γ are component weighting factors, Y, Cb, Cr are three components;

[0115] S1.1.4, filter the image using a Gaussian kernel to remove image noise, including the following steps:

[0116] S1.1.4.1. Determine the standard deviation σ and size s of the Gaussian kernel;

[0117] S1.1.4.2. Align the center of the Gaussian kernel and use the Gaussian function to calculate the value of each kernel element. The formula of the two-dimensional Gaussian function is:

[0118]

[0119] S1.1.4.3. Normalize the Gaussian kernel by dividing each element by all elements of the kernel:

[0120]

[0121] Where: i and j are the position offsets relative to the center of the Gaussian kernel;

[0122] S1.1.4.4. Use the convolution formula to convolve the Gaussian kernel with the image, align the center of the kernel with each pixel position in the image, and calculate the sum of the element-wise products of the Gaussian kernel and the area it covers to obtain the new pixel value at that position. The Gaussian convolution formula is as follows:

[0123]

[0124] Where: I(x,y) is the original image; I'(x,y) is the processed image; m is the Gaussian kernel radius.

[0125] In this embodiment, α=0.472, β=0.124, γ=0.404 are used as component weighting factors, the original brick image shown in Figure 2(a) is converted into a color space, and the Y, Cb, and Cr color components are weighted to obtain the transformed Figure 2(b).

[0126] In order to effectively segment the bricks, a 5×5 Gaussian kernel is used to filter the image to remove noise, thereby reducing misidentification and missed identification caused by high-frequency noise. The grayscale images before and after processing are as follows: Figure 3(a) and 3(b) Comparing Figure 2 and Figure 3, it can be seen that the processed original brick image not only reduces the impact of light changes on the target image at the construction site, but also helps to highlight the difference between the brick target and the background, thereby improving the robot's target recognition accuracy.

[0127] S2, extracting features and calculating spatial coordinates of the target brick based on the processed image to obtain spatial position information of the target brick;

[0128] The details are as follows:

[0129] S2.1. Feature extraction of target bricks, including the following steps:

[0130] S2.1.1. Calibrate the camera: obtain the camera parameter matrix and distortion coefficient;

[0131] S2.1.2, Correction of camera distortion: Based on the parameter matrix and distortion coefficients obtained in the previous step, the image is converted from distorted coordinates to corrected coordinates, including the following steps:

[0132] S2.1.2.1. Establish the camera distortion model, including radial distortion and tangential distortion, where:

[0133] Radial distortion is the distortion caused by the spherical surface of the lens, and the correction formula is:

[0134] x distorted =x(1+k1r 2 +k2r 4 +k3r 6 )

[0135] y distorted =y(1+k1r 2 +k2r 4 +k3r 6 )

[0136] Where: (x, y) is the undistorted coordinate, (x distorted ,y distorted ) is the distorted coordinate, k1, k2, k3 are the radial distortion coefficients, is the radial distance of the normalized coordinates;

[0137] Tangential distortion is caused by the lens and the image not being completely parallel. The correction formula is:

[0138] x corrected =x distorted +[2p1y+p2(r 2 +2x 2 )]

[0139] y corrected =y distorted +[p1(r 2 +2y 2 )+2p2x]

[0140] Where p1, p2 are tangential distortion coefficients;

[0141] S2.1.2.2 Use the camera intrinsic parameter matrix K to map the corrected normalized image coordinates to pixel coordinates:

[0142]

[0143] Where: K is the intrinsic parameter matrix of the camera; (u, e) is the image coordinate.

[0144] S2.2, transforming the spatial coordinates of the target brick, specifically including the following steps:

[0145] S2.2.1. Use the camera intrinsic parameter matrix K to transform the image coordinates (u, e) and the corresponding depth Z of the target object. c , converted to camera coordinates (X c ,Y c ,Z c ), where depth Z c The calculation formula is as follows:

[0146]

[0147] Where: f is the focal length of the camera, Z c is the depth of the target, A real and A image They are the actual area of ​​the target and the image area;

[0148] S2.2.2.2, use the rotation matrix R and the translation vector t to transform the camera coordinate system (X c ,Y c ,Z c) is converted to the world coordinate system (x t ,y t ,z t ), the conversion formula is:

[0149]

[0150] Where: R is a 3×3 rotation matrix; t is a 3×1 translation vector.

[0151] S3, based on the fusion positioning mechanism, the heading angle and current position coordinate information of the masonry robot are solved in real time, and the robot's motion control bias is obtained by calculating the coordinate difference between the masonry robot and the target position;

[0152] The details are as follows:

[0153] S3.1, solving the coordinate difference between the robot and the target position based on the fusion positioning mechanism;

[0154] S3.1.1. Design an inertial measurement unit and encoder fusion positioning mechanism;

[0155] S3.1.2, determining the heading angle Δθ based on the fusion positioning mechanism, including the following steps;

[0156] S3.1.2.1, Temperature measurement: Real-time measurement of the ambient temperature of the masonry robot based on the temperature sensor;

[0157] S3.1.2.2 Temperature correction: Correct the IMU data based on the temperature sensor readings;

[0158] S3.1.2.3, Heading angle judgment: Calculate the heading angle based on the temperature sensor reading. The formula is as follows:

[0159]

[0160] Where: θ imu Acquired in real time by inertial measurement unit; θ enc Calculated by the encoder; T is the temperature sensor reading, T threshold is the set temperature threshold; L l and L r The linear movement distance of the encoder;

[0161] In this embodiment, the heading angle determination flow chart is as follows: Figure 4 shown.

[0162] S3.1.2.4. Loop execution: Repeat the temperature measurement and calculate the heading angle in real time.

[0163] S3.1.3. Obtain the axial displacement of the encoder in the x and y directions based on the heading angle and the target posture, as follows:

[0164] In this embodiment, Figure 5 As shown in the figure, m is the encoder number in the horizontal positioning mechanism, l and r are the encoder numbers in the two longitudinal positioning mechanisms, R m , R l , R r The distances of the three encoders from the positioning center are known. Suppose the current position P of the masonry robot i =[x i ,y i ,β i ] T , β i is the current heading angle, then the coordinates of encoders m, r, and l in the world coordinate system are:

[0165]

[0166] When the masonry robot moves from the current position P i Move to the target position P j When , its heading angle is Δθ, and the positioning center moves Δx and Δy in the world coordinate system, then the target position P j for:

[0167]

[0168]

[0169] Where: p mj 、p rj 、p lj are the target positions of each encoder respectively.

[0170] Assume that the displacements of encoders m, r, and l in the x direction in the world coordinate system are Δx m , Δx r , Δx l , the displacements in the y direction are Δy m , Δy r , Δy l , then we can get:

[0171]

[0172] S3.1.4. Calculate the linear movement distance of the encoder based on the axial displacement of the encoder, as follows;

[0173] Since the moving distance of the masonry robot per unit time is very small, the moving trajectory of the encoder is approximately regarded as Figure 5 The straight line shown in the figure, then the robot's unique absolute value of the straight line distance in the world coordinate system is L m , L r , Ll available:

[0174]

[0175] S3.1.5. Based on the linear movement distance of the encoder, obtain the corresponding omnidirectional wheel displacement increment.

[0176] The straight-line distance L in the world coordinate system and the base coordinate system m The same, but the robot's moving component is in the base coordinate system, so the straight-line distance L m Orthogonal decomposition to the base coordinate system shows that the actual moving distance of the omnidirectional wheel comes from the horizontal direction of the machine, so the displacement increments Δx and Δy of the omnidirectional wheel corresponding to the encoders m and r are:

[0177]

[0178] In this embodiment, based on the combination of the inertial measurement unit and the horizontal and vertical encoder positioning mechanism, the Figure 5 The process shown determines the heading angle and dynamically adjusts the source of the heading angle data in a high temperature environment, thereby reducing the tracking error of the heading angle, enhancing the robustness of the system, and improving the overall positioning accuracy of the masonry robot.

[0179] S4. Based on the principle of artificial potential field method, the virtual force acting on the masonry robot is obtained, which is converted into the component velocity in the XY direction. According to the inverse motion analysis results of the masonry robot, its rotation speed under four-wheel control is further obtained.

[0180] The details are as follows:

[0181] S4.1. Obtaining the component velocity of the masonry robot in the XY direction based on the principle of the artificial potential field method includes the following steps:

[0182] S4.1.1. Obtain the target brick coordinates (x t ,y t ) and obstacle coordinates (x ob ,y ob );

[0183] S4.1.2, based on the principle of artificial potential field method, such as Figure 6 As shown, the robot generates a virtual gravitational force F on the target brick. att and the virtual repulsive force F of the obstacle rep , and obtain the resultant force F of the two by calculation;

[0184] In this embodiment, the motion control algorithm is constructed by incorporating the artificial potential field method, and the laser radar is used to obtain the surrounding obstacle information in real time, so that the obstacle prediction during the robot movement is realized and the control efficiency is improved.

[0185] S4.1.3. Based on Newton's second law, when the robot output power P is constant, the virtual resultant force F is converted into the speed v of the masonry robot. The conversion formula is as follows:

[0186]

[0187] Where: V max The maximum movement speed that the robot can achieve, which is determined by the motor drive power;

[0188] S4.1.4. Decompose the velocity v orthogonally to obtain the linear velocity v of the masonry robot in the x and y directions x and v y , the calculation formula is as follows:

[0189]

[0190] In the formula, θ is the current heading angle of the robot, and Δθ is the heading angle increment of the robot;

[0191] S4.1.5. Based on the robot's motion time t and heading angle increment Δθ, assuming that it is subject to uniform friction during movement, calculate the angular velocity ω of the masonry robot:

[0192]

[0193] Where: Δx, Δy are the distances that the robot positioning center moves in the x and y directions.

[0194] S4.2, according to the inverse kinematic analysis of the masonry robot, the rotation speed of the robot under four-wheel control is obtained, including the following steps:

[0195] S4.2.1. Calculate the rotation speeds of the four wheels v1, v2, v3, and v4 based on inverse kinematics analysis:

[0196]

[0197] Where: J is the Jacobian matrix of the masonry robot drive mechanism, and its value is:

[0198]

[0199] S4.2.2. Based on the calculated v1, v2, v3, and v4, the motion control of the masonry robot can be realized.

[0200] The technical solution of the present invention is, first, to perform color space conversion and noise reduction processing on the original images of the target brick and the environmental background collected by the camera in real time; secondly, to perform feature extraction and spatial coordinate transformation on the target brick based on the processed image to obtain the spatial pose information of the target brick; then, to solve the heading angle and current position coordinate information of the masonry robot in real time based on the fusion positioning mechanism to obtain the motion control bias of the robot; finally, based on the principle of the artificial potential field method, to obtain the virtual resultant force received by the masonry robot, and further obtain its rotation speed under four-wheel control according to the inverse motion analysis results of the masonry robot. Through the above steps, the method of the present invention effectively improves the recognition accuracy of the masonry robot for the target brick and the positioning accuracy during the movement process, realizes the prediction of obstacles during the robot's movement, and improves the control efficiency.

[0201] In order to verify the effectiveness of the motion control algorithm of the masonry robot under vision guidance, this paper Figure 7 The experimental test was carried out in the environment shown. A target brick was placed about 2.2 meters in front of the robot, and there was a column obstacle between it and the brick. The robot needed to move quickly to the destination and effectively avoid the obstacle in front under the guidance of the target brick based on vision.

[0202] In order to verify the superiority of the algorithm in this paper, its path is compared with the rule-guided path and the ideal optimal path. At the same time, considering the uncertain sliding of the robot during the operation and control process, 10 independent experiments are conducted for the two methods respectively. The optimal path results are as follows: Figure 8 shown.

[0203] It can be seen from the figure that compared with rule-guided motion control, the method in this paper shows better smoothness, flexibility, higher safety when avoiding obstacles, and is closer to the theoretical optimal path. This is mainly because the robot's lateral and longitudinal positioning system improves the accuracy of motion control, and the artificial potential field method realizes the prediction of the robot's obstacle avoidance, thereby improving the obstacle avoidance efficiency.

[0204] Table 1 shows the comparison between the paths obtained by the two motion control methods and the ideal optimal path. It can be seen from the table that compared with rule-guided motion control, the average maximum error of potential field-guided control is reduced by 88.38%, the average error is reduced by 84.86%, and the average running time is reduced by 8.92%, which further verifies the effectiveness and superiority of the motion control method in this paper in terms of accuracy and efficiency.

[0205] Table 1:

[0206]

[0207] Example 2

[0208] like Fig. 9As shown, this example provides a system for determining and optimizing design parameters of a filling arm balancing mechanism, including:

[0209] The image processing module performs color space conversion on the original images of the target brick and the environmental background collected by the camera in real time, determines the weighted processing factor of the color component by comparing the conversion effects, and performs noise reduction on the image;

[0210] The coordinate extraction module is used to extract features and perform spatial coordinate calculations on the target bricks in the processed image to obtain the spatial position information of the target bricks;

[0211] The fusion positioning module is used to solve the heading angle and current position coordinate information of the masonry robot in real time, and obtain the robot's motion control bias by calculating the coordinate difference between the masonry robot and the target position;

[0212] The motion control module is used to obtain the virtual force acting on the masonry robot based on the principle of artificial potential field method, convert it into the component velocity in the XY direction, and further obtain the rotation speed of the masonry robot under four-wheel control according to the inverse motion analysis results of the masonry robot.

[0213] In an optional embodiment, the motion control method of an autonomous masonry robot based on vision guidance includes: a) performing color space conversion and noise reduction processing on the original images of the target brick and the environmental background collected by the camera in real time; b) performing feature extraction and spatial coordinate transformation on the target brick based on the processed image to obtain the spatial pose information of the target brick; c) solving the heading angle and current position coordinate information of the masonry robot in real time based on the fusion positioning mechanism to obtain the motion control bias of the robot; d) obtaining the virtual resultant force acting on the masonry robot based on the principle of artificial potential field method, and further obtaining its rotation speed under four-wheel control according to the inverse motion analysis results of the masonry robot.

Claims

1. A motion control method for an intelligent masonry robot, characterized in that: include: Perform color space conversion on the original images of the target brick and the environmental background collected by the camera in real time, determine the weighted processing factor of the color component by comparing the conversion effects, and perform noise reduction on the image; Based on the processed image, feature extraction and spatial coordinate transformation of the target brick are performed to obtain the spatial position information of the target brick; Based on the fusion positioning mechanism, the heading angle and current position coordinate information of the masonry robot are solved in real time, and the robot's motion control bias is obtained by calculating the coordinate difference between the masonry robot and the target position; Based on the principle of artificial potential field method, the virtual force acting on the masonry robot is obtained and converted into the component velocity in the XY direction. According to the inverse motion analysis results of the masonry robot, its rotation speed under four-wheel control is further obtained.

2. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: The main process of the original image color space conversion and noise reduction processing is as follows: Use industrial cameras to collect original images of target bricks and environmental background in real time; Convert the acquired image from RGB color space to YCbCr color space; The color components in the YCbCr color space are weighted as follows: plmage=α×Y+β×Cb+γ×Cr Where: α, β, γ are component weighting factors, Y, Cb, Cr are three components; The image is filtered using a Gaussian kernel to remove image noise.

3. The motion control method of an intelligent masonry robot according to claim 2, characterized in that: The process of filtering an image using a Gaussian kernel to remove image noise is as follows: Determine the standard deviation σ of the Gaussian kernel and the size s of the Gaussian kernel; Align the center of the Gaussian kernel and use the Gaussian function to calculate the value of each kernel element. The formula of the two-dimensional Gaussian function is: Normalize the Gaussian kernel by dividing each element by all elements of the kernel: Where: i and j are the position offsets relative to the center of the Gaussian kernel; The convolution formula is used to convolve the Gaussian kernel with the image, aligning the center of the kernel with each pixel position in the image, and calculating the sum of the element products of the Gaussian kernel and the area it covers to obtain the new pixel value at that position. The Gaussian convolution formula is as follows: Where: I(x,y) is the original image; I'(x,y) is the processed image; m is the Gaussian kernel radius.

4. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: The specific process of feature extraction of the target brick is as follows: Calibrate the camera: obtain the camera parameter matrix and distortion coefficient; Correction of camera distortion: Based on the parameter matrix and distortion coefficients obtained in the previous step, the image is converted from distorted coordinates to corrected coordinates.

5. The motion control method of an intelligent masonry robot according to claim 4, characterized in that: The specific process of camera distortion correction is as follows: Establish the camera distortion model, including radial distortion and tangential distortion, where: Radial distortion is the distortion caused by the spherical surface of the lens, and the correction formula is: x distorted =x(1+k1r 2 +k2r 4 +k3r 6 ) and distorted =y(1+k1r 2 +k2r 4 +k3r 6 ) Where: (x, y) is the undistorted coordinate, (x distorted ,y distorted ) is the distorted coordinate, k1, k2, k3 are the radial distortion coefficients, is the radial distance of the normalized coordinates; Tangential distortion is caused by the lens and the image not being completely parallel. The correction formula is: x corrected =x distorted +[2p1y+p2(r 2 +2x 2 )] <h2 style=";text-align:left;direction:ltr">y<h2 style=";text-align:left;direction:ltr"> corrected <h2 style=";text-align:left;direction:ltr"> =y<h2 style=";text-align:left;direction:ltr"> distorted <h2 style=";text-align:left;direction:ltr"> +[p1(r<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> +2y<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> )+2p2x] Where p1, p2 are tangential distortion coefficients; Use the camera intrinsic parameter matrix K to map the corrected normalized image coordinates to pixel coordinates: Where: K is the intrinsic parameter matrix of the camera; (u, e) is the image coordinate.

6. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: The transformation of the spatial coordinates includes the following: Use the camera intrinsic parameter matrix K to transform the image coordinates (u, e) of the target object and the corresponding depth Z c , converted to camera coordinates (X c ,Y c ,Z c ), where depth Z c The calculation formula is as follows: Where: f is the focal length of the camera, Z c is the depth of the target, A real and A image They are the actual area of ​​the target and the image area; Use the rotation matrix R and the translation vector t to transform the camera coordinate system (X c ,Y c ,Z c ) is converted to the world coordinate system (x t ,y t ,z t ), the conversion formula is: Where: R is a 3×3 rotation matrix; t is a 3×1 translation vector.

7. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: Based on the fusion positioning mechanism, the coordinate difference between the robot and the target position is solved. The main process is as follows: Design the inertial measurement unit and encoder fusion positioning mechanism; Determine the heading angle Δθ based on the fusion positioning mechanism; Obtain the axial displacement of the encoder in the x and y directions based on the heading angle and the target posture; Based on the axial displacement of the encoder, calculate the linear movement distance of the encoder; Based on the linear movement distance of the encoder, the corresponding omnidirectional wheel displacement increment is obtained.

8. The motion control method of an intelligent masonry robot according to claim 7, characterized in that: Based on the fusion positioning mechanism, the heading angle Δθ is determined. The main process is as follows: Temperature measurement: Based on the temperature sensor, the temperature of the environment where the masonry robot is located is measured in real time; Temperature correction: Correct the IMU data based on the temperature sensor readings; Heading angle judgment: Calculate the heading angle based on the temperature sensor reading. The formula is as follows: Where: θ imu Acquired in real time by inertial measurement unit; θ enc Calculated by the encoder; T is the temperature sensor reading, T threshold is the set temperature threshold; L l and L r The linear movement distance of the encoder; Loop execution: Repeatedly measure the temperature and calculate the heading angle in real time.

9. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: Based on the principle of artificial potential field method, the velocity component of the masonry robot in the XY direction is obtained. The main process is as follows: Based on machine vision and laser radar, the coordinates of the target brick (x t ,y t ) and obstacle coordinates (x ob ,y ob ); Based on the principle of artificial potential field method, generate the virtual gravitational force F of the robot on the target brick att and the virtual repulsive force F of the obstacle rep , and obtain the resultant force F of the two by calculation; Based on Newton's second law, when the robot output power P is constant, the virtual force F is converted into the speed v of the masonry robot. The conversion formula is as follows: Where: v max The maximum movement speed that the robot can achieve, which is determined by the motor drive power; Decompose the velocity v orthogonally to obtain the linear velocity v of the masonry robot in the x and y directions x and v y , the calculation formula is as follows: Where: θ is the current heading angle of the robot, Δθ is the heading angle increment of the robot; Based on the robot's motion time t and heading angle increment Δθ, assuming that it is subjected to uniform friction during driving, the angular velocity ω of the masonry robot is calculated as: Where: Δx, Δy are the distances that the robot positioning center moves in the x and y directions.

10. The motion control method of an intelligent masonry robot according to claim 1, characterized in that: The speed of the masonry robot under four-wheel control is obtained based on the inverse kinematic analysis. The specific process includes: the following: The speeds of the four wheels v1, v2, v3, and v4 are calculated based on inverse kinematics analysis: Where: J is the Jacobian matrix of the masonry robot drive mechanism, and its value is: Based on the calculated v1, v2, v3, and v4, the motion control of the masonry robot can be achieved.

Citation Information

Patent Citations

  • Mobile robot path planning method based on improved artificial potential field method

    CN108693879A

  • Depth extraction method based on monocular vision

    CN109035320A

  • Image processing apparatus, image processing method, and storage medium

    CN109391783A

  • Wall building robot butting method and system

    CN110424754A

  • Monocular camera and projector combined calibration method

    CN112598747A