ROBOT TOOL DEFORMATION AMOUNTS CALCULATION DEVICE, ROBOT TOOL DEFORMATION AMOUNTS CALCULATION SYSTEM, AND ROBOT TOOL DEFORMATION AMOUNTS CALCULATION METHOD
The method addresses inaccuracies in robot tool position calculations by using image-based deformation determination, enabling precise tool tip positioning through elastic deformation parameter integration, thus enhancing accuracy without costly equipment.
Patent Information
- Application Number
- JP2022555406
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-06
- Filing Date
- 2021-09-29
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-09-29
AI Technical Summary
Existing methods for calculating the position of a robot's tool tip fail to account for the elastic deformation of both the robot and attached tools, leading to inaccuracies due to the assumption of rigid bodies, and require expensive equipment like laser trackers for determining tool deformation.
A method and system that uses image acquisition and processing to calculate the deformation of robot tools by attaching targets at specific points, determining elastic deformation parameters, and integrating these into the tool's position calculation, allowing for accurate determination of the tool tip position without costly equipment.
Enables accurate calculation of tool deformation with a simple configuration, reducing the need for expensive measuring devices and improving positional accuracy of robot tools by considering their elastic deformation.
Smart Images

Figure 0007553585000005 
Figure 0007553585000006 
Figure 0007553585000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a tool deformation amount calculation device for a robot, a tool deformation amount calculation system for a robot, and a tool deformation amount calculation method for a robot. [Background technology]
[0002] Conventionally, it is known to fix a target to a tool mounting surface, have a camera capture an image of a mark on the target, and calculate the position of the camera's gaze point in the mechanical-mechanical interface coordinate system Σf and the position of a predetermined point of the mark in the robot coordinate system Σb (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 4267005 Summary of the Invention [Problem to be solved by the invention]
[0004] An industrial robot is composed of several rigid parts and joints for rotating the rigid parts. The rigid parts and joints are elastically deformed by the weight of the tool attached to the robot, the robot's own weight, or according to the robot's posture. When calculating the position of the tool tip from the rotation angle of the joints, if the calculation is performed assuming that the rigid parts and joints do not deform, an error will occur in the calculation result by the amount of elastic deformation. For this reason, there is a technology that improves the accuracy of calculations by calculating the amount of elastic deformation of the robot and using the amount of elastic deformation to calculate the position of the robot's tool tip.
[0005] On the other hand, not only the robot but also the tools attached to the robot, such as the servo gun and the hand, undergo deformation such as elastic deformation. Therefore, in order to accurately determine the position of the tool tip, it is necessary to determine the degree of elastic deformation of the tool. In addition, since the degree of elastic deformation differs depending on the type of tool, it is necessary to determine the degree of elastic deformation depending on the type of tool to be used. However, in order to determine the degree of elastic deformation of the tool, an expensive three-dimensional measuring machine such as a laser tracker is generally required, which results in problems such as complicated processes and high costs.
[0006] The technology described in Patent Document 1 above involves capturing an image of a target with a camera, determining errors in mechanism parameters such as link length and the origin position of each drive axis with high precision and automatically during robot calibration, and correcting the mechanism parameters. However, because the target is fixed to the tool mounting surface, it is not anticipated that the degree of elastic deformation of the tool will be determined.
[0007] In one aspect, an object of the present invention is to provide a robot tool deformation amount calculation device, a robot tool deformation amount calculation system, and a robot tool deformation amount calculation method that are capable of calculating the deformation amount of various tools attached to a robot with a simple configuration. [Means for solving the problem]
[0008] The gist of the present disclosure is as follows.
[0009] In one aspect of the present invention, a tool deformation calculation device for a robot includes an image acquisition unit that acquires a first image of a first measured target located on a tool mounting portion at the tip of the robot and a second image of a second measured target located at a predetermined portion on the tip side of the tool than the tool mounting portion, a first measured target position calculation unit that calculates the position of the first measured target based on the first image, a second measured target position calculation unit that calculates the position of the second measured target based on the second image, and a tool deformation calculation unit that calculates the amount of tool deformation corresponding to the posture of the robot based on the positions of the first measured target and the second measured target.
[0010] The first measured target position calculation section may calculate the position of the coordinate system of the camera that captures the first and second images relative to the coordinate system of the robot by calculating the position of the first measured target based on the first image.
[0011] The second measured target position calculation unit may calculate the position of the second measured target relative to the robot's coordinate system from the position of the second measured target relative to the camera's coordinate system calculated based on the second image and the position of the camera's coordinate system relative to the robot's coordinate system, calculate the position and orientation of the tool mounting part relative to the robot's coordinate system based on the angle of the robot's joint, and calculate the position of the second measured target relative to the tool mounting part based on the position of the second measured target relative to the robot's coordinate system and the position and orientation of the tool mounting part relative to the robot's coordinate system.
[0012] The robot may further include an elastic deformation parameter determination unit that determines the elastic deformation parameters of the tool contained in the model equation by comparing, in a plurality of postures of the robot, the position of the second measured target relative to the tool mounting portion calculated by the second measured target position calculation unit with the position of the second measured target relative to the tool mounting portion obtained from a model equation representing the elastic deformation of the tool, and the tool deformation amount calculation unit may calculate the amount of deformation of the tool corresponding to the posture of the robot based on the model equation.
[0013] The apparatus may further include a tool position calculation unit that calculates the position of a predetermined portion of the tool based on the amount of deformation of the tool.
[0014] The robot may further include a robot deformation amount calculation unit that calculates the deformation amount of the robot in accordance with the elastic deformation of the robot, and the tool position calculation unit may calculate the position of the specified part based on the deformation amount of the robot and the deformation amount of the tool.
[0015] The predetermined portion may be the tip of a tool.
[0016] In another aspect of the present invention, a tool deformation amount calculation system for a robot includes a first measured target located on a tool mounting portion at the tip of the robot, a second measured target located closer to the tip of the tool than the tool mounting portion, a camera installed in the vicinity of the robot and generating a first image of the first measured target and a second image of the second measured target, and a tool deformation amount calculation device that calculates a deformation amount of the tool, wherein the tool deformation amount calculation device has an image acquisition unit that acquires the first image and the second image, a first measured target position calculation unit that calculates the position of the first measured target based on the first image, a second measured target position calculation unit that calculates the position of the second measured target based on the second image, and a tool deformation amount calculation unit that calculates a deformation amount of the tool corresponding to the posture of the robot based on the position of the first measured target and the position of the second measured target.
[0017] In yet another aspect of the present invention, a method for calculating a tool deformation amount of a robot comprises the steps of obtaining a first image of a first measured target located on a tool mounting portion at the tip of the robot and a second image of a second measured target located on the tip side of the tool rather than the tool mounting portion, calculating the position of the first measured target based on the first image, calculating the position of the second measured target based on the second image, and calculating the amount of tool deformation corresponding to the attitude of the robot based on the positions of the first measured target and the second measured target. Effect of the Invention
[0018] According to the present invention, it is possible to provide a robot tool deformation amount calculation device, a robot tool deformation amount calculation system, and a robot tool deformation amount calculation method that are capable of calculating the deformation amount of various tools attached to a robot with a simple configuration. [Brief description of the drawings]
[0019] [Figure 1] 1 is a schematic configuration diagram of a robot system in which a tool deformation calculation device for a robot is implemented according to one embodiment. [Diagram 2] 1 is a schematic diagram showing a state in which a tool is attached to a tool attachment surface at the tip of a robot; [Diagram 3] FIG. 2 is a schematic configuration diagram of a control device. [Figure 4] FIG. 13 is a functional block diagram of a processor related to the process of calculating the deformation of a tool and calculating the tip position of the tool taking the deformation of the tool into account. [Diagram 5] 5A to 5C are schematic diagrams for explaining parameters of an elastic deformation model. [Figure 6] 5A to 5C are schematic diagrams for explaining parameters of an elastic deformation model. [Figure 7] 10 is a flowchart for explaining a process of a method for calculating a tool deformation amount of a robot according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, some embodiments of the present invention will be described with reference to the drawings. However, these descriptions are intended to merely exemplify preferred embodiments of the present invention, and are not intended to limit the present invention to such specific embodiments.
[0021] 1 is a schematic diagram of a robot system 1000 in which a robot tool deformation calculation device is implemented according to one embodiment. The robot system 1000 is one aspect of a robot tool deformation calculation system, and includes a robot 100, a tool 200 attached to the tip of the robot 100, a control device 300 that controls the robot 100 and the tool 200, a display device 400, a teaching pendant 500, and a camera 600.
[0022] The robot 100 is, for example, an articulated robot, and includes a base 102, a rotating stage 104, a first arm 106, a second arm 108, and a wrist 110. Each of the rotating stage 104, the first arm 106, the second arm 108, and the wrist 110 is supported by a shaft provided at the joint to which it is attached, and operates when a servo motor drives the shaft.
[0023] The base 102 is a member that serves as a base when the robot 100 is placed on the floor 1. The rotating stage 104 is attached to the top surface of the base 102 by a joint 112 so as to be rotatable about an axis that is provided perpendicular to one surface of the base 102.
[0024] One end of the first arm 106 is attached to the rotation stage 104 at a joint 114 provided on the rotation stage 104. In this embodiment, as shown in Fig. 1, the first arm 106 is rotatable at the joint 114 about an axis that is provided parallel to the surface of the base 102 on which the rotation stage 104 is attached.
[0025] One end of the second arm 108 is attached to the first arm 106 at a joint 116 provided on the other end of the first arm 106 opposite the joint 114. In this embodiment, as shown in Fig. 1, the second arm 108 is rotatable at the joint 116 about an axis that is provided parallel to the surface of the base 102 on which the rotation stage 104 is attached.
[0026] The wrist 110 is attached via a joint 118 to a tip of the second arm 108 on the opposite side to the joint 116. The wrist 110 has a joint 120 and is bendable at the joint 120 around an axis that is parallel to the axis of the joint 114 and the axis of the joint 116. Furthermore, the wrist 110 may be rotatable at the joint 118 in a plane perpendicular to the longitudinal direction of the second arm 108 around an axis that is parallel to the longitudinal direction of the second arm 108.
[0027] The tool 200 is attached to a tool attachment surface (tool attachment portion) 122 at the tip of the wrist 110 on the opposite side to the joint 118. The tool 200 has a mechanism or device for performing an operation on the workpiece W. For example, the tool 200 may have a laser for processing the workpiece W, or a servo gun for welding the workpiece W. Alternatively, the tool 200 may have a hand mechanism for gripping the workpiece W or a part to be assembled to the workpiece W.
[0028] The control device 300 is one aspect of a tool deformation amount calculation device for a robot. The control device 300 is connected to the robot 100 via a communication line 302, and receives information indicating the operating status of a servo motor that drives an axis provided at each joint of the robot 100 from the robot 100 via the communication line 302. The control device 300 is also connected to a camera 600 via a communication line 304, and receives an image captured and generated by the camera 600 from the camera 600 via the communication line 302. The control device 300 controls the servo motors based on the received information and information indicating the operation of the robot 100 received from a higher-level control device (not shown) or set in advance, thereby controlling the position and posture of each movable part of the robot 100, and also controlling the tool 200 or the camera 600.
[0029] The display device 400 is composed of, for example, a liquid crystal display device (LCD) etc. Based on a command from the control device 300, the display device 400 displays an image currently being captured by the camera 600, a past image stored in the memory 330, an image that has been subjected to image processing, etc. as necessary.
[0030] The teaching operation panel 500 has a normal display function, and an operator manually operates the teaching operation panel 500 to create, modify, and register an operation program for the robot 100, set various parameters, and also to execute playback operation, jog feed, and the like of the taught operation program. The operator can also input camera parameters that represent information about the camera 600 to be used when calculating the deformation amount of the tool 200. System programs that support the basic functions of the robot 100 and the control device 300 are stored in the ROM of the memory 330 of the control device 300, which will be described later. Furthermore, the robot operation program (e.g., a spot welding program) taught according to an application and related setting data are stored in a non-volatile memory of the memory 330.
[0031] The camera 600 is installed on the floor 1 via a pedestal or a tripod, and its position and posture are not changed until the processing according to this embodiment is completed. The camera 600 has a two-dimensional detector composed of an array of photoelectric conversion elements sensitive to visible light, such as a CCD or a C-MOS, and an imaging optical system that forms an image of the area to be photographed on the two-dimensional detector. The camera 600 is directed in a direction in which the first target 10 to be measured attached to the tool mounting surface 122 or the second target 20 to be measured attached to the tip 202 of the tool 200 is included in the photographing range. The camera 600 photographs the photographing range including the first target 10 to be measured or the second target 20 to be measured at each predetermined photographing period, thereby generating an image in which the first target 10 to be measured or the second target 20 to be measured is displayed in the photographing range. The camera 600 outputs the generated image to the control device 300 via the communication line 304 every time an image is generated.
[0032] 1, the robot system 1000 is set with a coordinate system Σb fixed to the robot base (hereinafter referred to as the robot coordinate system), a coordinate system Σf fixed to the tool mounting surface 122 (hereinafter referred to as the tool mounting surface coordinate system), and a coordinate system Σv representing the line of sight from a representative point of the camera 600 (e.g., the center of the light receiving surface) toward a subject such as the first or second target to be measured 10, 20 (hereinafter referred to as the light receiving device coordinate system).The control device 300 is capable of knowing the position and orientation of the origin of the tool mounting surface coordinate system Σf at any time based on the specifications of the robot 100 such as the angles of the joints and the arm length of the robot 100.
[0033] 2 is a schematic diagram showing a state in which a tool 200 is attached to a tool attachment surface 122 at the tip of the robot 100. In order to perform various tasks on a workpiece W on the floor 1, different tools 200 corresponding to the various tasks are interchangeably attached to the tool attachment surface 122.
[0034] These tools 200 attached to the robot 100 are deformed by their own weight due to elastic deformation or the like with respect to the tool attachment surface 122. In particular, when a relatively large and heavy tool 200 such as a servo gun for spot welding is attached to the tool attachment surface 122, the deformation of the tool 200 becomes relatively large. When performing an operation on a workpiece W, the position of the tip 202 of the tool 200 (the position of the point of application with respect to the workpiece W) is calculated. In order to calculate the position of the tip 202 of the tool 200 with high accuracy, it is preferable to calculate the position of the tip 202 taking into consideration the degree of deformation of the tool 200. For this reason, the robot system 1000 according to this embodiment is capable of calculating the amount of deformation for each of the various tools 200 attached to the tip of the robot 100.
[0035] In order to calculate the deformation amount of various tools 200, a first target 10 is attached to the tool attachment surface 122 at the tip of the robot 100. A second target 20 is attached to a predetermined portion on the tip side of the tool 200 from the tool attachment surface 122. In the following, a case where the second target 20 is attached to the tip 202 of the tool 200 will be described as an example, but the present embodiment is not limited to this, and the second target 20 can be attached to any position on the tip side of the tool 200 from the tool attachment surface 122. The first target 10 and the second target 20 are, for example, flat, and include a mark such as a circle or a cross that serves as a target when detecting the first target 10 or the second target 20 from an image. Unless otherwise specified, the first target 10 means this mark. The same applies to the second target 20.
[0036] The first target 10 and the second target 20 may be attached by the user himself / herself when using a specific tool 200 in order to calculate the amount of deformation of the tool 200 or the position of the tip 202 of the tool 200 taking the amount of deformation into consideration. For this reason, the first target 10 and the second target 20 may be made of a sticker or paper having an adhesive layer. On the other hand, the first target 10 and the second target 20 may be attached to the tool mounting surface 122 or the tip 202 of each tool 200 in advance.
[0037] FIG. 3 is a schematic diagram of the control device 300. The control device 300 has a communication interface 310, a drive circuit 320, a memory 330, and a processor 340. The communication interface 310 includes, for example, a communication interface for connecting the control device 300 to the communication line 302 or the communication line 304, and a circuit for executing processing related to transmission and reception of signals via the communication line 302 or the communication line 304. The communication interface 310 receives information indicating the operating status of the servo motor 130, such as a measured value of the rotation amount from an encoder for detecting the rotation amount of the servo motor 130, from the robot 100 via the communication line 302, and passes the information to the processor 340. Note that, although one servo motor 130 is representatively illustrated in FIG. 3, the robot 100 may have a servo motor for driving the axis of each joint.
[0038] Moreover, the communication interface 310 receives an image generated and output by the camera 600 via the communication line 304 and passes it to the processor 340. Furthermore, the communication interface 310 includes an interface circuit for connecting the processor 340 to the display device 400 or the teaching operation panel 500, a circuit for executing processing related to transmission and reception of signals to and from the teaching operation panel 500 or the display device 400, and the like.
[0039] The drive circuit 320 is connected to the servo motor 130 via a current supply cable, and supplies power to the servo motor 130 according to the torque, rotation direction, or rotation speed to be generated by the servo motor 130 under the control of the processor 340.
[0040] The memory 330 includes, for example, a readable and writable semiconductor memory (RAM: Random Access Memory), a read only semiconductor memory (ROM: Read Only Memory), a non-volatile memory, etc. Furthermore, the memory 330 may include a storage medium such as a semiconductor memory card, a hard disk, or an optical storage medium, and a device for accessing the storage medium.
[0041] The memory 330 stores various computer programs for controlling the robot 100, which are executed by the processor 340 of the control device 300. The memory 330 also stores information for controlling the operation of the robot 100 when the robot 100 is operated. The memory 330 also stores information representing the operating status of the servo motor 130 obtained from the robot 100 during the operation of the robot 100. The memory 330 also stores various data used in the deformation amount calculation process of the tool 200. Such data includes camera parameters representing information about the camera 600, such as the focal length, mounting position, and orientation of the camera 600, images obtained from the camera 600, and information about the specifications of the robot 100, such as the length of the first arm 106 or the second arm 108.
[0042] 4 is a functional block diagram of the processor 340 related to the process of calculating the deformation of the tool 200 and calculating the tip position of the tool 200 taking into account the deformation of the tool 200. The processor 340 acquires an image showing the first target 10 and an image showing the second target 20, calculates the position of the first target from the image showing the first target 10, and calculates the position of the second target 20 from the image showing the second target 20.
[0043] When the positions of the first target 10 to be measured and the second target 20 to be measured are calculated, the amount of deformation of the tool 200 can be calculated from the relative positions of the first target 10 to be measured and the second target 20 to be measured. In this case, when the amount of deformation of the tool 200 is obtained from the relative positions of the first target 10 to be measured and the second target 20 to be measured in a plurality of postures of the robot 100, it becomes possible to calculate the amount of deformation of the tool 200 in any posture of the robot 100.
[0044] More specifically, the processor 340 obtains an elastic deformation parameter that indicates the degree of elastic deformation of the tool 200 from the deformation amount of the tool 200 calculated in multiple postures of the robot 100. When the elastic deformation parameter is obtained, it becomes possible to calculate the deformation amount of the tool 200 corresponding to any posture of the robot 100. Then, when the deformation amount of the tool 200 corresponding to any posture of the robot 100 can be calculated, the tip position of the tool 200 can be obtained with high accuracy by taking the deformation amount of the tool 200 into consideration.
[0045] Furthermore, the processor 340 calculates the amount of deformation due to elastic deformation of the robot 100, and calculates the tip position of the tool based on the amount of deformation of the robot 100 and the amount of deformation of the tool 200. This makes it possible to determine the tip position of the tool 200 with higher accuracy.
[0046] The processing performed by the processor 340 will be described in detail below. As shown in Fig. 4, the processor 340 has an image acquisition unit 341, a first measured target position calculation unit 342, a second measured target position calculation unit 343, an elastic deformation parameter determination unit 344, a tool deformation amount calculation unit 345, a robot deformation amount calculation unit 346, and a tool tip position calculation unit 347. Each of these units included in the processor 340 is, for example, a functional module realized by a computer program executed on the processor 340. Alternatively, each of these units may be implemented as a dedicated arithmetic circuit implemented in a part of the processor 340.
[0047] The image acquisition unit 341 of the processor 340 acquires an image of the first target 10 generated by the camera 600. The image acquisition unit 341 also acquires an image of the second target 20 generated by the camera 600.
[0048] The first target position calculation unit 342 of the processor 340 detects the first target 10 by performing image processing such as template matching on the image showing the first target 10, or by inputting the image into a classifier that has been machine-learned for target detection. The first target position calculation unit 342 then calculates the position of the first target 10 based on the image showing the first target 10, and calculates the position and orientation of the light-receiving device coordinate system Σv relative to the robot coordinate system Σb. Therefore, the first target position calculation unit 342 also functions as a light-receiving device coordinate system calculation unit.
[0049] The first target position calculation unit 342 calculates the position of the light receiving device coordinate system Σv relative to the robot coordinate system Σb, for example, using a method described in Japanese Patent No. 419180. Since this method is publicly known, an outline will be described here. First, the robot 100 is translated to match the first target 10 in the image with the center point of the light receiving surface (CCD array) of the camera 600, and the position Qf1 of the tool mounting surface coordinate system Σf on the robot coordinate system Σb is calculated. Next, the robot 100 is translated to move the robot 100 to a position where the distance between the first target 10 and the camera 600 is different, and then the first target 10 in the image is matched with the center point of the light receiving surface, and the position Qf2 of the tool mounting surface coordinate system Σf on the robot coordinate system Σb is calculated. When the line of sight direction of the camera 600 connecting Qf1 and Qf2 is obtained, the robot 100 is moved to a position obtained by rotating Qf1 180 degrees around an axis that is parallel to the line of sight direction and passes through the origin of the tool mounting surface coordinate system Σf, and then the robot 100 is translated to perform a process of matching the first target 10 in the image with the center point of the light receiving surface of the camera 600, and the position Qf3 of the tool mounting surface coordinate system Σf on the robot coordinate system Σb is calculated. As a result, the midpoint between Qf1 and Qf3 is obtained as the origin position of the light receiving device coordinate system Σv. By obtaining the line of sight direction of the camera 600 and the origin position of the camera 600, the position and posture of the light receiving device coordinate system Σv with respect to the robot coordinate system Σb are obtained. The positions of Qf1, Qf2, and Qf3 on the robot coordinate system Σb are calculated from the specifications of the robot 100, such as the angles of the joints and the arm length of the robot 100. In addition, the position of the origin of the light receiving device coordinate system Σv can be any position on the line of sight of the camera 600, but it is preferable to set it at a position away from the first measured target 10 by the focal length of the camera 600 from the position where the size of the first measured target 10 on the light receiving surface of the camera 600 coincides with the actual size of the first measured target 10.
[0050] When the first target 10 is attached to the tool 200, which may be deformed, the position of the first target 10 is affected by the elastic deformation of the tool 200, making it impossible to accurately determine the position and orientation of the light receiving device coordinate system Σv relative to the robot coordinate system Σb. In this embodiment, by mounting the first target 10 on the tool mounting surface 122, the position and orientation of the light receiving device coordinate system Σv relative to the robot coordinate system Σb can be determined with high accuracy.
[0051] In addition, the user can easily determine the position and orientation of the light receiving device coordinate system Σv relative to the robot coordinate system Σb by simply attaching the first measured target 10 to the tool mounting surface 122 and placing any camera 600 on the floor 1.
[0052] The second target position calculation unit 343 of the processor 340 calculates the position of the second target 20 attached to the tip 202 of the tool 200 with respect to the tool mounting surface coordinate system Σf based on the image showing the second target 20, thereby calculating the position of the tip 202 of the tool 200. Since the second target 20 shown in the image includes a positional deviation due to the deformation of the tool 200, by calculating the position of the second target 20 based on the image showing the second target 20, the position of the tip 202 of the tool 200 including the influence of the deformation of the tool 200 is calculated.
[0053] To perform this processing, the second measured target position calculation unit 343 has a second measured target position calculation unit 343a which calculates the position of the second measured target 20 relative to the robot coordinate system Σb, a tool mounting surface position calculation unit 343b which calculates the position and attitude of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb, and a tool tip position calculation unit 343c which calculates the position of the tip 202 of the tool 200 relative to the tool mounting surface coordinate system Σf.
[0054] The second target position calculation unit 343a calculates the position of the second target 20 relative to the light receiving device coordinate system Σv using a known pinhole camera model as follows. First, the second target 20 is detected on the image by performing image processing such as template matching on the image in which the second target 20 is shown, or by inputting the image into a classifier that has been machine-learned for target detection. Then, for the detected second target 20, the position (Vt, Hz) of the second target 20 on the image and the size (size) Sz on the image are obtained. Note that the distance and size on the image can be measured, for example, by the number of square "pixels". At this time, an XY plane is set with the center of the image as the origin, and the coordinate value of the second target 20 is set as the position (Vt, Hz) on the image. Note that the units of Vt, Hz, and Sz are mm.
[0055] The second target position calculation unit 343a calculates the position (X v ,Y v ,Z v ) is calculated from the following formulas (1) to (3). Note that the values of focal length f and S0 are assumed to be known.
[0056] X v = Vt × (S0 / Sz) (1) Y v =Hz × (S0 / Sz) (2) Z v = f × (S0 / Sz) (3)
[0057] The position (X v ,Y v ,Z v) is a position relative to the light receiving device coordinate system Σv. Meanwhile, the position and orientation of the light receiving device coordinate system Σv relative to the robot coordinate system Σb are obtained by the first measured target position calculation unit 342. Therefore, the second measured target position calculation unit 343a calculates the position (X v ,Y v ,Z v ) and the position and orientation of the light receiving device coordinate system Σv relative to the robot coordinate system Σb, the position (X b ,Y b ,Z b ) is calculated. As a result, the position (X v ,Y v ,Z v ) is the position (X b ,Y b ,Z b ) coordinates are transformed to
[0058] The second measured target position calculation unit 343a performs the above process on a plurality of images generated by the camera 600 while changing the posture of the robot 100. N Based on the image showing the second target 20 corresponding to the target position P, the posture of the robot 100 is determined to be P. i The position (X b ,Y b ,Z b ) is calculated.
[0059] The tool mounting surface position calculation unit 343b calculates the position and orientation of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb. The tool mounting surface position calculation unit 343b calculates the position and orientation of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb from the specifications of the robot 100, such as the angles of each joint of the robot 100 and the lengths of the first arm 106 and the second arm 108. The angles of each joint of the robot 100 are obtained from an encoder for detecting the amount of rotation of a servo motor that drives the shaft of each joint. The specifications of the robot 100, such as the lengths of the first arm 106 and the second arm 108, are stored in advance in the memory 330.
[0060] The tool tip position calculation unit 343c calculates the position of the tip 202 of the tool 200 relative to the tool mounting surface coordinate system Σf by calculating the position of the second target 20 relative to the tool mounting surface coordinate system Σf. The tool tip position calculation unit 343c calculates the position of the second target 20 relative to the robot coordinate system Σb calculated by the second target position calculation unit 343a (X b ,Y b ,Z b ) and the position and posture of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb calculated by the tool mounting surface position calculation unit 343b, the posture of the robot is P i The position of the second target 20 to be measured with respect to the tool mounting surface coordinate system Σf when (i=1, 2, . . . , N), that is, the position of the tip 202 of the tool 200 (X f ,Y f ,Z f ) is calculated. As a result, the position (X b ,Y b ,Z b ) is the position (X f ,Y f ,Z f ) coordinates are transformed to
[0061] The position (X f ,Yf ,Z f ) is calculated based on an image of the second target 20 captured by the camera 600, and therefore includes the factor of elastic deformation of the tool 200 according to the posture of the robot 100. Therefore, when the posture of the robot is P i For each of the cases (i=1, 2, . . . , N), the position (X f ,Y f ,Z f ) is calculated. Note that the position (X f ,Y f ,Z f ) is, if the tool 200 does not deform, N postures P i However, when the tool 200 is deformed, the position (X f ,Y f ,Z f ) will vary depending on the orientation of the tool 200.
[0062] The elastic deformation parameter determination unit 344 of the processor 340 determines the position (X f ,Y f ,Z f ) to determine the elastic deformation parameters of the tool 200. Specifically, the elastic deformation parameter determiner 344 determines the value of the elastic deformation parameter α, which represents the degree to which the tool 200 elastically deforms, by using an elastic deformation model represented by the following equations (4) to (6). X m = α × sinθ × cosφ (4) Y m = α × sinθ × sinφ (5) Z m =Z0 (6)
[0063] In formulas (4) to (6), Xm ,Y m ,Z m represents the position (coordinate value) of the tip 202 of the tool 200 with respect to the tool mounting surface coordinate system Σf of the robot 100 in the elastic deformation model, and the position (X f ,Y f ,Z f ) corresponds to (X m ,Y m ,Z m ) and (X f ,Y f ,Z f ) shall be in units of [mm].
[0064] In formulas (4) and (5), the elastic deformation parameter α, which indicates the degree to which the tool 200 elastically deforms, takes a larger value as the tool 200 is more likely to bend. If the tool 200 does not bend, the value of the elastic deformation parameter α is 0.
[0065] In addition, in formulas (4) and (5), θ represents the angle at which the tool 200 is tilted from the reference posture with respect to the direction of gravity (the Z-axis direction of the robot coordinate system Σb). The unit of θ is degrees (deg), and 0≦θ≦90. In addition, in formulas (4) and (5), φ represents the angle at which the tool 200 is tilted, and represents the tilt as seen from the tool mounting surface coordinate system Σf. The unit of φ is also degrees (deg), and 0≦φ≦90.
[0066] 5 and 6 are schematic diagrams for explaining the parameters of the formulas (4) to (6). FIG. 5 shows a reference posture in which the tool 200 is not tilted. In FIG. 5 and FIG. 6, the tool 200 is assumed to have a cylindrical shape, and in the reference posture, the axis of the cylinder of the tool 200 coincides with the direction of gravity. Also, in FIG. 5 and FIG. 6, a mark 22 drawn on the second target 20 to be measured attached to the tip 202 of the tool 200 is shown. The diagram shown on the left side of FIG. 5 shows the tool 200 as viewed from the side (horizontal direction). Also, the diagram shown on the right side of FIG. 5 shows the tool 200 shown on the left side as viewed from below (from the direction of the arrow A1). In the reference position shown in FIG. 5, the position of the tip 202 of the tool 200 is expressed as X f =0, Y f =0, Z f =Z0.
[0067] FIG. 6 shows the posture when the tool 200 is tilted by an angle θ with respect to the direction of gravity from the state shown in FIG. 5. The right diagram in FIG. 6 shows the state of the tool 200 viewed from below, similar to the right diagram in FIG. 5. The coordinate axes shown in the right diagram in FIG. 6 are schematic diagrams showing the state in which the coordinate axes (X-axis, Y-axis) of the tool mounting surface coordinate system Σf are tilted in the reference posture shown in FIG. 5, and the state in which the tool 200 is tilted by an angle φ with respect to the X-axis of the tool mounting surface coordinate system Σf is shown. The left diagram in FIG. 6 shows the state in which the right diagram in FIG. 6 is viewed from the side (in the direction of the arrow A2), and the state in which the tool 200 is tilted by an angle θ with respect to the reference posture is shown.
[0068] As shown in FIG. 6, when tool 200 is tilted at an angle θ with respect to the direction of gravity, tip 202 of tool 200 is deformed in the directions indicated by arrows A3 and A4 in FIG. 6 due to the weight of tool 200 itself.
[0069] The elastic deformation parameter determination unit 344 determines N postures P iFor each of (i=1, 2, . . . , N), the values of θ and φ are calculated from the posture of the robot 100. The values of θ and φ are calculated by determining the angle of each joint from the value of an encoder for detecting the amount of rotation of a servo motor that drives the axis of each joint, and determining the position and posture of the tool mounting surface 122 (tool mounting surface coordinate system Σf) of the robot 100 from the angle of each joint and the specifications of the robot 100.
[0070] Then, the elastic deformation parameter determination unit 344 determines the N postures P i For each of (i=1, 2, . . . , N), the position (X f ,Y f ,Z f ) and the model value (X m ,Y m ,Z m The value of the elastic deformation parameter α is determined using the least squares method or the like so as to minimize the difference with
[0071] When the elastic deformation parameter α, which represents the degree of elastic deformation of the tool 200, is determined as described above, the coordinates X of the tip 202 of the tool 200 are calculated from the elastic deformation model of the formulas (4) to (6) based on the elastic deformation parameter α and the values of θ and φ, which are determined according to the posture of the robot 100. m ,Y m ,Z m , that is, the deformation amount of the tool 200 is calculated. The tool deformation amount calculation unit 345 of the processor 340 calculates the position X m ,Y m ,Z m is calculated as the deformation amount of the tool 200.
[0072] The deformation amount of the tool 200 obtained as described above can be obtained when the user uses a specific tool 200 by mounting the first target 10 and the second target 20 to be measured and placing the camera 600 on the floor 1. On the other hand, the deformation amount of the tool 200 may be calculated in advance at the time of shipping the robot system 100 or the tool 200 and stored in the memory 330 or the like.
[0073] The robot deformation amount calculation unit 346 of the processor 340 calculates the amount of elastic deformation of the robot 100 with respect to the theoretical position and posture of the tool attachment surface 122 with reference to the robot coordinate system Σb. As described above, the rigid body parts and joint parts of the robot 100 are elastically deformed according to the posture of the robot 100 due to the weight of the tool 200 attached to the robot 100 and the weight of the robot 100 itself. The robot deformation amount calculation unit 346 calculates the amount of elastic deformation of the robot 100 according to the posture of the robot 100 using a method described in, for example, JP 2002-307344 A, which calculates the torque of each joint and calculates the amount of deflection of each joint from the spring constant of each joint and the torque of each joint. In addition, when the tool mounting surface position calculation unit 343b calculates the position and orientation of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb, the position and orientation of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb may be calculated taking into account the deformation amount of the robot 100 calculated by the robot deformation amount calculation unit 346.
[0074] The tool tip position calculation unit 347 of the processor 340 calculates the position X of the tip 202 of the tool 200 with respect to the tool mounting surface coordinate system Σf calculated by the tool deformation amount calculation unit 345 based on the elastic deformation model. m ,Y m ,Z m and calculates the position of the tip 202 of the tool 200 taking into consideration the deformation amount of the tool 200, based on the angle of each joint of the robot 100 and the position of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb calculated from the specifications of the robot 100. Furthermore, the tool tip position calculation unit 347 calculates the position Xm ,Y m ,Z m The position of the tip 202 of the tool 200 taking into account the deformation amount of the tool 200 and the deformation amount of the robot 100 can also be calculated based on the angle of each joint of the robot 100, the position of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb obtained from the specifications of the robot 100, and the deformation amount of the robot 100 based on the robot coordinate system Σb calculated by the robot deformation amount calculation unit 346.
[0075] As a result, the position of the tip 202 of the tool 200 is calculated taking into account the amount of deformation of the tool 200, so it is possible to align the tip 202 of the tool 200 with the workpiece W with high accuracy when performing work on the workpiece W. Furthermore, since the position of the tip 202 of the tool 200 is calculated taking into account the elastic deformation of the robot 100, it is possible to align the tip 202 of the tool 200 with the workpiece W with even higher accuracy.
[0076] Next, the process of the tool deformation amount calculation method of the robot according to this embodiment will be described based on the flowchart of Fig. 7. First, the first target 10 is attached to the tool attachment surface 122, the second target 20 is attached to the tip 202 of the tool 200, and the camera 600 is placed on the floor 1. In this state, the image acquisition unit 341 of the processor 340 of the control device 300 acquires an image showing the first target 10 and the second target 20 (step S10). Next, the first target position calculation unit 342 of the processor 340 calculates the position of the first target 10 attached to the tool attachment surface 122, and calculates the position and orientation of the light receiving device coordinate system Σv with respect to the robot coordinate system Σb (step S12).
[0077] Next, the second measured target position calculation unit 343a of the processor 340 calculates the position of the second measured target 20 relative to the light receiving device coordinate system Σv in multiple postures of the robot 100 (step S14), and further calculates the position of the second measured target 20 relative to the robot coordinate system Σb (step S16).
[0078] Next, the tool mounting surface position calculation unit 343b of the processor 340 calculates the position and orientation of the tool mounting surface coordinate system Σf relative to the robot coordinate system Σb (step S18). Next, the tool tip position calculation unit 343c of the processor 340 calculates the position of the second target 20 to be measured relative to the tool mounting surface 122, i.e., the position of the tip 202 of the tool 200 (step S20).
[0079] Next, the elastic deformation parameter determination unit 344 of the processor 340 determines the elastic deformation parameter α in the elastic deformation model (step S22). Next, the tool deformation amount calculation unit 345 of the processor 340 calculates the position (X m ,Y m ,Z m ), that is, the amount of deformation of the tool 200 is calculated (step S24). Next, the tool tip position calculation unit 347 of the processor 340 calculates the position of the tip 202 of the tool 200 with respect to the robot coordinate system Σb, taking into account the amount of deformation of the tool 200 (step S26).
[0080] As described above, according to this embodiment, in multiple postures of the robot 100, the position of the second measured target 20 attached to the tip 202 of the tool 200 is obtained from images captured by the camera 600, and the elastic deformation parameters of the elastic deformation model are calculated. Therefore, it is possible to accurately calculate the elastic deformation amounts of various tools 200 attached to the tip of the robot 100 with a simple configuration.
[0081] Furthermore, the user of the robot system 1000 can attach the first measured target 10 and the second measured target 20 and set up an optional camera 600, thereby making it possible to accurately calculate the amount of elastic deformation of the various tools 200 that the user intends to use, without any complicated work or the use of expensive three-dimensional measuring machines, etc.
[0082] All examples and specific terms used herein are intended for instructional purposes to help the reader understand the concepts contributed by the inventor to the advancement of the present invention and the technology, and should not be construed as limiting the present invention to any example configuration, specific examples and conditions used herein, with respect to showing the advantages and disadvantages of the present invention. Although the embodiments of the present invention have been described in detail, it should be understood that various changes, substitutions and alterations can be made thereto without departing from the spirit and scope of the present invention. [Explanation of symbols]
[0083] 1 Bed 10 First measured target 20 Second target to be measured 22 Marks 100 Robots 102 Pedestal 104 Rotating Stage 106 First Arm 108 Second Arm 110 List 112,114,116,118,120 Joints 122 Tool mounting surface 130 Servo motor 200 Tools 202 Tip 300 Control device 302, 304 Communication lines 310 Communication Interface 320 Drive circuit 330 Memory 340 Processor 341 Image Acquisition Unit 342 First measured target position calculation unit 343 Second measured target position calculation unit 343a Second measured target position calculation unit 343b Tool mounting surface position calculation unit 343c Tool tip position calculation unit 344 Elastic deformation parameter determination unit 345 Tool deformation calculation unit 346 Robot Deformation Calculation Unit 347 Tool tip position calculation part 400 display device 500 Teaching Operation Panel 600 Camera 1000 Robot System
Claims
1. an image acquisition unit that acquires a first image of a first target to be measured that is located at a tool attachment portion at the tip of the robot and a second image of a second target to be measured that is located at a predetermined portion on the tip side of the tool relative to the tool attachment portion; a first target position calculation unit that calculates a position of the first target based on the first image; a second target position calculation unit that calculates a position of the second target based on the second image; a tool deformation amount calculation unit that calculates a deformation amount of the tool according to an attitude of the robot based on a position of the first target and a position of the second target; A robot tool deformation calculation device comprising:
2. 2. The tool deformation amount calculation device for a robot as described in claim 1, wherein the first measured target position calculation unit calculates the position of the first measured target based on the first image, thereby calculating the position of the coordinate system of a camera that captures the first image and the second image relative to the coordinate system of the robot.
3. The second measured target position calculation unit is 3. The tool deformation amount calculation device for a robot according to claim 2, wherein the device calculates a position of the second measured target relative to the robot's coordinate system from a position of the second measured target relative to the camera's coordinate system calculated based on the second image and a position of the camera's coordinate system relative to the robot's coordinate system, calculates a position and orientation of the tool mounting part relative to the robot's coordinate system based on an angle of the robot's joint, and calculates the position of the second measured target relative to the tool mounting part based on the position of the second measured target relative to the robot's coordinate system and the position and orientation of the tool mounting part relative to the robot's coordinate system.
4. an elastic deformation parameter determination unit that determines an elastic deformation parameter of the tool included in a model equation that represents elastic deformation of the tool by comparing a position of the second target relative to the tool attachment unit calculated by the second target position calculation unit with a position of the second target relative to the tool attachment unit obtained from the model equation, in a plurality of postures of the robot; The device for calculating a deformation amount of a tool for a robot according to claim 3 , wherein the tool deformation amount calculation unit calculates the deformation amount of the tool according to the posture of the robot based on the model formula.
5. 5. The robot tool deformation amount calculation device according to claim 1, further comprising a tool position calculation unit that calculates a position of the predetermined portion of the tool based on the deformation amount of the tool.
6. a robot deformation amount calculation unit that calculates a deformation amount of the robot according to an elastic deformation of the robot; The device for calculating a deformation amount of a robot tool according to claim 5 , wherein the tool position calculator calculates the position of the predetermined portion based on a deformation amount of the robot and a deformation amount of the tool.
7. 7. The robot tool deformation calculation device according to claim 1, wherein the predetermined portion is a tip of the tool.
8. a first target to be measured located on a tool attachment portion at the tip of the robot; a second target to be measured located closer to the tip of the tool than the tool attachment portion; a camera that is installed in the vicinity of the robot and that generates a first image of the first target and a second image of the second target; a tool deformation amount calculation device for calculating a deformation amount of the tool; Equipped with The tool deformation amount calculation device is an image acquisition unit that acquires the first image and the second image; a first target position calculation unit that calculates a position of the first target based on the first image; a second target position calculation unit that calculates a position of the second target based on the second image; a tool deformation amount calculation unit that calculates a deformation amount of the tool according to an attitude of the robot based on a position of the first target and a position of the second target; A robot tool deformation calculation system having the above structure.
9. acquiring a first image of a first target to be measured that is located on a tool attachment portion at the tip of the robot and a second image of a second target to be measured that is located on the tip side of the tool relative to the tool attachment portion; calculating a position of the first measured target based on the first image; calculating a position of the second target based on the second image; calculating a deformation amount of the tool according to an attitude of the robot based on a position of the first target and a position of the second target; A method for calculating a deformation amount of a tool of a robot, comprising:
Citation Information
Patent Citations
Welding torch detection device, and welding robot system
JP2015163407A
Sag measurement system for measuring sag of multijoint robot
JP2017056503A
Calibration device of visual sensor, method and program
JP2018111166A
Measuring device and calibration method
JP4267005B2
Correction Method for Welding Torch location of Welding Robot using Camera and Welding Robot System
KR1020170001838A
