Embodiments of the present disclosure in general relate to the field of robots, and in particular to a robot hand-eye calibration method, an apparatus, a computing device, a medium, and a product.
In industrial applications, robots need to rely on a hand-eye system to perform tasks such as machining, installation, etc. The hand-eye system is a visual system including a camera and a robot arm. The camera is equivalent to the human eye, and the end of the robot arm is equivalent to a human hand.
Vision positioning guides the robot arm to perform tasks. Firstly, the camera coordinates and the robot coordinates must be calibrated, so that the camera coordinates for vision positioning are converted into the robot coordinates to complete the vision guidance, wherein hand-eye calibration is the key to the vision-guided robot arm.
At present, this hand-eye calibration process is usually done manually, and the robot needs to be taught by the camera. Specifically, a calibration needle is mounted at the end of a robot arm, and the robot arm is manually operated to move to nine points of a calibration target. Since the target positions in both the camera coordinate system and the robot coordinate system need to be collected to calculate the calibration data, this requires a lot of work by the developer; in addition, because the accuracy of the calibration needle will affect the calibration accuracy, and the manual operation of the robot arm to move to the nine points requires high precision, the calibration accuracy is greatly affected by human factors and it takes a long time to complete the calibration. Therefore, the conventional hand-eye calibration method has problems such as a complex calibration process, low calibration efficiency, and the calibration accuracy greatly affected by human factors.
Moreover, the calibration accuracy will also be affected if the imaging plane of the camera is not completely parallel to the calibration target.
A brief summary of embodiments of the present invention is given below in order to provide a basic understanding of certain embodiments of the present invention. It should be understood that this is not an exhaustive summary of the embodiments. It is not intended to define the key or important parts of the present invention, nor is it intended to limit the scope of the present invention. Its purpose is only to give some concepts in a simplified form as a prelude to the more detailed description that follows.
In view of the above, embodiments of the present disclosure provide a method for automatic hand-eye calibration with high measurement accuracy. In the technical solution of the present disclosure, a force sensor is introduced to the robot arm, and automatic hand-eye calibration can be realized by use of the force sensor.
According to at least one embodiment of the present disclosure, a robot hand-eye calibration method is provided, comprising: a coordinate recording step: controlling a calibration apparatus at an end of a robot arm to move to a calibration target; when a force sensor on the robot arm detects that a force of the end of the calibration apparatus in contact with the calibration target reaches a preset force, stopping the robot arm moving, marking a position in which the end of the calibration apparatus is in contact with the calibration target, and causing the robot arm to move upward in a direction perpendicular to the calibration target and stop until the end of the robot arm is in a position of a preset height; and in this position, photographing the mark on the calibration target using a camera at the end of the robot arm, recording coordinates of the mark in a camera coordinate system, and recording coordinates of the end of the calibration apparatus in a robot coordinate system when the robot arm is stopped in this position; a movement control step: controlling the robot arm to translate at least twice above the calibration target, and performing the coordinate recording step after each movement; and a transformation matrix calculating step: calculating a calibration transformation matrix according to coordinates of at least three recorded marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
In this way, a calibration apparatus at an end of a robot arm is controlled to mark successively at least three times on a calibration target, a camera is used to photograph each mark, and the coordinates of each mark in the camera coordinate system and the coordinates of the end of the calibration apparatus in the camera coordinate system at the time of photographing a mark are recorded to calculate the calibration transformation matrix, wherein a force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
Optionally, in one example of the abovementioned embodiment, before the coordinate recording step is performed, the method further comprises a parallelization correcting step: performing correction using the force sensor, so that an imaging plane of the camera is parallel to a plane of the calibration target.
Optionally, in one example of the abovementioned embodiment, the parallelization correcting step comprises: obtaining a torque of the end of the robot arm using the force sensor; and adjusting a posture of the end of the robot arm based on the torque, so that the imaging plane of the camera disposed at the end of the robot arm is parallel to the plane of the calibration target.
In this way, it is possible to make the imaging plane of the camera parallel to the plane of the calibration target, so as to reduce the calibration error because the image plane of the camera is not parallel to the plane of the calibration target, and to improve the accuracy of hand-eye calibration.
Optionally, in one example of the abovementioned embodiment, the preset height is preset according to a focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
In this way, the camera can be kept at a proper distance from the calibration target during photographing, to ensure the clarity of the camera images, thereby further improving the calibration accuracy.
According to another embodiment of the present disclosure, a robot hand-eye calibration apparatus is provided, comprising: a coordinate recording unit, which controls a calibration apparatus at an end of a robot arm to move to a calibration target; when a force sensor on the robot arm detects that a force of an end of the calibration apparatus in contact with the calibration target reaches a preset force, stops the robot arm moving, marks a position in which the end of the calibration apparatus is in contact with the calibration target, and causes the robot arm to move upward in a direction perpendicular to the calibration target and stop until the end of the robot arm is in a position of a preset height; and in this position, photographs the mark on the calibration target using a camera at the end of the robot arm, records coordinates of the mark in a camera coordinate system, and records coordinates of the end of the calibration apparatus in a robot coordinate system when the robot arm is stopped in this position; a movement control unit, which controls the calibration apparatus to move at least twice above the calibration target, and perform the coordinate recording step after each movement; and a transformation matrix calculating unit, which calculates a calibration transformation matrix according to coordinates of at least three recorded marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
In this way, a calibration apparatus at an end of a robot arm is controlled to mark successively on a calibration target, a camera is used to photograph each mark, and the coordinates of each mark in the camera coordinate system and the coordinates of the end of the calibration apparatus in the camera coordinate system at the time of photographing a mark are recorded to calculate the calibration transformation matrix, wherein a force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
Optionally, in one example of the abovementioned embodiment, the robot hand-eye calibration apparatus further comprises: a parallelization correcting unit, which performs correction using the force sensor, so that an imaging plane of the camera is parallel to a plane of the calibration target.
Optionally, in one example of the abovementioned embodiment, the parallelization correcting unit is further configured to: obtain a torque of the end of the robot arm using the force sensor; and adjust a posture of the end of the robot arm based on the torque, so that the imaging plane of the camera disposed at the end of the robot arm is parallel to the plane of the calibration target.
In this way, it is possible to make the imaging plane of the camera parallel to the plane of the calibration target, so as to reduce the calibration error because the image plane of the camera is not parallel to the plane of the calibration target, and to improve the accuracy of hand-eye calibration.
Optionally, in one example of the abovementioned embodiment, the preset height is preset according to a focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
In this way, the camera can be kept at a proper distance from the calibration target during photographing, to ensure the clarity of the camera images, thereby further improving the calibration accuracy.
According to another embodiment of the present disclosure, a robot arm is provided, comprising: a force sensor; a camera; and a calibration apparatus, wherein the force sensor detects a force of an end of the calibration apparatus in contact with a calibration target, and obtains a torque of the robot arm.
A force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
According to another embodiment of the present disclosure, a computing device is provided, comprising: at least one processor; and a memory coupled to the at least one processor, wherein the memory is used to store an instruction that, when executed by the at least one processor, causes the processor to perform the method described above.
According to another embodiment of the present disclosure, a non-transitory machine readable medium is provided, which stores an executable instruction that, when executed, causes a machine to perform the method described above.
According to another embodiment of the present disclosure, a computer program product is provided, which is tangibly stored in a computer readable medium and comprises a computer executable instruction that, when executed, causes at least one processor to perform the method described above.
With reference to the following description of embodiments of the present invention in conjunction with the accompanying drawings, it will be easier to understand the above and other objectives, features and advantages of the present invention. The components in the drawings are only intended to illustrate the principle of the present invention. In the drawings, the same or similar technical features or components will be represented by the same or similar reference numerals. The following drawings are only intended to illustrate and explain the present invention schematically, and do not limit the scope of the present invention.
A brief summary of embodiments of the present invention is given below in order to provide a basic understanding of certain embodiments of the present invention. It should be understood that this is not an exhaustive summary of the embodiments. It is not intended to define the key or important parts of the present invention, nor is it intended to limit the scope of the present invention. Its purpose is only to give some concepts in a simplified form as a prelude to the more detailed description that follows.
In view of the above, embodiments of the present disclosure provide a method for automatic hand-eye calibration with high measurement accuracy. In the technical solution of the present disclosure, a force sensor is introduced to the robot arm, and automatic hand-eye calibration can be realized by use of the force sensor.
According to one embodiment of the present disclosure, a robot hand-eye calibration method is provided, comprising: a coordinate recording step: controlling a calibration apparatus at an end of a robot arm to move to a calibration target; when a force sensor on the robot arm detects that a force of the end of the calibration apparatus in contact with the calibration target reaches a preset force, stopping the robot arm moving, marking a position in which the end of the calibration apparatus is in contact with the calibration target, and causing the robot arm to move upward in a direction perpendicular to the calibration target and stop until the end of the robot arm is in a position of a preset height; and in this position, photographing the mark on the calibration target using a camera at the end of the robot arm, recording coordinates of the mark in a camera coordinate system, and recording coordinates of the end of the calibration apparatus in a robot coordinate system when the robot arm is stopped in this position; a movement control step: controlling the robot arm to translate at least twice above the calibration target, and performing the coordinate recording step after each movement; and a transformation matrix calculating step: calculating a calibration transformation matrix according to coordinates of at least three recorded marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
In this way, a calibration apparatus at an end of a robot arm is controlled to mark successively at least three times on a calibration target, a camera is used to photograph each mark, and the coordinates of each mark in the camera coordinate system and the coordinates of the end of the calibration apparatus in the camera coordinate system at the time of photographing a mark are recorded to calculate the calibration transformation matrix, wherein a force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
Optionally, in one example of the abovementioned embodiment, before the coordinate recording step is performed, the method further comprises a parallelization correcting step: performing correction using the force sensor, so that an imaging plane of the camera is parallel to a plane of the calibration target.
Optionally, in one example of the abovementioned embodiment, the parallelization correcting step comprises: obtaining a torque of the end of the robot arm using the force sensor; and adjusting a posture of the end of the robot arm based on the torque, so that the imaging plane of the camera disposed at the end of the robot arm is parallel to the plane of the calibration target.
In this way, it is possible to make the imaging plane of the camera parallel to the plane of the calibration target, so as to reduce the calibration error because the image plane of the camera is not parallel to the plane of the calibration target, and to improve the accuracy of hand-eye calibration.
Optionally, in one example of the abovementioned embodiment, the preset height is preset according to a focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
In this way, the camera can be kept at a proper distance from the calibration target during photographing, to ensure the clarity of the camera images, thereby further improving the calibration accuracy.
According to another embodiment of the present disclosure, a robot hand-eye calibration apparatus is provided, comprising: a coordinate recording unit, which controls a calibration apparatus at an end of a robot arm to move to a calibration target; when a force sensor on the robot arm detects that a force of an end of the calibration apparatus in contact with the calibration target reaches a preset force, stops the robot arm moving, marks a position in which the end of the calibration apparatus is in contact with the calibration target, and causes the robot arm to move upward in a direction perpendicular to the calibration target and stop until the end of the robot arm is in a position of a preset height; and in this position, photographs the mark on the calibration target using a camera at the end of the robot arm, records coordinates of the mark in a camera coordinate system, and records coordinates of the end of the calibration apparatus in a robot coordinate system when the robot arm is stopped in this position; a movement control unit, which controls the calibration apparatus to move at least twice above the calibration target, and perform the coordinate recording step after each movement; and a transformation matrix calculating unit, which calculates a calibration transformation matrix according to coordinates of at least three recorded marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
In this way, a calibration apparatus at an end of a robot arm is controlled to mark successively on a calibration target, a camera is used to photograph each mark, and the coordinates of each mark in the camera coordinate system and the coordinates of the end of the calibration apparatus in the camera coordinate system at the time of photographing a mark are recorded to calculate the calibration transformation matrix, wherein a force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
Optionally, in one example of the abovementioned embodiment, the robot hand-eye calibration apparatus further comprises: a parallelization correcting unit, which performs correction using the force sensor, so that an imaging plane of the camera is parallel to a plane of the calibration target.
Optionally, in one example of the abovementioned embodiment, the parallelization correcting unit is further configured to: obtain a torque of the end of the robot arm using the force sensor; and adjust a posture of the end of the robot arm based on the torque, so that the imaging plane of the camera disposed at the end of the robot arm is parallel to the plane of the calibration target.
In this way, it is possible to make the imaging plane of the camera parallel to the plane of the calibration target, so as to reduce the calibration error because the image plane of the camera is not parallel to the plane of the calibration target, and to improve the accuracy of hand-eye calibration.
Optionally, in one example of the abovementioned embodiment, the preset height is preset according to a focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
In this way, the camera can be kept at a proper distance from the calibration target during photographing, to ensure the clarity of the camera images, thereby further improving the calibration accuracy.
According to another embodiment of the present disclosure, a robot arm is provided, comprising: a force sensor; a camera; and a calibration apparatus, wherein the force sensor detects a force of an end of the calibration apparatus in contact with a calibration target, and obtains a torque of the robot arm.
A force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
According to another embodiment of the present disclosure, a computing device is provided, comprising: at least one processor; and a memory coupled to the at least one processor, wherein the memory is used to store an instruction that, when executed by the at least one processor, causes the processor to perform the method described above.
According to another embodiment of the present disclosure, a non-transitory machine readable medium is provided, which stores an executable instruction that, when executed, causes a machine to perform the method described above.
According to another embodiment of the present disclosure, a computer program product is provided, which is tangibly stored in a computer readable medium and comprises a computer executable instruction that, when executed, causes at least one processor to perform the method described above.
The subject described herein will now be discussed with reference to some exemplary implementations. It should be understood that the discussion of these implementations is only intended to enable those skilled in the art to better understand and realize the subject described herein, and is not intended to limit the scope, applicability, or examples set forth in the claims. The functions and arrangement of the discussed elements may be changed without departing from the scope of the present disclosure. Various processes or components may be deleted, replaced or added in each example as needed. For example, the method described herein may be executed in a sequence different from the described sequence, and various steps may be added, omitted, or combined. In addition, the features described in relation to some examples may also be combined in other examples.
As used herein, the term “comprising” and its variations is an open term that means “including but not limited to”. The term “based on” means “at least partially based on”. The term “one embodiment” or “an embodiment” means “at least one embodiment”. The term “another embodiment” means “at least one other embodiment”. The term “first”, “second”, etc. may refer to different or the same objects. Other definitions, either explicit or implicit, may be included below. Unless clearly indicated in the context, the definition of a term is consistent throughout the description.
The present disclosure provides a method for automatic robot hand-eye calibration with high measurement accuracy. In the technical solution of the present disclosure, a force sensor is introduced to the robot arm, and automatic hand-eye calibration can be realized by use of the force sensor.
Specifically, the camera 106 is fixed at an appropriate position at the end of the robotic arm 102, the calibration apparatus 108 is fixed at an appropriate position at the end of the robot arm 102, and the relative positions of the end 110 of the calibration apparatus and the robot arm 102 can be obtained through a tool coordinate system calibration program known to those skilled in the art. The force sensor 104 is mounted between the robot arm 102 and the calibration apparatus 108. It can be understood that
The force sensor 104 can be used to detect the magnitude of the contact force between the end 110 of the calibration apparatus and the calibration target 112. When the contact force detected reaches a preset magnitude, the robot arm will stop moving, and the end 110 of the calibration tool can mark this contact position on the calibration target 112. Then, the calibration transformation matrix can be calculated by recording the coordinates of at least three marks in the camera coordinate system and the coordinates of the end of the calibration apparatus in the robot coordinate system at the time of photographing, so as to implement hand-eye calibration of the robot.
The robot hand-eye calibration method and apparatus according to the embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Firstly, in block S202, a coordinate recording step is performed, wherein the calibration apparatus at the end of the robot arm is controlled to move to the calibration target; when a force sensor on the robot arm detects that a force of an end of the calibration apparatus in contact with the calibration target reaches a preset force, movement of the robot arm is stopped, the position in which the end of the calibration apparatus is in contact with the calibration target is marked, and the robot arm is moved upward in a direction perpendicular to the calibration target and stopped at a preset height; and in this position, the mark on the calibration target is photographed by the camera at the end of the robot arm, the coordinates of the mark in the camera coordinate system are recorded, and the coordinates of the end of the calibration apparatus in the robot coordinate system when the robot arm is stopped in this position are recorded.
Specifically, the force sensor 104 provided on the robot arm 102 can be used to detect the magnitude of the contact force between the end 110 of the calibration apparatus 108 and the calibration target 112. When the force sensor 104 detects that the contact force between the end 110 of the calibration apparatus 108 and the calibration target 112 has reached a preset magnitude, the robot arm 102 will stop moving, and the end 110 of the calibration apparatus 108 can mark this contact position on the calibration target 112.
Here, the contact force of a preset magnitude can be such that the end of the calibration apparatus 108 just properly marks the calibration target 112, and the preset magnitude can be set in advance by technical personnel based on experience.
After marking, the robot arm 102 leaves the calibration target 112, moves upward to a preset height in a direction perpendicular to the calibration target 112, and stops at this position, where the camera 106 photographs the mark on the calibration target 112.
Here, the preset height can be preset according to the focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
Manual focusing is required since the industrial lenses usually used in robots are not auto-focusing. This means that objects at a certain distance are the sharpest in the image. The image of an object too close or too far away will not be clear. For another thing, at different distances, the image size of an object shot by a CCD/CMOS camera will differ (reflected as different physical distances between two pixels), and hand-eye calibration makes sense only when performed at a fixed distance.
The camera 106 is fixed at an appropriate position at the end of the robot arm 102, and the two-dimensional position of the camera 106 relative to the end of the robot arm 102 can be obtained by calibration. To keep a proper distance between the lens of the camera 106 and the calibration target 112, the distance between the end of the robot arm 102 and the calibration target 112 is determined mainly by accurate calculation. In one example, it can be verified by measured values, and it can be ensured that the calibration target is always on the focal plane of the camera (i.e., the image is clear) by adjusting the photographing height.
Therefore, a preset height is set in advance based on the focal length of the camera 106, and the robot arm 102 stops at the preset height, so that the camera 102 can photograph at a position that is at an appropriate distance from the calibration target 11, to ensure the clarity of the camera image, thereby further improving the calibration accuracy.
Next, the coordinates of the mark in the camera coordinate system, and the coordinates of the end of the calibration apparatus in the robot coordinate system when the camera captures the mark, i.e., when the robot arm stops at the preset height, are recorded.
Through the operation in block S202, a set of coordinates in the camera coordinate system and in the robot coordinate system for performing robot hand-eye calibration can be obtained.
Next, in block S204, the robot arm is controlled to translate above the calibration target at least twice, and the operation in block S202 is performed after each movement.
Through moving the robot arm and then performing the operation in block S202 each time, at least three sets of coordinates in the camera coordinate system and in the robot coordinate system for performing robot hand-eye calibration can be obtained in total.
At last, in block S206, the calibration transformation matrix is calculated based on the coordinates of the at least three marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
Those skilled in the art can understand the specific process of calculating the transformation matrix based on the three sets of coordinates, which will not be detailed here.
In the method according to this embodiment, a calibration apparatus at an end of a robot arm is controlled to mark successively at least three times on a calibration target, a camera is used to photograph each mark, and the coordinates of each mark in the camera coordinate system and the coordinates of the end of the calibration apparatus in the camera coordinate system at the time of photographing a mark are recorded to calculate the calibration transformation matrix. In the process, a force sensor is used to detect contact between the end of the calibration apparatus and the calibration target, so that the robot arm can know when to stop moving and when to mark, thereby the robot hand-eye calibration process can be automatically completed without human operation.
In one example, before the hand-eye calibration process, the method may further comprise the parallelization correcting step in block S201: performing correction using the force sensor, so that an imaging plane of the camera is parallel to a plane of the calibration target.
Specifically, as shown in
Firstly, in block S302, the force sensor 104 is used to obtain the torque of the end of the robot arm 102.
Next, in block S304, the posture of the end of the robot arm 102 is adjusted based on the torque, so that the imaging plane of the camera 106 disposed at the end of the robot arm 102 is parallel to the plane of the calibration target 112.
Specifically, based on the torque value obtained by the sensor, the posture of the end of the robot arm can be adjusted through an algorithm, so that the torque value reaches a set value to ensure that the imaging plane of the camera provided at the end of the robot arm is parallel to the plane of the calibration target.
That is, before performing robot hand-eye calibration, the posture of the end of the robot arm is determined through the parallelization correcting step so that the imaging plane of the camera on the end of the robot arm is parallel to the plane of the calibration target. When moving the robot arm thereafter, the posture of the robot arm is kept unchanged, but the robot arm is moved only in the x, y, and z directions.
When parallelization between the imaging plane of the camera and the plane of the calibration target is realized through the method shown in
As shown in
Specifically, the robot coordinate recording unit 402 controls the calibration apparatus at the end of the robot arm to move to the calibration target; when a force sensor on the robot arm detects that a force of an end of the calibration apparatus in contact with the calibration target reaches a preset force, movement of the robot arm is stopped, the end of the calibration apparatus marks its position where it is in contact with the calibration target, and the robot arm is moved upward in a direction perpendicular to the calibration target and stopped at a preset height of the end of the robot arm; and in this position, the mark on the calibration target is photographed by the camera at the end of the robot arm, the coordinates of the mark in the camera coordinate system are recorded, and the coordinates of the end of the calibration apparatus in the robot coordinate system when the robot arm is stopped in this position are recorded.
In this process, the preset height is preset according to the focal length of the camera, so that the mark on the calibration target is clearly imaged on the imaging plane of the camera.
The movement control unit 404 controls the calibration apparatus to move above the calibration target at least twice.
The transformation matrix calculating unit 406 calculates the transformation matrix based on the coordinates of at least three marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
In one example, the robot hand-eye calibration apparatus 400 may further comprise a parallelization correcting unit 401, and the parallelization correcting unit 401 performs correction using the force sensor so that the imaging plane of the camera is parallel to the plane of the calibration target.
Specifically, the parallelization correcting unit 401 may be configured to: obtain a torque of the end of the robot arm using the force sensor; and adjust a posture of the end of the robot arm based on the torque, so that the imaging plane of the camera disposed at the end of the robot arm is parallel to the plane of the calibration target.
The details of the operation and function of each part of the robot hand-eye calibration apparatus 400 may be, for example, the same as or similar to those of relevant parts of the robot hand-eye calibration method in the embodiments of the present disclosure described with reference to
It should be noted that the robot hand-eye calibration apparatus 400 shown in
The robot hand-eye calibration method and apparatus according to the embodiments of the present disclosure are described above with reference to
In the present disclosure, the robot hand-eye calibration apparatus 400 may be implemented as a computing device.
In one embodiment, the computer-executable instruction stored in the memory 504, when executed, causes the at least one processor 502 to complete the following actions: controlling a calibration apparatus at an end of a robot arm to move to a calibration target; when a force sensor on the robot arm detects that a force of an end of the calibration apparatus in contact with the calibration target reaches a preset force, stopping the robot arm moving, marking a position in which the end of the calibration apparatus is in contact with the calibration target, and causing the robot arm to move upward in a direction perpendicular to the calibration target and stop until the end of the robot arm is in a position of a preset height; and in this position, photographing the mark on the calibration target using a camera at the end of the robot arm, recording coordinates of the mark in a camera coordinate system, and recording coordinates of the end of the calibration apparatus in a robot coordinate system when the robot arm is stopped in this position; controlling the robot arm to translate at least twice above the calibration target, and performing the coordinate recording step after each movement; and calculating a calibration transformation matrix according to coordinates of at least three recorded marks on the calibration target in the camera coordinate system and the corresponding coordinates of the end of the calibration apparatus in the robot coordinate system.
It should be understood that the computer-executable instruction stored in the memory 504, when executed, causes the at least one processor 502 to perform the various operations and functions in each embodiment of the present disclosure described above with reference to
According to one embodiment, a non-transitory machine-readable medium is provided. The non-transitory machine-readable medium may have a machine-executable instruction (i.e., element implemented in the form of software as described above) that, when executed by a machine, causes the machine to execute the various operations and functions in each of the embodiments of the present disclosure described above with reference to
According to one embodiment, a computer program product is provided, comprising a computer-executable instruction, which, when executed, causes at least one processor to perform the various operations and functions described above in each of the embodiments of the present disclosure with reference to
The exemplary embodiments described above for specific implementations with reference to the drawings are not all the embodiments that can be implemented or fall within the scope of the claims. The term “exemplary” used throughout this description means “serving as an example, instance, or illustration”, and does not mean “preferred to” or “advantageous over” other embodiments. For the purpose of providing an understanding of the described techniques, the specific implementations comprise specific details. However, these techniques can be implemented without these specific details. In some examples, in order to avoid incomprehensibility of the concepts of the described embodiments, structures and devices in the general common knowledge are shown in the form of block diagrams.
The foregoing description of the present disclosure is provided to enable anyone ordinarily skilled in the art to implement or use the present disclosure. For those ordinarily skilled in the art, various modifications to the present disclosure are obvious, and the general principles defined herein can also be applied to other modifications without departing from the scope of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is consistent with the widest scope that conforms to the principles and novel features disclosed herein.
This application is the National Phase under 35 U.S.C. § 371 of PCT International Application No. PCT/CN2019/096906, which has an international filing date of Jul. 19, 2019, and which designated the United States of America, the entire contents of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/096906 | 7/19/2019 | WO |