Method for controlling robot system and robot system
The method addresses the challenge of periodic displacements in conveyor-transported workpieces by capturing images and correcting the robot's position command, ensuring accurate and smooth workpiece handling.
Patent Information
- Application Number
- JP2021011876
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-01-28
AI Technical Summary
Existing robot control methods fail to accurately perform continuous work on workpieces being transported by a conveyor due to unknown position and posture at each time, especially when the workpiece undergoes periodic reciprocating displacement.
A method for controlling a robot system that includes capturing multiple images of the workpiece, obtaining reciprocating displacement information, and correcting the robot's position command based on this information to account for periodic displacements, ensuring accurate work performance.
Enables smooth and accurate work on workpieces despite periodic displacements, by correcting the robot's position command using reciprocating displacement information, thereby improving the precision of robot operations.
Smart Images

Figure 0007559580000001 
Figure 0007559580000002 
Figure 0007559580000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a control method for a robot system and a robot system. [Background technology]
[0002] Patent Document 1 discloses a robot control method in which a camera captures an image of a workpiece being transported by a transport device such as a belt conveyor, and based on the image capture result and the transport speed of the transport device, calculates a predicted picking position where the workpiece being transported by the transport device can be picked up by a picking device and the posture of the workpiece at that position. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-025618 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the above-mentioned robot control method only calculates the predicted picking position and the posture of the workpiece at that position. Therefore, although it is fine for performing instantaneous work such as picking up a workpiece transported by a transport device at the predicted picking position, for example, when performing continuous work while following a workpiece transported by a transport device, there is a problem that the position and posture of the workpiece at each time are unknown and the work cannot be performed with high accuracy. [Means for solving the problem]
[0005] A control method for a robot system according to the present invention is a control method for a robot system having a transport device that transports an object, and a robot that performs work while following the object transported by the transport device, comprising: an image acquiring step of acquiring a plurality of images by capturing an image of the object conveyed by the conveying device a plurality of times; a reciprocating displacement information acquisition step of acquiring reciprocating displacement information indicating periodic reciprocating displacement of the object in a width direction perpendicular to a conveying direction based on the plurality of images; and a correction step of correcting a position command for the robot based on the reciprocating displacement information.
[0006] The robot system of the present invention includes: a conveying device that conveys an object; a robot that performs a task while following the object being transported by the transport device; an imaging unit that images the object transported by the transport device; The robot has a control device that obtains reciprocating displacement information indicating periodic reciprocating displacement in a width direction perpendicular to the transport direction of the object based on a plurality of images captured by the imaging unit, and corrects a position command of the robot based on the reciprocating displacement information. [Brief description of the drawings]
[0007] [Figure 1] 1 is an overall configuration diagram of a robot system according to a preferred embodiment. [Diagram 2] FIG. [Diagram 3] 4 is a flowchart showing a control process of the robot system. [Figure 4] 4 is a flowchart showing the control steps of FIG. 3 in detail. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a robot system control method and a robot system according to the present invention will be described in detail based on the embodiments shown in the accompanying drawings.
[0009] Fig. 1 is an overall configuration diagram of a robot system according to a preferred embodiment. Fig. 2 is a plan view showing the transportation of a workpiece. Fig. 3 is a flowchart showing the control process of the robot system. Fig. 4 is a flowchart showing the control process of Fig. 3 in detail.
[0010] The robot system 100 shown in FIG. 1 includes a robot 200, an imaging unit 300, a control device 400, and a conveying device 600. In the robot system 100, the conveying device 600 conveys the target workpiece W along a conveying direction A, the control device 400 detects the conveying status of the workpiece W based on the image acquired by the imaging unit 300, and the robot 200 performs work while following the workpiece W being conveyed based on the conveying status of the workpiece W. The work performed on the workpiece W is not particularly limited, and examples thereof include drilling, connecting to other members (insertion, screwing, threading, etc.), cleaning, inspection, etc. In the following, the work of inserting an insert Q into a hole W1 formed in the workpiece W will be described as a representative example. In addition, examples of the workpiece W include any object that can be worked on by the robot 200, such as industrial products such as printers and automobiles or parts thereof.
[0011] The robot 200 has a base 230 fixed to the floor, a manipulator 220 supported by the base 230, and an end effector 210 supported by the manipulator 220. The manipulator 220 is a robotic arm in which a plurality of arms are rotatably connected, and in this embodiment, is a six-axis arm having six joints J1 to J6. Among these, the joints J2, J3, and J5 are bending joints, and the joints J1, J4, and J6 are torsion joints. However, the manipulator 220 is not particularly limited as long as it is capable of performing the above-mentioned insertion operation.
[0012] An end effector 210 is attached to the tip of the manipulator 220, i.e., the joint J6, via a mechanical interface. The end effector 210 has a pair of claws 211, 212, which open and close to grip and release the insert Q. However, the end effector 210 is not particularly limited as long as it can grip and release the insert Q, and may be configured to be able to suction and grip the insert Q using, for example, an air chuck, an electromagnetic chuck, or the like.
[0013] In addition, motors M1, M2, M3, M4, M5, and M6 are installed in the joints J1, J2, J3, J4, J5, and J6, respectively, and encoders E1, E2, E3, E4, E5, and E6 are installed in the joints J1, J2, J3, J4, J5, and J6 to detect the rotation amount of the motors M1, M2, M3, M4, M5, and M6. In addition, the end effector 210 is installed with a motor M7 that opens and closes a pair of claws 211 and 212, and an encoder E7 that detects the rotation amount of the motor M7. During the operation of the robot system 100, the control device 400 executes feedback control to match the rotation angles of the joints J1 to J6 indicated by the outputs of the encoders E1 to E6 and the separation distance between the claws 211 and 212 indicated by the output of the encoder E7 with a position command sent from a host computer (not shown). This allows the robot 200 to perform a task according to the position command.
[0014] The transport device 600 is a belt conveyor, and includes a belt 620, transport rollers 630 that feed the belt 620, a motor (not shown) that drives the transport rollers 630, and a transport amount sensor 640 that outputs a signal to the control device 400 according to the amount of rotation of the transport rollers 630. During operation of the robot system 100, the control device 400 executes feedback control to match the transport speed of the workpiece W indicated by the output of the transport amount sensor 640 with a target transport speed that is a control target. This allows the workpiece W to be transported stably at a desired speed.
[0015] The imaging unit 300 is a camera that captures an image of the workpiece from above the transport device 600 and outputs the captured image to the control device 400. The imaging area E of the imaging unit 300 is located upstream of the work area of the robot 200 in the transport direction A. As shown by the dashed line in FIG. 1, the imaging unit 300 has an angle of view that includes the workpiece W transported on the belt 620. The position in the image output from the imaging unit 300 is associated with the position on the transport path by the control device 400. Therefore, when the workpiece W is present within the angle of view of the imaging unit 300, the coordinates of the workpiece W can be identified based on the position of the workpiece W in the image of the imaging unit 300.
[0016] The control device 400 controls the driving of the robot 200, the imaging unit 300, and the transport device 600. Such a control device 400 is, for example, configured from a computer, and has a processor (CPU) for processing information, a memory communicatively connected to the processor, and an external interface for connecting to an external device. Various programs executable by the processor are stored in the memory, and the processor can read and execute the various programs stored in the memory. Some or all of the components of the control device 400 may be disposed inside the housing of the robot 200. The control device 400 may also be configured from multiple processors.
[0017] Above was a brief explanation of the configuration of the robot system 100. Next, a method of controlling the robot system 100 by the control device 400 will be explained.
[0018] Here, the conveying device 600 is designed so that the workpiece W is conveyed linearly along the conveying direction A, and the position command of the robot 200 is also created on this premise. However, in an actual machine, due to various factors, as shown in FIG. 2, the workpiece W may be conveyed on a conveying track D that describes a sine curve. In other words, the workpiece W may be conveyed along the conveying direction A while periodically displacing back and forth (snaking) toward the width direction B perpendicular to the conveying direction A. When the workpiece W is conveyed on the conveying track D that is shaped like a sine curve, if the driving of the robot 200 is controlled based on a position command that is based on the premise that the workpiece W is conveyed linearly along the conveying direction A, there is a risk that the workpiece W may not be able to be worked on with high precision.
[0019] Therefore, before performing an operation on the workpiece W, the control device 400 detects the transport trajectory D of the workpiece W, corrects the position command of the robot 200 based on the detected transport trajectory D, and controls the driving of the robot 200 based on the corrected position command. This allows the operation to be performed smoothly and accurately on the workpiece W transported along the transport trajectory D.
[0020] There are various possible causes for the periodic reciprocating displacement of the workpiece W in the width direction B (hereinafter, simply referred to as "displacement in the width direction B"), among which the transport roller 630 is particularly important. Therefore, hereinafter, a case where the displacement of the workpiece W in the width direction B occurs due to the transport roller 630 will be described as a representative example.
[0021] The conveying roller 630 is designed to be cylindrical in order to smoothly convey the belt 620. However, depending on its forming accuracy, for example, the overall shape may deviate from a cylinder. When the shape of the conveying roller 630 deviates from a cylinder, due to this deviation, the belt 620 may periodically reciprocate in the width direction B as the conveying roller 630 rotates. In this way, since the belt 620 itself periodically reciprocates in the width direction B, displacement of the workpiece W placed on the belt 620 in the width direction B occurs. Also, the same phenomenon may occur even if the rotation axis of the conveying roller 630 is inclined with respect to the width direction B or if the rotation axis of the conveying roller 630 is inclined with respect to the central axis.
[0022] Hereinafter, a control method of the robot system 100 by the control device 400 will be described based on the flowchart shown in FIG. 3. As shown in FIG. 3, the control method of the robot system 100 by the control device 400 includes an image acquisition step S1, an error notification step S2, a reciprocating displacement information acquisition step S3, a determination step S4, a correction step S5, and an operation step S6. Hereinafter, each of these steps will be described in detail based on the flowchart shown in FIG. 4.
[0023] <Image acquisition step S1> When the conveyance of the workpiece W by the conveyance device 600 is started, while the workpiece W passes through the imaging area E, the workpiece W is continuously imaged by the imaging unit 300 at a predetermined frame rate, and a plurality of images G in which the workpiece W appears are acquired. The number of images G is not particularly limited, but the larger the number, the better. The larger the number of images G, the coordinates of the workpiece W at each time can be known at short time intervals. Therefore, in the subsequent reciprocating displacement information acquisition step S3, the conveyance track D can be accurately detected.
[0024] Incidentally, when the required number of images G is X [sheets], the diameter of the conveying roller 630 is R [mm], the pi is π, the conveying speed of the workpiece W in the conveying direction A of the conveying device 600 is V [mm / s], and the frame rate of the imaging unit 300 is F [frame / s], the conveying speed V can be set from the formula X <F×π×R / V.
[0025] Here, as shown in FIG. 1, the length L of the image pickup area E in the transport direction A is equal to or greater than the circumference of the transport roller 630. That is, L≧π×R. As described above, the displacement of the workpiece W in the width direction B is caused by the transport roller 630. Therefore, the period f of the transport track D corresponds to one revolution, i.e., the circumference, of the transport roller 630. Therefore, by making the length L of the image pickup area E equal to or greater than the circumference of the transport roller 630, one or more periods of the transport track D can be included within the image pickup area E. As a result, in the reciprocating displacement information acquisition step S3, the transport track D can be detected with high accuracy. However, the length L is not particularly limited and may be less than the circumference of the transport roller 630. That is, L<π×R may be satisfied.
[0026] <Error notification step S2> In the error notification step S2, an error is notified when the number of images G obtained in the image acquisition step S1 is less than a predetermined value. First, it is determined whether the number of images G obtained in the image acquisition step S1 is equal to or greater than a predetermined value. The predetermined value is stored in the control device 400 in advance by the user or the like. If the number of images G is equal to or greater than the predetermined value, the process proceeds to the next reciprocating displacement information acquisition step S3. On the other hand, if the number of images G is less than the predetermined value, the process proceeds to the operation step S6, skipping the reciprocating displacement information acquisition step S3, the judgment step S4, and the correction step S5. By notifying the user of the error, the user can easily notice that the number of images G required to detect the conveying track D is insufficient. The notification method is not particularly limited, and may be, for example, displayed on a monitor, may be notified by voice or warning sound, or may be notified by turning on or blinking a warning light.
[0027] <Reciprocating Displacement Information Acquisition Step S3> In the reciprocating displacement information acquisition step S3, a transfer trajectory D of the workpiece W is calculated based on the image G acquired in the image acquisition step S1, and reciprocating displacement information J including the transfer trajectory D is generated.
[0028] Specifically, first, the coordinates of the workpiece W at each time are obtained from all images G, and the amplitude h and period f of the displacement of the workpiece W in the width direction B are calculated based on the obtained coordinates, and the transport trajectory D is calculated from the calculated amplitude h and period f to generate the reciprocating displacement information J. There is no particular limitation on the method of calculating the amplitude h and period f. In this embodiment, first, two workpieces W with the largest separation distance in the width direction B are extracted from all images G. In other words, the workpiece W located closest to one side in the width direction B and the workpiece W located closest to the other side in the width direction B are extracted from all images G. Next, the amplitude h and period f are calculated based on the coordinates of the two extracted workpieces W. The amplitude h can be calculated as half the separation distance in the width direction B of the two extracted workpieces W, and the period f can be calculated as twice the separation distance in the transport direction A of the two extracted workpieces W. Then, the transport trajectory D is calculated from the calculated amplitude h and period f to generate the reciprocating displacement information J. According to this method, the reciprocating displacement information J can be obtained by simple calculation.
[0029] <Decision Step S4> In the judgment step S4, it is judged whether or not the reciprocating displacement information J generated in the reciprocating displacement information acquisition step S3 is appropriate based on the circumference of the transport roller 630. As described above, the displacement of the workpiece W in the width direction B is caused by the transport roller 630, and the period f of the transport trajectory D almost coincides with the circumference of the transport roller 630. Therefore, if there is a large deviation between the period f and the circumference of the transport roller 630, it can be judged that the transport trajectory D is not caused by the transport roller 630, or that there is an error in the calculation process.
[0030] Therefore, in the judgment step S4, the circumference of the transport roller 630 is compared with the period f of the transport track D, and it is judged whether or not the period f is within a predetermined range, within ±5% in this embodiment, with respect to the circumference of the transport roller 630, taking into consideration some variation. Note that the consideration of variation may be appropriately set. If the period f is within the predetermined range, it is judged that the transport track D is appropriate and caused by the transport roller 630, and the process proceeds to the next correction step S5. On the other hand, if the period f is outside the predetermined range, it is judged that the transport track D is inappropriate and not caused by the transport roller 630, and the correction step S5 is skipped and the process proceeds to the operation step S6.
[0031] By performing the judgment step S4, it is possible to exclude displacements that are not caused by the conveying roller 630, such as a sudden displacement of the workpiece W in the width direction B. It is also possible to redo the erroneous calculations in the reciprocating displacement information acquisition step S3. Therefore, in the subsequent correction step S5, the position command can be corrected based on the appropriate reciprocating displacement information J.
[0032] <Correction step S5> In the correction step S5, the reciprocating displacement information J is associated with the position of the workpiece W in the transport direction A to correct the position command. Specifically, as shown in Fig. 2, the position command is corrected by shifting the trajectory of the robot 200 in the width direction B by the amplitude h1, h2, h3, ... hn at each position p1, p2, p3, ... pn of the workpiece W in the transport direction A. As a result, the position command generated on the assumption that the workpiece W is transported linearly in the transport direction A is corrected to a position command on the assumption that the workpiece W is transported along the transport trajectory D. According to this method, the position command can be corrected with high accuracy.
[0033] <Work step S6> In the work step S6, the driving of the robot 200 is controlled based on the corrected position command to perform work on the workpiece W. This allows smooth and accurate work to be performed on the workpiece W transported along the transport trajectory D. However, if an error is reported in the error notification step S2 or if the reciprocating displacement information J is determined to be inappropriate in the determination step S4, the reciprocating displacement information J is not obtained, so the position command is not corrected and the driving of the robot 200 is controlled based on the position command as it is to perform work on the workpiece W.
[0034] If the position command is corrected when working on the first workpiece W, the same position command can be repeatedly used when working on subsequent workpieces W. Therefore, in this embodiment, the corrected position command is repeatedly used until work on a predetermined number of workpieces W is completed. Also, if an error is notified in the error notification step S2 or if the reciprocating displacement information J is determined to be inappropriate in the determination step S4, the process can be started over from the image acquisition step S1 each time a new workpiece W is transported until the position command is corrected.
[0035] The robot system 100 and the control method for the robot system 100 have been described above. As described above, the control method for the robot system 100 includes a transport device 600 that transports a workpiece W as an object, and a robot 200 that performs work while following the workpiece W transported by the transport device 600, and includes an image acquisition step S1 for acquiring multiple images G by capturing images of the workpiece W transported by the transport device 600 multiple times, a reciprocating displacement information acquisition step S3 for acquiring reciprocating displacement information J indicating periodic reciprocating displacement of the workpiece W in the width direction B perpendicular to the transport direction A based on the multiple images G, and a correction step S5 for correcting a position command for the robot 200 based on the reciprocating displacement information J. This allows accurate work to be performed on the workpiece W transported in the transport direction A while displacing in the width direction B.
[0036] As described above, in the reciprocating displacement information acquisition step S3, two workpieces W having the largest separation distance in the width direction B are extracted from all images G, and the reciprocating displacement information J is obtained based on the positions of the extracted two workpieces W. According to this method, the reciprocating displacement information J can be obtained by a simple calculation.
[0037] As described above, in the correction step S5, the position command is corrected by associating the reciprocating displacement information J with the position of the workpiece W in the transport direction A. This makes it possible to correct the position command with high accuracy.
[0038] As described above, in the control method for the robot system 100, the belt 620 is driven by the rotation of the transport roller 630, thereby performing transport by the transport device 600. The control method for the robot system 100 also includes a determination step S4 for determining whether or not the reciprocating displacement information is appropriate based on the circumference of the transport roller 630, and the determination step S4 is performed after the reciprocating displacement information acquisition step S3 and before the correction step S5. This makes it possible to prevent the position command from being corrected by inappropriate reciprocating displacement information J.
[0039] As described above, the length L in the transport direction A of the imaging area E, which is the range in which the image is captured in the image capturing step S1, is equal to or greater than the circumference of the transport roller 630. This makes it possible to generate one or more cycles of the transport track D within the imaging area E. This makes it possible to more accurately capture the reciprocating displacement information J.
[0040] As described above, the control method of the robot system 100 includes an error notification step S2, which is performed after the image acquisition step S1 and notifies an error when the number of images G acquired in the image acquisition step S1 is less than a predetermined value. This allows the user to easily notice that the number of images G is insufficient.
[0041] As described above, the robot system 100 includes a transport device 600 that transports a target workpiece W, a robot 200 that performs work while following the workpiece W transported by the transport device 600, an imaging unit 300 that images the workpiece W transported by the transport device 600, and a control device 400 that obtains reciprocating displacement information J that indicates periodic reciprocating displacement of the workpiece W in a width direction B perpendicular to the transport direction A based on a plurality of images G captured by the imaging unit 300, and corrects a position command for the robot based on the reciprocating displacement information J. This allows accurate work to be performed on the workpiece W transported in the transport direction A while being displaced in the width direction B.
[0042] Although the robot system control method and the robot system of the present invention have been described based on the illustrated embodiment, the present invention is not limited to this, and the configuration of each part can be replaced with any configuration having a similar function. In addition, any other configuration may be added to the present invention. In addition, each embodiment may be appropriately combined.
[0043] In addition, in the above-described embodiment, the robot 200 is fixed to the floor and is caused to follow the workpiece W by driving the manipulator 220, but this is not limited to this. For example, the base 230 may be fixed to a moving part such as an automated guided vehicle (AGV), and the moving part may run alongside the workpiece W being transported by the transport device 600 to perform work on the workpiece W. [Explanation of symbols]
[0044] 100... robot system, 200... robot, 210... end effector, 211... claw portion, 212... claw portion, 220... manipulator, 230... base, 300... imaging unit, 400... control device, 600... conveying device, 620... belt, 630... conveying roller, 640... conveying amount sensor, A... conveying direction, B... width direction, D... conveying track, E... imaging area, E1... encoder, E2... encoder, E3... encoder, E4... encoder, E5... encoder, E6... encoder, E7... encoder, G... image, J... reciprocating displacement information, J 1...joint, J2...joint, J3...joint, J4...joint, J5...joint, J6...joint, M1...motor, M2...motor, M3...motor, M4...motor, M5...motor, M6...motor, M7...motor, L...length, Q...insertion, S1...image acquisition step, S2...error notification step, S3...reciprocating displacement information acquisition step, S4...judgment step, S5...correction step, S6...work step, W...workpiece, W1...hole, f...period, h...amplitude, h1...amplitude, h2...amplitude, h3...amplitude, hn...amplitude, p1...position, p2...position, p3...position, pn...position
Claims
1. 1. A method for controlling a robot system having a transport device that transports an object, and a robot that performs a task while following the object transported by the transport device, comprising: an image acquiring step of acquiring a plurality of images by capturing an image of the object conveyed by the conveying device a plurality of times; a reciprocating displacement information acquisition step of acquiring reciprocating displacement information indicating periodic reciprocating displacement of the object in a width direction perpendicular to a conveying direction based on the plurality of images; and a correction step of correcting a position command of the robot based on the reciprocating displacement information, A control method for a robot system, characterized in that in the reciprocating displacement information acquisition step, two objects having the largest separation distance in the width direction are extracted from all of the images, and the reciprocating displacement information is obtained based on the positions of the two extracted objects.
2. 2. The method for controlling a robot system according to claim 1, wherein in the correcting step, the position command is corrected by associating the reciprocating displacement information with a position of the object in the transport direction.
3. The conveying device conveys the material by driving a belt through rotation of a conveying roller, a determination step of determining whether the reciprocating displacement information is appropriate based on a circumference of the transport roller; 3. The method for controlling a robot system according to claim 1, wherein the determining step is performed after the reciprocating displacement information acquiring step and before the correcting step.
4. The method for controlling a robot system according to claim 3 , wherein a length in the transport direction of a range in which the image is captured in the image acquiring step is equal to or greater than a circumference of the transport roller.
5. is performed after the image acquisition step, 5. The method for controlling a robot system according to claim 1, further comprising an error notifying step of notifying an error when the number of the images obtained in the image acquisition step is smaller than a predetermined value.
6. 1. A method for controlling a robot system having a transport device that transports an object, and a robot that performs a task while following the object transported by the transport device, comprising: an image acquiring step of acquiring a plurality of images by capturing an image of the object conveyed by the conveying device a plurality of times; a reciprocating displacement information acquisition step of acquiring reciprocating displacement information including a conveying trajectory of the object having periodic reciprocating displacement in a width direction perpendicular to a conveying direction of the object based on the plurality of images; and a correction step of correcting a position command of the robot based on the reciprocating displacement information, A method for controlling a robot system, wherein the reciprocating displacement information acquisition step includes determining an amplitude of the conveying track and a period of the conveying track.
7. A conveying device that conveys an object; a robot that performs a task while following the object being transported by the transport device; an imaging unit that images the object transported by the transport device; a control device that obtains reciprocating displacement information indicating periodic reciprocating displacement of the object in a width direction perpendicular to the conveying direction based on a plurality of images captured by the imaging unit, and corrects a position command of the robot based on the reciprocating displacement information, The control device extracts two objects having the greatest separation distance in the width direction from all of the images, and obtains the reciprocating displacement information based on the positions of the two extracted objects.
Citation Information
Patent Citations
System and method of machining
JP2011167831A
Hand guide device, and control method therefor
JP2012210675A
Robot control apparatus, robot control method, and robot control program
JP2019025618A
