Manipulator automatic teaching method and device based on AI vision
Through the automatic teaching method of the manipulator based on AI vision, the convolutional neural network and the hand-eye calibration algorithm are used to realize the automatic grasping and placement of the manipulator, solving the problems of tedious teaching and low safety in the existing technology, and improving the work efficiency. Efficiency and safety.
Patent Information
- Application Number
- CN202411031684.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-15
AI Technical Summary
The existing manipulator teaching methods are cumbersome and error-prone, and there is a risk of operational errors, resulting in the manipulator accidentally injuring the commander, and the efficiency is low.
The automatic teaching method of the robot arm based on AI vision is adopted, and the convolutional neural network and hand-eye calibration algorithm are used to identify the shape and position of the product through the shooting device, automatically generate control instructions, and realize automatic grabbing and placement of the robot arm.
It improves the working efficiency and safety of the robot, reduces the risk of manual adjustment errors, realizes the automated teaching process, and improves production efficiency.
Smart Images

Figure CN118769220A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot arm teaching, and in particular to an automatic teaching method and device for a robot arm based on AI vision. Background Art
[0002] At present, there are generally two ways to teach the robot on the automated production line: one is that one engineer controls the robot through a computer host computer, and another engineer adjusts the robot by visual command. This has the risk that the operating engineer may make an error in operation, and may enter the wrong command, causing the robot to accidentally injure the commanding engineer; the other is to use a handheld teaching pendant to observe and adjust at the same time. Such a process is very cumbersome and prone to errors. Summary of the invention
[0003] The present invention provides an AI vision-based automatic teaching method and device for a manipulator, aiming to solve at least one of the technical problems existing in the prior art.
[0004] The technical solution of the present invention is a manipulator automatic teaching method and device based on AI vision. The manipulator automatic teaching method based on AI vision is applied to a manipulator automatic teaching device based on AI vision. The manipulator automatic teaching device based on AI vision includes an assembly line structure, a manipulator, at least one product target position and a chessboard calibration plate. The assembly line structure is used to transmit products to be shifted. The manipulator is equipped with a shooting device, which automatically identifies the products on the assembly line structure. The manipulator grabs the product placed on the assembly line structure and places the product on a carrier at a preset product target position. The product target position is within the reach of the manipulator. The manipulator automatic teaching method based on AI vision includes the following steps:
[0005] S100, based on convolutional neural network, trains the shape of the product;
[0006] S200, confirming the position of the carrier plate at the target position of the product and the posture of the product placed on the carrier plate, and obtaining a standard posture;
[0007] S300, calibrating the camera device using a chessboard calibration plate, and calculating the internal parameters and distortion coefficients of the camera device;
[0008] S400, calculating the conversion relationship between the coordinate systems of the manipulator and the camera based on the hand-eye calibration algorithm Tsai-LenZ;
[0009] S500, after the hand-eye calibration is completed, the robot randomly grabs the product from the assembly line structure and adjusts the posture of the robot to make the product match the standard posture;
[0010] S600, the robot moves the product from the assembly line structure to the carrier at the product target location.
[0011] Further, the step S100 includes the following steps:
[0012] S110, batches of differently labeled products flow into the pipeline structure, a shooting device disposed on the robot shoots the products to obtain a plurality of first product images, and the plurality of first product images are randomly classified into a training data set, a verification data set, and a test data set;
[0013] S120, preprocessing the first product image, rotating, translating, and flipping the first product image based on ImageDataGenerator of Tensorflow to obtain multiple second product images;
[0014] S130, based on the neural network model, training the first product image and the second product image based on the training data set, and optimizing the network parameters of the convolutional neural network;
[0015] S140. Based on the verification data set and the test data set, verify and test the convolutional neural network with modified network parameters.
[0016] Further, in step S130,
[0017] The neural network model is created based on the Sequential module of Tensorflow;
[0018] The neural network model includes a first convolution layer Conv2D_1, a first maximum pooling layer MaxPooling2D_1, a second convolution layer Conv2D_2, a second maximum pooling layer MaxPooling2D_2, a third convolution layer Conv2D_3, a third maximum pooling layer MaxPooling2D_3, a flattening layer Flattern, a first fully connected layer Dense_1, an output regularization layer Dropout and a second fully connected layer Dense_2, which are connected in sequence.
[0019] Further, the step S300 includes:
[0020] S310, based on the opencv library, the shooting device shoots multiple chessboard calibration plate images;
[0021] S320, based on the findChessboardCorners module of cv2, detecting the positions of chessboard corners in the chessboard calibration plate image;
[0022] S330, based on the calibbrateCamera module of cv2, calculate the correspondence between the positions of the chessboard corner points in the chessboard calibration plate image plane and the positions in the actual space, and obtain the intrinsic parameters and distortion coefficients of the shooting device.
[0023] Further, the step S400 includes:
[0024] S410, based on the Python Numpy library, solve the relationship between the transformation matrix X between the shooting device and the end of the manipulator, the motion matrix A of the manipulator, and the motion matrix B of the shooting device;
[0025] S420, moving the manipulator and the camera to record multiple sets of position data sets (A i ,B i ), each position data set includes the motion matrix A of the manipulator and the motion matrix B of the camera. i ,B i ) is decomposed into the rotation matrix R Ai and R Bi ;
[0026] S430, based on the relationship between the unit quaternion and the rotation, establish a rotation matrix equation, convert the rotation matrix equation into a linear equation system, and obtain the rotation matrix Rx by solving the singular value;
[0027] S440, based on the rotation matrix Rx, establish the translation equation to solve the translation vector t x ;
[0028] S450, the translation vector t x Combined with the rotation matrix Rx into the transformation matrix X;
[0029] S460. Specify the actual coordinates and calculate the transformation matrix X.
[0030] Furthermore, in step S420, the relationship between the transformation matrix X between the camera and the end of the manipulator, the motion matrix A of the manipulator, and the motion matrix B of the camera is:
[0031] AX=XB
[0032] Among them, A is the motion matrix of the manipulator, B is the motion matrix of the camera, and X is the transformation matrix between the camera and the end of the manipulator. The transformation matrix X between the end of the manipulator includes the rotation matrix R x and the translation vector t x ;
[0033] In step S430, the rotation matrix equation is:
[0034] R Ai Rx =R x R Bi
[0035] Among them, R Ai is the rotation matrix component of the manipulator's motion matrix, R Bi is the rotation matrix component of the camera motion matrix, i is a plurality of position data sets (A i ,B i ) in the sequence number, R x is the rotation matrix component of the transformation matrix between the camera and the end of the robot.
[0036] Further, in step S440, the translation equation is:
[0037] t Ai +R Ai t x =R x t Bi +t x
[0038] Among them, t Ai is the rotation and translation vector component of the manipulator's motion matrix, R Ai is the rotation matrix component of the manipulator's motion matrix, t x is the translation vector, R x is the rotation matrix component of the transformation matrix between the camera and the end of the manipulator, t Bi is the translation vector component of the camera motion matrix.
[0039] Further, in step S440, the transformation matrix X is:
[0040]
[0041] Where X is the transformation matrix, t x is the translation vector, R x is the rotation matrix component of the transformation matrix between the camera and the end of the robot.
[0042] Further, the step S600 includes:
[0043] S610, the robot holds the product, and the camera captures the picture in real time, and calculates the target position in real time;
[0044] S620, moving the manipulator close to the target position of the product, and after the manipulator safely reaches above the target position of the product, recording the current position as the first position p1;
[0045] S630, based on the standard posture, stably placing the product on the carrier at the target position of the product, and recording the current position as the second position P2;
[0046] S640, based on the recorded positions of the first position p1 and the second position p2, calculate the actual length, and calculate the optimal shortest moving time CT in combination with the acceleration a of the manipulator and the speed parameter v of the manipulator.
[0047] Furthermore, the present invention also proposes an AI vision-based automatic teaching device for a manipulator, which is used to implement the AI vision-based automatic teaching method for a manipulator. The AI vision-based automatic teaching device for a manipulator comprises:
[0048] An assembly line structure that continuously transports the products to be shifted;
[0049] A robot arm, wherein a camera is mounted on the robot arm, wherein the robot arm automatically identifies and grabs products from the assembly line structure, and moves the products to a preset product target position, wherein the product target position is at least one;
[0050] Chessboard calibration plate, the product target position is within the movable range of the manipulator.
[0051] Furthermore, the present invention also proposes a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a processor, the automatic teaching method of the manipulator based on AI vision is implemented.
[0052] The beneficial effects of the present invention are as follows:
[0053] In the present application, the AI vision-based automatic teaching method for a manipulator uses AI vision to replace human eyes, automatically generates control instructions to control the manipulator instead of manual adjustment, thereby improving work efficiency and safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a flow chart of the automatic teaching method of a manipulator based on AI vision according to the present invention.
[0055] Figure 2 Schematic diagram of an AI vision-based automatic teaching device for a manipulator according to the present invention.
[0056] Figure 3 Schematic diagram of a neural network model of a manipulator based on AI vision according to the present invention.
[0057] In the above figure, 100, assembly line structure; 200, robot; 300, product target position; 400, chessboard calibration board. DETAILED DESCRIPTION
[0058] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0059] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or it may be indirectly fixed or connected to the other feature. In addition, the descriptions of up, down, left, right, top, bottom, etc. used in the present invention are only relative to the relative positional relationship of the components of the present invention in the drawings.
[0060] In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments, not for limiting the present invention. The term "and / or" used herein includes any combination of one or more related listed items.
[0061] It should be understood that, although the terms first, second, third, etc. may be used to describe various elements in the present disclosure, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. For example, without departing from the scope of the present disclosure, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element.
[0062] Reference Figures 1 to 3 In some embodiments, according to the AI vision-based manipulator automatic teaching method and device of the present invention, the AI vision-based manipulator 200 automatic teaching method is applied to the AI vision-based manipulator 200 automatic teaching device, and the AI vision-based manipulator 200 automatic teaching device includes an assembly line structure 100, a manipulator 200, at least one product target position 300 and a chessboard calibration plate 400. The assembly line structure 100 is used to transmit products to be shifted. The manipulator 200 is equipped with a shooting device, which automatically identifies the products on the assembly line structure 100. The manipulator 200 grabs the product placed on the assembly line structure 100 and places the product on a carrier plate at a preset product target position 300. The product target position 300 is within the reach of the manipulator 200. Figure 1 The automatic teaching method of the manipulator 200 based on AI vision includes the following steps:
[0063] S100, based on convolutional neural network, trains the shape of the product;
[0064] S200, confirming the position of the carrier board on the product target position 300 and the posture of the product placed on the carrier board, and obtaining a standard posture;
[0065] S300, calibrating the camera device by using the chessboard calibration board 400, and calculating the internal parameters and distortion coefficient of the camera device;
[0066] S400, calculating the conversion relationship between the coordinate system of the manipulator 200 and the camera device based on the hand-eye calibration algorithm Tsai-LenZ;
[0067] S500, after the hand-eye calibration is completed, the manipulator 200 randomly grabs a product from the assembly line structure 100, and adjusts the posture of the manipulator 200 so that the product matches the standard posture;
[0068] S600 , the robot 200 moves the product from the assembly line structure 100 to the carrier at the product target position 300 .
[0069] The beneficial effects of the present invention are as follows:
[0070] In the present application, the automatic teaching method of the manipulator 200 based on AI vision uses AI vision to replace human eyes, automatically generates control instructions to control the manipulator 200 to replace manual adjustment, thereby improving work efficiency and enhancing safety.
[0071] Specifically, the automatic teaching method of the manipulator 200 based on AI vision is to solve the low efficiency and unsafe situation of human hand-eye teaching, and utilizes artificial intelligence and machine vision methods to improve the teaching efficiency and avoid the problem of the manipulator 200 injuring people due to misoperation.
[0072] In actual applications, the time consumed by manual teaching varies depending on the product and the test machine. Taking a simple cylinder as an example, the process of manual teaching in the prior art is as follows:
[0073] a) The products to be tested need to be stored on a fixed tray with a fixed orientation and without tilt.
[0074] b) Manually adjusting the robot 200 to grab the product requires the robot 200 to completely match the product.
[0075] c) A person needs to manually drag the robot 200 to each target position to simulate the picking and placing of the product.
[0076] d) After the coordinates are aligned, the key positions need to be saved manually. In order to speed up, multiple actions need to be decomposed and synthesized.
[0077] e) If you change to a different product, the whole process needs to be repeated.
[0078] f) Due to differences in accuracy, slight deviations in position often occur during the test, resulting in damage to the product.
[0079] During use, since only fixed positions can be used, if there is an offset in any place, it will not work properly.
[0080] The present invention proposes the automatic teaching method of the manipulator 200 based on AI vision. After using this method, as long as the product flows randomly through the assembly line, the product shape is trained, and the target position is photographed at different angles for training; after the base is sufficient, the automatic teaching process is started. After the teaching is completed, the manipulator 200 is analyzed for each key position to calculate the optimal path and speed. During use, the deviation can also be dynamically calculated to prevent a component from being used normally due to displacement.
[0081] Further, refer to Figure 1 , the step S100 comprises the following steps:
[0082] S110, batches of differently labeled products flow into the pipeline structure 100, a shooting device disposed on the manipulator 200 shoots the products to obtain a plurality of first product images, and the plurality of first product images are randomly classified into a training data set, a verification data set, and a test data set;
[0083] S120, preprocessing the first product image, rotating, translating, and flipping the first product image based on ImageDataGenerator of Tensorflow to obtain multiple second product images;
[0084] S130, based on the neural network model, training the first product image and the second product image based on the training data set, and optimizing the network parameters of the convolutional neural network;
[0085] S140. Based on the verification data set and the test data set, verify and test the convolutional neural network with modified network parameters.
[0086] Further, refer to Figure 3 In step S130,
[0087] The neural network model is created based on the Sequential module of Tensorflow;
[0088] The neural network model includes a first convolution layer Conv2D_1, a first maximum pooling layer MaxPooling2D_1, a second convolution layer Conv2D_2, a second maximum pooling layer MaxPooling2D_2, a third convolution layer Conv2D_3, a third maximum pooling layer MaxPooling2D_3, a flattening layer Flattern, a first fully connected layer Dense_1, an output regularization layer Dropout and a second fully connected layer Dense_2, which are connected in sequence.
[0089] Further, refer to Figure 1 , the step S300 comprises:
[0090] S310, based on the opencv library, the shooting device shoots multiple chessboard calibration plate 400 images;
[0091] S320, based on the findChessboardCorners module of cv2, detecting the positions of chessboard corner points in the chessboard calibration plate 400 image;
[0092] S330, based on the calibbrateCamera module of cv2, calculate the correspondence between the position of the chessboard corner point on the image plane of the chessboard calibration plate 400 and the position in the actual space, and obtain the internal parameters and distortion coefficients of the shooting device.
[0093] Specifically, different cameras have different intrinsic parameters, so a calibration plate is needed to calculate the camera's intrinsic parameters and distortion coefficients. Some pinhole cameras will cause obvious distortion to the image. The two main deformations are radial deformation and tangential deformation. Radial deformation will cause straight lines to bend. The farther from the center of the image, the greater the radial distortion.
[0094] Further, refer to Figure 1 , the step S400 includes:
[0095] S410, based on the Python Numpy library, solve the relationship between the transformation matrix X between the shooting device and the end of the manipulator 200, the motion matrix A of the manipulator 200, and the shooting device motion matrix B;
[0096] S420, moving the manipulator 200 and the camera to record multiple sets of position data sets (A i ,B i ), each position data set includes a motion matrix A of the manipulator 200 and a motion matrix B of the camera device, and multiple sets of position data sets (A i ,B i ) is decomposed into the rotation matrix R Ai and R Bi ;
[0097] S430, based on the relationship between the unit quaternion and the rotation, establish a rotation matrix equation, convert the rotation matrix equation into a linear equation system, and obtain the rotation matrix Rx by solving the singular value;
[0098] S440, based on the rotation matrix Rx, establish the translation equation to solve the translation vector t x ;
[0099] S450, the translation vector t x Combined with the rotation matrix Rx into the transformation matrix X;
[0100] S460. Specify the actual coordinates and calculate the transformation matrix X.
[0101] Further, refer to Figure 1 In step S420, the relationship between the transformation matrix X between the camera and the end of the manipulator 200, the motion matrix A of the manipulator 200, and the camera motion matrix B is:
[0102] AX=XB
[0103] Where A is the motion matrix of the manipulator 200, B is the motion matrix of the camera, and X is the transformation matrix between the camera and the end of the manipulator 200. The transformation matrix X between the end of the manipulator 200 includes the rotation matrix R x and the translation vector t x ;
[0104] In step S430, the rotation matrix equation is:
[0105] R Ai R x =R x t Bi
[0106] Among them, R Ai is the rotation matrix component of the motion matrix of the manipulator 200, R Bi is the rotation matrix component of the camera motion matrix, i is a plurality of position data sets (A i ,B i ) in the sequence number, R x It is the rotation matrix component of the transformation matrix between the photographing device and the end of the robot 200.
[0107] Specifically, the hand-eye calibration is actually to solve the conversion relationship between the camera coordinate system and the end coordinate system of the manipulator 200.
[0108] Further, refer to Figure 1 In step S440, the translation equation is:
[0109] T Ai +RAi t x =R x t Bi +t x
[0110] Among them, t Ai is the rotation and translation vector component of the motion matrix of the manipulator 200, R Ai is the rotation matrix component of the motion matrix of the manipulator 200, t x is the translation vector, R x is the rotation matrix component of the transformation matrix between the camera and the end of the robot 200, t Bi is the translation vector component of the camera motion matrix.
[0111] Further, refer to Figure 1 In step S440, the transformation matrix X is:
[0112]
[0113] Where X is the transformation matrix, t x is the translation vector, R x It is the rotation matrix component of the transformation matrix between the photographing device and the end of the robot 200.
[0114] Further, refer to Figure 1 , the step S600 includes,
[0115] S610, the robot 200 holds the product, and at the same time, the camera captures the picture in real time, and calculates the target position in real time;
[0116] S620, the manipulator 200 moves close to the product target position 300, and after the manipulator 200 safely reaches above the product target position 300, the current position is recorded as the first position p1;
[0117] S630, based on the standard posture, stably placing the product on the carrier at the product target position 300, and recording the current position as the second position P2;
[0118] S640, based on the recorded positions of the first position p1 and the second position p2, calculate the actual length, and calculate the optimal shortest moving time CT in combination with the acceleration a of the manipulator 200 and the speed parameter v of the manipulator 200.
[0119] Further, refer to Figure 2 The present invention further proposes an automatic teaching device for a manipulator 200 based on AI vision, which is used to implement the automatic teaching method for a manipulator 200 based on AI vision. The automatic teaching device for a manipulator 200 based on AI vision comprises:
[0120] An assembly line structure 100 that continuously transports products to be shifted;
[0121] A robot 200, wherein a camera is installed on the robot 200, and the robot 200 automatically identifies and grabs the product from the assembly line structure 100, and moves the product to a preset product target position 300, wherein the product target position 300 is at least one;
[0122] The chessboard calibration plate 400 , the product target position 300 is within the movable range of the robot 200 .
[0123] Specifically, the products flow in through the assembly line structure 100, the robot 200 automatically identifies the products and grabs them, and tests that the product target position 300 is the target position where the product needs to be placed. The robot 200 and the camera are installed in an Eye-In-Hand manner, and the robot 200 is integrated with the camera.
[0124] Furthermore, the present invention also proposes a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a processor, the automatic teaching method of the AI vision-based manipulator 200 is implemented.
[0125] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of protection of the present disclosure. All should belong to the protection scope of the present invention. Within the protection scope of the present invention, its technical scheme and / or implementation method can have various modifications and changes.
Claims
1. An automatic teaching method for a manipulator based on AI vision, wherein the automatic teaching method for a manipulator (200) based on AI vision is applied to an automatic teaching device for a manipulator (200) based on AI vision, wherein the automatic teaching device for a manipulator (200) based on AI vision comprises an assembly line structure (100), a manipulator (200), at least one product target position (300) and a chessboard calibration plate (400), wherein the assembly line structure (100) is used to transmit products to be shifted, wherein the manipulator (200) is provided with a photographing device, wherein the photographing device automatically identifies products on the assembly line structure (100), wherein the manipulator (200) grabs products placed on the assembly line structure (100) and places the products on a carrier plate at a preset product target position (300), wherein the product target position (300) is within the reach of the manipulator (200), and wherein: The automatic teaching method of the manipulator (200) based on AI vision comprises the following steps: S100, based on convolutional neural network, trains the shape of the product; S200, confirming the position of the carrier plate on the product target position (300) and the posture of the product placed on the carrier plate, and obtaining a standard posture; S300, calibrating the camera device through a chessboard calibration board (400), and calculating the internal parameters and distortion coefficients of the camera device; S400, calculating the conversion relationship between the coordinate system of the manipulator (200) and the camera device based on the hand-eye calibration algorithm Tsai-LenZ; S500, after the hand-eye calibration is completed, the manipulator (200) randomly grabs a product from the assembly line structure (100), and adjusts the posture of the manipulator (200) so that the product matches the standard posture; S600 , the robot ( 200 ) moves the product from the assembly line structure ( 100 ) to the carrier at the product target position ( 300 ).
2. The AI vision-based automatic teaching method for manipulators according to claim 1 is characterized in that: The step S100 includes the following steps: S110, batches of differently labeled products flow in through the pipeline structure (100), a photographing device arranged on the robot (200) photographs the products to obtain a plurality of first product images, and the plurality of first product images are randomly classified into a training data set, a verification data set, and a test data set; S120, preprocessing the first product image, rotating, translating, and flipping the first product image based on ImageDataGenerator of Tensorflow to obtain multiple second product images; S130, based on the neural network model, training the first product image and the second product image based on the training data set, and optimizing the network parameters of the convolutional neural network; S140. Based on the verification data set and the test data set, verify and test the convolutional neural network with modified network parameters.
3. The AI vision-based automatic teaching method for manipulators according to claim 2 is characterized in that: In the step S130, the neural network model is created based on the Sequential module of Tensorflow; The neural network model includes a first convolution layer Conv2D_1, a first maximum pooling layer MaxPooling2D_1, a second convolution layer Conv2D_2, a second maximum pooling layer MaxPooling2D_2, a third convolution layer Conv2D_3, a third maximum pooling layer MaxPooling2D_3, a flattening layer Flattern, a first fully connected layer Dense_1, a Dropout layer and a second fully connected layer Dense_2, which are connected in sequence.
4. The AI vision-based automatic teaching method for manipulators according to claim 1 is characterized in that: The step S300 includes: S310, based on the opencv library, a photographing device photographs a plurality of chessboard calibration plate (400) images; S320, based on the findChessboardCorners module of cv2, detecting the positions of chessboard corner points in the chessboard calibration plate (400) image; S330, based on the calibbrateCamera module of cv2, calculate the correspondence between the position of the chessboard corner point on the image plane of the chessboard calibration plate (400) and the position in the actual space, and obtain the internal parameters and distortion coefficients of the shooting device.
5. The AI vision-based automatic teaching method for manipulators according to claim 1 is characterized in that: The step S400 includes: S410, based on the Python Numpy library, solving the relationship between the transformation matrix X between the shooting device and the end of the manipulator (200), the motion matrix A of the manipulator (200), and the shooting device motion matrix B; S420, moving the manipulator (200) and the camera to record multiple sets of position data sets (A i ,B i ), each position data set includes a motion matrix A of the manipulator (200) and a motion matrix B of the camera device, and multiple sets of position data sets (A i ,B i ) is decomposed into the rotation matrix R Ai and R Bi ; S430, based on the relationship between the unit quaternion and the rotation, establish a rotation matrix equation, convert the rotation matrix equation into a linear equation system, and obtain the rotation matrix Rx by solving the singular value; S440, based on the rotation matrix Rx, establish the translation equation to solve the translation vector t x ; S450, the translation vector t x Combined with the rotation matrix Rx into the transformation matrix X; S460. Specify the actual coordinates and calculate the transformation matrix X.
6. The AI vision-based automatic teaching method for manipulators according to claim 5 is characterized in that: In step S420, the relationship between the transformation matrix X between the photographing device and the end of the manipulator (200), the motion matrix A of the manipulator (200), and the photographing device motion matrix B is: AX=XB Wherein A is the motion matrix of the manipulator (200), B is the motion matrix of the camera device, X is the transformation matrix between the camera device and the end of the manipulator (200), and the transformation matrix X between the end of the manipulator (200) includes the rotation matrix R x and the translation vector t x ; In step S430, the rotation matrix equation is: R Ai R x =R x R Bi Among them, R A i is the rotation matrix component of the motion matrix of the manipulator (200), R B i is the rotation matrix component of the motion matrix of the camera, i is a plurality of position data sets (A i ,B i ) in the sequence number, R x It is the rotation matrix component of the transformation matrix between the photographing device and the end of the robot (200).
7. The AI vision-based automatic teaching method for manipulators according to claim 5 is characterized in that: In step S440, the translation equation is: T Ai +R Ai t x =R x t Bi +t x Among them, t A i is the rotation and translation vector component of the motion matrix of the manipulator (200), R A i is the rotation matrix component of the motion matrix of the manipulator (200), t x is the translation vector, R X is the rotation matrix component of the transformation matrix between the photographing device and the end of the manipulator (200), t B i is the translation vector component of the camera motion matrix.
8. The AI vision-based automatic teaching method for manipulators according to claim 5 is characterized in that: In step S440, the transformation matrix X is: Where X is the transformation matrix, t X is the translation vector, R X It is the rotation matrix component of the transformation matrix between the photographing device and the end of the robot (200).
9. The AI vision-based automatic teaching method for manipulators according to claim 1, characterized in that: The step S600 includes: S610, the robot (200) holds the product, and at the same time, the camera captures the picture in real time, and calculates the target position in real time; S620, moving the manipulator (200) close to the product target position (300), and after the manipulator (200) safely reaches above the product target position (300), recording the current position as the first position p1; S630, based on the standard posture, stably placing the product on the carrier at the product target position (300), and recording the current position as the second position P2; S640, based on the recorded positions of the first position p1 and the second position p2, calculate the actual length, and combine the acceleration a of the manipulator (200) and the speed parameter v of the manipulator (200) to calculate the optimal shortest moving time CT.
10. An AI vision-based automatic teaching device for a manipulator, used to implement the AI vision-based automatic teaching method for a manipulator (200) as claimed in any one of claims 1 to 9, characterized in that: The AI vision-based automatic teaching device for the manipulator (200) comprises: An assembly line structure (100), the assembly line structure (100) continuously transports products to be shifted; A robot (200), wherein a photographing device is installed on the robot (200), and the robot (200) automatically identifies and grabs products from the assembly line structure (100), and moves the products to a preset product target position (300), wherein the product target position (300) is at least one; A chessboard calibration plate (400), wherein the product target position (300) is within a movable range of the robot (200).
