CN114905521A - Robot origin position calibration method and device, electronic equipment and storage medium - Google Patents
Robot origin position calibration method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114905521A CN114905521A CN202210838418.4A CN202210838418A CN114905521A CN 114905521 A CN114905521 A CN 114905521A CN 202210838418 A CN202210838418 A CN 202210838418A CN 114905521 A CN114905521 A CN 114905521A
- Authority
- CN
- China
- Prior art keywords
- target point
- robot
- calibration
- module
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1679—Programme controls characterised by the tasks executed
- B25J9/1692—Calibration of manipulator
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1602—Programme controls characterised by the control system, structure, architecture
- B25J9/161—Hardware, e.g. neural networks, fuzzy logic, interfaces, processor
Abstract
The invention relates to the technical field of robots, and discloses a method and a device for calibrating an original point position of a robot, electronic equipment and a storage medium, wherein the method comprises the following steps: configuring an end effector tool of the robot and establishing a target point tool; moving the end effector to the target point at 20 different poses of the robot on 4 planes, respectively; obtaining the coordinates of the end tool by using a least square method; obtaining a virtual target point; taking the virtual target point as an initial value, performing theoretical calculation of a random method, obtaining a weight, and obtaining a new virtual target after resampling by adopting resampling; iterating and calibrating an equation by combining Jacobian pseudo-inverse with a damping value; and calculating the matching degree of the joint angle under each posture and the target point joint angle until the matching degree is greater than or equal to a set threshold value. The robot origin position calibration method provided by the invention has the advantages of more stable calibration, stronger anti-interference performance and capability of searching for the target point more quickly.
Description
Technical Field
The invention relates to the technical field of robots, in particular to a method and a device for calibrating an original point position of a robot, electronic equipment and a storage medium.
Background
With the rapid development of the robot technology, the functional requirements of people on the robot are continuously expanded, the motion controller is the premise for realizing various functions of the robot, and the calibration of the origin position of the robot is the basic condition of the motion controller, so the calibration and development of the origin position of the robot face huge challenges.
However, in the conventional origin position calibration technology, a manual calibration method occupies a main position, but the origin position calibration error is greatly influenced by manual assembly, and the efficiency is low. Therefore, although the origin position calibration method using a measuring tool such as a laser tracker or a calibration plate has been developed, the cost is high and is limited by the configuration of the robot arm. In addition, the traditional origin position calibration method is weak in stability and the anti-interference performance needs to be improved. In addition, in the actual operation process, it often takes a long time to find the calibration target point.
Therefore, how to improve the stability of the robot origin position calibration method with low cost and quickly find out the calibration target point is a problem to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for calibrating an origin position of a robot, which can improve the stability of the method for calibrating the origin position of the robot at low cost and quickly find out a calibration target point.
In a first aspect, an embodiment of the present invention provides a method for calibrating an origin position of a robot, including:
step S1, configuring the end effector tool of the robot, establishing a target point tool and fixing;
step S2, moving the end effector to the target point on 4 planes of the target point respectively in 20 different postures of the robot;
step S3, recording the information of each joint aiming at the target point under the 20 different postures;
step S4, acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state;
step S5, obtaining the position of the target point under each posture through the tool coordinate; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
step S6, taking the virtual target point as an initial value, performing theoretical calculation of a random method, obtaining a weight, and obtaining a new virtual target point after resampling by adopting resampling;
step S7, establishing 20 calibration equations of different postures below the reference target point by taking the resampled new virtual target point as the reference target point; performing joint angle iteration by combining the Jacobian pseudo-inverse with a damping value;
step S8, calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is larger than or equal to a set threshold value; if the matching degree is less than the set threshold, repeating steps S4-S7 until the matching degree is greater than or equal to the set threshold.
Further, in step S6, the resampling method specifically includes:
step S61 is calculating a plurality of new virtual random target points,in the formula (I), wherein,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
step S62, difference value weighting is carried out:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,is the corresponding target point position under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
step S64, weight sorting:whereinIFor the weight corresponding to the gesture sequence, usesortThe function sorts the weight sequence from small to large;
step S65, calculating the gesture sequence corresponding to the maximum weightSelectingI0.8 th in the sequencenumTonumA numerical value;
step S66, resampling calculation:wherein, in the step (A),for the new virtual target point after resampling,for the summation of the new maximum random virtual target points,is composed ofThe number of virtual target point sequences in (c).
In a second aspect, an embodiment of the present invention provides a device for calibrating an origin position of a robot, including:
a configuration module for configuring the end effector tool of the robot, establishing a target point tool and fixing;
a pose module moving the end effector to the target point at 20 different poses of the robot on 4 planes of the target point, respectively;
the alignment module is used for recording the information of each joint aligning the target point under the 20 different postures;
the coordinate module is used for acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state;
the virtual target point module is used for obtaining the position of a target point under each posture through the tool coordinates; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
the resampling module is used for carrying out theoretical calculation of a random method by taking the virtual target point as an initial value, obtaining a weight and obtaining a new virtual target point after resampling by adopting resampling;
the iteration module is used for establishing 20 calibration equations with different postures below a reference target point by taking the resampled new virtual target point as the reference target point; performing joint angle iteration by combining Jacobian pseudo-inverse with a damping value;
the matching module is used for calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is greater than or equal to a set threshold value; if the matching degree is smaller than the set threshold, repeating the coordinate module to the iteration module until the matching degree is larger than or equal to the set threshold.
Further, the resampling module specifically includes:
a new random target point module calculates a plurality of new virtual random target points,in the formula (I), wherein,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
the right solving module performs difference right solving:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,the corresponding target point positions under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
a sorting module, wherein the weight sorting comprises the following steps:whereinIFor the weight corresponding to the gesture sequence, usesortThe function sorts the weight sequence from small to large;
attitude sequence module for calculating maximum weight value corresponding attitude sequenceSelectingI0.8 in the sequencenumTonumA numerical value;
a virtual target point resampling module:wherein, in the process,for the new virtual target point after resampling,for the summation of the new maximum random virtual target points,is composed ofThe number of virtual target point sequences in (c).
In a third aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a processor, a memory and a bus, wherein the processor is connected with the memory through the bus, and the memory stores computer readable instructions which are used for realizing the steps of the method provided by the first aspect and any one of the implementation modes of the first aspect when being executed by the processor.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, to implement the steps in the method provided in any one of the foregoing first aspect and the first embodiment of the first aspect.
The method has the following advantages that: (1) compared with the traditional calibration tool, the 20-point calibration tool utilizing the 4 planes is more stable, the anti-interference performance is stronger, and when a certain deviation exists in the position of the origin, the coordinates of the calibration tool are more accurate, so that the target point is more favorably found. (2) Reducing the iteration times by combining a resampling method and searching a target point more quickly; (3) the improved Jacobian inverse solution method can more effectively approach a true value without reselecting the configuration of the mechanical arm, so that the stability of the algorithm is improved; (4) and in case of non-ideal conditions, fine calibration can be performed again after manual fine adjustment is performed according to the first result.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a robot origin position calibration method according to an embodiment of the present invention;
fig. 2 is a layout diagram of 4 planes in a robot origin position calibration method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a robot origin position calibration apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the existing robot calibration technology, a manual calibration mode occupies a main position, but the origin position calibration error is greatly influenced by manual assembly, and the efficiency is low. Therefore, the origin position calibration method using a measuring tool such as a laser tracker or a calibration plate has been developed, but the cost is high and is limited by the configuration of the robot arm. In addition, the stability of the traditional calibration method is weak, and the anti-interference performance needs to be improved. In addition, in the actual operation process, it often takes a long time to find the calibration target point.
The embodiment provides a method for calibrating an origin position of a robot, which comprises the following steps:
step S1, configuring the end effector tool of the robot, establishing a target point tool and fixing; as shown in fig. 1, the left drawing is the fixed target point, and the right drawing is the robot end effector located on the robot arm.
Step S2, moving the end effector to the target point on 4 planes of the target point respectively in 20 different postures of the robot; the process of setting the plane is specifically shown in fig. 1 and 2, and the specific process is as follows:
the plane distribution method can select a comfortable plane according to the configuration of the robot, and the plane has calibration points with larger configuration difference, so that the required main features can be extracted more stably. As shown in fig. 1, there are planes 1 intersecting in 45 degrees, respectively, where the attitude motion of the planar robot is affected to some extent, and 5 fixed marks are marked as (1, 5); parallel to the tip plane 2, because the robot has wide attitude motion space, 9 calibration points are marked fixedly and are marked as (2, 9); intersecting the 45-degree direction plane 3, the plane is marked with 5, and is marked as (3, 5); and (4) because the motion attitude of the plane robot is only related to six joints, the influence of a plurality of attitudes on the solution under the plane is small, and only 1 calibration point needs to be marked and is marked as (4, 1).
And moving the end effector to a target point under a first plane in 5 different postures of the cooperative robot, ensuring that the amplitude of each posture is large, and recording joint information under the 5 postures through software setting points 1,2, 3, 4 and 5.
The end effector was moved to the target point in 9 different poses of the cooperative robot under the second plane, and joint information in 9 poses was recorded by software setting points 6, 7, 8, 9, 10, 11, 12, 13, 14.
The end effector is moved to the target point in 5 different poses of the cooperative robot under the third plane, and joint information in 5 poses is recorded by software set points 15, 16, 17, 18, 19.
Moving the end effector to a target point under the fourth plane in 1 posture of the cooperative robot, recording joint information under the current state through a software set point 20, and calculating;
step S3, recording the information of each joint aiming at the target point under the 20 different postures;
step S4, acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state; the specific process is as follows:
formula for calculationIn the formula (I), the reaction is carried out,Fthe pose is the pose in the joint state,qin order to input the information on the joints,since a 6-joint robot is used as the initial origin angle value of the robot, the initial origin angle value is generally assumed to be [0,0,0,0],RBased on the posture of the robot under the base coordinate system,Pbased on the position in the base coordinate system.
By means of a plurality of different robot attitude information, a least square method formula is utilizedThe end-tool coordinates are obtained, where,in the form of end-of-line tool coordinates,is a set of 20 attitude differences,is a set of 20 position differences.
Step S5, obtaining the position of the target point under each posture through the tool coordinate; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
computingIn the formula (I), wherein,is the corresponding target point position under 20 postures of the base coordinate system,jis 1,2, … 20.
The obtained 20 target points are summed and averaged:,sumthe sum formula is obtained, so that the virtual target point closest to 20 points is obtained, and is regarded as the target tip target point.
Step S6, taking the virtual target point as an initial value, performing theoretical calculation of a random method, obtaining a weight, and obtaining a new virtual target point after resampling by adopting resampling; the method specifically comprises the following steps:
step S61 is calculating a plurality of new virtual random target points,in the formula (I), wherein,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
step S62, difference value weighting is carried out:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,is the corresponding target point position under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
step S64, weight sorting:whereinIFor the weight corresponding to the gesture sequence, usesortThe function sorts the weight sequence from small to large;
step S65, calculating the gesture sequence corresponding to the maximum weightSelectingI0.8 th in the sequencenumTonumA numerical value;
step S66 resampling calculation:Wherein, in the step (A),for the new virtual target point after resampling,for the summation of the new maximum random virtual target points,is composed ofThe number of virtual target point sequences in (c).
Step S7, establishing 20 calibration equations of different postures below the reference target point by taking the resampled new virtual target point as the reference target point; iteration is carried out by combining the Jacobian pseudo-inverse with a damping value;
calculating outIn the formula (I), wherein,the difference between the new virtual target point obtained by resampling and the target point position in each posture,Jthe matrix of the Jacobian is obtained,is the origin angle compensation value.
Therefore, the temperature of the molten metal is controlled,in the formula (I), wherein,is a pseudo-inverse matrix of Jacobian.
The pseudo-inverse matrix of Jacobian is easy to generate singular valuesTherefore, an improved jacobian pseudo-inverse is needed to iterate in conjunction with the damping values:in the formula (I), wherein,kthe value is usually 0.001. Because the traditional Jacobian generally needs to use a pseudo-inverse matrixCombining the damping value, svd decomposition is used to obtain singular value, and the damping value is judged in real timekAnd the Jacobian inverse matrix improved by the method is selected due to the damping value, the calculation is complex and time-consuming, and the real-time approximation of the Jacobian inverse matrix cannot be realizedkA small value can be taken to approximate the inverse jacobian matrix in real time.
step S8, calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is more than or equal to a set threshold value; if the matching degree is less than the set threshold, repeating steps S4-S7 until the matching degree is greater than or equal to the set threshold. The specific process is as follows:
will be provided withCompensating to the 20 sets of joint angles of step S4 to obtain a new initial origin angle value. And repeating the steps S4-S7 until the matching degree reaches a threshold value, indicating that the target points corresponding to all the postures are the same target point, and meeting the jumping-out condition, thereby obtaining an accurate origin position angle value and obtaining a final origin position compensation angle.
If the calibration is not ideal, the calibration method can be implemented automatically by storing the 6 joint positions of 20 robots at the first calibration according to the result of the first 20-point calibration, performing manual fine adjustment and correction, and then automatically performing the fine calibration again by using the stored 6 joint positions of 20 robots.
By the technical scheme, the robot origin position calibration method has the following advantages: (1) compared with the traditional calibration tool, the 20-point calibration tool utilizing the 4 planes is more stable, the anti-interference performance is stronger, and when a certain deviation exists in the position of the origin, the coordinates of the calibration tool are more accurate, so that the target point is more favorably found. (2) Reducing the iteration times by combining a resampling method and searching a target point more quickly; (3) the improved Jacobian inverse solution method can more effectively approach a true value without reselecting the configuration of the mechanical arm, so that the stability of the algorithm is improved; (4) and in case of non-ideal conditions, fine calibration can be performed again after manual fine adjustment is performed according to the first result.
According to an embodiment of the present invention, there is also provided an origin position calibration apparatus corresponding to a robot, as shown in fig. 3, the origin position calibration apparatus includes the following modules:
a configuration module for configuring the end effector tool of the robot, establishing a target point tool and fixing; as shown in fig. 1, the left drawing is the fixed target point, and the right drawing is the robot end effector located on the robot arm.
A pose module moving the end effector to the target point at 20 different poses of the robot on 4 planes of the target point, respectively; the process of setting the plane is specifically shown in fig. 1 and 2, and the specific process is as follows:
the plane distribution method can select a comfortable plane according to the configuration of the robot, and the plane has calibration points with larger configuration difference, so that the required main features can be extracted more stably. As shown in fig. 1, there are planes 1 intersecting in 45 degrees, respectively, where the attitude motion of the planar robot is affected to some extent, and 5 fixed marks are marked as (1, 5); parallel to the tip plane 2, because the robot has wide attitude motion space, 9 calibration points are marked fixedly and are marked as (2, 9); intersecting the 45-degree direction plane 3, the plane is marked with 5, and is marked as (3, 5); and (4) because the motion attitude of the plane robot is only related to six joints, the influence of a plurality of attitudes on the solution under the plane is small, and only 1 calibration point needs to be marked and is marked as (4, 1).
And moving the end effector to a target point under a first plane in 5 different postures of the cooperative robot, ensuring that the amplitude of each posture is large, and recording joint information under the 5 postures through software setting points 1,2, 3, 4 and 5.
The end effector was moved to the target point in 9 different poses of the cooperative robot in the second plane and the joint information in 9 poses was recorded by software set points 6, 7, 8, 9, 10, 11, 12, 13, 14.
The end effector is moved to the target point in 5 different poses of the cooperative robot under the third plane, and joint information in 5 poses is recorded by software set points 15, 16, 17, 18, 19.
Moving the end effector to a target point under the fourth plane in 1 posture of the cooperative robot, recording joint information under the current state through a software set point 20, and calculating;
the alignment module is used for recording the information of each joint aligned to the target point under the 20 different postures;
the coordinate module is used for acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state; the specific process is as follows:
formula for calculationIn the formula (I), wherein,Fthe pose is the pose in the joint state,qin order to input the information on the joints,since a 6-joint robot is used as the initial origin angle value of the robot, the initial origin angle value is generally assumed to be [0,0,0,0],RBased on the posture of the robot under the base coordinate system,Pbased on a base coordinate systemLocation.
By means of a plurality of different robot attitude information, a least square method formula is utilizedThe end-tool coordinates are obtained, where,in the form of end-of-line tool coordinates,is a set of 20 attitude differences,is a set of 20 position differences.
The virtual target point module is used for obtaining the position of a target point under each posture through the tool coordinates; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
computingIn the formula (I), the reaction is carried out,for the corresponding target point positions in 20 poses of the base coordinate system,j1,2, … 20.
The obtained 20 target points are summed and averaged:,sumthe sum formula is obtained, so that the virtual target point closest to 20 points is obtained, and is regarded as the target tip target point.
The resampling module is used for carrying out theoretical calculation of a random method by taking the virtual target point as an initial value, obtaining a weight and obtaining a new virtual target point after resampling by adopting resampling; the method specifically comprises the following steps:
a new random target point module calculates a plurality of new virtual random target points,in the formula (I), wherein,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
the right solving module performs difference right solving:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,is the corresponding target point position under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
a sorting module, wherein the weight sorting comprises the following steps:whereinIFor the weight corresponding to the gesture sequence, usesortFunction pair weight sequenceSorting from small to large;
attitude sequence module for calculating maximum weight value corresponding attitude sequenceSelectingI0.8 th in the sequencenumTonumA numerical value;
a virtual target point resampling module:wherein, in the step (A),for the new virtual target point after resampling,for the summation of the new maximum random virtual target points,is composed ofThe number of virtual target point sequences in (c).
The iteration module is used for establishing 20 calibration equations with different postures below a reference target point by taking the resampled new virtual target point as the reference target point; iteration is carried out by combining the Jacobian pseudo-inverse with a damping value;
computingIn the formula (I), wherein,the difference between the new virtual target point obtained by resampling and the target point position in each posture,Jis a matrix of the Jacobian and the Jacobian,is the origin angle compensation value.
Therefore, the temperature of the molten metal is controlled,in the formula (I), wherein,is a pseudo-inverse matrix of Jacobian.
Since the pseudo-inverse matrix of Jacobian easily generates singular values, improved Jacobian pseudo-inverses are needed to iterate in combination with the damping values:in the formula (I), the reaction is carried out,kthe value is usually 0.001. Because the traditional Jacobian generally needs to use a pseudo-inverse matrixIn combination with the damping value, svd decomposition is used to obtain singular value, and the damping value is judged in real timekAnd the Jacobian inverse matrix improved by the method is selected due to the damping value, the calculation is complex and time-consuming, and the real-time approximation of the Jacobian inverse matrix cannot be realizedkA small value can be taken to approximate the inverse jacobian matrix in real time.
the matching module is used for calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is greater than or equal to a set threshold value; if the matching degree is smaller than the set threshold, repeating the coordinate module to the iteration module until the matching degree is larger than or equal to the set threshold. The specific process is as follows:
will be provided withCompensating to 20 groups of joint angles of the coordinate module to obtain a new initial origin angle value. And repeating the coordinate module to the iteration module until the matching degree reaches a threshold value, wherein the target points corresponding to all the postures are the same target point, and the jumping-out condition is met, so that an accurate original point position angle value is obtained, and a final original point position compensation angle is obtained.
If the calibration is not ideal, the calibration method can be implemented automatically by storing the 6 joint positions of 20 robots at the first calibration according to the result of the first 20-point calibration, performing manual fine adjustment and correction, and then automatically performing the fine calibration again by using the stored 6 joint positions of 20 robots.
Through the technical scheme, the robot origin position calibration device has the following advantages: (1) compared with the traditional calibration tool, the 20-point calibration tool utilizing the 4 planes is more stable, the anti-interference performance is stronger, and when a certain deviation exists in the position of the origin, the coordinates of the calibration tool are more accurate, so that the target point is more favorably found. (2) Reducing the iteration times by combining a resampling method and searching a target point more quickly; (3) the improved Jacobian inverse solution method can more effectively approach a true value without reselecting the configuration of the mechanical arm, so that the stability of the algorithm is improved; (4) and in case of non-ideal conditions, fine calibration can be performed again after manual fine adjustment is performed according to the first result.
According to an embodiment of the present invention, there is also provided an electronic device corresponding to a robot origin position calibration method, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method steps of the origin position calibration method when executing the computer program.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium corresponding to the method for calibrating an origin position of a robot, the computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps of the above-described method for calibrating an origin position.
An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a server to perform the method steps of the above-mentioned origin position calibration method.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the system apparatus into only one logical functional division may be implemented in other ways, and for example, a plurality of apparatuses or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention, and various modifications and changes may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for calibrating the position of an origin of a robot is characterized by comprising the following steps:
step S1, configuring the end effector tool of the robot and fixing the target point tool;
step S2, moving the end effector to the target point on 4 planes of the target point respectively in 20 different postures of the robot;
step S3, recording the information of each joint aiming at the target point under the 20 different postures;
step S4, acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state;
step S5, obtaining the position of the target point under each posture through the tool coordinate; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
step S6, taking the virtual target point as an initial value, performing theoretical calculation of a random method, obtaining a weight, and obtaining a new virtual target point after resampling by adopting resampling;
step S7, establishing 20 calibration equations of different postures below the reference target point by taking the resampled new virtual target point as the reference target point; performing joint angle iteration by combining Jacobian pseudo-inverse with a damping value;
step S8, calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is larger than or equal to a set threshold value; if the matching degree is less than the set threshold, repeating steps S4-S7 until the matching degree is greater than or equal to the set threshold.
2. The method for calibrating the origin position of the robot according to claim 1, wherein in the step S6, the resampling method specifically comprises:
step S61-calculating a plurality of new virtual random target points,in the formula (I), the reaction is carried out,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
step S62, difference value weighting is carried out:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,is the corresponding target point position under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
step S64, weight sorting:whereinIFor the weight corresponding to the gesture sequence, usesortThe function sorts the weight sequence from small to large;
step S65, calculating the gesture sequence corresponding to the maximum weightSelectingI0.8 th in the sequencenumTonumA numerical value;
4. The method for calibrating the origin position of the robot according to claim 1, wherein if the calibration is not qualified, the positions of 6 joints of 20 robots in the first calibration are saved according to the result of the first 20-point calibration, and after the manual fine adjustment correction, the saved positions of 6 joints of 20 robots are automatically used for the first fine calibration.
5. A robot origin position calibration device is characterized by comprising the following modules:
the configuration module is used for configuring an end effector tool of the robot and fixing a target point tool;
a pose module moving the end effector to the target point at 20 different poses of the robot on 4 planes of the target point, respectively;
the alignment module is used for recording the information of each joint aligned to the target point under the 20 different postures;
the coordinate module is used for acquiring the pose of each joint state by using the positive kinematics of the robot; obtaining the coordinate of the end tool by using a least square method according to the pose of each joint state;
the virtual target point module is used for obtaining the position of a target point under each posture through the tool coordinates; obtaining a virtual target point by combining the target point positions obtained under all postures with a mean value theory;
the resampling module is used for carrying out theoretical calculation of a random method by taking the virtual target point as an initial value, obtaining a weight and obtaining a new virtual target point after resampling by adopting resampling;
the iteration module is used for establishing 20 calibration equations with different postures below a reference target point by taking the resampled new virtual target point as the reference target point; performing joint angle iteration by combining Jacobian pseudo-inverse with a damping value;
the matching module is used for calculating the matching degree of the joint angle under each posture and the target point joint angle, and finishing calibration if the matching degree is greater than or equal to a set threshold value; if the matching degree is smaller than the set threshold, repeating the coordinate module to the iteration module until the matching degree is larger than or equal to the set threshold.
6. The robot origin position calibration device according to claim 5, wherein the resampling module is specifically:
a new random target point module calculates a plurality of new virtual random target points,in the formula (I), wherein,as a new virtual random target point,iis 1,2, …num,As a virtual target point, the target point,randin the form of a random function,numis the number of random values;
the right solving module is used for solving the right of the difference value:,as an initial weight value, the weight value,expin order to be an exponential function of the,jthe number of the channels being 1,2, … 20,is the corresponding target point position under the 1 st to 20 th postures under the base coordinate system; computing,Is the weight of the virtual target point;
a sorting module, wherein the weight sorting comprises the following steps:whereinIFor the weight corresponding to the gesture sequence, usesortThe function sorts the weight sequence from small to large;
attitude sequence module for calculating maximum weight value corresponding attitude sequenceSelectingI0.8 th in the sequencenumTonumA numerical value;
8. The robot origin position calibration device according to claim 5, wherein if the calibration is not qualified, the positions of 6 joints of 20 robots in the first calibration are simultaneously saved according to the result of the first 20-point calibration, and after the manual fine adjustment correction, the saved positions of 6 joints of 20 robots are automatically used for the first fine calibration.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for calibrating the location of the origin of the robot according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the method for calibrating an origin position of a robot according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210838418.4A CN114905521B (en) | 2022-07-18 | 2022-07-18 | Robot origin position calibration method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210838418.4A CN114905521B (en) | 2022-07-18 | 2022-07-18 | Robot origin position calibration method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114905521A true CN114905521A (en) | 2022-08-16 |
CN114905521B CN114905521B (en) | 2022-10-04 |
Family
ID=82772240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210838418.4A Active CN114905521B (en) | 2022-07-18 | 2022-07-18 | Robot origin position calibration method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114905521B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010143837A2 (en) * | 2009-06-08 | 2010-12-16 | (주)이지로보틱스 | Robot calibration apparatus and method for same |
JP2014180720A (en) * | 2013-03-19 | 2014-09-29 | Yaskawa Electric Corp | Robot system and calibration method |
CN107598919A (en) * | 2017-08-18 | 2018-01-19 | 华南理工大学 | A kind of two axle positioner scaling methods based on 5 standardizations |
WO2018199947A1 (en) * | 2017-04-26 | 2018-11-01 | Hewlett-Packard Development Company, L.P. | Robotic structure calibrations |
CN110962127A (en) * | 2019-12-10 | 2020-04-07 | 南京航空航天大学 | Auxiliary calibration device for tail end pose of mechanical arm and calibration method thereof |
CN112277009A (en) * | 2020-09-15 | 2021-01-29 | 唐山英莱科技有限公司 | Robot positioning method and computer readable storage medium |
-
2022
- 2022-07-18 CN CN202210838418.4A patent/CN114905521B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010143837A2 (en) * | 2009-06-08 | 2010-12-16 | (주)이지로보틱스 | Robot calibration apparatus and method for same |
JP2014180720A (en) * | 2013-03-19 | 2014-09-29 | Yaskawa Electric Corp | Robot system and calibration method |
WO2018199947A1 (en) * | 2017-04-26 | 2018-11-01 | Hewlett-Packard Development Company, L.P. | Robotic structure calibrations |
CN107598919A (en) * | 2017-08-18 | 2018-01-19 | 华南理工大学 | A kind of two axle positioner scaling methods based on 5 standardizations |
CN110962127A (en) * | 2019-12-10 | 2020-04-07 | 南京航空航天大学 | Auxiliary calibration device for tail end pose of mechanical arm and calibration method thereof |
CN112277009A (en) * | 2020-09-15 | 2021-01-29 | 唐山英莱科技有限公司 | Robot positioning method and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114905521B (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11353887B2 (en) | Robot centroid position adjustment method and apparatus and robot using the same | |
Tevatia et al. | Inverse kinematics for humanoid robots | |
CN112558547B (en) | Quick optimization method for geometric error compensation data of translational shaft of five-axis numerical control machine tool | |
CN107160401B (en) | Method for solving problem of joint angle deviation of redundant manipulator | |
Goldenberg et al. | A generalized solution to the inverse kinematics of robotic manipulators | |
Yang et al. | Multi-objective optimization of parallel manipulators using a game algorithm | |
Gupta et al. | Improved numerical solutions of inverse kinematics of robots | |
CN111283686A (en) | Grasping posture calculation method for live working robot in grasping branch line scene | |
CN112454366A (en) | Hand-eye calibration method | |
CN114611362A (en) | Installation and debugging method of large-scale instrument working surface, electronic device and medium | |
CN114905521B (en) | Robot origin position calibration method and device, electronic equipment and storage medium | |
WO2019114631A1 (en) | Method and device for acquiring tcp coordinates of robot | |
CN114072807B (en) | Milling robot multi-mode frequency response prediction method based on small sample transfer learning | |
CN113570659B (en) | Shooting device pose estimation method, device, computer equipment and storage medium | |
CN115179288A (en) | Inverse kinematics solution method for robot, and computer-readable storage medium | |
CN112792816B (en) | Geometry-based hand-eye calibration method, robot, computer and storage medium | |
CN111504276B (en) | Visual projection scale factor set-based joint target function multi-propeller attitude angle acquisition method | |
WO2019114630A1 (en) | Method and device for obtaining coordinates of tcp of robot | |
Zhou et al. | Research on kinematics solution of 7-axis redundant robot based on self-motion | |
Ledesma et al. | A Lagrangian approach to the non‐causal inverse dynamics of flexible multibody systems: The three‐dimensional case | |
KR20160040027A (en) | Muti-degree of freedom(dof) system having parallel structure and method for deriving optimum solution thereof, parallel type manipulator using the same | |
CN117733872B (en) | Series robot inverse kinematics control method based on directional performance | |
CN111814269B (en) | RES-SCA algorithm-based inverse kinematics real-time analytical solution optimization method | |
CN112847441B (en) | Six-axis robot coordinate offset detection method and device based on gradient descent method | |
CN115375726A (en) | Motion estimation method and device based on point-line characteristics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |