Robot System
The robot system uses a stereo camera to calculate relative positions and orientations of multiple robots, addressing layout and cost issues by eliminating physical contact and improving posture correction accuracy.
Patent Information
- Application Number
- JP2021088980
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-05-27
AI Technical Summary
Existing robot systems face limitations in layout freedom, accuracy, and equipment cost due to the need for physical contact and individual calibration, which complicates the correction of robot postures relative to workpieces.
A robot system using a stereo camera attached to a master robot to image a reference object on a slave robot, allowing calculation of relative positions and orientations without physical contact, reducing equipment costs and improving layout flexibility.
Enables easy and accurate correction of multiple robot postures relative to workpieces while minimizing equipment costs and enhancing layout freedom, regardless of workpiece size.
Smart Images

Figure 0007574741000001 
Figure 0007574741000002 
Figure 0007574741000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a robot system that uses a plurality of robots to perform a predetermined task on a workpiece. [Background technology]
[0002] 2. Description of the Related Art Robot systems are known in the art that use a plurality of robots to perform a predetermined operation on a workpiece, such as welding the main body of a vehicle simultaneously in parallel using a plurality of welding robots.
[0003] In such a robot system, if each robot is placed in the position as designed and the workpiece is positioned as designed, each robot can be operated according to the teaching data registered during initial setup, making it possible to accurately perform specified tasks such as welding and assembly on the workpiece.
[0004] On the other hand, if there is an installation error in each robot or if the workpiece is not positioned, simply having each robot operate according to the teaching data will result in the welding points and assembly positions being shifted from the correct positions, and it will be necessary to correct the posture of each robot relative to the workpiece.
[0005] For example, Patent Document 1 discloses a robot system in which a special-purpose jig is accurately grasped by a calibrated first robot, and then simultaneously grasped by a second robot, thereby checking the amount of deviation between the coordinate systems of the first robot and the second robot, and aligning the origin position and coordinate axes of the second robot's coordinate system with those of the first robot.
[0006] Furthermore, Patent Document 2 discloses a robot system that calculates a correction amount TL for correcting a grasping misalignment detected by a first camera attached to a leading robot, and calculates a correction amount TF for correcting a grasping misalignment detected by a second camera attached to a following robot, and during cooperative control, corrects the position and posture of the leading robot using the correction amount TL, and corrects the position and posture of the following robot using both the correction amounts TL and TF. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2014-176944 A [Patent Document 2] JP 2018-094649 A Summary of the Invention [Problem to be solved by the invention]
[0008] According to the robot systems of Patent Documents 1 and 2, it is said that calibration of multiple robots can be easily and accurately performed. However, Patent Documents 1 and 2 have the following problems.
[0009] In other words, in the method described in Patent Document 1, when measuring the relative positions of robots, two robots simultaneously hold a special jig, so this method can only be applied to robots that are installed within physical reach, which limits the freedom of layout in the robot system.
[0010] Furthermore, in the method of Patent Document 1, physical contact is required when measuring the relative positions of robots, so the method is susceptible to the effects of deflection of the robot or the jig, and requires delicate operation, which makes it difficult to operate. There is also a problem that it is difficult to easily and accurately correct the robot's posture because accuracy varies depending on the individual differences of the contractor.
[0011] Furthermore, in the system of Patent Document 2, a camera and a processing device (for example, a personal computer) for processing image data are required for each robot, which results in an increase in facility costs.
[0012] Furthermore, in the case of Patent Document 2, when correcting the position and posture of the following robot, a correction amount TL for correcting the gripping misalignment of the leading robot and a correction amount TF for correcting the gripping misalignment of the following robot are used. This means that it is necessary to measure the gripping misalignment of all robots every time a correction is made, which creates the problem that it is difficult to easily correct the position and posture.
[0013] The present invention has been made in consideration of the above-mentioned points, and its object is to provide a robot system that is capable of easily and accurately correcting the posture of a robot relative to a workpiece, while reducing equipment costs and improving layout freedom, even when multiple robots are used. [Means for solving the problem]
[0014] In order to achieve the above-mentioned object, in the robot system of the present invention, a reference object attached to the slave robot is imaged by a stereo camera attached to the master robot, and the relative position between the master robot and the slave robot is calculated using only one stereo camera and one processing device.
[0015] Specifically, the present invention is directed to a robot system that uses a plurality of robots to perform a predetermined task on a workpiece.
[0016] This robot system includes a master robot equipped with a stereo camera, a slave robot equipped with a reference object, and a processing device capable of controlling the master robot and the slave robot and acquiring images captured by the stereo camera, and the processing device calculates the position and orientation of the stereo camera as viewed from the coordinate system of the master robot and the position and orientation of the reference object as viewed from the coordinate system of the stereo camera based on a plurality of images of the reference object captured by the stereo camera when the master robot is made to take a plurality of postures with the slave robot held stationary, and The present invention is characterized in that the system is configured to calculate the position and orientation of the reference object as seen from the coordinate system of the slave robot based on multiple images of the reference object captured by the stereo camera when the slave robot is made to assume multiple postures, and to calculate the relative position of the master robot and the slave robot by coordinate transforming these calculation results, and to calculate a correction amount for the master robot with respect to the workpiece based on images of characteristic parts of the workpiece captured by the stereo camera, and to correct the postures of the master robot and the slave robot based on the relative positions of the master robot and the slave robot and the correction amount.
[0017] According to this configuration, with the slave robot stationary, in other words with the reference object fixed, the master robot equipped with the stereo cameras is made to assume multiple postures, and the reference object is imaged from multiple directions using the stereo cameras that can also record depth information, making it possible to calculate the position and posture of the stereo cameras as viewed from the coordinate system of the master robot. In addition, since the size and shape of the reference object are known, the position and posture of the reference object as viewed from the coordinate system of the stereo cameras can also be calculated by imaging the reference object from multiple directions using the stereo cameras.
[0018] Similarly, with the master robot stationary, in other words with the stereo camera fixed, the slave robot to which a reference object is attached can be made to assume multiple poses and the reference object can be captured in multiple positions by the stationary stereo camera, thereby making it possible to calculate the position and posture of the reference object as viewed from the coordinate system of the slave robot.
[0019] Here, (1) the position and orientation of the stereo camera as seen from the coordinate system of the master robot, (2) the position and orientation of the reference object as seen from the coordinate system of the stereo camera, and (3) the position and orientation of the reference object as seen from the coordinate system of the slave robot can each be expressed as a matrix. Therefore, by calculating the inverse matrix of the matrix representing (3), (3') the position and orientation of the slave robot as seen from the coordinate system of the reference object can be easily calculated.
[0020] Then, by multiplying the matrices representing (1), (2), and (3') to perform coordinate transformation from master robot → stereo camera → reference object → slave robot, the position and orientation of the slave robot as seen from the coordinate system of the master robot, in other words, the relative positions of the master robot and the slave robot, can be easily calculated using a single stereo camera.
[0021] On the other hand, by capturing images of the characteristic parts of the workpiece with a stereo camera and comparing the position and orientation of the workpiece obtained from the images of the characteristic parts with, for example, pre-stored design values, the amount of correction (deviation) of the master robot for the workpiece can be easily calculated. Since the relative positions of the master robot and the slave robot have already been calculated (measured), the amount of correction of the slave robot for the workpiece can also be easily calculated based on the amount of correction of the master robot for the workpiece, making it possible to easily and accurately correct not only the posture of the master robot but also that of the slave robot.
[0022] In other words, according to the present invention, regardless of the number of slave robots, the relative positions between the master robot and the slave robots can be obtained using one stereo camera attached to the master robot and one processing device that processes the image data, and the postures of all robots can be easily corrected, thereby reducing equipment costs.
[0023] Moreover, since the relative positions of the master robot and the slave robot can be acquired simply by installing the master robot equipped with a stereo camera in a position where it can view the reference object attached to the slave robot, the degree of freedom in layout can be increased compared to robot systems that involve physical contact between the robots when measuring the relative positions of the master robot and the slave robot. In addition, since the robots do not come into physical contact with each other when measuring the relative positions of the master robot and the slave robot, the attitude of the robot with respect to the workpiece can be accurately corrected.
[0024] Therefore, according to the present invention, even when multiple robots are used, it is possible to easily and accurately correct the orientation of the robots with respect to the workpiece while reducing equipment costs and improving layout freedom.
[0025] However, if the characteristic part of the workpiece has a three-dimensional shape, it is possible to calculate the posture of the workpiece from an image of the characteristic part, but if the characteristic part of the workpiece is, for example, a hole (feature point), three or more feature points are required to calculate the posture of the workpiece. Moreover, in order to increase the accuracy of posture calculation, it is preferable to capture images of feature points that are as far apart as possible (located as far away as possible).
[0026] Here, in the case of a relatively small workpiece, it is possible to capture images of three or more feature points formed on the workpiece using only one stereo camera attached to the master robot. However, in the case of a relatively large workpiece, such as the main body of a vehicle, it may be difficult to capture images of three or more feature points that are separated from one another and formed on the workpiece using only one stereo camera.
[0027] Therefore, the robot system may include a plurality of slave robots, including a slave robot equipped with the reference object and a stereo camera, and the processing device may be configured to calculate a correction amount for the master robot with respect to the workpiece based on images of a plurality of characteristic parts of the workpiece captured by the stereo cameras attached to the master robot and the slave robot, and to correct the postures of the master robot and the plurality of slave robots based on the relative positions of the master robot and the plurality of slave robots and the correction amount.
[0028] According to this configuration, by using not only the stereo camera attached to the master robot but also the stereo camera attached to the slave robot, it is possible to capture images of three or more mutually distant feature points formed on a relatively large workpiece, so that the posture of the robot with respect to the workpiece can be easily and accurately corrected regardless of the size of the workpiece.
[0029] Moreover, the relative positions between the master robot and multiple slave robots are calculated using only one stereo camera and one processing device attached to the master robot, and since stereo cameras are not attached to all of the slave robots but rather the number of stereo cameras is increased only as many as are necessary to capture images of the feature points, an increase in equipment costs can be suppressed.
[0030] In the robot system, a tool attached to the end of the arm of the slave robot may be provided with a measurement point, and the processing device may be configured to confirm the calculation accuracy of the relative position between the master robot and the slave robot by comparing the position of the measurement point calculated based on the relative positions of the master robot and the slave robot with the position of the measurement point imaged by the stereo camera.
[0031] With this configuration, by comparing the positions (coordinates) of the measurement points obtained using different methods, namely (A) master robot → slave robot → measurement point and (B) master robot → stereo camera → measurement point, the calculation accuracy of the relative positions between the master robot and the slave robot can be confirmed, making it possible to correct the posture of the robot with respect to the workpiece even more accurately. Effect of the Invention
[0032] As described above, according to the robot system of the present invention, even when multiple robots are used, it is possible to easily and accurately correct the posture of the robot with respect to the workpiece while reducing equipment costs and improving layout freedom. [Brief description of the drawings]
[0033] [Figure 1] 1 is a diagram illustrating an overview of a robot system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a block diagram illustrating a schematic diagram of a robot system. [Diagram 3] 13 is a flowchart illustrating an example of a posture correction procedure. [Figure 4] FIG. 1 is a diagram illustrating a first application example of a robot system. [Diagram 5] FIG. 13 is a diagram illustrating a second application example of the robot system. [Figure 6] FIG. 2 is a diagram illustrating a schematic diagram of characteristic points in a main body of a vehicle. [Figure 7]FIG. 2 is a diagram showing a schematic diagram of a material hand attached to a slave robot. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0034] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0035] -Outline of the robot system- Fig. 1 is a diagram that shows a schematic overview of a robot system 1 according to this embodiment, and Fig. 2 is a block diagram that shows a schematic overview of the robot system 1. Note that Fig. 2 shows only one slave robot (hereinafter, referred to as "slave robot 20" unless otherwise specified) out of four slave robots 21, 22, 23, and 24.
[0036] This robot system 1 performs predetermined operations such as welding and assembly on a workpiece W (main body W1 of a vehicle in the example of FIG. 1) using multiple robots including a master robot 10 and a slave robot 20. As described below, the master robot 10 and the slave robot 20 have a master-slave relationship when correcting the posture of each robot 10, 20 with respect to the workpiece W, but otherwise, the master robot 10, like the slave robot 20, is configured to perform predetermined operations using a tool 30 (resistance welding machine in the example of FIG. 1) attached to the tip of a robot arm 10a.
[0037] As shown in Figures 1 and 2, the robot system 1 includes one master robot 10, four slave robots 20, a robot control panel 40 for controlling the master robot 10, a robot control panel 50 for controlling each slave robot 20, one stereo camera 60, lighting 63, four calibration plates 70, a HUB 80, and one image processing device 90.
[0038] The master robot 10 and the slave robot 20 are six-axis articulated robots, each having a robot arm 10a, 20a that is composed of a plurality of links and six rotary joints that connect the plurality of links. A tool (end effector) 30 for performing a predetermined task on the main body W1 is attached to the tip of the robot arm 10a, 20a. A servo motor (not shown) is provided at each rotary joint, and the robot arm 10a, 20a is driven by the individual angular displacement of each servo motor, making it possible to three-dimensionally change the position and posture of the tool 30 relative to the main body W1.
[0039] The robot control boards 40, 50 are composed of a servo driver (not shown) that drives a servo motor, a robot CPU 40a, 50a that executes various arithmetic processing, a ROM (Read Only Memory) that stores programs and data, a RAM (Random Access Memory) that temporarily stores data and information generated during execution of arithmetic processing by the robot CPU 40a, 50a, etc. The robot control boards 40, 50 are configured such that the robot CPU 40a, 50a processes teaching data stored (registered) in the ROM during initial setup, and outputs operation commands to the servo drivers, etc., thereby controlling the operation of the master robot 10 and the slave robot 20, respectively.
[0040] The stereo camera 60 and the lighting 63 are attached to the robot arm 10a of the master robot 10 near the tool 30. The stereo camera 60 is configured to simultaneously capture images of an object from a plurality of different directions, thereby recording information about the object's depth direction. The stereo camera 60 captures images of the object from the lighting 63. The illuminated area is imaged and the image data is transmitted to the image processing device 90.
[0041] The calibration plate (reference object) 70 is a plate having teaching points distributed on a plane, and is attached to each of the robot arms 20a of the slave robots 21, 22, 23, and 24. The shape (positions of the teaching points, etc.) and dimensions of the calibration plate 70 are stored in the ROM of the image processing device 90.
[0042] The image processing device (processing device) 90 is a personal computer, and is composed of a CPU (Central Processing Unit) that executes calculation processing based on various programs, a ROM that stores various programs and maps referenced when executing the various programs, a RAM that is a memory that temporarily stores the results of calculations by the CPU, etc. The image processing device 90 includes a display 90a, and application software 90b installed in the ROM.
[0043] The display 90a is configured to display virtual images created by CAD (Computer Aided Design) or the like, which show the movements of the master robot 10 and the slave robot 20 when a command is given, and the positional relationships between the master robot 10 and the slave robot 20 and the main body W1, etc. This makes it possible to confirm in advance how the master robot 10 and the slave robot 20 will move when a command is given from the image processing device 90.
[0044] The image processing device 90 is connected to the stereo camera 60 via PoE (Power over Ethernet) 81, so that image data captured by the stereo camera 60 is input to the application software 90b. The image processing device 90 is also configured to be able to perform wireless communication with the robot CPUs 40a, 50a of the robot control panels 40, 50 via an Ethernet (Ethernet-IP) 83 and a HUB 80. This allows the image processing device 90 to control the master robot 10 and the slave robot 20 by transmitting, for example, commands input from a keyboard (not shown) or analysis results by the application software 90b to the robot control panels 40, 50.
[0045] -Posture correction procedure- In the robot system 1 configured as described above, if each robot 10, 20 is placed in the designed position and the workpiece W is positioned as designed, each robot 10, 20 can be operated according to the teaching data stored in the ROM of the robot control panels 40, 50 during initial setup, thereby making it possible to accurately perform specified tasks such as welding and assembly.
[0046] On the other hand, if there is an installation error in each robot 10, 20 or if the workpiece W is not positioned, simply operating each robot 10, 20 according to the teaching data will result in the welding points and assembly positions being shifted from the correct positions, and it will be necessary to correct the posture of each robot 10, 20 relative to the workpiece W.
[0047] In this regard, conventional robot systems have adopted a method in which the slave robot is physically brought into contact with a calibrated master robot to check the amount of misalignment between the master robot's coordinate system and the slave robot's coordinate system (referred to as "conventional method 1"), or a method in which a camera for detecting gripping misalignment and a personal computer for processing image data are provided for each robot (referred to as "conventional method 2").
[0048] However, the conventional method 1 has the problem that it can only be applied to robots installed within a physically reachable range, limiting the degree of freedom in the layout of the robot system. Furthermore, since it involves physical contact between robots, it is susceptible to the effects of bending of the robots, etc., requires delicate operation, and the accuracy varies depending on the individual differences of the workers, making it difficult to easily and accurately correct the robot's posture.
[0049] In addition, the conventional method 2 has the problem that a camera and a personal computer are required for each robot, which increases the equipment costs.
[0050] Therefore, in the robot system 1 of this embodiment, the calibration plate 70 attached to the slave robot 20 is imaged by the stereo camera 60 attached to the master robot 10, and the relative position between the master robot 10 and the slave robot 20 is calculated (measured) using only one stereo camera 60 and one image processing device 90.
[0051] Specifically, in the robot system 1 of this embodiment, (1) With the slave robot 20 stationary, the master robot 10 is made to assume a plurality of postures, and based on a plurality of image data of the calibration plate 70 captured by the stereo camera 60, the coordinate system of the master robot 10 (master robot coordinate system Σ MR ) and the position and orientation of the stereo camera 60 as viewed from the camera coordinate system Σ C ) and the position and orientation of the calibration plate 70 as viewed from the (2) With the master robot 10 stationary, the slave robot 20 is made to assume a plurality of postures, and based on a plurality of image data of the calibration plate 70 captured by the stereo camera 60, the coordinate system of the slave robot 20 (slave robot coordinate system Σ SR ) and calculate the position and orientation of the calibration plate 70 as seen from the (3) The results of calculations (1) and (2) are subjected to coordinate conversion to calculate the relative positions of the master robot 10 and the slave robot 20, and (4) Calculating a correction amount of the master robot 10 with respect to the workpiece W based on image data of the characteristic parts of the workpiece W captured by the stereo camera 60; (5) The image processing device 90 is configured to correct the postures of the master robot 10 and the slave robot 20 based on the relative positions between the master robot 10 and the slave robot 20 calculated in (3) and the correction amount calculated in (4).
[0052] Hereinafter, the posture correction procedures (1) to (5) performed by the image processing device 90 will be described in detail with reference to the flowchart in Fig. 3. Note that while four slave robots 21, 22, 23, and 24 are shown in Fig. 1, the following description will be given of a case in which the robot system 1 includes n slave robots 20 (n is a positive integer).
[0053] Regarding step (1): First, in step S1, the image processing device 90 reads i=0 as the number of the slave robot 20. In the next step S2, the image processing device 90 calculates i=i+1 and sets the number of the slave robot 20 to 1. The slave robot 20 numbered 1 corresponds to, for example, the slave robot 21 in FIG. 1. In the next step S3, the image processing device 90 issues a command to the robot control panel 50 corresponding to the slave robot 21 to stop the slave robot 21.
[0054] Here, with the slave robot 21 in a stationary state, the calibration plate 70 attached to the slave robot 21 is imaged by the stereo camera 60, and then the posture of the master robot 10 is changed and the calibration plate 70 is imaged again by the stereo camera 60. Naturally, the calibration plate 70 will be imaged differently before and after the posture change. For example, if the amount of change in the image data of the calibration plate 70 is small compared to the amount of change in the tip of the robot arm 10a of the master robot 10, it is estimated that the stereo camera 60 is located closer to the base end than the tip of the robot arm 10a.
[0055] Therefore, by making the master robot 10 take a plurality of postures, and each time capturing an image of the calibration plate 70 from a different direction by the stereo camera 60, and repeating such estimation, the master robot coordinate system Σ MR The position and orientation of the stereo camera 60 in the image is calculated (narrowed down). It has been confirmed through experiments that the calculation accuracy of the position and orientation of the stereo camera 60 does not increase the more the orientation of the master robot 10 is changed, but converges after about 13 images are captured.
[0056] Therefore, in the next step S4, the image processing device 90 reads the number of times of imaging j = 0. In the next step S5, the image processing device 90 calculates j = j + 1 and sets the number of times of imaging j to 1, and then proceeds to step S6. In the next step S6, the first calibration plate 70 (the calibration plate 70 attached to the first slave robot 21) is imaged by the stereo camera 60, and then the process proceeds to step S7.
[0057] In the next step S7, the image processing device 90 judges whether the number of times j of imaging has reached a predetermined number l (l is a positive integer, for example, 13). If the judgment in this step S7 is NO, the process proceeds to step S8. In the next step S8, the image processing device 90 issues a command to the robot control panel 40 to change the posture of the master robot 10, and then proceeds to step S5 to add 1 to the number of times j of imaging, and then repeats the flow of again imaging the calibration plate 70 attached to the slave robot 21 in step S6 with the stereo camera 60.
[0058] On the other hand, if the determination in step S7 is YES, that is, if the number of times j of imaging has reached the predetermined number l, the process proceeds to step S9. In the next step S9, the application software 90b of the image processing device 90 calculates the master robot coordinate system Σ MR The position and orientation of the stereo camera 60 as viewed from the left is calculated.
[0059] Here, the master robot coordinate system Σ MR "Calculate the position and orientation of the stereo camera 60 as seen from the master robot coordinate system Σ MR From the camera coordinate system Σ C A matrix representing the position and orientation up to MR T C That is, the matrix MR T C is a matrix that transforms the position and orientation of the master robot 10 into the position and orientation of the stereo camera 60. Therefore, the matrix MR T C By multiplying by the control amount of the position and orientation of the master robot 10, the position and orientation of the stereo camera 60 can be calculated. MR T C Inverse matrix of MR T C -1 (= C T MR ) by the target position and target orientation of the stereo camera 60, the control amount for the position and orientation of the master robot 10 can be calculated.
[0060] Then, in the next step S10, the application software 90b of the image processing device 90 calculates the coordinate system Σ C The position and orientation of the first calibration plate 70 as viewed from the left is calculated.
[0061] As described above, the shape (positions of teaching points, etc.) and dimensions of the calibration plate 70 are stored in the ROM of the image processing device 90. Therefore, by capturing images of the calibration plate 70 from different directions using the stereo camera 60, the application software 90b can obtain the coordinates of the calibration plate 70 in the camera coordinate system Σ CIt is also possible to calculate the position and orientation of the calibration plate 70 as viewed from the camera coordinate system Σ C "Calculate the position and orientation of the calibration plate 70 as viewed from the camera coordinate system Σ C From the plate coordinate system Σ P Location to Attitude matrix C T P This means calculating
[0062] Regarding step (2): In the same manner as in step (1) above, while the master robot 10 is stationary, the slave robot 20 is made to take a number of postures, and each time, the calibration plate 70 is imaged from a different direction by the stationary stereo camera 60, thereby obtaining the slave robot coordinate system Σ SR The position and orientation of the calibration plate 70 in is calculated (narrowed down).
[0063] Therefore, in step S11, the image processing device 90 issues a command to the robot control panel 40 to stop the master robot 10. In the next step S12, the image processing device 90 reads the number of times of imaging, k=0. In the next step S13, the image processing device 90 calculates k=k+1 and sets the number of times of imaging, k, to 1, and then proceeds to step S14. In the next step S14, the first calibration plate 70 is imaged by the stationary stereo camera 60, and then proceeds to step S15.
[0064] In the next step S15, the image processing device 90 judges whether the number of times k of imaging has reached a predetermined number m (m is a positive integer, for example, 13). If the judgment in this step S15 is NO, the process proceeds to step S16. In the next step S16, the image processing device 90 issues a command to the robot control panel 50 corresponding to the slave robot 21 to change the posture of the slave robot 21, and then proceeds to step S13 to add 1 to the number of times k of imaging, and then repeats the flow of again imaging the calibration plate 70 attached to the slave robot 21 in step S14 with the stationary stereo camera 60.
[0065] On the other hand, if the determination in step S15 is YES, that is, if the number of times k of imaging has reached the predetermined number m, the process proceeds to step S17. In the next step S17, the application software 90b of the image processing device 90 calculates the slave robot coordinate system Σ SR21 The position and orientation of the calibration plate 70 as viewed from the camera are calculated.
[0066] Here, the slave robot coordinate system Σ SR21 "Calculate the position and orientation of the calibration plate 70 as seen from the slave robot coordinate system Σ SR21 From the plate coordinate system Σ P A matrix representing the position and orientation up to SR21 T P Therefore, the matrix SR21 T P Inverse matrix of SR21 T P -1 (= P T SR21 ) can also be easily calculated.
[0067] Regarding step (3): In the next step S18, the application software 90b of the image processing device 90 calculates the relative position between the master robot 10 and the first slave robot 21. Specifically, the application software 90b uses the matrix calculated in step S9 MR T C and the matrix calculated in step S10C T P and the matrix calculated in step S17 SR21 T P The inverse matrix of (matrix P T SR21 ) and the master robot coordinate system Σ MR from the slave robot coordinate system Σ SR21 A matrix representing the position and orientation up to MR T SR21 and calculates (measures) the relative position between the master robot 10 and the slave robot 21.
[0068] MR T C · C T P · P T SR21 = MR T SR21 ...Equation (1) After the relative positions between the master robot 10 and the slave robot 21 are calculated in this manner, the process proceeds to step S19. In the next step S19, the image processing device 90 judges whether or not the number i of the slave robot 20 has reached n. If the judgment in this step S19 is NO, the process returns to step S2, and the procedures from step S2 to step S18 are repeated until the number of slave robots 20 whose relative positional relationships with the master robot 10 have been calculated reaches n.
[0069] This allows the slave robot coordinate system Σ SR22 Based on the position and orientation of the calibration plate 70 as viewed from the master robot 10, the relative position between the master robot 10 and the slave robot 22 is calculated, and the slave robot coordinate system Σ SR23 Based on the position and orientation of the calibration plate 70 as viewed from the master robot 10, the relative position between the master robot 10 and the slave robot 23 is calculated, and the slave robot coordinate system Σ SR24Based on the position and orientation of the calibration plate 70 as seen from the outside, the relative position between the master robot 10 and the slave robot 24 is calculated, and so on, the relative positions between the master robot 10 and the n slave robots 20 are calculated one after another. On the other hand, if the determination in step S19 is YES, the process proceeds to step S20.
[0070] Regarding step (4): In the next step S20, the stereo camera 60 captures an image of a characteristic portion of the workpiece W. If the characteristic portion of the workpiece W has a three-dimensional shape, it is possible to calculate the posture of the workpiece W from image data of the characteristic portion. However, if the characteristic portion of the workpiece W is, for example, a hole (feature point), image data of three or more feature points is required to calculate the posture of the workpiece W.
[0071] In the next step S21, the application software 90b of the image processing device 90 calculates the correction amount of the master robot 10 with respect to the workpiece W. Specifically, the stereo camera 60 captures images of characteristic parts of the workpiece W, and the positions of the characteristic parts acquired from the image data are compared with, for example, pre-stored design positions to calculate the correction amount (deviation amount) of the master robot 10 with respect to the workpiece W.
[0072] Regarding step (5): In the next step S22, the application software 90b of the image processing device 90 corrects the postures of all the robots including the master robot 10 and the n slave robots 20, and then the process ends.
[0073] More specifically, since the relative positions of the master robot 10 and the n slave robots 20 are calculated in step S18 and the correction amount of the master robot 10 with respect to the workpiece W is calculated in step S21, the correction amount of each slave robot 20 with respect to the workpiece W can be easily calculated by adding up the correction amounts for the relative positions of the master robot 10 and each slave robot 20. Then, by transmitting the correction amounts from the image processing device 90 to the robot control panels 40, 50 as shown by the two-dot chain arrow in Fig. 1, the teaching data stored in the ROM of each robot control panel 40, 50 is corrected, and by operating each robot 10, 20 according to the corrected teaching data, it becomes possible to accurately perform a predetermined task such as welding or assembly on the workpiece W.
[0074] As described above, according to the robot system 1 of this embodiment, regardless of the number of slave robots 20, the relative positions between the master robot 10 and the slave robot 20 can be acquired (measured) using a single stereo camera 60 attached to the master robot 10, and the postures of all the robots can be easily corrected, thereby reducing equipment costs.
[0075] Moreover, since processing can be performed by a single image processing device 90, the personal computers that were previously required for each robot can now be shared by the HUB 80, thereby enabling further reduction in equipment costs compared to conventional robot systems.
[0076] In addition, the master robot 10 to which the stereo camera 60 is attached is simply placed in a position where it can see the calibration plate 70 attached to the slave robot 20. For example, since it is possible to measure the relative positions of the master robot 10 and the slave robot 20, the degree of freedom in layout can be increased compared to conventional robot systems that involve physical contact between the robots.
[0077] In addition, since the relative position measurement between the master robot 10 and the slave robot 20 does not involve physical contact between the robots, the orientation of the robots 10, 20 with respect to the workpiece W can be accurately corrected.
[0078] Therefore, according to this embodiment, even when multiple robots 10, 20 are used, it is possible to easily and accurately correct the postures of the robots 10, 20 with respect to the workpiece W while reducing equipment costs and improving layout freedom.
[0079] -Application example of embodiment- <Application Example 1> FIG. 4 is a diagram showing a schematic diagram of an application example 1 of the robot system 1. In this application example 1, the robot system 1 is applied to a cell production method in which a plurality of robots 10 and 20 housed in a cell 3 perform various operations such as welding and assembly. The robot system 1 shown in FIG. 4 includes one master robot 10 and eight slave robots 21 to 28. The eight robot control panels 51, 52, 53, 54, 55, 56, 57, and 58 correspond to the slave robots 21, 22, 23, 24, 25, 26, 27, and 28, respectively. A resistance welder (not shown) is attached as a tool 30 to the master robot 10 and the slave robots 21, 22, 23, 25, 26, 27, and 28. In contrast, a material hand 31 (see FIG. 7) for fixing the main body W1 during welding work is attached as a tool 30 to the cross-hatched slave robot 24.
[0080] As described above, if the characteristic portion of the workpiece W is, for example, a hole (characteristic point), image data of three or more characteristic points is required to calculate the orientation of the workpiece W. Moreover, in order to increase the accuracy of the orientation calculation, it is preferable to capture images of characteristic points that are as far apart as possible (located as far away as possible).
[0081] Here, in the case of a relatively small workpiece W, it is possible to capture images of three or more feature points formed on the workpiece W using, for example, only one stereo camera 60 attached to the master robot 10. However, in the case of a relatively large main body W1 as shown in FIG. 4, it becomes difficult to capture images of three or more feature points P1, P2, P3 that are separated from one another and formed on the main body W1 using only one stereo camera 60.
[0082] 4, the slave robots 27, 28 are equipped with not only the calibration plate 70 but also the stereo cameras 61, 62. In relation to the claims, the slave robots 27, 28 of this application example correspond to "a robot equipped with a reference object and a stereo camera" according to the present invention.
[0083] In this case, the relative positions of the master robot 10 and the slave robots 21, 22, 23, ... are calculated using only one stereo camera 60 attached to the master robot 10. Then, the slave robot coordinate system Σ SR27 The position and orientation of the stereo camera 61 as viewed from the slave robot coordinate system Σ SR28 The position and orientation of the stereo camera 62 as viewed from the cell 3 is calculated based on image data obtained by capturing an image of a calibration plate (not shown) placed in the cell 3 by the stereo cameras 61 and 62.
[0084] As shown in FIG. 4, the stereo camera 60 attached to the master robot 10 The master robot 10 images the point P1, the stereo camera 61 attached to the slave robot 27 images the feature point P2, and the stereo camera 62 attached to the slave robot 28 images the feature point P3. In this way, by using not only the stereo camera 60 attached to the master robot 10 but also the stereo cameras 61, 62 attached to the slave robots 27, 28, it becomes possible to image the three feature points P1, P2, P3 that are separated from one another and formed on the relatively large main body W1.
[0085] The image processing device 90 is configured to calculate a correction amount for the master robot 10 with respect to the main body W1 based on data of three characteristic points P1, P2, P3 on the main body W1 captured by the stereo cameras 60, 61, 62 attached to the master robot 10 and the slave robots 27, 28, and to correct the postures of the master robot 10 and the multiple slave robots 21, 22, 23, ... based on the relative positions between the master robot 10 and the multiple slave robots 21, 22, 23, ... and the correction amount. This makes it possible to easily and accurately correct the postures of the robots 10, 21, 22, 23, ... with respect to the main body W1, regardless of the size of the workpiece W.
[0086] 4, correcting the postures of all the robots 10, 21, 22, 23, ... would be wasteful. Therefore, in this case, for example, the stereo camera 61 attached to the slave robot 27 closest to the workpiece W2 may be used to capture images of the three feature points P1', P2', P3' of the workpiece W2, and the correction amount calculated based on the captured image data may be transmitted only to the robot control panel 55, and welding, etc. may be performed only by the slave robot 25.
[0087] <Application Example 2> 5 is a diagram showing a schematic diagram of an application example 2 of the robot system 1. In this application example 2, the robot system 1 is applied to a line production system in which a predetermined operation is performed on a workpiece W conveyed by a conveying device.
[0088] Fig. 6 is a diagram showing characteristic points P1 and P2 in a main body W1 of a vehicle. In the main body W1, as shown by a thick frame in Fig. 6, a hole is formed as characteristic point P1 in an A-pillar AP on the left side in the vehicle width direction, and a hole is formed as characteristic point P2 in a C-pillar CP on the left side in the vehicle width direction. Similarly, holes are formed as characteristic point P1 and characteristic point P2 in the A-pillar and C-pillar (both not shown) on the right side in the vehicle width direction, respectively.
[0089] As shown by the bold frame in FIG. 5, a stereo camera 60 attached to the master robot 10 arranged on the left side of the main body W1 captures image of the left side characteristic points P1 and P2, and a stereo camera 61 attached to the slave robot 20 arranged on the right side of the main body W1 captures image of the right side characteristic points P1 and P2, thereby making it possible to correct the posture of the master robot 10 and the multiple slave robots 20 relative to the main body W1 in-line.
[0090] -Modifications of the embodiment- In the above embodiment, the relative positions between the master robot 10 and the slave robot 20 are merely calculated (measured) using the stereo camera 60 and the calibration plate 70, but this modified example differs from the above embodiment in that the calculation accuracy of the relative positions is confirmed. Below, the differences from the embodiment will be mainly explained.
[0091] 7 is a schematic diagram showing the material hand 31 attached to the tip of the robot arm 20a of the slave robot 20. As shown by the bold frame in FIG. 7, the handpiece 31 is provided with measurement points MP1 and MP2 consisting of two holes.
[0092] In this modified example, the image processing device 90 is configured to confirm the calculation accuracy of the relative positions between the master robot 10 and the slave robot 20 by comparing the positions of the measurement points MP1, MP2 calculated based on the relative positions between the master robot 10 and the slave robot 20 with the positions of the measurement points MP1, MP2 captured by the stereo camera 60.
[0093] Specifically, the slave robot coordinate system Σ SR The positions and orientations of the measurement points MP1 and MP2 as seen from the master robot coordinate system Σ are known from the robot eigenvalues and the specifications of the material hand 31, and the relative positions of the master robot 10 and the slave robot 20 have already been calculated. Therefore, the master robot coordinate system Σ can be calculated from the master robot coordinate system Σ by taking the route (A) master robot 10 → slave robot 20 → measurement points MP1 and MP2. MR The positions (coordinates) of measurement points MP1 and MP2 in the image can be calculated.
[0094] On the other hand, (B) the route from master robot 10 → stereo camera 60 → measurement points MP1, MP2 also uses the master robot coordinate system Σ MR The positions (coordinates) of measurement points MP1 and MP2 in the image can be calculated.
[0095] In this way, by comparing the positions (coordinates) of measurement points MP1, MP2 obtained by different routes (A) and (B), the calculation accuracy of the relative positions between the master robot 10 and the slave robot 20 can be confirmed, thereby making it possible to more accurately correct the postures of the robots 10, 20 with respect to the workpiece W.
[0096] (Other embodiments) The present invention is not limited to the embodiments, and can be embodied in various other forms without departing from the spirit or main characteristics thereof.
[0097] In the flowchart of the above embodiment, after an image of the calibration plate 70 in one slave robot 20 is captured and its relative position is calculated, an image of the calibration plate 70 in the next slave robot 20 is captured and its relative position is calculated. However, this is not limited to the above, and after images of the calibration plates 70 in all slave robots 20 are captured, the relative positions in all slave robots 20 may be calculated.
[0098] In the modification of the above embodiment, the measurement points MP1 and MP2 are provided on the material hand 31. However, the present invention is not limited to this and the measurement points may be provided on a tool 30 other than the material hand 31.
[0099] As such, the above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention. [Industrial Applicability]
[0100] According to the present invention, even when multiple robots are used, the posture of the robot relative to the workpiece can be easily and accurately corrected while reducing equipment costs and improving layout freedom, making it extremely useful for application to a robot system that uses multiple robots to perform specified tasks on a workpiece. [Explanation of symbols]
[0101] 1. Robot System 10. Master Robot 10a Robot Arm 20 Slave Robot 20a Robot Arm 31 Material Hand (Tool) 60,61,62 Stereo camera 70 Calibration plate (reference object) 90 Image processing device (processing device) P1, P2, P3 feature points (feature parts) P1', P2', P3' feature points (feature parts) W1 Main body (work) W2 Work MP1, MP2 measurement points
Claims
1. A robot system that performs a predetermined task on a workpiece using multiple robots, A master robot equipped with a stereo camera and a slave robot having a reference object attached thereto; a processing device capable of controlling the master robot and the slave robot and acquiring images captured by the stereo camera; The processing device includes: calculating a position and orientation of the stereo camera as viewed from the coordinate system of the master robot and a position and orientation of the reference object as viewed from the coordinate system of the stereo camera based on a plurality of images of the reference object captured by the stereo camera when the master robot is made to assume a plurality of postures while the slave robot is kept stationary, and calculating a position and orientation of the reference object as viewed from a coordinate system of the slave robot based on a plurality of images of the reference object captured by the stereo camera when the slave robot is caused to assume a plurality of orientations while the master robot is kept stationary; The relative positions of the master robot and the slave robot are calculated by converting the coordinates of these calculation results, and Calculating a correction amount of the master robot with respect to the workpiece based on an image of a characteristic part of the workpiece captured by the stereo camera; a robot system configured to correct postures of the master robot and the slave robot based on the relative positions of the master robot and the slave robot and the correction amount.
2. 2. The robot system according to claim 1, A plurality of the slave robots are provided, The plurality of slave robots include one to which the reference object and a stereo camera are attached; the processing device is configured to calculate a correction amount for the master robot with respect to the workpiece based on images of multiple characteristic parts of the workpiece captured by stereo cameras attached to the master robot and the slave robot, and to correct the postures of the master robot and the multiple slave robots based on the relative positions of the master robot and the multiple slave robots and the correction amount.
3. 2. The robot system according to claim 1, a measurement point is provided on a tool attached to the end of the arm of the slave robot; a processing device configured to confirm the calculation accuracy of the relative position between the master robot and the slave robot by comparing the position of the measurement point calculated based on the relative position between the master robot and the slave robot with the position of the measurement point imaged by the stereo camera.
Citation Information
Patent Citations
Calibration method for visual sensor
JP1992075887A
Robot system
JP2005342832A
Control method for robot
JP2011036975A
Robot system, calibration method and method for manufacturing workpiece
JP2014176944A
Robot system with plural robots, robot control device, and robot control method
JP2018094649A
