A flexible grasping method for a manipulator with automatic workpiece conversion
Through the combination of deep learning and tactile sensors, the fusion of visual and tactile information of the workpiece is achieved, the grasping strategy of the manipulator is optimized in real time, the problem of high failure rate in grasping complex workpieces is solved, and the automation level of the production line is improved.
Patent Information
- Application Number
- CN202411010044.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In industrial automated production lines, it is difficult for robots to effectively identify and grasp workpieces with complex shapes and diverse materials. Existing visual and tactile sensors cannot be effectively integrated, resulting in a high grasping failure rate and a lack of adaptability.
The deep learning convolutional neural network is used to extract the visual features of the workpiece, combined with the support vector machine for classification and identification, the tactile sensor array is used to collect surface pressure distribution data, the surface texture features are extracted through spectrum analysis, the hardness and friction coefficient are determined based on material information, and the machinery is adjusted. The movement trajectory and grasping force distribution of the fingers optimize the grasping parameters in real time to achieve adaptive grasping of different workpieces.
It achieves accurate identification and flexible grasping of complex workpieces, improves the flexibility and safety of grasping, reduces the risk of workpiece damage, and improves the flexibility and intelligence of the production line.
Smart Images

Figure CN118544365B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of information technology, and in particular to a flexible grasping method of a manipulator for automatic conversion of workpieces. Background Art
[0002] In industrial automation production lines, some workpieces have complex shapes and diverse materials, which poses a challenge to the flexible grasping of manipulators. Existing visual sensors can identify the appearance characteristics of workpieces, but their perception of microscopic properties such as surface texture and hardness is limited. Although tactile sensors can sense the surface characteristics of workpieces, it is difficult to fully grasp the overall shape of workpieces. The two sensors work independently and cannot achieve effective information fusion. In addition, the adjustment of servo motor parameters often relies on preset programs and lacks real-time adaptability. When facing unknown workpieces, it is difficult for manipulators to flexibly select grasping strategies according to the current situation. This leads to a high grasping failure rate when handling new or special-shaped workpieces, affecting production efficiency. How to organically combine visual and tactile information and feed back the fused data to the servo system in real time to achieve accurate identification and flexible grasping of complex workpieces? At the same time, how to build an adaptive decision-making mechanism so that the manipulator can dynamically adjust the grasping strategy according to multi-source sensor information and improve the adaptability to various types of workpieces. Solving these problems is crucial to improving the flexibility and intelligence level of automated production lines. Summary of the invention
[0003] The present invention provides a flexible grasping method of a manipulator for automatically converting a workpiece, which mainly includes:
[0004] Use deep learning convolutional neural network to process workpiece images, extract visual features of workpieces, including shape, texture and edge, and use support vector machine to classify and identify workpieces to obtain category information and key parameters of workpieces;
[0005] Using a tactile sensor array to collect pressure distribution data on the workpiece surface, performing spectrum analysis on the pressure distribution data, extracting surface texture features and roughness of the workpiece, wherein the surface texture features include directional features and periodic features, and combining the material information of the workpiece to determine the hardness grade and friction coefficient of the workpiece surface;
[0006] According to the regularity and contrast of the workpiece surface texture, determine whether there are abnormal areas on the workpiece surface, including local protrusions, depressions or defects. If there are such abnormal areas, send the position, shape, size and depth of the abnormal areas to the grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger;
[0007] According to the category information, hardness grade and friction coefficient of the workpiece, the workpiece model with the highest matching degree is retrieved from a pre-established workpiece feature database, and the standard grasping parameters of the workpiece model are obtained, including the number, length, joint degrees of freedom, grasping force, grasping position and grasping posture of the robot fingers, and the standard grasping parameters are adjusted to avoid the abnormal area in combination with the information of the abnormal area;
[0008] Taking the center of gravity position of the workpiece, the friction coefficient and the range of motion of the manipulator as constraints, the standard grasping parameters are optimized to calculate the optimal grasping force configuration and the optimal grasping trajectory;
[0009] The optimal gripping force configuration and the optimal gripping trajectory are converted into motion parameters of each joint of the manipulator through an inverse kinematics algorithm, and the speed, acceleration and torque of the manipulator finger are adjusted in real time according to the weight, hardness and friction coefficient of the workpiece;
[0010] The tactile sensor collects pressure data on the contact surface between each finger and the workpiece, including the size and direction of the pressure, and adjusts the gripping force of the mechanical finger in real time to achieve adaptive flexible gripping of workpieces with different hardness, friction coefficient, and shape;
[0011] Monitor the contact area and force state data of each finger and the workpiece, and if it is detected that the contact area is smaller than a preset threshold or the force is greater than a preset threshold, adjust the position, posture and force output of the finger;
[0012] The force / torque data during the grasping process is obtained through the force / torque sensor on the robotic wrist, and the tilt angle and offset distance are calculated based on the force / torque data. If it is detected that the tilt angle is greater than the preset tilt angle threshold, or the offset distance is greater than the preset offset distance threshold, the visual servo control is triggered, and the robot posture is adjusted according to the real-time image of the workpiece to align with the center of gravity of the workpiece.
[0013] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:
[0014] The present invention provides a flexible grasping method for a manipulator with automatic workpiece conversion. The method extracts the visual features of the workpiece through a deep learning convolutional neural network and classifies and identifies the workpiece in combination with a support vector machine. The method can accurately and quickly determine the category and key parameters of the workpiece, and provide basic information for subsequent processing. The method uses a tactile sensor array to collect the pressure distribution on the workpiece surface. Combined with spectrum analysis, the method can not only quantify the surface texture features and roughness, but also further determine the hardness grade and friction coefficient of the workpiece surface, which is crucial for selecting an appropriate grasping strategy. By analyzing the regularity and contrast of the workpiece surface texture, the method can automatically detect abnormal areas to avoid damage to the workpiece during grasping, and adjust the motion trajectory and grasping force distribution of the manipulator finger according to the abnormal area. The method retrieves the most matching workpiece model according to the workpiece feature database, and customizes the settings. The number, length, and joint freedom of the robot fingers are taken into consideration, and the grasping parameters are adjusted in combination with the abnormal area information to ensure safe and efficient grasping. Taking into account the center of gravity position, friction coefficient, and range of motion of the manipulator, the grasping force configuration and trajectory are optimized to ensure the stability of the grasping process and reduce the risk of workpiece deviation and tilt. The grasping force is adjusted in real time through tactile feedback to achieve adaptive grasping of workpieces with different hardness, friction coefficient, and shape, thereby improving the flexibility and safety of grasping. The contact area and force state are monitored to ensure good contact between the fingers and the workpiece to avoid damage to the workpiece or grasping failure due to uneven force. The grasping process is monitored through a force / torque sensor. Once it is detected that the workpiece deflects or tilts beyond the threshold, the visual servo control is immediately started to adjust the manipulator position to ensure that the workpiece is stable and maintains the correct grasping posture. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flow chart of a flexible grasping method of a manipulator with automatic workpiece conversion.
[0016] Figure 2 It is a schematic diagram of a flexible grasping method of a manipulator for automatic conversion of workpieces according to the present invention.
[0017] Figure 3 It is another schematic diagram of a flexible grasping method of a manipulator with automatic workpiece conversion according to the present invention. DETAILED DESCRIPTION
[0018] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0019] like Figure 1-3In this embodiment, a flexible grasping method of a manipulator for automatic conversion of a workpiece may specifically include:
[0020] Step S101, using a deep learning convolutional neural network to process the workpiece image, extracting the visual features of the workpiece, including shape, texture and edge, and using a support vector machine to classify and identify the workpiece to obtain the category information and key parameters of the workpiece.
[0021] The image data of the workpiece is obtained, and the image data includes visual information of the workpiece; based on the image data, a deep convolutional neural network is used to extract multi-scale features of the workpiece to obtain visual features of the workpiece; based on the obtained visual features, a support vector machine is used to classify and identify the workpiece to determine the category information of the workpiece; if the category information of the workpiece is determined, key parameters of the workpiece of the corresponding category are obtained from a pre-established workpiece parameter database; based on the workpiece image, a U-Net-based image segmentation method is used to segment the workpiece contour to obtain the contour information of the workpiece; based on the workpiece image, an image correction method based on perspective transformation is used to perform correction processing; pixel-level measurement is performed on the corrected workpiece image to obtain key size data of the workpiece, including length, width and height; based on the contour information, the key size data and the category information, parameter measurement and quality inspection of the workpiece are performed to obtain characteristic parameters and quality information of the workpiece.
[0022] Exemplarily, a deep convolutional neural network is used to extract multi-scale features from the workpiece image. The visual features such as the edge, texture, and shape of the workpiece are extracted through a combination of a convolution layer and a pooling layer. The geometric elements such as straight lines and circles are detected using the Hough transform. The size features are then extracted through Canny edge detection and contour analysis. Finally, the extracted features are mapped to a high-dimensional feature space using a fully connected layer to obtain a comprehensive feature representation of the workpiece. Based on the extracted comprehensive features, a support vector machine is used to classify and identify the workpiece to determine the workpiece category. After the classification result is determined, the key parameter information of the workpiece of this type is queried and obtained from a pre-established workpiece parameter database, including workpiece ID, category, key dimensions, and other information. For the geometric features of the workpiece, the U-Net-based image segmentation method is used to accurately segment the workpiece contour, and then the positional relationship and topological structure between the detected geometric elements are calculated to obtain the geometric feature description of the workpiece. For the size features of the workpiece, an image correction technology based on perspective transformation is used to eliminate perspective deformation and distortion, and then the key size data such as the length, width, and height of the workpiece are obtained through pixel-level measurement. Combined with the pre-calibrated scale information, the actual size parameters of the workpiece are converted. Using the geometric and dimensional features extracted in the previous steps, combined with the workpiece category information obtained, accurate parameter measurement and quality inspection of the workpiece are carried out, including surface defect detection, dimensional tolerance verification and geometric shape analysis, so as to complete the comprehensive feature extraction and classification recognition process of the workpiece. The deep convolutional neural network adopts the ResNet-50 architecture, which contains 50 convolutional layers and pooling layers, and the input workpiece image size is 224x224 pixels. The network first extracts low-level visual features such as edges and textures, and then extracts high-level semantic features layer by layer. Hough transform is used to detect geometric elements, and the line detection threshold is set to 100 pixels and the circle detection threshold is set to a radius of 20-100 pixels. Canny edge detection uses a double threshold method, with the low threshold set to 50 and the high threshold set to 150. Contour analysis uses the Douglas-Peucker algorithm to simplify the contour, and the accuracy is set to 2 pixels. The fully connected layer maps the features to a 1024-dimensional feature vector. The support vector machine uses the RBF kernel function, the penalty parameter C is set to 1.0, the gamma value is 0.1, and the hyperparameters are optimized by grid search. The workpiece parameter database is stored in the relational database MySQL, which contains fields such as workpiece ID, category, and key dimensions. The U-Net image segmentation network contains 4 downsampling and 4 upsampling, and is trained for 100 epochs using the cross entropy loss function. The perspective transformation uses the four-point correspondence method, and four known coordinate points in the image are selected for correction. Pixel-level measurement uses connected domain analysis with an accuracy of 0.1 mm. The scale is obtained by pre-placing calibration objects with an accuracy of 1:100. Workpiece quality inspection includes surface defect detection, dimensional tolerance verification, and geometric shape analysis. Surface defect detection uses local binary pattern feature extraction combined with a decision tree classifier to identify defects such as scratches and dents.Dimensional tolerance verification compares the measurement results with the standard value and sets the tolerance range to ±0.5 mm. Geometric shape analysis uses principal component analysis to extract the main axis direction of the workpiece and calculate geometric parameters such as roundness and flatness. The entire processing flow from image input to final classification recognition and quality inspection can be completed within 2 seconds on a workstation equipped with a GPU, meeting real-time processing requirements.
[0023] Step S102, using a tactile sensor array to collect pressure distribution data on the workpiece surface, performing spectrum analysis on the pressure distribution data, extracting surface texture features and roughness of the workpiece, wherein the surface texture features include directional features and periodic features, and combining the material information of the workpiece to determine the hardness grade and friction coefficient of the workpiece surface.
[0024] A high-sensitivity capacitive tactile sensor array is used to obtain pressure distribution data on the workpiece surface; sampling parameters are dynamically adjusted according to the material information of the workpiece to obtain a three-dimensional pressure data matrix; the three-dimensional pressure data matrix is subjected to a two-dimensional Fourier transform using the Cooley-Tukey FFT algorithm to calculate the power spectrum density; the main frequency component is determined by searching for the peak value in the power spectrum density, and the surface texture characteristics of the workpiece, including directional characteristics and periodic characteristics, are judged according to the main frequency component and the spectrum diagram; the pressure distribution data is detrended and the root mean square value is calculated as a roughness index; the roughness level of the workpiece surface is judged according to the root mean square value; the material information of the workpiece is obtained from a pre-established material database; the hardness level of the workpiece surface is determined by searching a pre-established multi-dimensional comparison table of hardness and friction coefficient in combination with the surface texture characteristics and the roughness value; the friction coefficient of the workpiece surface is calculated using a preset formula according to the material information and the surface texture characteristics; if the workpiece is a metal material, the calculation formula of the friction coefficient μ is μ=0.1+0.01 multiplied by the roughness value.
[0025] Exemplarily, a high-sensitivity capacitive tactile sensor array is used to collect pressure distribution data on the workpiece surface. The sensor array size is 16x16, and the area of a single sensor is 1 square millimeter. The sampling parameters are dynamically adjusted according to the workpiece material. The metal material uses a sampling frequency of 2000 Hz and a sampling time of 2 seconds to obtain a 16x16x4000 three-dimensional pressure data matrix. The Cooley-Tukey FFT algorithm is used to perform a two-dimensional Fourier transform on the pressure data, calculate the power spectrum density, and determine the main frequency component by finding the peak. The directional characteristics are obtained by analyzing the radial distribution of the spectrum diagram, and the periodic characteristics are determined by the significance of the main frequency component. If the amplitude of the main frequency component exceeds the preset threshold, it is determined that there is an obvious periodic texture. The pressure data is detrended, and the root mean square value is calculated as the roughness index. A 5-level roughness standard is established, from extremely smooth to extremely rough. Extremely smooth means a roughness of less than 0.1 microns, and extremely rough means a roughness of more than 10 microns. The roughness level of the workpiece surface is determined based on the calculation results. The material information of the workpiece is obtained from the material database. Combined with the extracted surface texture features and roughness values, the hardness level of the workpiece surface is determined by looking up the pre-established multi-dimensional comparison table of hardness and friction coefficient. According to the material information and surface features, the friction coefficient is estimated using the formula. For example, for metal surfaces, μ=0.1+0.01 multiplied by the roughness value, where μ is the friction coefficient. Considering the influence of material, roughness and surface treatment process, the friction characteristic parameters of the workpiece surface are obtained to complete the comprehensive characterization of the workpiece surface characteristics. The high-sensitivity capacitive tactile sensor array is made using MEMS technology, with a sensitivity of 0.01N / cm², and a 16x16 array covering an area of 4cm². For metal workpieces, the sampling frequency is set to 2000 Hz, the sampling time is 2 seconds, and 1.28 million data points are generated. The Cooley-TukeyFFT algorithm performs a fast Fourier transform on the data and calculates the spectrum in the complex domain. The power spectral density is obtained by square the modulus value of the spectrum, and the main frequency component corresponds to the peak position. The threshold is set to 3 times the average power spectral density. If it exceeds, it is judged as a periodic texture. The directional characteristics are determined by performing polar coordinate transformation on the spectrum and statistically analyzing the main direction of the energy distribution. Before the roughness calculation, the least squares method is used to fit the plane to remove the overall tilt trend. The root mean square roughness Rq calculation formula is:
[0026] ,
[0027] Where Zi is the height value after detrending, and n is the number of sampling points. The 5-level roughness standard is divided into extremely smooth, such as roughness <0.1μm, smooth and rough, such as roughness in the range of 0.1-1μm, medium, such as roughness in the range of 1-4μm, rough, such as roughness in the range of 4-10μm, and extremely rough, such as roughness >10μm. The material database contains the hardness range and typical friction coefficient of common engineering materials. The multidimensional comparison table of hardness and friction coefficient considers materials such as steel, aluminum, copper, roughness level and surface treatment such as polishing, sandblasting, and oxidation. The metal surface friction coefficient estimation formula μ=0.1+0.01×Rq is applicable to the case of Rq<10μm. For complex surfaces, the piecewise linear interpolation method is used to find the closest parameter combination in the comparison table.
[0028] Step S103, based on the regularity and contrast of the workpiece surface texture, determine whether there is an abnormal area on the workpiece surface, including local protrusions, depressions or defects. If the abnormal area exists, the position, shape, size and depth of the abnormal area are sent to the grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger.
[0029] A height map of the workpiece surface scanned by a high-resolution optical scanner is obtained; image preprocessing is performed according to the workpiece surface height map, including removing noise in the workpiece surface height map by Gaussian filtering to obtain a first processed image; the first processed image is processed by histogram equalization to obtain a second processed image; feature extraction is performed on the second processed image by using a local binary pattern algorithm, the LBP value of each pixel is calculated, and a feature histogram is constructed; texture regularity is determined by analyzing the entropy and uniformity of the feature histogram, and contrast is determined by the peak spacing of the feature histogram; it is determined whether the eigenvalue of the feature histogram exceeds a preset threshold, and if the eigenvalue exceeds the preset threshold, it is determined to be an abnormal area; for the abnormal area, a regional growing algorithm is used for segmentation, and a pixel point with an abnormal LBP eigenvalue is selected as a seed point, and the preset growth threshold is the standard deviation of the LBP value of the neighboring pixels; if the difference in the LBP values of adjacent pixels is less than the growth threshold, the LBP values of the adjacent pixels are included in the abnormal area to obtain the contour and position information of the local protrusion, depression or defect. According to the abnormal area contour obtained by segmentation, the shape description, size and depth of each area are calculated to obtain the abnormal area parameters; the abnormal area parameters and the position information are sent to the grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger to generate a grasping trajectory that avoids the defective area.
[0030] Exemplarily, a high-resolution optical scanner with a resolution of not less than 10 microns / pixel is used to scan the surface of the workpiece to obtain a height map of the workpiece surface. The height map is preprocessed by image processing, including using Gaussian filtering to remove noise, and then using histogram equalization to enhance the contrast to obtain a clear surface texture image. The preprocessed surface texture image is feature extracted using a local binary pattern algorithm, the 8-bit LBP value of each pixel is calculated, a 256-dimensional feature histogram is constructed, the texture regularity is judged by analyzing the entropy and uniformity of the histogram, and the contrast is judged by the histogram peak spacing. A threshold is set according to the distribution characteristics of the feature histogram. If the feature value exceeds the preset threshold, it is determined to be an abnormal area. The abnormal area is segmented using a regional growing algorithm, and the pixel point with an abnormal LBP feature value is selected as the seed point. The growth threshold is set to the standard deviation of the LBP values of the surrounding 8 neighboring pixels. When the difference in the LBP values of adjacent pixels is less than the threshold, it is included in the region to obtain the contour and position information of the protrusion, depression or defect. According to the abnormal area contour obtained by segmentation, the shape descriptor, size and depth information of each area are calculated, and these parameters are passed to the grasping planning module. Cubic spline interpolation is used to generate a smooth trajectory that avoids the defect area. The spring-damping model is used to calculate the grasping force. Considering the weight of the workpiece, the friction coefficient and the defect position, the force distribution of each finger is dynamically adjusted to complete the motion trajectory planning and grasping force distribution of the robot finger. The high-resolution optical scanner uses a resolution of 5 microns / pixel to scan the surface of the 100mm×100mm workpiece and generate a 20000×20000 pixel height map. Gaussian filtering uses a 5×5 kernel with a standard deviation of σ=1.0 to remove noise. Histogram equalization expands the image grayscale to the range of 0-255 and enhances the contrast. The local binary pattern algorithm uses a 3×3 neighborhood to calculate the 8-bit LBP value and construct a 256-dimensional feature histogram. The histogram entropy H=-Σ(pilog2(pi)) is calculated, where pi is the probability of the i-th bin. The entropy value is less than 5, which is judged as a regular texture. The histogram peak spacing greater than 50 is judged as high contrast. The threshold for abnormal region determination is set to the histogram mean plus 2 times the standard deviation. The seed point of the region growing algorithm selects pixels whose LBP values deviate from the mean by 3 times the standard deviation, and the growth threshold is 1.5 times the standard deviation of the LBP values of the 8 neighborhoods. Shape descriptors include roundness, whose formula is 4π area / perimeter² and rectangularity, whose formula is area / area of the circumscribed rectangle. The area is obtained by pixel counting, and the depth information is directly read from the height map. Cubic spline interpolation uses 4 control points to generate a trajectory to avoid defects, and the spacing between control points is 1.5 times the defect size. In the spring-damper model, the spring stiffness k=100N / m, the damping coefficient c=10Ns / m, considering the weight of the workpiece of 0.5kg and the friction coefficient of 0.3, when the defect position deviates from the center, the finger force away from the defect increases by 20%. The entire processing process runs on a workstation equipped with a GPU, and the total time does not exceed 2 seconds, meeting the real-time grasping requirements.
[0031] Step S104, based on the category information, hardness grade and friction coefficient of the workpiece, retrieve the workpiece model with the highest matching degree from a pre-established workpiece feature database, obtain standard grasping parameters of the workpiece model, including the number, length, joint degrees of freedom, grasping force, grasping position, and grasping posture of the robot fingers, and adjust the standard grasping parameters to avoid the abnormal area in combination with the information of the abnormal area.
[0032] According to the category information, surface hardness grade and friction coefficient of the workpiece, the workpiece model with the highest matching degree is retrieved from the workpiece feature database; the standard grasping parameters corresponding to the retrieved workpiece model are obtained, including the number, length, joint degrees of freedom, grasping force, grasping position and grasping posture of the robot fingers; the surface of the workpiece is scanned by machine vision method, the abnormal area of the surface is identified and located, and the information of the abnormal area is obtained, including the position, size and shape; according to the information of the abnormal area, the standard grasping parameters are adjusted; the adjusted standard grasping parameters are simulated and verified by simulation software to determine whether the adjusted standard grasping parameters are correct. Whether the standard grasping parameters can grasp the workpiece and avoid abnormal areas; if the simulation results meet the requirements, the adjusted standard grasping parameters are sent to the robot control system to indicate the actual grasping operation; during the grasping process, the position, speed and force information of each joint of the robot are monitored in real time to determine whether the grasping is normal. If an abnormality occurs, the grasping is adjusted or terminated in time; after the grasping is completed, the grasping part of the workpiece is inspected, and the inspection results are fed back to the workpiece feature database for updating; according to the actual grasping effect, the standard grasping parameters are optimized and adjusted, and the optimized parameters are updated to the workpiece feature database.
[0033] Exemplarily, first, according to the characteristics of the workpiece category information, surface hardness grade and friction coefficient, the K nearest neighbor algorithm is used to retrieve the top 5 workpiece models with the smallest Euclidean distance to the target workpiece feature vector in the workpiece feature database. Then, the standard grasping parameters corresponding to the workpiece model with the highest matching degree are obtained, including using a 3-finger manipulator, each finger length is 10cm, the joint degree of freedom is 2, the grasping force is 5N, the grasping position is the geometric center of the workpiece, and the grasping posture is at an angle of 30° with the main axis of the workpiece. Then, the YOLOv5 target detection algorithm based on deep learning is used to scan the surface of the workpiece, and the surface scratches, depressions and other abnormal areas are identified and located with pixel-level accuracy, and their position, size and shape information are obtained. According to whether the abnormal area overlaps with the standard grasping position, it is judged whether the grasping parameters need to be adjusted. If the overlapping area exceeds 30%, the grasping position is translated by 2cm along the normal vector direction of the workpiece surface, and the grasping posture is adjusted to an angle of 45° with the main axis of the workpiece. The Adams mechanical simulation software was used to perform dynamic simulation on the adjusted grasping parameters. The finite element analysis was used to calculate the force of each joint of the manipulator during the grasping process to confirm the feasibility of the grasping scheme. In the actual grasping process, the position, speed and current signals of the manipulator joints were collected at a frequency of 50Hz, and a class of SVM anomaly detection algorithms were used for real-time monitoring. If an abnormality was detected, the protection mechanism was triggered, and the manipulator joint speed was reduced to 0 within 1s, and the grasping force was slowly released. After the grasping was completed, the surface defect detection algorithm based on image segmentation was used to detect the grasping part of the workpiece. By analyzing the difference between the images before and after grasping, the degree of secondary surface damage caused by grasping was quantified, and the results were fed back to the workpiece feature database. Finally, the genetic algorithm was used to optimize the standard grasping parameters. Through continuous iteration through cross-mutation, the grasping force and grasping time were minimized while ensuring a grasping success rate of more than 95%. The optimized grasping parameters were generated and updated to the database for reference in subsequent grasping operations of similar workpieces.
[0034] Step S105, taking the center of gravity position of the workpiece, the friction coefficient and the motion range of the manipulator as constraints, optimizing the standard grasping parameters, and calculating the optimal grasping force configuration and the optimal grasping trajectory.
[0035] The point cloud data of the workpiece is acquired, and the point cloud data is collected by a structured light scanning device; a three-dimensional model of the workpiece is generated according to the point cloud data, and the three-dimensional model is constructed by a Poisson reconstruction algorithm. The three-dimensional model is volume segmented by an octree algorithm to obtain the center of gravity position of the workpiece. The friction coefficient between the workpiece surface and the manipulator finger is queried from the material database, and the motion range boundary is determined according to the manipulator joint angle limit. The standard grasping parameters are optimized based on a particle swarm optimization algorithm. If the particle represents a set of grasping parameters, the number of particles is set to a preset value; through the objective function of maximizing the contact area, the center of gravity position, the friction coefficient and the manipulator motion range are combined as constraints to obtain a grasping force configuration scheme. The contact point position of the grasping force configuration scheme is fine-tuned, and the fine-tuning is achieved by a gradient descent method; if the distance variance from the contact point to the center of mass is less than a preset threshold, it is determined that the distribution balance of the contact point meets the preset requirements. The grasping force configuration scheme is verified by a dynamic simulation software, and the contact force is calculated by a Coulomb friction model during the verification process; the force size and direction of each contact point are adjusted according to the verification result to obtain the optimal grasping force configuration and the optimal grasping trajectory.
[0036] Exemplarily, structured light scanning is used to obtain workpiece point cloud data, a three-dimensional model is generated by the Poisson reconstruction algorithm, and the octree algorithm is used for volume segmentation to calculate the center of gravity position of the workpiece. The static friction coefficient between the workpiece surface and the robot finger is queried from the material database, and the motion range boundary is determined according to the robot joint angle limit. Based on the particle swarm optimization algorithm, the number of particles is set to 100, the maximum number of iterations is 500, and each particle represents a set of grasping parameters, including the magnitude and direction of the grasping force. Taking the maximization of the contact area as the objective function, while considering the center of gravity offset and friction torque, the center of gravity position of the workpiece, the surface friction coefficient and the range of motion of the robot are used as constraints to optimize the standard grasping parameters and obtain the preliminary optimized grasping force configuration scheme. The variance of the distance from all contact points to the center of mass is calculated as the contact point balance evaluation function. The smaller the variance, the higher the balance. The contact point position is fine-tuned by the gradient descent method, the learning rate is set to 0.01, and the maximum number of iterations is 100, so that the contact point distribution is more balanced and the grasping stability is improved. The initial grasping trajectory is generated using the fast random tree algorithm, and then the trajectory is smoothed and optimized by cubic spline interpolation. The contact force is calculated using the Coulomb friction model using dynamic simulation software. The time step is set to 0.001 seconds. The total simulation time is twice the duration of the grasping process. The optimized grasping force configuration is verified. By adjusting the force size and direction of each contact point, the workpiece is kept balanced during the grasping process. Finally, the optimal grasping force configuration and grasping trajectory are obtained, so that the contact area between the robot finger and the workpiece is maximized, the contact point position is most balanced, and the grasping force distribution is most reasonable. For a 100mm×50mm×30mm metal workpiece, structured light scanning acquires point cloud data at a spacing of 0.1mm, generating a total of 1.5 million points. The Poisson reconstruction algorithm uses an octave tree depth of 8 to generate a three-dimensional model with an accuracy of 0.5mm. The octree algorithm divides the workpiece into 512 voxels and calculates the coordinates of the center of gravity position (48.7mm, 24.5mm, 14.2mm). The material database query obtains that the static friction coefficient between the workpiece such as stainless steel and the robot finger such as rubber is 0.6. The manipulator has three fingers, each with three joints and an angle limit of -90° to 90°. Particle swarm optimization sets 100 particles, each of which contains 9 parameters, such as 3 grasping force magnitudes and 6 direction angles. The objective function weights are set to 0.5 for contact area, 0.3 for center of gravity offset, and 0.2 for friction torque. After 500 iterations, the optimal grasping force configuration is obtained: the three-finger force magnitudes are 5N, 4.8N, and 4.5N, respectively, and the direction angles are (30°, 45°), (-10°, 60°), and (15°, 50°). The initial variance of the contact point balance evaluation is 25mm², which is reduced to 5mm² after 100 gradient descents and a learning rate of 0.01 after optimization. The fast random tree algorithm generates an initial trajectory of 20 path points, and 200 path points are obtained after cubic spline interpolation and smoothing.In the dynamic simulation, the friction coefficient of the Coulomb friction model was set to 0.5, the time step was 0.001s, and the total simulation time was 4s, of which the grasping process was 2s. The simulation results showed that the maximum displacement deviation of the workpiece during the grasping process was less than 0.5mm, and the attitude angle change was less than 1°, which verified the stability of the grasping scheme.
[0037] Step S106, converting the optimal gripping force configuration and the optimal gripping trajectory into motion parameters of each joint of the manipulator through an inverse kinematics algorithm, and adjusting the speed, acceleration and torque of the manipulator finger in real time according to the weight, hardness and friction coefficient of the workpiece.
[0038] The position information of the end effector of the manipulator is obtained, and the Jacobian matrix J is calculated according to the position information of the end effector; the pseudo-inverse J+ of the Jacobian matrix J is used to solve the inverse kinematics equation to obtain the joint angle. The optimal grasping force configuration and the optimal grasping trajectory are converted into the motion parameters of each joint of the manipulator, including angle, angular velocity and angular acceleration; the Jacobian matrix J is subjected to singular value decomposition to determine whether the singular value is less than a preset threshold; if the singular value is less than the preset threshold, the joint angle is corrected by the damped least squares method. A Lagrangian dynamic model is established according to the workpiece weight information, and the dynamic model includes an inertia matrix, a Coriolis force matrix and a gravity matrix; the dynamic model is used to calculate the driving torque required for each joint. The characteristics of the workpiece hardness are obtained, and an adaptive impedance controller is constructed according to the characteristics of the workpiece hardness; the adaptive impedance controller includes a mass matrix, a damping matrix and a stiffness matrix; the mass matrix, the damping matrix and the stiffness matrix are adjusted in real time by the adaptive impedance controller. Obtaining the workpiece friction coefficient information, defining a sliding surface and a control law according to the friction coefficient information; dynamically adjusting the approach rate through the sliding surface and the control law; and adjusting the speed and acceleration of the robot finger using the approach rate.
[0039] Exemplarily, the Jacobian matrix method is used to implement the inverse kinematics algorithm, the Jacobian matrix J is calculated, and the pseudo-inverse J+ is used to solve the inverse kinematics equation θ=J+*x, where θ is the joint angle and x is the end effector position. The optimized grasping force configuration and grasping trajectory are converted into the angle, angular velocity and angular acceleration of each joint of the manipulator. The singular points are processed by singular value decomposition. When the singular value is less than the preset threshold, the damped least squares method is used for correction to ensure the continuity and stability of the conversion process. According to the weight information of the workpiece, the Lagrange equation is used to establish a dynamic model, and the joint inertia, Coriolis force and gravity terms are considered to calculate the driving torque required for each joint. In the torque calculation formula, M is the inertia matrix, C is the Coriolis force matrix, and G is the gravity matrix. The torque output is dynamically adjusted to achieve precise force control. Based on the hardness characteristics of the workpiece, an adaptive impedance controller is constructed, and the controller structure is , where M, B, K are the mass, damping and stiffness matrices respectively, xd, , is the desired displacement, velocity, acceleration, x, , The displacement, velocity, and acceleration of the system are adjusted in real time according to the hardness of the workpiece, so that the robot finger can automatically adjust its flexibility when contacting the workpiece to avoid damage to the workpiece. Using the friction coefficient information and the sliding mode control algorithm, the sliding surface is defined. , where s is the value of the sliding surface, is the derivative of the error, λ is a positive real number, which is a design parameter used to adjust the slope of the sliding surface, and e is the deviation between the actual state and the desired state of the system; the control law u=ueq-η*sign(s), where ueq is the equivalent control term, η is the approach rate, and sign(s) is a sign function that returns the sign of the sliding surface s. The η value is dynamically adjusted according to the friction coefficient information, and the speed and acceleration of the robot finger are adjusted in real time to optimize the energy consumption and efficiency of the grasping process while ensuring the grasping stability. For a 6-DOF robot arm grasping a 100mm×50mm×30mm, 500g metal workpiece, the Jacobian matrix J is a 6×6 matrix. Singular points are processed by SVD decomposition, and the singular value threshold is set to 0.01. The inverse kinematics calculation results in the joint angles θ1=30°, θ2=45°, θ3=-60°, θ4=20°, θ5=-15°, and θ6=10°. In the dynamic model, the inertia matrix M is a 6×6 diagonal matrix with diagonal elements of [0.5, 0.4, 0.3, 0.2, 0.1, 0.05] kg·m². The Coriolis force matrix C and the gravity matrix G are calculated in real time according to the current configuration. The torque calculation results show that the required driving torques of the six joints are [2.5, 3.2, -1.8, 0.6, -0.3, 0.1] N·m. The initial parameter settings of the adaptive impedance controller are: M=diag([5, 5, 5]) kg, B=diag([100, 100, 100]) N·s / m, K=diag([1000, 1000, 1000]) N / m. According to the hardness of the workpiece, the K matrix is dynamically adjusted to diag([1200, 1200, 1200]) N / m. In the sliding mode control, λ=10 and the initial η=0.5. Based on the workpiece friction coefficient (μ=0.3), η was adjusted to 0.4. During real-time control, the angular velocity of joint 1 was adjusted from the initial 0.5rad / s to 0.4rad / s, and the angular acceleration was reduced from 1rad / s² to 0.8rad / s². The entire grasping process took 1.5s, and the final position error was less than 0.1mm, and the posture error was less than 0.1°, meeting the high-precision grasping requirements.
[0040] Step S107, collecting pressure data of the contact surface between each finger and the workpiece according to the tactile sensor, including the size and direction of the pressure, and adjusting the gripping force of the mechanical finger in real time to achieve adaptive flexible gripping of workpieces with different hardness, friction coefficient and shape.
[0041] The pressure data collected by the capacitive tactile sensor array is obtained, and the pressure center coordinate value and the resultant force direction vector are calculated based on the pressure data. The pressure data is processed by the Kalman filter algorithm to obtain smooth signal data after noise suppression. If there is a deviation value between the smooth signal data and the preset pressure threshold, the PID controller parameters are adjusted according to the deviation value to obtain the adjustment amount of the driving torque of each finger. The friction cone angle is calculated according to the friction coefficient of the workpiece to determine whether the resultant force vector is within the friction cone; if it is not within the friction cone, the magnitude and direction of the grasping force of each finger are adjusted. The PPO algorithm is used to train the grasping strategy model, the characteristics of the workpiece shape and tactile data are input, the finger position and force configuration parameters are output, and an adaptive grasping strategy for workpieces of different shapes is obtained.
[0042] Exemplarily, a capacitive tactile sensor array is used to collect pressure data of the contact surface between each finger and the workpiece, and the pressure center and the direction of the resultant force are calculated through the pressure data. The sensor data is subjected to noise suppression and signal smoothing by using the Kalman filter algorithm, and the state variables are defined as the pressure value and the rate of change, and the observed variables are the sensor readings. The state transfer matrix and the observation matrix are determined according to the sampling frequency. According to the pressure data fed back by the tactile sensor, a force closed-loop control system is constructed, and a proportional-integral-differential controller is used to adjust the driving torque of each finger in real time. The proportional coefficient Kp, the integral coefficient Ki and the differential coefficient Kd are set, and the control quantity is calculated according to the pressure error. The adaptive grasping of workpieces with different hardness is achieved by adjusting the PID parameters. Using the friction cone theory, the minimum grasping force threshold is calculated based on the friction characteristics of the workpiece, and the friction cone angle θ=arctan(μ) is calculated according to the friction coefficient μ. The grasping force size and direction of each finger are dynamically adjusted in combination with the pressure distribution data, and it is determined whether the resultant force vector is located within the friction cone to ensure the grasping stability. For workpieces of different shapes, the PPO algorithm in deep reinforcement learning is used to train the grasping strategy model. The input state includes the shape features of the workpiece and tactile data, and the output action is the finger position and force configuration, so as to realize the adaptive flexible grasping of complex-shaped workpieces. Taking the grasping of a 50mm×30mm×20mm plastic workpiece weighing 200g as an example, the manipulator is equipped with a 16×16 capacitive tactile sensor array with a sampling frequency of 1kHz. In the Kalman filter, the state transfer matrix is set to [[1,0.001], [0,1]], the observation matrix is [1,0], the process noise covariance Q=diag([0.01,0.1]), and the measurement noise covariance R=0.1. After filtering, a stable pressure reading is obtained, with the center position at (8,7) and the resultant force direction at (-0.2,0.3,0.9). The PID controller parameters are initially set to Kp=0.5, Ki=0.1, Kd=0.05, and adjusted to Kp=0.6, Ki=0.12, Kd=0.06 according to the hardness of the workpiece, such as Shore hardness 60A. The friction coefficient of the workpiece μ=0.4, and the friction cone angle θ=21.8° is calculated. The minimum grasping force threshold is set to 2N, the actual grasping force is 2.5N, and the resultant force vector (0.1,-0.2,2.4) is located within the friction cone. The PPO algorithm uses a two-layer fully connected neural network with 128 nodes in the hidden layer. The input is 47 dimensions, which is 16 shape features + 31 tactile data, and the output is 9 dimensions, which is 3 finger positions + 3 forces. After 1 million steps of training, the model's grasping success rate for the workpiece reached 95%, and the average grasping time was 0.8s. During the whole process, the force adjustment accuracy reached 0.1N, and the position adjustment accuracy was 0.5mm, meeting the requirements of adaptive flexible grasping.
[0043] Step S108, monitoring the contact area and force state data between each finger and the workpiece, and if it is detected that the contact area is smaller than a preset threshold or the force is greater than a preset threshold, adjusting the position, posture and force output of the finger.
[0044] The pressure distribution data of the contact between each finger and the workpiece collected by the tactile sensor array is obtained; the contact area is obtained by integral calculation according to the pressure distribution data; the contact edge is detected by the pressure gradient algorithm, and if the pressure difference between adjacent sensor units exceeds the preset gradient threshold, it is determined to be in contact state; according to the pressure distribution data and the contact area, a force state evaluation model is constructed by the random forest algorithm; the force uniformity index is calculated by the weighted average method, and the weight is determined according to the size of the contact area. If it is detected that the contact area is less than the preset threshold or the force is greater than the preset threshold, the adjustment mechanism is triggered; based on the geometric characteristics of the workpiece and the current grasping state, the adjustment amount of the finger position and posture is calculated by the inverse kinematics algorithm, and the force output is dynamically adjusted in combination with the impedance control method; by constructing a multi-finger collaborative controller, a task space control method based on torque optimization is adopted to construct an objective function including two indicators of force uniformity and energy consumption, and the optimal force distribution scheme is solved by quadratic programming, and a coordinated motion instruction is generated according to the force state and position relationship of each finger to adjust the position and force output of each finger.
[0045] Exemplarily, a high-precision resistive strain tactile sensor array is used to collect the contact pressure distribution data of each finger and the workpiece in real time, and the contact area is obtained by integral calculation, and the contact edge is detected by the pressure gradient algorithm. The pressure difference between adjacent sensor units is calculated, and the gradient threshold is set to 0.5N / mm. If the threshold is exceeded, it is determined to be the contact edge, and the contact state is determined. According to the pressure data and contact area information fed back by the tactile sensor, a force state evaluation model is constructed by the random forest algorithm, and the force uniformity index is calculated by the weighted average method, and the weight is determined according to the size of the contact area. The disengagement threshold is set to 0.1N, and the excessive force threshold is 1.5 times the weight of the workpiece. If an abnormal state is detected, the adjustment mechanism is triggered. Based on the geometric features of the workpiece and the current grasping state, the inverse kinematics algorithm is used to calculate the adjustment amount of the finger position and posture, and the impedance control method is combined to dynamically adjust the force output. A virtual spring-damping model is established, and the initial value of the spring stiffness K is 1000N / m, and the initial value of the damping coefficient B is 10Ns / m. It is dynamically adjusted according to the hardness of the workpiece to achieve fine adjustment of a single finger. By constructing a multi-finger collaborative controller and adopting a task space control method based on torque optimization, the objective function is constructed, including two indicators: force uniformity and energy consumption. The optimal force distribution scheme is solved through quadratic programming. According to the force state and position relationship of each finger, a coordinated motion instruction is generated, the relative position and force distribution of each finger are adjusted, and the overall grasping posture is optimized. Taking the grasping of a 100mm×60mm×40mm and 300g metal workpiece as an example, the manipulator is equipped with a 16×16 resistive strain tactile sensor array with a sampling frequency of 500Hz. The pressure gradient algorithm detects the contact edge, and the maximum gradient value is 0.8N / mm, which exceeds the threshold of 0.5N / mm, and the contact area is determined to be 1200mm². The force state evaluation model calculates that the force uniformity indicators of the three fingers are 0.85, 0.92 and 0.78 respectively, among which the third finger is lower than the preset threshold of 0.8. It is detected that the force of the third finger is 5.2N, which exceeds the threshold of 1.5 times the weight of the workpiece, such as 4.5N, triggering the adjustment mechanism. The inverse kinematics algorithm calculates that the third finger needs to move 2mm outward and rotate -5°. In impedance control, the spring stiffness K is adjusted to 1200N / m and the damping coefficient B is adjusted to 12Ns / m according to the workpiece hardness HRC30. The multi-finger collaborative controller obtains a new force distribution scheme through quadratic planning: the three fingers apply forces of 2.8N, 3.1N and 3.5N respectively. The entire adjustment process takes 20ms. After the adjustment, the force uniformity index of the three fingers is improved to 0.88, 0.95 and 0.86, and the workpiece maintains a stable grasping state, with a position deviation of less than 0.5mm and a posture change of less than 1°.
[0046] Step S109, obtain the force / torque data during the grasping process through the force / torque sensor on the robotic wrist, calculate the tilt angle and offset distance based on the force / torque data, and if it is detected that the tilt angle is greater than the preset tilt angle threshold, or the offset distance is greater than the preset offset distance threshold, trigger the visual servo control, adjust the robot posture according to the real-time image of the workpiece, and align it with the center of gravity of the workpiece.
[0047] A six-dimensional force / torque sensor is used to obtain the force / torque data of the robot wrist, and noise suppression and data fusion are performed according to the force / torque data through the Kalman filtering algorithm to obtain the filtered force / torque data; a workpiece posture estimation model is constructed according to the filtered force / torque data through a machine learning algorithm, and the inclination angle and offset distance of the workpiece are calculated through the workpiece posture estimation model; it is judged whether the inclination angle exceeds a preset inclination angle threshold, and whether the offset distance is greater than a preset offset distance threshold; if the inclination angle is greater than the preset inclination angle threshold, or the offset distance is greater than the preset offset distance threshold, a visual servo control mechanism is triggered; a high-speed camera installed on the robot wrist is controlled by the visual servo control mechanism to collect a real-time image of the workpiece, and the real-time image of the workpiece is processed by the Canny edge detection algorithm and the SIFT feature extraction algorithm to obtain workpiece feature data; a visual servo controller is constructed according to the workpiece feature data and the filtered force / torque data, and the posture adjustment amount of the robot is calculated by the visual servo controller; an inverse kinematics algorithm is used to convert the posture adjustment amount into motion instructions for each joint, and the robot is controlled to adjust the posture to align with the center of gravity of the workpiece.
[0048] Exemplarily, a six-dimensional force / torque sensor is used to collect the force / torque data of the robot wrist in real time, and the sensor signal is subjected to noise suppression and data fusion through the Kalman filter algorithm. The state variables are defined as the position and posture of the workpiece, the observation variables are the readings of the force / torque sensor, the state transfer matrix and the observation matrix are determined according to the kinematic model of the robot, and the workpiece posture estimation model is constructed through machine learning algorithms such as linear regression to calculate the inclination angle and offset distance of the workpiece. According to the analysis results of the force / torque data, the threshold judgment conditions for abnormal workpiece posture are set, the inclination angle threshold is 5 degrees, and the offset distance threshold is 10mm. If it is detected that the inclination angle exceeds the preset threshold or the offset distance is greater than the allowable range, the visual servo control mechanism is triggered to start the image acquisition and processing process. The high-speed camera installed on the robot wrist is used to capture the real-time image of the workpiece, the Canny edge detection algorithm is used for image segmentation, and the SIFT feature extraction algorithm is used to identify the key points. The 3D posture of the workpiece is calculated by the PnP algorithm combined with the camera internal parameters, and the position and posture of the workpiece in three-dimensional space are calculated by combining the pre-calibrated camera parameters. Based on visual feedback information and force / torque data, a visual servo controller is constructed, and the image Jacobian matrix method is used to calculate the position adjustment of the manipulator. Based on the pinhole camera model, the partial derivatives of the image feature points to the end position of the manipulator are calculated, the image Jacobian matrix is constructed, and the Moore-Penrose pseudo-inverse is used to solve the optimal control amount. The adjustment amount is converted into motion instructions for each joint through the inverse kinematics algorithm, and the manipulator is driven to adjust the position and align the center of gravity of the workpiece to avoid grasping deviation. Taking the grasping of an irregular metal workpiece of 200mm×150mm×100mm and 1kg as an example, the sampling frequency of the six-dimensional force / torque sensor is 1kHz, and the measurement range is ±100N and ±10Nm. In the Kalman filter, the state vector is [x,y,z,roll,pitch,yaw], and the observation vector is [Fx,Fy,Fz,Mx,My,Mz]. The initial state covariance matrix P is set to the diagonal matrix diag([0.01,0.01,0.01,0.001,0.001,0.001]), and the process noise covariance Q is set to diag([0.001,0.001,0.001,0.0001,0.0001,0.0001]). After filtering, the workpiece tilt angle is detected to be 6.2 degrees and the offset distance is 12mm, which exceeds the preset threshold and triggers the visual servo control. The resolution of the high-speed camera is 1920×1080 and the frame rate is 120fps. The low threshold of Canny edge detection is set to 50 and the high threshold is 150. The SIFT algorithm extracts 200 feature points, and the PnP algorithm calculates the workpiece pose as [150mm,-20mm,80mm,5°,3°,-2°]. The camera intrinsic parameter matrix is [[1000,0,960],[0,1000,540],[0,0,1]].The dimension of the image Jacobian matrix is 8×6, which means there are 4 feature points, each with 2 coordinates. Moore-Penrose pseudo-inverse calculation obtains the adjustment amount of the end of the manipulator as [5mm, -2mm, 3mm, 0.05rad, 0.03rad, -0.02rad]. The inverse kinematics algorithm converts the adjustment amount into 6 joint angle changes [-0.02rad, 0.03rad, -0.01rad, 0.04rad, -0.03rad, 0.01rad]. The whole process takes 50ms, and the workpiece posture correction accuracy reaches ±0.5mm and ±0.5°.
[0049] The above is only a specific implementation method of this specification. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of this specification is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this specification, and these modifications or replacements should be covered within the protection scope of this specification.
Claims
1. A flexible grasping method for a manipulator with automatic workpiece conversion, characterized in that: The method comprises: Use deep learning convolutional neural network to process workpiece images, extract visual features of workpieces, including shape, texture and edge, and use support vector machine to classify and identify workpieces to obtain category information and key parameters of workpieces; Using a tactile sensor array to collect pressure distribution data on the workpiece surface, performing spectrum analysis on the pressure distribution data, extracting surface texture features and roughness of the workpiece, wherein the surface texture features include directional features and periodic features, and combining the material information of the workpiece to determine the hardness grade and friction coefficient of the workpiece surface; According to the regularity and contrast of the workpiece surface texture, determine whether there is an abnormal area on the workpiece surface, including local protrusions or depressions. If there is such an abnormal area, send the position, shape, size and depth of the abnormal area to the grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger; According to the category information, hardness grade and friction coefficient of the workpiece, the workpiece model with the highest matching degree is retrieved from a pre-established workpiece feature database, and the standard grasping parameters of the workpiece model are obtained, including the number, length, joint degrees of freedom, grasping force, grasping position and grasping posture of the robot fingers, and the standard grasping parameters are adjusted to avoid the abnormal area in combination with the information of the abnormal area; Taking the center of gravity position of the workpiece, the friction coefficient and the range of motion of the manipulator as constraints, the standard grasping parameters are optimized to calculate the optimal grasping force configuration and the optimal grasping trajectory; The optimal gripping force configuration and the optimal gripping trajectory are converted into motion parameters of each joint of the manipulator through an inverse kinematics algorithm, and the speed, acceleration and torque of the manipulator finger are adjusted in real time according to the weight, hardness and friction coefficient of the workpiece; The tactile sensor collects pressure data on the contact surface between each finger and the workpiece, including the size and direction of the pressure, and adjusts the gripping force of the mechanical finger in real time to achieve adaptive flexible gripping of workpieces with different hardness, friction coefficient, and shape; Monitor the contact area and force state data of each finger and the workpiece, and if it is detected that the contact area is smaller than a preset threshold or the force is greater than a preset threshold, adjust the position, posture and force output of the finger; The force / torque data during the grasping process is obtained through the force / torque sensor on the robotic wrist, and the tilt angle and offset distance are calculated based on the force / torque data. If it is detected that the tilt angle is greater than the preset tilt angle threshold, or the offset distance is greater than the preset offset distance threshold, the visual servo control is triggered, and the robot posture is adjusted according to the real-time image of the workpiece to align with the center of gravity of the workpiece.
2. The method according to claim 1, wherein: The deep learning convolutional neural network is used to process the workpiece image, extract the visual features of the workpiece, including shape, texture and edge, and the support vector machine is used to classify and identify the workpiece to obtain the category information and key parameters of the workpiece, including: Acquiring image data of a workpiece, wherein the image data includes visual information of the workpiece; According to the image data, a deep convolutional neural network is used to extract multi-scale features of the workpiece to obtain visual features of the workpiece; Based on the obtained visual features, support vector machine is used to classify and identify the workpieces to determine the category information of the workpieces; If the category information of the workpiece is determined, key parameters of the workpiece of the corresponding category are obtained from a pre-established workpiece parameter database; According to the workpiece image, the U-Net-based image segmentation method is used to segment the workpiece contour to obtain the workpiece contour information; For the workpiece image, an image correction method based on perspective transformation is used for correction processing; Measure the corrected workpiece image at the pixel level to obtain the key dimension data of the workpiece, including length, width and height; According to the contour information, the key dimension data and the category information, parameter measurement and quality inspection of the workpiece are performed to obtain characteristic parameters and quality information of the workpiece.
3. The method according to claim 1, wherein: The method uses a tactile sensor array to collect pressure distribution data on the workpiece surface, performs spectrum analysis on the pressure distribution data, extracts surface texture features and roughness of the workpiece, wherein the surface texture features include directional features and periodic features, and combines the material information of the workpiece to determine the hardness grade and friction coefficient of the workpiece surface, including: A high-sensitivity capacitive tactile sensor array is used to obtain pressure distribution data on the workpiece surface; Dynamically adjust sampling parameters according to the material information of the workpiece to obtain a three-dimensional pressure data matrix; The three-dimensional pressure data matrix is subjected to a two-dimensional Fourier transform using the Cooley-Tukey FFT algorithm to calculate the power spectral density; Determine the main frequency component by searching for the peak value in the power spectrum density, and judge the surface texture characteristics of the workpiece according to the main frequency component and the spectrum diagram, including directional characteristics and periodic characteristics; Detrending the pressure distribution data, and calculating the root mean square value as a roughness index; Determining the roughness grade of the workpiece surface according to the root mean square value; Obtain material information of workpiece from a pre-established material database; In combination with the surface texture characteristics and roughness values, the hardness grade of the workpiece surface is determined by searching a pre-established multi-dimensional comparison table of hardness and friction coefficient; Calculating the friction coefficient of the workpiece surface using a preset formula according to the material information and the surface texture characteristics; If the workpiece is made of metal material, the calculation formula of the friction coefficient μ is μ=0.1+0.01 multiplied by the roughness value.
4. The method according to claim 1, wherein: According to the regularity and contrast of the workpiece surface texture, it is judged whether there is an abnormal area on the workpiece surface, including a local protrusion or depression. If the abnormal area exists, the position, shape, size and depth of the abnormal area are sent to the grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger, including: Obtaining a height map of the workpiece surface scanned by a high-resolution optical scanner; Performing image preprocessing according to the workpiece surface height map, including removing noise in the workpiece surface height map by Gaussian filtering to obtain a first processed image; Processing the first processed image using histogram equalization to obtain a second processed image; Using a local binary pattern algorithm to extract features from the second processed image, calculating the LBP value of each pixel, and constructing a feature histogram; The texture regularity is determined by analyzing the entropy and uniformity of the characteristic histogram, and the contrast is determined by the peak distance of the characteristic histogram; Determine whether the characteristic value of the characteristic histogram exceeds a preset threshold, and if the characteristic value exceeds the preset threshold, determine it as an abnormal area; For the abnormal area, a region growing algorithm is used for segmentation, and pixels with abnormal LBP feature values are selected as seed points. The preset growth threshold is the standard deviation of the LBP values of the neighboring pixels; If the difference between the LBP values of adjacent pixels is less than the growth threshold, the LBP values of the adjacent pixels are included in the abnormal area to obtain the contour and position information of the local protrusion, depression or defect; According to the abnormal area contour obtained by segmentation, the shape description, size and depth of each area are calculated to obtain the abnormal area parameters; The abnormal area parameters and the position information are sent to a grasping planning module to adjust the motion trajectory and grasping force distribution of the robot finger to generate a grasping trajectory that avoids the defective area.
5. The method according to claim 1, wherein: According to the category information, hardness grade and friction coefficient of the workpiece, the workpiece model with the highest matching degree is retrieved from a pre-established workpiece feature database, and the standard grasping parameters of the workpiece model are obtained, including the number, length, joint freedom, grasping force, grasping position and grasping posture of the mechanical fingers, and the standard grasping parameters are adjusted to avoid the abnormal area in combination with the information of the abnormal area, including: According to the category information, surface hardness grade and friction coefficient of the workpiece, the workpiece model with the highest matching degree is retrieved from the workpiece feature database; Obtain standard grasping parameters corresponding to the retrieved workpiece model, including the number, length and joint freedom of the robot fingers, grasping force, grasping position and grasping posture; Scanning the workpiece surface using a machine vision method, identifying and locating abnormal areas on the surface, and obtaining information about the abnormal areas, including location, size, and shape; Adjusting the standard grabbing parameters according to the information of the abnormal area; Use simulation software to simulate and verify the adjusted standard grasping parameters to determine whether the adjusted standard grasping parameters can grasp the workpiece and avoid abnormal areas; If the simulation results meet the requirements, the adjusted standard grasping parameters are sent to the robot control system to indicate the actual grasping operation; During the grasping process, the position, speed and force information of each joint of the manipulator are monitored in real time to determine whether the grasping is normal. If any abnormality occurs, the grasping is adjusted or terminated in time; After the grasping is completed, the grasped part of the workpiece is inspected, and the inspection results are fed back to the workpiece feature database for updating; According to the actual grasping effect, the standard grasping parameters are optimized and adjusted, and the optimized parameters are updated to the workpiece feature database.
6. The method according to claim 1, wherein: The method optimizes the standard grasping parameters based on the workpiece center of gravity position, friction coefficient and manipulator motion range as constraints, and calculates the optimal grasping force configuration and the optimal grasping trajectory, including: Acquiring point cloud data of the workpiece, wherein the point cloud data is collected by a structured light scanning device; generating a three-dimensional model of the workpiece according to the point cloud data, wherein the three-dimensional model is constructed by a Poisson reconstruction algorithm; Using an octree algorithm to perform volume segmentation on the three-dimensional model to obtain the center of gravity position of the workpiece; Query the friction coefficient between the workpiece surface and the robot finger from the material database, and determine the motion range boundary according to the robot joint angle limit; Optimizing the standard grasping parameters based on a particle swarm optimization algorithm, if the particles represent a set of grasping parameters, setting the number of particles to a preset value; By maximizing the objective function of the contact area, the center of gravity position, friction coefficient and manipulator motion range are determined as constraints to obtain the gripping force configuration scheme; Fine-tuning the contact point position of the grasping force configuration scheme, wherein the fine-tuning is achieved by a gradient descent method; If the variance of the distance from the contact point to the centroid is less than a preset threshold, it is determined that the distribution balance of the contact point meets the preset requirements; The grasping force configuration scheme is verified by using dynamic simulation software, and the contact force is calculated by using the Coulomb friction model during the verification process; According to the verification results, the force size and direction of each contact point are adjusted to obtain the optimal grasping force configuration and optimal grasping trajectory.
7. The method according to claim 1, wherein: The optimal grasping force configuration and the optimal grasping trajectory are converted into motion parameters of each joint of the manipulator through an inverse kinematics algorithm, and the speed, acceleration and torque of the manipulator finger are adjusted in real time according to the weight, hardness and friction coefficient of the workpiece, including: Obtaining the position information of the end effector of the manipulator, and calculating the Jacobian matrix J according to the position information of the end effector; The inverse kinematics equation is solved by using the pseudo-inverse J+ of the Jacobian matrix J to obtain the joint angle; Converting the optimal grasping force configuration and the optimal grasping trajectory into motion parameters of each joint of the manipulator, including angle, angular velocity and angular acceleration; Performing singular value decomposition on the Jacobian matrix J to determine whether the singular value is less than a preset threshold; If the singular value is less than the preset threshold, the joint angle is corrected using the damped least squares method; Establishing a Lagrangian dynamics model according to the workpiece weight information, wherein the dynamics model includes an inertia matrix, a Coriolis force matrix and a gravity matrix; The dynamic model is used to calculate the driving torque required for each joint; Acquire the characteristics of the workpiece hardness and construct an adaptive impedance controller according to the characteristics of the workpiece hardness; The adaptive impedance controller includes a mass matrix, a damping matrix and a stiffness matrix; The mass matrix, the damping matrix and the stiffness matrix are adjusted in real time by the adaptive impedance controller; Obtaining the friction coefficient information of the workpiece, and defining the sliding surface and the control law according to the friction coefficient information; Dynamically adjust the approach rate through the sliding surface and the control law; The approach rate is used to adjust the speed and acceleration of the mechanical finger.
8. The method according to claim 1, wherein: The method collects pressure data of the contact surface between each finger and the workpiece according to the tactile sensor, including the size and direction of the pressure, adjusts the grasping force of the mechanical finger in real time, and realizes adaptive flexible grasping of workpieces with different hardness, friction coefficient, and shape, including: Obtaining pressure data collected by a capacitive tactile sensor array, and calculating a pressure center coordinate value and a resultant force direction vector according to the pressure data; The pressure data is processed using a Kalman filter algorithm to obtain smooth signal data after noise suppression; If there is a deviation between the smoothed signal data and the preset pressure threshold, the PID controller parameters are adjusted according to the deviation to obtain the adjustment amount of the driving torque of each finger; The friction cone angle is calculated according to the friction coefficient of the workpiece to determine whether the resultant force vector is within the friction cone; If it is not within the friction cone, adjust the gripping force and direction of each finger; The PPO algorithm is used to train the grasping strategy model, input the characteristics of the workpiece shape and tactile data, and output the finger position and force configuration parameters to obtain an adaptive grasping strategy for workpieces of different shapes.
9. The method according to claim 1, wherein: The monitoring of the contact area and force state data of each finger and the workpiece, if it is detected that the contact area is less than a preset threshold or the force is greater than a preset threshold, adjusting the position posture and force output of the finger, includes: Acquiring pressure distribution data of contact between each finger and the workpiece collected by the tactile sensor array; According to the pressure distribution data, the contact area is obtained by integral calculation; The pressure gradient algorithm is used to detect the contact edge. If the pressure difference between adjacent sensor units exceeds the preset gradient threshold, it is determined to be in contact state; According to the pressure distribution data and the contact area, a force state evaluation model is constructed by using a random forest algorithm; The force uniformity index is calculated using a weighted average method, and the weight is determined according to the size of the contact area; If it is detected that the contact area is smaller than a preset threshold or the force is greater than a preset threshold, an adjustment mechanism is triggered; Based on the geometric features of the workpiece and the current grasping state, the inverse kinematics algorithm is used to calculate the adjustment amount of the finger position and posture, and the impedance control method is combined to dynamically adjust the force output; By constructing a multi-finger collaborative controller and adopting a task space control method based on torque optimization, an objective function including two indicators, force uniformity and energy consumption, is constructed. The optimal force distribution scheme is solved through quadratic programming. According to the force state and position relationship of each finger, coordinated motion instructions are generated to adjust the position and force output of each finger.
10. The method according to claim 1, wherein: The force / torque sensor on the wrist of the robot obtains the force / torque data during the grasping process, and calculates the tilt angle and the offset distance according to the force / torque data. If it is detected that the tilt angle is greater than a preset tilt angle threshold, or the offset distance is greater than a preset offset distance threshold, the visual servo control is triggered, and the robot posture is adjusted according to the real-time image of the workpiece to align with the center of gravity of the workpiece, including: A six-dimensional force / torque sensor is used to obtain force / torque data of the robotic wrist, and noise suppression and data fusion are performed based on the force / torque data through a Kalman filter algorithm to obtain filtered force / torque data; According to the filtered force / torque data, a workpiece posture estimation model is constructed by a machine learning algorithm, and the tilt angle and offset distance of the workpiece are calculated by the workpiece posture estimation model; Determining whether the tilt angle exceeds a preset tilt angle threshold and whether the offset distance is greater than a preset offset distance threshold; If the tilt angle is greater than a preset tilt angle threshold, or the offset distance is greater than a preset offset distance threshold, a visual servo control mechanism is triggered; The high-speed camera installed on the mechanical wrist is controlled by the visual servo control mechanism to collect a real-time image of the workpiece, and the real-time image of the workpiece is processed by the Canny edge detection algorithm and the SIFT feature extraction algorithm to obtain feature data of the workpiece; Building a visual servo controller according to the workpiece feature data and the filtered force / torque data, and calculating the position adjustment amount of the manipulator through the visual servo controller; The inverse kinematics algorithm is used to convert the posture adjustment amount into motion instructions for each joint, and the manipulator is controlled to adjust the posture to align with the center of gravity of the workpiece.
