Camera position deviation measuring device and position deviation measuring method
The camera positional deviation measuring device and method accurately measure and correct the positional deviation of robot arm-mounted cameras using a jig member and external camera alignment, enhancing robot system precision.
Patent Information
- Application Number
- JP2023501705
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2041-02-24
Smart Images

Figure 0007562827000006 
Figure 0007562827000007 
Figure 0007562827000008
Abstract
Description
[Technical field]
[0001] This specification discloses a camera position deviation measuring device and a position deviation measuring method. [Background technology]
[0002] A robot system has been proposed that includes a robot having a robot arm and a robot camera, and an external camera installed separately from the robot, and captures an image of a calibration pattern with a pre-calibrated robot camera and also captures the calibration pattern with the external camera to obtain calibration data for the external camera (see, for example, Patent Document 1). This system captures an image of a calibration pattern with the robot camera and the external camera, respectively, to obtain pattern images, and obtains calibration data for the external camera based on the obtained pattern images and known calibration data for the robot camera. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-69493 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, although the technology described in the above-mentioned Patent Document 1 describes the calibration of an external camera, it does not make any mention of the calibration of a robot camera.
[0005] The main objective of the present disclosure is to properly measure the displacement of a camera attached to a robot arm. [Means for solving the problem]
[0006] In order to achieve the above-mentioned main object, the present disclosure has adopted the following means.
[0007] The camera position deviation measuring device of the present disclosure is 1. A camera position deviation measuring device for measuring a position deviation of a hand camera in a robot system including a robot having a robot arm and a hand camera attached to the robot arm, and an external camera installed outside the robot, comprising: a jig member installed above the external camera and having a first measurement hole extending vertically therethrough; a first position acquisition unit that captures an image of the jig member using the external camera and acquires a position of the first measurement hole from the captured image of the first measurement hole; a second position acquisition unit that moves the hand camera to the position acquired by the first position acquisition unit, captures an image of the jig member with the hand camera, and acquires the position of the first measurement hole from the captured image of the first measurement hole; a positional deviation measuring unit that moves a hand of the robot to the position of the first measurement hole acquired by the second position acquisition unit, captures an image of the hand of the robot with the external camera, and measures a positional deviation of the camera from the captured image; The gist of the project is to provide the following:
[0008] The camera positional deviation measuring device disclosed herein uses an external camera to measure the positional deviation of a hand camera attached to a robot arm, and includes a jig member that is installed above the external camera and has a first measurement hole that penetrates vertically. Furthermore, the positional deviation measuring device captures an image of the jig member with the external camera to obtain the position of the first measurement hole, moves the hand camera to the obtained position, captures an image of the jig member with the hand camera, and obtains the position of the first measurement hole. The positional deviation measuring device then moves the robot's hand to the obtained position of the first measurement hole, captures an image of the robot's hand with the external camera, and measures the positional deviation of the camera. This makes it possible to properly measure the positional deviation of the camera attached to the robot's arm. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is an external perspective view of a robot system. [Diagram 2] FIG. 2 is a block diagram showing an electrical connection relationship between the robot and a control device. [Diagram 3] FIG. 2 is an explanatory diagram for explaining a world coordinate system. [Figure 4] FIG. 2 is an explanatory diagram for explaining a base coordinate system, a camera coordinate system, and a mechanical interface coordinate system. [Diagram 5] FIG. 11 is an explanatory diagram showing a procedure for measuring the hand camera position. [Figure 6] FIG. 2 is an external view of an end effector with a mark. [Figure 7] 13 is a flowchart showing a work camera position measurement process for measuring the hand camera position. [Figure 8] FIG. 11 is an explanatory diagram showing how a work camera position is measured. [Figure 9] FIG. 11 is an explanatory diagram illustrating the amount of deviation of a work camera position. [Figure 10] FIG. 11 is an explanatory diagram showing how a hole jig is attached. [Figure 11] 13 is a flowchart showing an example of a hole position measurement process for measuring a hand camera position. [Figure 12] FIG. 11 is an explanatory diagram showing how three holes in a hole jig are imaged by a work camera. [Figure 13] 13 is a flowchart illustrating an example of a hand camera angle measurement process. [Figure 14] FIG. 11 is an explanatory diagram showing a state in which an image of a hole jig is captured by a hand camera. [Figure 15] FIG. 11 is an explanatory diagram showing the phases of three holes measured by a work camera and a hand camera, respectively. [Figure 16] 13 is a flowchart illustrating an example of a hand camera position measurement process. [Figure 17] FIG. 11 is an explanatory diagram showing how an end effector with a mark is imaged by a work camera. [Figure 18] 11 is an explanatory diagram illustrating the distance from the center of the hand camera to the center hole. FIG. [Figure 19]FIG. 13 is an explanatory diagram showing the relationship between the mark pin position (average value), the center position of the hole for measuring the hand camera position, and the amount of positional deviation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Next, an embodiment of the present disclosure will be described with reference to the drawings.
[0011] Fig. 1 is a perspective view of the appearance of the robot, and Fig. 2 is a block diagram showing the electrical connection relationship between the robot and a control device.
[0012] The robot system 1 is a working robot system, which, for example, picks up a workpiece W (component) supplied by a work supply unit P and mounts it on a board S. As shown in Figs. 1 and 2, the robot system 1 includes a work table 2, a robot 10, a hand camera 60 attached to a robot arm 20 of the robot 10, a workpiece camera 70 as an external camera, and a control device 90 that controls the robot 10. On the work table 2, a main pole 3a extending vertically and a sub-pole 3b extending vertically so as to be spaced apart from the main pole 3a are installed.
[0013] In this embodiment, the robot 10 is a SCARA robot, and includes a base 11 and a robot arm 20 .
[0014] The base 11 is fixed to the workbench 2 and supports the base end side of the robot arm 20. The robot arm 20 includes a first arm 21, a first arm driver 30, a second arm 22, a second arm driver 40, a shaft 23, and a shaft driver 50. The first arm 21 has a base end connected to the base 11 via a first joint shaft J1, and is configured to be rotatable (horizontally rotate) in a horizontal plane relative to the base 11 by rotation of the first joint shaft J1. The second arm 22 has a base end connected to a tip end of the first arm 21 via a second joint shaft J2, and is configured to be rotatable (horizontally rotate) in a horizontal plane relative to the first arm 21 by rotation of the second joint shaft J2. The shaft 23 is connected to a tip end of the second arm 22 via a third joint shaft J3, and is configured to be rotatable around the axis of the third joint shaft J3 relative to the second arm 22 and to be movable up and down along the axial direction of the third joint shaft J3. In the robot system 1 of this embodiment, a workpiece holding unit 24 that picks up and holds the workpiece W is provided as an end effector at the tip of the shaft 23. Examples of the workpiece holding unit 24 include a suction nozzle that suctions the workpiece W by negative pressure, a mechanical chuck that grips the workpiece W with a pair of claws, and an electromagnetic chuck that suctions the workpiece W by an electromagnet.
[0015] The first arm driving unit 30 includes a motor 32 and an encoder 34. The rotating shaft of the motor 32 is connected to the first joint shaft J1 via a reduction gear (not shown). The first arm driving unit 30 rotates the first arm 21 around the first joint shaft J1 as a fulcrum by torque transmitted to the first joint shaft J1 via the reduction gear by driving the motor 32. The encoder 34 is attached to the rotating shaft of the motor 32 and is configured as a rotary encoder that detects the amount of rotational displacement of the motor 32.
[0016] The second arm driver 40, like the first arm driver 30, includes a motor 42 and an encoder 44. The rotation shaft of the motor 42 is connected to the second joint shaft J2 via a reduction gear (not shown). The second arm driver 40 drives the motor 42 to transmit torque to the second joint shaft J2 via the reduction gear, causing the second arm 22 to rotate about the second joint shaft J2 as a fulcrum. The encoder 44 is attached to the rotation shaft of the motor 42 and is configured as a rotary encoder that detects the amount of rotational displacement of the motor 42.
[0017] The shaft driving unit 50 includes motors 52a and 52b and encoders 54a and 54b. The rotating shaft of the motor 52a is connected to the shaft 23 via a belt (not shown). The shaft driving unit 50 drives the motor 52a to rotate the shaft 23 around its axis. The rotating shaft of the motor 52b is connected to the shaft 23 via a ball screw mechanism (not shown). The shaft driving unit 50 drives the motor 52b, and the ball screw mechanism converts the rotational motion of the motor 52b into linear motion, thereby raising and lowering the shaft 23 up and down. The encoder 54a is configured as a rotary encoder that detects the amount of rotational displacement of the shaft 23. The encoder 54b is configured as a linear encoder that detects the raised and lowered position of the shaft 23.
[0018] 2, the control device 90 includes a CPU 91, a ROM 92 that stores a processing program, a RAM 93 as a work memory, a storage device 94 such as an HDD or SSD, and an input / output interface (not shown). Position signals from the encoders 34, 44, 54a, and 54b and image signals from the hand camera 60 are input to the control device 90 via the input / output interface. Drive signals for the motors 32, 42, 52a, and 52b are output from the control device 90 via the input / output interface.
[0019] The hand camera 60 is attached to the tip of the second arm 22. The hand camera 60 captures an image of the workpiece W in the workpiece supply section P from above, and outputs the captured image to the control device 90. The control device 90 processes the captured image to recognize the position of the workpiece W. Note that since the hand camera 60 is attached to the second arm 22, in this embodiment, the robot arm 20 cannot move the hand camera 60 in the vertical direction.
[0020] The work camera 70 is installed between the work supply unit P and the board S on the workbench 2. The work camera 70 is housed in a storage box 71 having a rectangular opening 71a at the top. The work camera 70 captures an image of the work W held by the work holding unit 24 of the robot 10 from below, and outputs the captured image to the control device 90. The control device 90 processes the captured image to determine whether the work W is being held properly by the work holding unit 24.
[0021] Next, the operation of the robot system 1 thus configured will be described. The operation of the robot system 1 includes a work position recognition operation, a picking operation, a picking confirmation operation, and a mounting operation. The work position recognition operation involves capturing an image of the work W with the hand camera 60 to recognize the position of the work W. The picking operation involves moving the hand (work holding part 24) of the robot system 1 to the recognized position of the work W to pick up the work W. The picking confirmation operation involves moving the work W picked up by the hand above the work camera 70 and capturing an image of the work W with the work camera 70 to confirm whether the picking state of the work W is good or not. The mounting operation involves mounting the picked work W on the board S.
[0022] Here, a description will be given of the coordinate system of the robot system 1. In this embodiment, as shown in FIG. 2 and FIG. 3, the coordinate system of the robot system 1 is a world coordinate system Σ w and the base coordinate system Σ b and the camera coordinate system Σ c and the mechanical interface coordinate system Σ m The world coordinate system Σ wIn the base coordinate system Σ, the origin is set at the tip of the main pole 3a, the X-axis is set in a direction passing through the tip of the main pole 3a and the tip of the sub-pole 3b, the Z-axis is set in the vertical direction, and the Y-axis is set in a direction perpendicular to the X-axis and Z-axis. b The origin is set on the bottom surface of the base 11 of the robot 10, and the X-axis, Y-axis, and Z-axis are respectively in the world coordinate system Σ w The mechanical interface coordinate system Σ is set so that its axis and direction are the same as those of the corresponding axis of the mechanical interface coordinate system Σ. m The origin is set at the tip of the robot arm 20, and the X-axis, Y-axis, and Z-axis are respectively in the world coordinate system Σ w The camera coordinate system Σ is set so that its axis and direction are the same as those of the corresponding axis of the camera coordinate system Σ. c is set such that the origin is the bottom surface of the second arm 22 and the center of the third joint axis J3, and the X-axis, Y-axis, and Z-axis are each in the world coordinate system Σ w The axis and direction of the corresponding axis of the world coordinate system Σ w and the base coordinate system Σ b and the camera coordinate system Σ c and the mechanical interface coordinate system Σ m are converted into each other using a conversion matrix.
[0023] In the workpiece position recognition operation, the CPU 91 of the control device 90 first controls the base 11 (base coordinate system Σ shown in FIG. 1) for capturing an image of the workpiece W supplied from the workpiece supply unit P. b ) the target position X of the hand camera 60 btag ,Y btag ,Z btag Next, the CPU 91 sets the target position X btag ,Y btag ,Z btag By solving the inverse kinematics for btag ,Y btag ,Z btag The angle θ of the first joint axis J1 to match J1 and the angle θ of the second joint axis J2 J2 Calculate the following:
[0024] Next, the CPU 91 calculates the angle θ of the first joint axis J1 taking into consideration error factors such as the twist and deflection of the first arm 21 and the deflection of the second arm 22. J1 and the angle θ of the second joint axis J2 J2 By solving the forward kinematics based on best ,Y best ,Z best That is, the CPU 91 calculates the target position X btag ,Y btag ,Z btag The angle θ of the first and second joint axes J1 and J2 calculated by inverse kinematics so as to match J1 ,θ J2 Assuming that the angle command value is used for control, the target position X btag ,Y btag ,Z btag Estimated position X, which is a position that is shifted from best ,Y best ,Z best Calculate.
[0025] CPU91 estimates position X best ,Y best ,Z best The calculated estimated position X best ,Y best ,Z best and target position X btag ,Y btag ,Z btag By taking the difference with b ,ΔY b ,ΔZ b Next, the CPU 91 calculates the target position X btag ,Y btag ,Z btag Position deviation amount ΔX b ,ΔY b ,ΔZ b Then, by solving the inverse kinematics after offsetting the hand camera 60 to the target position X btag ,Y btag ,Z btag Angle command value θ of the first joint axis J1 for moving to J1* and the angle command value θ of the second joint axis J2 J2 Then, the CPU 91 calculates the angle command value θ J1 * and the angle of the second joint shaft J2 detected by the encoder 44 is the calculated angle command value θ J2 The corresponding motors 31 and 32 are controlled by feedback control so as to match the respective signal levels *.
[0026] Next, the CPU 91 captures an image of the work W supplied from the work supply unit P using the hand camera 60, and performs image processing on the captured image to recognize the position of the work W. Then, the CPU 91 determines the target position X btag ,Y btag is set to the position of the recognized workpiece W, and the hand is moved to the target position X btag ,Y btag ,Z btag The target position is moved to X. btag ,Y btag The setting of the target position Z is based on the recognized position of the workpiece W. btag The setting is made based on the height information of the workpiece W that has been input in advance.
[0027] In the picking operation, the CPU 91 first sets the target position (X btag ,Y btag ,Z btag ) the angle θ of the first joint axis J1 J1 and the angle θ of the second joint axis J2 J2 and the angle of shaft 23 (shaft angle) θ J4 and the lift position Z of shaft 23 s Next, the CPU 91 calculates the calculated θ by taking into account error factors such as the twist and deflection of the first arm 21 and the deflection of the second arm 22. J1 ,θ J2 ,θ J4 ,Z s The estimated position of the hand based on best ,Y best ,Z bestNext, the CPU 91 calculates the estimated position X best ,Y best ,Z best and target position X btag ,Y btag ,Z btag By taking the difference from this, the position deviation amount ΔX b ,ΔY b ,ΔZ b Next, the CPU 91 calculates the target position X btag ,Y btag ,Z btag Position deviation amount ΔX b ,ΔY b ,ΔZ b After offsetting by the amount of btag ,Y btag ,Z btag Angle command value θ of the first joint axis J1 for moving to J1 * and the angle command value θ of the second joint axis J2 J2 * and the angle command value θ of shaft 23 J4 * and the vertical position command value Z of shaft 23 s Then, the CPU 91 controls the corresponding motors 31, 32, 33a, and 33b by feedback control based on each command value.
[0028] In this way, the robot system 1 recognizes the position of the workpiece W by capturing an image of the workpiece W with the hand camera 60 attached to the robot arm 20, and moves the tip of the robot arm 20 to the recognized position to pick up the workpiece W. For this reason, unless the positional relationship between the robot system 1 and the hand camera 60 is properly grasped, the position of the workpiece W cannot be accurately recognized by the hand camera 60. In other words, the hand of the robot system 1 cannot properly pick up the workpiece W. Therefore, in this embodiment, the positional deviation amount of the hand camera 60 from the designed position is measured in advance, and the measured positional deviation amount is reflected in the control of the workpiece position recognition operation, so that the position of the workpiece W can be accurately recognized. It is assumed that the robot system 1 has been calibrated.
[0029] Fig. 5 is an explanatory diagram showing the hand camera position measurement procedure. In step S10, a marked end effector EE (mark pin) is attached to the tip of the shaft 23. Fig. 6 is an external view of the marked end effector EE. The marked end effector EE is a pin-shaped member that extends vertically when attached to the shaft 23. A mark M is provided on the tip of the pin of the marked end effector EE.
[0030] In step S20, the robot system 1 is configured to input the world coordinate system Σ w Position (hand camera position measurement work camera position X wwc ,Y wwc ,θ wwc ) is measured. FIG. 7 is a flowchart showing an example of the work camera position measurement process for measuring the hand camera position executed by the CPU 91 of the control device 90. In the work camera position measurement process for measuring the hand camera position, the CPU 91 first accepts input of a control point Zm (eigenvalue) of the marked end effector EE from the operator (step S100). The control point Zm is the distance between the tip of the shaft 23 and the tip (mark M) of the marked end effector EE. The coordinates of the tip of the marked end effector EE are expressed in the mechanical interface coordinate system Σ m The work camera 70 is set at a position Zm away from the origin in the Z-axis direction. Next, the CPU 91 waits until the operator presses the work camera position measurement button (step S110). When the CPU 91 determines that the work camera position measurement button has been pressed, it moves the marked end effector EE above the work camera 70 (step S120), images the mark M provided on the tip surface of the marked end effector EE with the work camera 70, and determines the position of the work camera 70 (work camera position X wwc ,Y wwc ,θ wwc(Step S130). FIG. 8 is an explanatory diagram showing how to measure the position of the work camera for measuring the hand camera position. As shown in the figure, the CPU 91 captures an image of the mark M with the work camera 70 while moving the tip of the marked end effector EE in the X-axis direction and the Y-axis direction so as to pass through the design center position of the work camera 70. The CPU 91 acquires the movement trajectories of the mark M in the X-axis direction and the Y-axis direction, respectively, captured in the acquired captured image. Then, as shown in FIG. 9, the CPU 91 obtains the positional deviation amounts Δx, Δy of the work camera 70 by calculating the difference between the image center of the captured image and the intersection point of each of the acquired movement trajectories in the X-axis direction and the Y-axis direction of the captured image. Furthermore, as shown in FIG. 9, the CPU 91 calculates the rotational deviation amount Δθ of the work camera 70 based on the difference in the rotational direction between the X-axis direction of the captured image and the X-axis direction of the movement trajectory. Then, the CPU 91 determines the position obtained by offsetting the design center position of the work camera 70 by the positional deviation amounts Δx, Δy as the work camera position X. wwc ,Y wwc The angle at which the work camera 70 is offset in the rotational direction by the rotational deviation amount Δθ is calculated as the work camera position θ wwc In this way, the CPU 91 calculates the work camera position X wwc ,Y wwc ,θ wwc When measuring, the measured work camera position X wwc ,Y wwc ,θ wwc is registered in the storage device 94 (step S140), and the process ends.
[0031] In step S30, a hole jig 80 for measuring the position of the hand camera is attached to the opening 71a provided in the upper part of the storage box 71. FIG. 10 is an explanatory diagram showing how the hole jig is attached. As shown in the figure, the hole jig 80 is fixed by a fixture 82 in a state where it is fitted into the opening 71a of the storage box 71. The hole jig 80 has a center hole 81a located directly above the work camera 70 and penetrating vertically, and three-point holes 81b located around the center hole 81a at intervals in the circumferential direction and penetrating vertically. The number of holes in the three-point holes 81b is not limited to three, and may be two, or may be four or more.
[0032] In step S40, the robot system 1 detects the center hole 81a of the hole jig 80 in the world coordinate system Σ w Position at (center hole position X wwv ,Y wwv ,Z wwv 11 is a flow chart showing an example of the hole position measurement process for measuring the hand camera position executed by the CPU 91 of the control device 90. In the hole position measurement process for measuring the hand camera position, the CPU 91 first waits until the hand camera position measurement button is pressed by the operator (step S200). When the CPU 91 determines that the hand camera position measurement button has been pressed, it images the hole jig 80 with the work camera 70, and calculates the distances a, b, c of the three holes 81b in the hole jig 80 from the captured image. m 12 is an explanatory diagram showing how the three holes of the hole jig are imaged by the work camera. m The measurement is performed by measuring the distance between the three holes 81b shown in the captured image. Then, the CPU 91 calculates the measured distance a between the three holes 81b. m Based on this, the center hole position Z for measuring the hand camera position is calculated using the following formula (1). wwv (Step S220), and the calculated center hole position Z wwvis registered in storage device 94 (step S230). In formula (1), a0 indicates the designed distance of three-point hole 81b, WD indicates the working distance of work camera 70, and Z indicates the imaging height of work camera 70.
[0033]
number
[0034] Next, the CPU 91 calculates the world coordinate system Σ of the hole jig 80 from the captured image obtained in step S210. w Center hole position X wwv ,Y wwv (Step S240). Then, the CPU 91 measures the measured center hole position X wwv ,Y wwv is registered in the storage device 94 (step S250), and the process ends.
[0035] In step S50, the angle (position θ ci 13 is a flowchart showing an example of the hand camera angle measurement process executed by the CPU 91 of the control device 90. In the hand camera angle measurement process, the CPU 91 first captures an image of the hole jig 80 for measuring the hand camera position with the work camera 70, and calculates the world coordinate system Σ w Phase θ in wwv (Step S300), and the measured three-point hole phase θ wwv is registered in the storage device 94 (step S310). wwv The measurement is performed by determining the angle of the triangle connecting each hole of the three-point hole 81b in the obtained captured image with respect to the X axis. Next, as shown in FIG. 14, the CPU 91 transfers the control point of the hand camera 60 to the hand camera position measuring work camera position X registered in step S20. wwc ,Y wwc and the center hole position Z for measuring the hand camera position registered in step S40 wwvNext, the CPU 91 captures an image of the hole-hole jig 80 with the hand camera 60, and calculates the world coordinate system Σ of the three holes 81b of the hole-hole jig 80 based on the captured image in the same manner as in step S300. w Phase θ in whv (Step S330). Then, the CPU 91 measures the three-point hole phase θ wwv and the three-point hole phase θ measured using the hand camera 60 in step S330. whv Based on the hand camera position θ ci (step S340), and the calculated hand camera position θ ci is registered in the storage device 94 (step S350), and the process is terminated. FIG. 15 is an explanatory diagram showing the three-point hole phase θ measured by the work camera and the hand camera. As shown in the figure, the hand camera position θ ci The calculation is based on the three-point hole phase θ measured from below by the work camera 70. wwv and the three-point hole phase θ measured from above by the hand camera 60 whv The difference between θe(=θ wwv -θ whv ) and offset the designed hand camera position (eigenvalue) in the rotation direction by the difference θe.
[0036] In step S60, the position of the hand camera 60 (hand camera position X ci ,Y ci 16 is a flow chart showing an example of the hand camera position measurement process executed by the control device. In the hand camera position measurement process, the CPU 91 first waits until the hand camera position measurement button is pressed by the operator (step S400). When the CPU 91 determines that the hand camera position measurement button has been pressed, it moves the control point of the hand camera 60 to the hand camera position measurement work camera position X wwc ,Y wwc and the center hole position Z for measuring the hand camera position registered in step S40 wwvThen, the CPU 91 captures an image of the hole jig 80 with the hand camera 60, and calculates the center hole position X whv ,Y whv Next, the CPU 91 measures the image center of the captured image and the measured central hole position X whv ,Y whv The distance L between the center hole position X and the center hole position X is calculated (step S430). whv Let a be the center hole position Y whv If b is used, the calculation can be performed by the following formula (2). Then, the CPU 91 judges whether the calculated distance L is equal to or less than a predetermined allowable value Lref (step S440). If the CPU 91 judges that the distance L is not equal to or less than the allowable value Lref, the CPU 91 returns to step S410 and repeats the process until the distance L becomes equal to or less than the allowable value Lref, and when the distance L becomes equal to or less than the allowable value Lref, the CPU 91 proceeds to step S450. Note that the CPU 91 may proceed to step S450 regardless of whether the distance L is equal to or less than the allowable value Lref.
[0037]
number
[0038] When the CPU 91 determines that the distance L is equal to or less than the allowable value Lref, the CPU 91 aligns the control point of the marked end effector EE (mark pin) with the hand camera position measuring work camera position X wwc ,Y wwc and the hole position Z for measuring the hand camera position registered in step S40 wwv Next, the CPU 91 rotates the marked end effector EE to angles of 0°, 90°, 180°, and 270°, and captures images of the mark M with the work camera 70 at each angle, and calculates the image in the world coordinate system Σ wThen, the CPU 91 measures the mark pin positions (X0, y0), (X90, Y90), (X180, Y180), and (X270, Y270) at the point (step S460). Next, the CPU 91 calculates the average value X of the mark pin positions (X0, Y0), (X90, Y90), (X180, Y180), and (X270, Y270). mc ,Y mc Further, the CPU 91 calculates the center hole position X for measuring the hand camera position measured by the work camera 70 in step S40. wwc ,Y wwc and mark pin position (average value) X mc ,Y mc The difference between the center position and the center of the hole for measuring the hand camera position at the end effector is calculated by the following equation (4). wwv ,Y wwv Position deviation amount X from me ,Y me (Step S190). In FIG. 19, the mark pin position (average value) X mc ,Y mc and hand camera position measurement hole center position X wwv ,Y wwv and position deviation amount X me ,Y me This shows the relationship between:
[0039]
number
[0040] Then, the CPU 91 calculates the position deviation amount X me ,Y me The coordinate system of the world coordinate system Σ w From the camera coordinate system Σ c and the converted position deviation amount X rme ,Y rme Designed hand camera position x mo ,Y mo New hand camera position X offset by (eigenvalue) ci ,Y ci (Step S470) The position deviation amount X me ,Y me The coordinate system of is the world coordinate system Σw From the camera coordinate system Σ c To convert to, the position shift amount X me ,Y me in the world coordinate system Σ w and the camera coordinate system Σ c It is enough to rotate it by the phase difference θrm with the world coordinate system Σ w The phase of the base origin of the robot 10 in rw The rotation angles of the first joint axis J1 and the second joint axis J2 when the hand camera 60 captures an image of the center hole 81a of the hole jig 81 are defined as θ J1 ,θ J2 Then, the phase difference θrm is calculated by the following equation (5). rme ,Y rme can be calculated using the rotation matrices in the following equations (6) and (7). mm ,Y mm is the eigenvalue of the hand camera position X mo ,Y mo This can be calculated using the following equation (8), and the hand camera position X ci ,Y ci The CPU 91 thus determines the new hand camera position X ci ,Y ci Calculating the hand camera position X ci ,Y ci is registered in the storage device 94 (step S480).
[0041]
number
[0042] Furthermore, the CPU 91 calculates the hand camera position change amount E by the following formula (9) (step S490), and judges whether the hand camera position change amount E is equal to or less than a predetermined allowable value Eref (step S500). If the CPU 91 judges that the hand camera position change amount E is not equal to or less than the allowable value Eref, it returns to step S400, and if it judges that the hand camera position change amount E is equal to or less than the allowable value Eref, it ends this process. As a result, the accurate hand camera position X is stored in the storage device 94. ci ,Y ci ,θ ci Therefore, the CPU 91 stores the hand camera position X ci ,Y ci ,θ ci By controlling the position of the hand camera 60 using this, the position of the workpiece W (target object) imaged by the hand camera 60 can be accurately grasped, making it possible to perform work on the workpiece W more accurately.
[0043]
number
[0044] In step S70, the end effector EE with the mark and the hole jig 80 for measuring the hand camera position are removed. This completes the hand camera position measurement procedure.
[0045] Here, the correspondence between the main elements of the embodiment and the main elements of the present disclosure described in the claims will be described. That is, in this embodiment, the robot 10 corresponds to the robot, the hand camera 60 corresponds to the hand camera, the work camera 70 corresponds to the external camera, the hole jig 80 corresponds to the jig member, the center hole 81a corresponds to the first measurement hole, the CPU 91 of the control device 90 that executes the processing of steps S240 and S250 of the hole position measurement processing for hand camera position measurement corresponds to the first position acquisition unit, the CPU 91 of the control device 90 that executes the processing of steps S410 and S420 of the hand camera position measurement processing corresponds to the second position acquisition unit, and the CPU 91 of the control device 90 that executes the processing of steps S450 to S480 of the hand camera position measurement processing corresponds to the position deviation measurement unit. Moreover, the CPU 91 of the control device 90 that executes the work camera position measurement process for measuring the hand camera position corresponds to an external camera position acquisition unit, the CPU 91 of the control device 90 that executes the processes of steps S300 and S310 of the hand camera angle measurement process corresponds to a first phase acquisition unit, the CPU 91 of the control device 90 that executes the processes of steps S320 and S330 of the hand camera angle measurement process corresponds to a second phase acquisition unit, and the CPU 91 of the control device 90 that executes the processes of step S340 of the hand camera angle measurement process corresponds to a phase shift measurement unit. Moreover, the CPU 91 of the control device 90 that executes the processes of steps S210 and S220 of the hole position measurement process for measuring the hand camera position corresponds to a height acquisition unit.
[0046] It goes without saying that the present disclosure is in no way limited to the above-described embodiment, and can be embodied in various forms as long as it falls within the technical scope of the present disclosure.
[0047] For example, in the above-described embodiment, the robot 10 is configured as a horizontal articulated robot (SCARA robot), but this is not limited to this and may be configured in any other manner, such as a vertical articulated robot.
[0048] As described above, the camera position deviation measuring device disclosed herein is a camera position deviation measuring device for measuring the position deviation of the hand camera in a robot system including a robot having a robot arm and a hand camera attached to the robot arm, and an external camera installed outside the robot, and includes: a jig member installed above the external camera and having a first measurement hole that penetrates vertically; a first position acquisition unit that images the jig member with the external camera and acquires the position of the first measurement hole from the obtained captured image of the first measurement hole; a second position acquisition unit that moves the hand camera to the position acquired by the first position acquisition unit, images the jig member with the hand camera, and acquires the position of the first measurement hole from the obtained captured image of the first measurement hole; and a position deviation measuring unit that moves the robot's hand to the position of the first measurement hole acquired by the second position acquisition unit, images the robot's hand with the external camera, and measures the position deviation of the camera from the obtained captured image.
[0049] The camera positional deviation measuring device of this disclosure includes a jig member that is installed above the external camera and has a first measurement hole that penetrates vertically. Furthermore, the positional deviation measuring device captures an image of the jig member with the external camera to obtain the position of the first measurement hole, moves a hand camera to the obtained position, captures an image of the jig member with the hand camera, and obtains the position of the first measurement hole. The positional deviation measuring device then moves a robot's hand to the obtained position of the first measurement hole, captures an image of the robot's hand with the external camera, and measures the positional deviation of the camera. This makes it possible to properly measure the positional deviation of the camera attached to the robot's arm.
[0050] The camera position deviation measuring device of the present disclosure may include a jig member that is installed above the external camera and has a plurality of second measurement holes that penetrate vertically in addition to the first measurement holes, an external camera position acquisition unit that moves the hand of the robot above the external camera to capture an image of the hand with the external camera and acquires the position of the external camera from the captured image of the hand, a first phase acquisition unit that captures an image of the jig member with the external camera and acquires the phase of the second measurement hole from the captured image of the second measurement hole, a second phase acquisition unit that moves the hand camera to the position of the external camera acquired by the external camera position acquisition unit, captures an image of the jig member with the hand camera and acquires the phase of the second measurement hole from the captured image of the second measurement hole, and a phase deviation measurement unit that measures a phase deviation of the hand camera based on the phase of the second measurement hole acquired by the first phase acquisition unit and the second phase acquisition unit, respectively. In this way, the jig member and the external camera can be used to appropriately measure a phase deviation in addition to a position deviation of the hand camera. The second measurement holes may be formed at intervals in the circumferential direction around the first measurement hole of the jig member.
[0051] The camera positional deviation measuring device of the present disclosure may further include a jig member installed above the external camera and having a plurality of second measurement holes that penetrate vertically in addition to the first measurement holes, and a height acquisition unit that captures an image of the jig member with the external camera and acquires the heights of the first measurement holes from the captured image of the second measurement holes, and the second position acquisition unit may move the hand camera to the position acquired by the first position acquisition unit and the height acquired by the height acquisition unit. In this way, even if the installation height of the jig member includes an error, the positional deviation of the hand camera can be measured satisfactorily.
[0052] Furthermore, the camera positional deviation measuring device of the present disclosure may include a jig member installed above the external camera and having a plurality of second measurement holes that penetrate vertically in addition to the first measurement holes, and a height acquisition unit that images the jig member with the external camera and acquires the heights of the first measurement holes from the captured image of the second measurement holes, and the positional deviation measuring unit may move the hand camera to the position acquired by the second position acquisition unit and the height acquired by the height acquisition unit. In this way, even if the installation height of the jig member includes an error, the positional deviation of the hand camera can be measured satisfactorily.
[0053] Although the present disclosure has been described in the form of a camera position deviation measuring device, it may also be described in the form of a camera position deviation measuring method. [Industrial Applicability]
[0054] The present disclosure is applicable to the robot system manufacturing industry and the like. [Explanation of symbols]
[0055] 1 robot system, 2 worktable, 3a main pole, 3b sub pole, 10 robot, 11 base, 20 robot arm, 21 first arm, 22 second arm, 23 shaft, 24 workpiece holder, 30 first arm drive, 31 motor, 32 motor, 33a motor, 33b motor, 34 encoder, 40 second arm drive, 42 motor, 44 encoder, 50 shaft drive, 52a motor, 52b motor, 54a encoder, 54b encoder, 60 hand camera, 70 workpiece camera, 71 storage box, 71a opening, 80 hole jig, 81a center hole, 81b three-point hole, 82 fixture, 90 control device, 91 CPU, 92 ROM, 93 RAM, 94 storage device, EE marked end effector, J1 first joint axis, J2 2nd joint axis, J3 3rd joint axis, M mark, P work supply part, S board.
Claims
1. 1. A camera position deviation measuring device for measuring a position deviation of a hand camera in a robot system including a robot having a robot arm and a hand camera attached to the robot arm, and an external camera installed outside the robot, comprising: a jig member disposed above the external camera and having a first measurement hole extending vertically therethrough; a first position acquisition unit that captures an image of the jig member using the external camera and acquires a position of the first measurement hole from the captured image of the first measurement hole; a second position acquisition unit that moves the hand camera to the position acquired by the first position acquisition unit, captures an image of the jig member with the hand camera, and acquires the position of the first measurement hole from the captured image of the first measurement hole; a positional deviation measuring unit that moves a hand of the robot to the position of the first measurement hole acquired by the second position acquisition unit, captures an image of the hand of the robot with the external camera, and measures a positional deviation of the camera from the captured image; A camera position deviation measuring device comprising:
2. 2. The camera position deviation measuring device according to claim 1, a jig member that is installed above the external camera and has a plurality of second measurement holes that are vertically penetrating in addition to the first measurement holes; an external camera position acquisition unit that moves a hand of the robot above the external camera, captures an image of the hand with the external camera, and acquires a position of the external camera from the captured image of the hand; a first phase acquisition unit that images the jig member using the external camera and acquires a phase of the second measurement hole from the captured image of the second measurement hole; a second phase acquisition unit that moves the hand camera to the position of the external camera acquired by the external camera position acquisition unit, images the jig member with the hand camera, and acquires a phase of the second measurement hole from the obtained captured image of the second measurement hole; a phase shift measurement unit that measures a phase shift of the hand camera based on the phases of the second measurement hole acquired by the first phase acquisition unit and the second phase acquisition unit, respectively; A camera position deviation measuring device comprising:
3. 3. The camera position deviation measuring device according to claim 1, a jig member that is installed above the external camera and has a plurality of second measurement holes that are vertically penetrating in addition to the first measurement holes; a height acquisition unit that images the jig member using the external camera and acquires a height of the first measurement hole from the captured image of the second measurement hole; Equipped with the second position acquisition unit moves the hand camera to the position acquired by the first position acquisition unit and to the height acquired by the height acquisition unit; Camera position deviation measuring device.
4. 4. The camera position deviation measuring device according to claim 1, a jig member that is installed above the external camera and has a plurality of second measurement holes that are vertically penetrating in addition to the first measurement holes; a height acquisition unit that images the jig member using the external camera and acquires a height of the first measurement hole from the captured image of the second measurement hole; Equipped with the positional deviation measuring unit moves the hand camera to the position acquired by the second position acquiring unit and to the height acquired by the height acquiring unit; Camera position deviation measuring device.
5. 1. A method for measuring a position shift of a camera in a robot system including a robot having a robot arm and a hand camera attached to the robot arm, and an external camera installed outside the robot, the method comprising: a jig member having a first measurement hole penetrating vertically is placed above the external camera; acquiring a position of the first measurement hole from an image of the first measurement hole obtained by imaging the jig member with the external camera, moving the hand camera to the acquired position, imaging the jig member with the hand camera, acquiring a position of the first measurement hole from an image of the first measurement hole obtained, moving the tip of the robot to the acquired position of the first measurement hole, imaging the tip of the robot with the external camera, and measuring a positional deviation of the camera from the acquired image. How to measure camera position deviation.
6. 6. The camera position deviation measuring method according to claim 5, a jig member having a plurality of second measurement holes that are vertically penetrating in addition to the first measurement holes is installed above the external camera; moving a hand of the robot above the external camera to image the hand with the external camera and obtain the position of the external camera from the image of the hand; imaging the jig member with the external camera and obtaining the phase of the second measurement hole from the image of the second measurement hole; moving the hand camera to the position of the obtained external camera and imaging the jig member with the hand camera and obtaining the phase of the second measurement hole from the image of the second measurement hole; measuring a phase shift of the hand camera based on the phase of the second measurement hole acquired by the external camera and the hand camera, respectively. How to measure camera position deviation.
Citation Information
Patent Citations
Control device of robot provided with visual sense
JP1985159905A
Part fixture
JP1989027885A
Robot device and control method of robot device
JP2016052695A
Control device, robot and robot system
JP2017100240A
Robot system
JP2019069493A
