Robot control device, robot control method, and program

The robot control device addresses the challenge of following moving workpieces by using an integrated visual sensor and image processing to establish precise target positions, ensuring accurate tracking and alignment.

WO2024201737A1PCT designated stage expired Publication Date: 2024-10-03FANUC LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/012613
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional robot control systems using a single visual sensor connected to a movable robot part struggle to accurately follow a workpiece in transport direction due to changes in the detection target's appearance, leading to potential misalignment and errors.

Method used

A robot control device with an image acquisition unit, storage unit, and target position setting section that captures and processes images from a visual sensor integrated with the robot's movable part, establishing correspondence relationships between the robot's positions and target positions on the image, allowing precise control of the robot's movement to follow the workpiece.

Benefits of technology

Enables accurate and reliable tracking of the workpiece in transport direction by adjusting the robot's position based on image data, reducing the risk of misalignment and improving the robot's ability to follow moving workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023012613_03102024_PF_FP_ABST
    Figure JP2023012613_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a robot control device comprising: an image acquisition unit that acquires data which is generated by a vision sensor connected to a movable part of a robot and relates to an image containing a detection object on a workpiece moving in a transport direction; a storage unit that stores a first correspondence between a first position of the movable part in the optical axis direction of the vision sensor that intersects the transport direction and a first detection object target position at which the detection object should be located in the image when the movable part is in the first position and a second correspondence between a second position of the movable part in the optical axis direction and a second detection object target position at which the detection object should be located in the image when the movable part is in the second position; and a target position setting unit that sets a target position at which the detection object should be located in the image on the basis of the first correspondence and the second correspondence and the position of the movable part in the optical axis direction.
Need to check novelty before this filing date? Find Prior Art

Description

Robot control device, robot control method and program

[0001] The present disclosure relates to a robot control device, a robot control method, and a program.

[0002] A production line equipped with a robot and a conveying device for conveying a workpiece has been known in the past. In this production line, the robot follows the workpiece being conveyed in the conveying direction by the conveying device and then starts working on the workpiece.

[0003] In a case where a single visual sensor (e.g., a two-dimensional camera) connected to a moving part of the robot (e.g., a hand, an end effector, etc.) and moving integrally with the moving part of the robot is used to make the robot follow the workpiece being transported in the transport direction, when the moving part of the robot moves in the optical axis direction of the visual sensor, the appearance of the detection target on the workpiece being transported in the transport direction, which is included in the image generated by the visual sensor, changes. If the appearance of the detection target included in the image changes, conventional visual feedback using a single visual sensor may not be able to properly make the moving part of the robot follow the workpiece being transported in the transport direction.

[0004] Therefore, in the past, a fixed two-dimensional camera that is not connected to the moving part of the robot and does not move integrally with the moving part of the robot is used, and the conveyance of the workpiece by the conveyance device is stopped when the detection target is positioned on the optical axis of the two-dimensional camera (see, for example, JP 2012-161850 A). Therefore, with this technology, the appearance of the detection target contained in the image captured by the two-dimensional camera does not change, and the moving part of the robot can be made to follow the workpiece. However, this technology requires the use of a fixed two-dimensional camera and the detection target must be located on the optical axis of the two-dimensional camera.

[0005] JP 2012-161850 A

[0006] Even if the appearance of the detected object on the workpiece moving in the conveying direction contained in the image generated by the visual sensor changes as the visual sensor, which is connected to the moving part of the robot and moves integrally with the moving part of the robot, moves in the optical axis direction of the visual sensor, it is desirable to be able to appropriately control the position of the moving part of the robot to follow the workpiece moving in the conveying direction based on the image generated by the visual sensor.

[0007] One aspect of the present disclosure is a robot control device that includes: an image acquisition unit that acquires image data including a detection target on a workpiece moving in a conveying direction, generated by a visual sensor provided on a movable part of the robot; a memory unit that stores at least a first correspondence relationship that is a correspondence relationship between a first position of the movable part in the optical axis direction of the visual sensor, which is a direction intersecting the conveying direction, and a first detection target position that is a target position on the image where the detection target should be located when the movable part is located at the first position; and a second correspondence relationship that is a correspondence relationship between a second position of the movable part in the optical axis direction and a second detection target position that is a target position on the image where the detection target should be located when the movable part is located at the second position; and a target position setting unit that sets the target position on the image where the detection target should be located based on the first correspondence relationship, the second correspondence relationship, and the position of the movable part in the optical axis direction.

[0008] 1 is a diagram schematically illustrating an example of a robot system 100 to which a robot control device 2 of a first embodiment is applied. FIG. 1 is a diagram illustrating an example of functional blocks of the robot system 100 illustrated in FIG. 1. FIG. 1 is a diagram illustrating the robot 1 and the like included in the robot system 100 illustrated in FIG. 1, as viewed from the top of FIG. 1. FIG. 1 is a diagram illustrating an example of robot teaching performed at a movement start position X1 in the X direction of a movable part 11B (hand) of the robot 1. FIG. 1 is a diagram illustrating an example of an image IM captured by a visual sensor 14 (two-dimensional camera) in the robot teaching illustrated in FIG. 4. FIG. 1 is a diagram illustrating an example of robot teaching performed at a movement end position X2 in the X direction of a movable part 11B (hand) of the robot 1. FIG. 1 is a diagram illustrating an example of an image IM captured by a visual sensor 14 (two-dimensional camera) in the robot teaching illustrated in FIG. 6. FIG. 1 is a diagram illustrating an example of control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 performed by a robot control unit 232. FIG. 1 is a diagram illustrating an example of a target position (Hz(X), Vt(X)) of a detection target DT on an image IM set by a target position setting unit 231B when the visual feedback illustrated in FIG. 8 is performed. 10 is a flowchart illustrating an example of processing executed by the robot control device 2 of the first embodiment. FIG. 11 is a diagram illustrating an example of the robot control device 2 of the second embodiment.

[0009] Hereinafter, embodiments of a robot control device, a robot control method, and a program according to the present disclosure will be described with reference to the accompanying drawings.

[0010] <First embodiment> Fig. 1 is a diagram schematically illustrating an example of a robot system 100 to which a robot control device 2 according to a first embodiment is applied. Fig. 2 is a diagram illustrating an example of functional blocks of the robot system 100 shown in Fig. 1. Fig. 3 is a diagram illustrating the robot 1 and other components included in the robot system 100 shown in Fig. 1, viewed from above in Fig. 1. In the example shown in Figs. 1 to 3, the robot system 100 includes a robot 1 and a robot control device 2. In the example shown in Figs. 1 to 3, the robot system 100 does not include a teaching pendant, but in other examples, the robot system 100 may include a teaching pendant.

[0011] In the example shown in FIGS. 1 to 3 , the robot 1 is a six-axis vertical articulated robot. The robot 1 includes a plurality of link units 11, a plurality of joint units 12, a plurality of actuators 13, a visual sensor 14, and a connecting member 15. The plurality of link units 11 includes a base unit 11A, a plurality of movable units 11C, and a movable unit 11B. The plurality of movable units 11C includes a portion that functions as the torso of the robot 1 and a portion that functions as the lower arm of the robot 1. The plurality of movable units 11C also includes a portion that functions as the upper arm of the robot 1 (more specifically, the portion of the upper arm of the robot 1 on the lower arm side and the portion of the upper arm of the robot 1 on the wrist side). The plurality of movable units 11C also includes a portion that functions as the wrist of the robot 1 (more specifically, the portion of the wrist of the robot 1 on the upper arm side). The movable unit 11B includes a portion (hand) on the tip side of the wrist of the robot 1.

[0012] Each of the multiple joints 12 functions as a rotary joint. The multiple joints 12 include a joint 12 that connects the base 11A and a movable unit 11C that functions as the torso of the robot 1. The multiple joints 12 also include a joint 12 that connects the movable unit 11C that functions as the torso of the robot 1 with the movable unit 11C that functions as the lower arm of the robot 1. The multiple joints 12 also include a joint 12 that connects the movable unit 11C that functions as the lower arm of the robot 1 with the movable unit 11C that functions as the lower arm side of the upper arm of the robot 1. The multiple joints 12 also include a joint 12 that connects the movable unit 11C that functions as the lower arm side of the upper arm of the robot 1 with the movable unit 11C that functions as the wrist side of the upper arm of the robot 1. The multiple joints 12 also include a joint 12 that connects the movable unit 11C that functions as the wrist side of the upper arm of the robot 1 with the movable unit 11C that functions as the upper arm side of the wrist of the robot 1. The plurality of joints 12 also includes a joint 12 that connects a movable part 11C that functions as the upper arm side of the wrist of the robot 1 and a movable part 11B (hand) that functions as the tip side of the wrist of the robot 1. In another example, the joint 12 may function as a linear joint.

[0013] In the example shown in FIGS. 1 to 3 , the multiple actuators 13 include an actuator 13 that rotates (pivots) the movable unit 11C that functions as the torso of the robot 1 relative to the base unit 11A. The multiple actuators 13 also include an actuator 13 that rotates the movable unit 11C that functions as the lower arm of the robot 1 relative to the movable unit 11C that functions as the torso of the robot 1. The multiple actuators 13 also include an actuator 13 that rotates the movable unit 11C that functions as the lower arm side of the upper arm of the robot 1 relative to the movable unit 11C that functions as the lower arm side of the upper arm of the robot 1. The multiple actuators 13 also include an actuator 13 that rotates the movable unit 11C that functions as the wrist side of the upper arm of the robot 1 relative to the movable unit 11C that functions as the lower arm side of the upper arm of the robot 1 (i.e., twists the upper arm of the robot 1). The multiple actuators 13 also include an actuator 13 that rotates the movable unit 11C that functions as the upper arm side of the wrist of the robot 1 relative to the movable unit 11C that functions as the wrist side of the upper arm of the robot 1. The multiple actuators 13 also include an actuator 13 that rotates the movable unit 11B (hand) that functions as the distal end portion of the wrist of the robot 1 relative to the movable unit 11C that functions as the upper arm portion of the wrist of the robot 1 (i.e., twists the wrist of the robot 1). Each of the multiple actuators 13 is configured with a servo motor. The servo motor rotates the rotation shaft of the servo motor based on a control signal from the robot control device 2. Each of the multiple actuators 13 (servo motors) has an actuator sensor 13A. The actuator sensor 13A is configured with an encoder that detects the position and speed of the rotation shaft of the servo motor. The actuator sensor 13A (encoder) outputs actuator sensor data indicating the position and speed of the rotation shaft of the servo motor to the robot control device 2. In other examples, an actuator other than a servo motor may be used as the actuator 13, or an actuator sensor other than an encoder may be used as the actuator sensor 13A.

[0014] In the example shown in FIGS. 1 to 3 , the visual sensor 14 is a two-dimensional camera. The two-dimensional camera captures an image IM (see FIG. 5 , etc.) including a detection target DT on a workpiece W1 being transported by a conveyor C in the transport direction (negative side of the Y direction, the front side in FIG. 1 , the right side in FIG. 3 ). That is, the visual sensor 14 generates data of the image IM including the detection target DT on the workpiece W1 moving in the transport direction and transmits it to the robot control device 2. The visual sensor 14 is also connected via a connecting member 15 to the movable unit 11B (hand) that functions as the tip of the wrist of the robot 1. That is, when the movable unit 11B (hand) of the robot 1 is moved by the actuator 13, the visual sensor 14 moves integrally with the movable unit 11B (hand). That is, the visual sensor 14 is provided on the movable unit 11B (hand) of the robot 1.

[0015] Furthermore, as shown by the dashed line (center line) in FIG. 3 , the optical axis direction of the visual sensor 14 is set to the X direction. In other words, the optical axis direction of the visual sensor 14 is a direction intersecting the conveyance direction (Y direction) of the workpiece W1, e.g., a direction approximately perpendicular to the conveyance direction (Y direction) of the workpiece W1. The optical axis of the visual sensor 14 and the conveyor C conveying the workpiece W1 may intersect, for example, at an intersection (i.e., the optical axis of the visual sensor 14 and the conveyor C conveying the workpiece W1 may have a "twisted position" relationship, for example). Note that the optical axis direction of the visual sensor 14 and the conveyance direction of the workpiece W1 are not limited to being approximately perpendicular, and may include a slight angular misalignment. In the example shown in FIGS. 1 to 3 , the visual sensor 14 is connected via a connecting member 15 to a movable part 11B (hand) that functions as the tip of the wrist of the robot 1. Meanwhile, in another example, the visual sensor 14 may be connected via the connecting member 15 to a movable part 11C other than the movable part 11B (hand) of the robot 1. For example, in an example where the actuator 13 that rotates the movable part 11B (hand) of the robot 1 cannot be operated relative to the movable part 11C that functions as the upper arm side of the wrist of the robot 1, the visual sensor 14 may be connected to the movable part 11C that functions as the upper arm side of the wrist of the robot 1 via a connecting member 15.

[0016] In the example shown in FIGS. 1 to 3 , the robot control device 2 is configured by a computer having a communication unit 21, a storage unit 22, and a processing unit 23. The communication unit 21 is a communication interface and has an interface circuit for connecting the robot control device 2 to the actuator 13, visual sensor 14, etc. of the robot 1 via, for example, signal lines. The storage unit 22 is a memory such as a read-only memory (ROM) or a random access memory (RAM), or a storage such as a hard disk drive (HDD) or a solid state drive (SDD). The storage unit 22 stores programs and various data used in the processing executed by the processing unit 23. The processing unit 23 is a processor and functions as an image processing unit 231 and a robot control unit 232. The image processing unit 231 processes the image IM captured by the visual sensor 14 (2D camera). The robot control unit 232 controls the robot 1 (visual feedback) based on the image IM captured by the visual sensor 14 (2D camera).

[0017] The image processing unit 231 functions as an image acquisition unit 231A and a target position setting unit 231B. The image acquisition unit 231A acquires data of an image IM (see FIG. 5, etc.) including a detection target DT on a workpiece W1 moving in the conveying direction (right side in FIG. 3) generated by the visual sensor 14. That is, the image acquisition unit 231A acquires data of the image IM captured by the visual sensor 14 (two-dimensional camera). The target position setting unit 231B sets a target position (Hz(X), Vt(X)) (see FIG. 9) of the detection target DT on the image IM captured by the visual sensor 14 (two-dimensional camera), which is used in visual feedback executed by the robot control unit 232. In detail, the target position setting unit 231B sets the target position (Hz(X), Vt(X)) of the detection target DT on the image IM when the position (actual coordinate value) in the X direction of the movable part 11B (hand) of the robot 1 calculated by the position calculation unit 232A described later is X.

[0018] The robot control unit 232 functions as a position calculation unit 232A and a control unit 232B. The position calculation unit 232A calculates the position (more specifically, the positions (X, Y, Z) in the X, Y, and Z directions) of the movable unit 11B (hand) of the robot 1 connected to the visual sensor 14 via the connecting member 15, based on the positions of the rotation axes of the multiple actuators 13 (servo motors) detected by each of the multiple actuator sensors 13A (encoders). The control unit 232B controls (visual feedback) the position (X, Y, Z) of the movable unit 11B (hand) of the robot 1 connected to the visual sensor 14 via the connecting member 15, based on the target position (Hz(X), Vt(X)) of the detection target DT on the image IM set by the target position setting unit 231B, etc.

[0019] In the example shown in FIGS. 1 to 3, the control unit 232B executes control to move the movable unit 11B (hand (more specifically, the hand holding the workpiece W2)) of the robot 1 closer to the workpiece W1 on the conveyor C in the X direction in visual feedback of the position (X, Y, Z) of the movable unit 11B (hand) of the robot 1. Furthermore, the control unit 232B executes control to change the position of the movable unit 11B (hand) of the robot 1 in the Y direction to follow the workpiece W1 being transported by the conveyor C to the negative side in the Y direction (the right side in FIG. 3). On the other hand, the control unit 232B does not execute control to change the position of the movable unit 11B (hand) of the robot 1 in the Z direction. In another example, the control unit 232B may execute control to change the position of the movable unit 11B (hand) of the robot 1 in the Z direction in visual feedback of the position (X, Y, Z) of the movable unit 11B (hand) of the robot 1. In detail, in this example, the control unit 232B executes control to move the movable part 11B (hand) of the robot 1 closer to the workpiece W1 on the conveyor C in the X direction, and at the same time executes control to change the position of the movable part 11B (hand) of the robot 1 in the Y direction to follow the workpiece W1 being transported by the conveyor C to the negative side in the Y direction (the right side in Figure 3), it also executes control to change the position of the movable part 11B (hand) of the robot 1 in the Z direction.

[0020] 1 to 3, before the control unit 232B controls the position (X, Y, Z) of the movable unit 11B (hand) of the robot 1, for example, an operator performs robot teaching to register the position and posture of the robot 1. In detail, for example, the operator performs robot teaching to register the position and posture of the robot 1 at the movement start position X1 and movement end position X2 in the X direction of the movable unit 11B (hand) of the robot 1.

[0021] Fig. 4 is a diagram for explaining an example of robot teaching executed at a movement start position X1 in the X direction of the movable part 11B (hand) of the robot 1. Fig. 5 is a diagram showing an example of an image IM captured by the visual sensor 14 (two-dimensional camera) during the robot teaching shown in Fig. 4 (i.e., when the X direction position of the movable part 11B (hand) of the robot 1 is the movement start position X1).

[0022] 4 and 5 , for example, when performing robot teaching at the X-direction movement start position X1 of the movable part 11B (hand) of the robot 1, the operator sets the X-direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 to X1. Furthermore, for example, the operator appropriately sets the Y-direction position (actual coordinate value) and the Z-direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 so that the detection target DT on the workpiece W1 is included in the image IM captured by the visual sensor 14 (two-dimensional camera) as shown in FIG. 5 . The storage unit 22 stores information indicating the positions of the rotation axes of each of the multiple actuators 13 (servomotors) detected by the actuator sensor 13A when the operator sets the X-direction position (movement start position X1), Y-direction position, and Z-direction position of the movable part 11B (hand) of the robot 1.

[0023] Next, the visual sensor 14 captures an image IM including the detection target DT on the workpiece W1 shown in FIG. 5 , the image acquisition unit 231A acquires data of the image IM, and the memory unit 22 stores the data of the image IM. The target position setting unit 231B calculates the position (coordinates) (Hz1, Vt1) of the detection target DT on the image IM shown in FIG. 5 . The target position setting unit 231B then sets the position (Hz1, Vt1) as the target position of the detection target DT on the image IM captured by the visual sensor 14 when the robot control unit 232 executes visual feedback (specifically, when the movable unit 11B (hand) of the robot 1 starts moving in the X direction during visual feedback execution). Next, for example, an operator sets the X-direction position (actual coordinate values) of the movable unit 11B (hand) of the robot 1 to the movement end position X2, and performs robot teaching at the X-direction movement end position X2 of the movable unit 11B (hand) of the robot 1.

[0024] Fig. 6 is a diagram illustrating an example of robot teaching performed at the X-direction movement end position X2 of the movable part 11B (hand) of the robot 1. Fig. 7 is a diagram illustrating an example of an image IM captured by the visual sensor 14 (two-dimensional camera) during the robot teaching shown in Fig. 6 (i.e., when the X-direction position of the movable part 11B (hand) of the robot 1 is the movement end position X2). In the example shown in Figs. 6 and 7, for example, an operator changes the X-direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 from X1 to X2 without changing the Y-direction position (actual coordinate value) and Z-direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 from the state shown in Fig. 4, and performs robot teaching at the X-direction movement end position X2 of the movable part 11B (hand) of the robot 1. The memory unit 22 stores information indicating the positions of the rotation axes of the multiple actuators 13 (servomotors) when, for example, an operator changes the X-direction position of the movable part 11B (hand) of the robot 1 from X1 to X2.

[0025] Next, the visual sensor 14 captures an image IM including the detection target DT on the workpiece W1 shown in Fig. 6, the image acquisition unit 231A acquires data of the image IM, and the memory unit 22 stores the data of the image IM. The target position setting unit 231B calculates the position (coordinates) (Hz2, Vt2) of the detection target DT on the image IM shown in Fig. 7. The target position setting unit 231B then sets the position (Hz2, Vt2) as the target position of the detection target DT on the image IM captured by the visual sensor 14 when the robot control unit 232 executes visual feedback (more specifically, when the movement of the movable part 11B (hand) of the robot 1 in the X direction ends during the execution of visual feedback).

[0026] In the example shown in FIGS. 1 to 3 , a single visual sensor 14 (two-dimensional camera) is used to allow the robot 1 to track the workpiece W1 being transported in the transport direction (Y direction). The visual sensor 14 is connected to the movable part 11B (hand) of the robot 1 via a connecting member 15 and moves integrally with the movable part 11B (hand) of the robot 1. Therefore, when the movable part 11B (hand) of the robot 1 moves in the optical axis direction (X direction) of the visual sensor 14 as shown in FIGS. 4 and 6 , the appearance of the detection target DT on the workpiece W1 being transported in the transport direction (Y direction) included in the image IM generated (captured) by the visual sensor 14 (two-dimensional camera) changes as shown in FIGS. 5 and 7 . Specifically, the Y-direction and Z-direction positions of the movable part 11B (hand) of the robot 1 in the state shown in FIGS. 4 and 5 are the same as (unchanged from) the Y-direction and Z-direction positions of the movable part 11B (hand) of the robot 1 in the state shown in FIGS. 6 and 7 . Nevertheless, the position (coordinates) (Hz1, Vt1) of the detection target DT on the image IM captured by the visual sensor 14 (two-dimensional camera) in the states shown in Figures 4 and 5 differs from the position (coordinates) (Hz2, Vt2) of the detection target DT on the image IM captured by the visual sensor 14 (two-dimensional camera) in the states shown in Figures 6 and 7. Therefore, if conventional visual feedback were to be applied, the horizontal position (coordinate) Hz1 of the detection target DT on the image IM shown in Figure 5 would differ from the horizontal position (coordinate) Hz2 of the detection target DT on the image IM shown in Figure 7, and therefore there is a risk that the robot control device 2 would erroneously determine that the position of the workpiece W1 in the transport direction (Y direction) has changed.

[0027] 1 to 3, the storage unit 22 stores a first correspondence relationship between a movement start position X1 in the X direction of the movable part 11B of the robot 1 and a target position (Hz1, Vt1) on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the movement start position X1 (i.e., in the state shown in FIGS. 4 and 5). The storage unit 22 also stores a second correspondence relationship between a movement end position X2 of the movable part 11B of the robot 1 in the X direction and a target position (Hz2, Vt2) on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the movement end position X2 (i.e., in the state shown in FIGS. 6 and 7).

[0028] Furthermore, in the example shown in FIGS. 1 to 3, when the robot control unit 232 executes control (visual feedback) of the position of the movable unit 11B (hand) of the robot 1, the target position setting unit 231B sets a target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located when the position in the X direction of the movable unit 11B (hand) of the robot 1 is neither the movement start position X1 nor the movement end position X2, based on the first correspondence relationship, the second correspondence relationship, and the position X in the X direction of the movable unit 11B of the robot 1.

[0029] Specifically, the target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, which is set by the target position setting unit 231B, is represented by a horizontal coordinate value Hz(X) and a vertical coordinate value Vt(X). The horizontal coordinate value Hz(X) changes in proportion to a change in the position of the movable unit 11B (hand) of the robot 1 in the X direction. The vertical coordinate value Vt(X) also changes in proportion to a change in the position of the movable unit 11B (hand) of the robot 1 in the X direction.

[0030] More specifically, the target position setting unit 231B calculates the horizontal target position Hz(X) of the detection target DT on the image IM based on the following formula: Hz(X) = Hz1 + ((Hz2 - Hz1) / (X2 - X1)) x (X - X1) Furthermore, the target position setting unit 231B calculates the vertical target position Vt(X) of the detection target DT on the image IM based on the following formula: Vt(X) = Vt1 + ((Vt2 - Vt1) / (X2 - X1)) x (X - X1))

[0031] 1 to 3, the robot control unit 232 controls the position (visual feedback) of the movable unit 11B (hand) of the robot 1 based on the position (Hz, Vt) of the detection target DT on the image IM captured by the visual sensor 14 (two-dimensional camera) and the target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, which is set by the target position setting unit 231B. Specifically, the robot control unit 232 controls the position (visual feedback) of the movable unit 11B (hand) of the robot 1 so that the position (Hz, Vt) of the detection target DT on the image IM matches the target position (Hz(X), Vt(X)) of the detection target DT on the image IM.

[0032] That is, in the example shown in Figures 1 to 3, the robot control unit 232 controls the X-direction position of the movable part 11B (hand) of the robot 1 based on information indicating the movement start position X1 and information indicating the movement end position X2 of the movable part 11B (hand) of the robot 1, which are stored in the memory unit 22.

[0033] FIG. 8 is a diagram illustrating an example of control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 executed by the robot control unit 232. FIG. 9 is a diagram illustrating an example of the target position (Hz(X), Vt(X)) of the detection target DT on the image IM set by the target position setting unit 231B when the visual feedback shown in FIG. 8 is executed. As shown in FIG. 9, the trajectory of the target position (Hz(X), Vt(X)) of the detection target DT on the image IM set by the target position setting unit 231B is a straight line connecting the position (Hz1, Vt1) of the detection target DT on the image IM when the X-direction position of the movable part 11B (hand) of the robot 1 is the movement start position X1 and the position (Hz2, Vt2) of the detection target DT on the image IM when the X-direction position of the movable part 11B (hand) of the robot 1 is the movement end position X2. 8 and 9, the robot control unit 232 executes control to move the movable part 11B (hand) of the robot 1 closer to the workpiece W1 on the conveyor C in the X direction, and also executes control to change the position of the movable part 11B (hand) of the robot 1 in the Y direction to the negative side in the Y direction (the right side in FIG. 8) by following the workpiece W1 being transported by the conveyor C to the negative side in the Y direction (the right side in FIG. 8). Specifically, the workpiece W2 (door) grasped by the movable part 11B (hand) of the robot 1 is attached to the workpiece W1 (car body) being transported by the conveyor C to the negative side in the Y direction (the right side in FIG. 8).

[0034] 8 and 9, when the robot control unit 232 moves the movable unit 11B (hand) of the robot 1 closer to the workpiece W1 in the X direction, the robot control unit 232 controls the position of the movable unit 11B (hand) of the robot 1 only in the transport direction (Y direction) of the workpiece W1 based on the position (Hz, Vt) of the detection target DT on the image IM and the target position (Hz(X), Vt(X)) of the detection target DT on the image IM set by the target position setting unit 231B. In other words, in the example shown in FIGS. 8 and 9, the control of the position of the movable unit 11B (hand) of the robot 1 in the Z direction is different from the control of the position of the movable unit 11B in the Y direction (visual feedback).

[0035] As described above, in the example shown in FIGS. 4 and 5, robot teaching is performed at position X1 where the movable part 11B (hand) of the robot 1 starts moving in the X direction, and in the example shown in FIGS. 6 and 7, robot teaching is performed at position X2 where the movable part 11B (hand) of the robot 1 ends moving in the X direction.

[0036] In another example, robot teaching may be performed at any two positions between the start position X1 and end position X2 of the X-direction movement of the movable part 11B (hand) of the robot 1. In this example, the storage unit 22 stores a first correspondence relationship between one of two positions (first position) between the start position X1 and end position X2 of the X-direction movement of the movable part 11B of the robot 1 and a target position on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the first position. The storage unit 22 also stores a second correspondence relationship between the other of two positions (second position) between the start position X1 and end position X2 of the X-direction movement of the movable part 11B of the robot 1 and a target position on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the second position. Furthermore, in this example, when the robot control unit 232 controls (visual feedback) the position of the movable unit 11B (hand) of the robot 1, the target position setting unit 231B sets a target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located when the X-direction position of the movable unit 11B (hand) of the robot 1 is neither the first position nor the second position, based on the first correspondence relationship, the second correspondence relationship, and the X-direction position X of the movable unit 11B of the robot 1. Also, in this example, similar to the example shown in FIGS. 1 to 3 , the robot control unit 232 controls (visual feedback) the position of the movable unit 11B (hand) of the robot 1 based on the position (Hz, Vt) of the detection target DT on the image IM captured by the visual sensor 14 (two-dimensional camera) and the target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, set by the target position setting unit 231B.

[0037] 10 is a flowchart illustrating an example of processing executed by the robot control device 2 of the first embodiment. In the example shown in FIG. 10 , robot teaching is executed in step S11 to register the position and orientation of the robot 1 at a movement start position X1 in the X direction of the movable part 11B (hand) of the robot 1. In detail, for example, an operator sets the X direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 to X1, and also sets the Y direction position (actual coordinate value) and the Z direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 so that the detection target DT on the workpiece W1 is included in the image IM captured by the visual sensor 14 (two-dimensional camera) as shown in FIG. 5 .

[0038] In step S11A, the memory unit 22 stores information indicating the positions of the rotation axes of each of the multiple actuators 13 (servo motors) detected by the actuator sensor 13A. That is, the position and posture of the robot 1 at the X-direction movement start position X1 of the movable part 11B (hand) of the robot 1 are registered. In step S11B, the image acquisition unit 231A acquires data of an image IM (see FIG. 5) including the detection target DT on the workpiece W1 captured by the visual sensor 14, and the memory unit 22 stores the data of the image IM. In step S11C, the target position setting unit 231B calculates the position (coordinates) (Hz1, Vt1) (see FIG. 5) of the detection target DT on the image IM. In step S11D, the target position setting unit 231B sets the position (Hz1, Vt1) as the target position of the detection target DT on the image IM captured by the visual sensor 14 when the movable part 11B (hand) of the robot 1 starts moving in the X direction during visual feedback execution by the robot control unit 232. In step S11E, the storage unit 22 stores a first correspondence relationship between the movement start position X1 of the movable part 11B of the robot 1 in the X direction and the target position (Hz1, Vt1) on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the movement start position X1 (i.e., in the state shown in FIGS. 4 and 5 ). In other words, in step S11, the target position (Hz1, Vt1) of the detection target DT on the image IM when the movable part 11B (hand) of the robot 1 is located at the movement start position X1 is taught.

[0039] Next, in step S12, robot teaching is executed to register the position and posture of the robot 1 at the end position X2 of the X-direction movement of the movable part 11B (hand) of the robot 1. In detail, for example, the operator changes the X-direction position (actual coordinate value) of the movable part 11B (hand) of the robot 1 from X1 to X2.

[0040] In step S12A, the memory unit 22 stores information indicating the positions of the rotation axes of each of the multiple actuators 13 (servo motors) detected by the actuator sensor 13A. That is, the position and posture of the robot 1 at the X-direction movement end position X2 of the movable part 11B (hand) of the robot 1 are registered. In step S12B, the image acquisition unit 231A acquires data of an image IM (see FIG. 7) including the detection target DT on the workpiece W1 captured by the visual sensor 14, and the memory unit 22 stores the data of the image IM. In step S12C, the target position setting unit 231B calculates the position (coordinates) (Hz2, Vt2) (see FIG. 7) of the detection target DT on the image IM. In step S12D, the target position setting unit 231B sets the position (Hz2, Vt2) as the target position of the detection target DT on the image IM captured by the visual sensor 14 at the end of the X-direction movement of the movable part 11B (hand) of the robot 1 during visual feedback execution by the robot control unit 232. In step S12E, the storage unit 22 stores a second correspondence relationship between the X-direction movement end position X2 of the movable part 11B of the robot 1 and the target position (Hz2, Vt2) on the image IM where the detection target DT should be located when the movable part 11B of the robot 1 is located at the movement end position X2 (i.e., in the state shown in FIGS. 6 and 7 ). In other words, in step S12, the target position (Hz2, Vt2) of the detection target DT on the image IM when the movable part 11B (hand) of the robot 1 is located at the movement end position X2 is taught.

[0041] Next, in step S13, the robot control unit 232 controls (visual feedback) the position of the movable unit 11B (hand) of the robot 1. In detail, for example, an operator sets the X-direction position of the movable unit 11B (hand) of the robot 1 to a movement start position X1, and the control unit 232B starts control (visual feedback) of the Y-direction position of the movable unit 11B (hand) of the robot 1. While control (visual feedback) of the Y-direction position of the movable unit 11B (hand) of the robot 1 is being executed, the robot control unit 232 executes control (control different from visual feedback) to change the X-direction position of the movable unit 11B (hand) of the robot 1 from the movement start position X1 to a movement end position X2.

[0042] In step S13A, the position calculation unit 232A calculates the positions (X, Y, Z) in the X, Y, and Z directions of the movable part 11B (hand) of the robot 1 connected to the visual sensor 14 via the connecting member 15, based on the positions of the rotation axes of the multiple actuators 13 (servo motors) detected by each of the multiple actuator sensors 13A (encoders). In step S13B, the image acquisition unit 231A acquires data of an image IM including the detection target DT on the workpiece W1, which is imaged by the visual sensor 14. In step S13C, the target position setting unit 231B sets a target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, based on the first correspondence relationship, the second correspondence relationship, and the position X in the X direction of the movable part 11B of the robot 1. Specifically, the target position setting unit 231B calculates the horizontal target position Hz(X) of the detection target DT on the image IM and the vertical target position Vt(X) of the detection target DT on the image IM based on the above-described formula. In the example shown in FIG. 10 , the process of calculating the target position (Hz(X), Vt(X)) of the detection target DT on the image IM is performed during execution of visual feedback. Meanwhile, in another example, the process of calculating the target position (Hz(X), Vt(X)) of the detection target DT on the image IM may be performed in preprocessing. In this example, a map is created that indicates the correspondence between the X-direction position X of the movable unit 11B (hand) of the robot 1 and the target position (Hz(X), Vt(X)) of the detection target DT on the image IM. Furthermore, during execution of visual feedback, the map is used to set the target position (Hz(X), Vt(X)) of the detection target DT on the image IM that corresponds to the X-direction position X of the movable unit 11B (hand) of the robot 1.

[0043] 10 , in step S13D, the robot control unit 232 controls the position of the movable unit 11B (hand) of the robot 1 in the Y direction (visual feedback) based on the position (Hz, Vt) of the detection target DT on the image IM indicated by the data acquired in step S13B and the target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, which was set in step S13C. In detail, the robot control unit 232 controls the position of the movable unit 11B (hand) of the robot 1 in the Y direction (visual feedback) so that the position (Hz, Vt) of the detection target DT on the image IM indicated by the data acquired in step S13B matches the target position (Hz(X), Vt(X)) on the image IM where the detection target DT should be located, which was set in step S13C. As a result, no matter where the detection target DT is located on the image IM, the movable part 11B (hand) of the robot 1 can be made to follow the workpiece W1 being transported in the transport direction (Y direction) while moving the position of the movable part 11B (hand) of the robot 1 in the X direction. That is, in step S13, while the movable part 11B (hand) of the robot 1 is moved in the X direction, control (visual feedback) of the Y direction position of the movable part 11B (hand) of the robot 1 is executed. Furthermore, during execution of visual feedback, the target position (Hz(X), Vt(X)) of the detection target DT on the image IM is changed according to the position of the movable part 11B (hand) of the robot 1 in the X direction.

[0044] Second Embodiment A robot control device 2 according to a second embodiment has the same configuration as the robot control device 2 according to the first embodiment described above, except for the points described below.

[0045] FIG. 11 is a diagram illustrating an example of a robot control device 2 according to the second embodiment. In the example illustrated in FIG. 11, the robot control device 2 includes an image processing unit 2-1 and a robot control unit 2-2. The image processing unit 2-1 is configured by a computer having a communication unit 21-1, a storage unit 22-1, and a processing unit 23-1. The communication unit 21-1 is a communication interface and includes an interface circuit for connecting the image processing unit 2-1 to the visual sensor 14 of the robot 1, the robot control unit 2-2, and the like via, for example, a signal line. The storage unit 22-1 includes a memory such as a ROM or RAM, and a storage device such as a HDD or SSD. The storage unit 22-1 stores programs and various data used in the processing executed by the processing unit 23-1. The processing unit 23-1 is a processor and functions as an image acquisition unit 231A-1 and a target position setting unit 231B-1. The image acquisition unit 231A-1 has the same functions as the image acquisition unit 231A shown in FIG. 2. The target position setting unit 231B-1 has the same function as the target position setting unit 231B shown in FIG.

[0046] The robot control unit 2-2 is configured by a computer having a communication unit 21-2, a storage unit 22-2, and a processing unit 23-2. The communication unit 21-2 is a communication interface and has an interface circuit for connecting the robot control unit 2-2 to the actuator 13 of the robot 1, the image processing unit 2-1, etc. via, for example, a signal line. The storage unit 22-2 is a memory such as ROM or RAM, or a storage such as an HDD or SSD. The storage unit 22-2 stores programs and various data used in the processing executed by the processing unit 23-2. The processing unit 23-2 is a processor and has functions as a position calculation unit 232A-2 and a control unit 232B-2. The position calculation unit 232A-2 has functions similar to those of the position calculation unit 232A shown in FIG. 2. The control unit 232B-2 has functions similar to those of the control unit 232B shown in FIG. 2.

[0047] <Third embodiment> A robot system 100 to which a robot control device 2 of a third embodiment is applied is configured similarly to the robot system 100 to which the robot control device 2 of the first embodiment described above is applied, except for the points described below.

[0048] As described above, in the robot system 100 to which the robot control device 2 of the first embodiment is applied, the actuator 13 is configured by a servo motor and has an encoder as the actuator sensor 13A. On the other hand, in the robot system 100 to which the robot control device 2 of the third embodiment is applied, the actuator 13 is configured by a stepping motor and does not have an actuator sensor.

[0049] In the robot system 100 to which the robot control device 2 of the third embodiment is applied, the position and speed of the rotation axis of the stepping motor serving as the actuator 13 are estimated based on a control signal (information indicating drive pulses) transmitted from the robot control device 2 to the stepping motor serving as the actuator 13. That is, in the robot system 100 to which the robot control device 2 of the third embodiment is applied, the position calculation unit 232A calculates the position (more specifically, the position (X, Y, Z) in the X direction, Y direction, and Z direction) of the movable part 11B (hand) of the robot 1 connected to the visual sensor 14 via the connecting member 15, based on the position of the rotation axis of each of the plurality of actuators 13 (stepping motors) estimated based on the control signal (information indicating drive pulses) transmitted to the actuators 13 (stepping motors).

[0050] <Fourth embodiment> A robot system 100 to which a robot control device 2 of a fourth embodiment is applied is configured similarly to the robot system 100 to which the robot control device 2 of the first embodiment described above is applied, except for the points described below.

[0051] As described above, the robot 1 included in the robot system 100 to which the robot control device 2 of the first embodiment is applied is a six-axis vertical articulated robot. On the other hand, the robot 1 included in the robot system 100 to which the robot control device 2 of the fourth embodiment is applied is a robot other than a six-axis vertical articulated robot (for example, a horizontal articulated robot, a Cartesian coordinate robot, a parallel link robot, etc.).

[0052] According to the robot control device 2 of the first to fourth embodiments, even if the appearance of the detection target DT on the workpiece W1 moving in the transport direction contained in the image IM generated by the visual sensor 14 changes as the visual sensor 14, which is connected to the movable part 11B (hand) of the robot 1 and moves integrally with the movable part 11B (hand) of the robot 1, moves in the optical axis direction of the visual sensor 14, the position of the movable part 11B (hand) of the robot 1 can be appropriately controlled to follow the workpiece W1 moving in the transport direction based on the image IM generated by the visual sensor 14.

[0053] Although the embodiments of the robot control device, robot control method, and program of the present disclosure have been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible to these embodiments without departing from the gist of the invention or the concept and spirit of the present invention derived from the content of the claims and their equivalents. For example, in the above-described embodiments, the order of each operation and each processing step is shown as an example and is not limited to these. The same applies when numerical values ​​or mathematical formulas are used in the description of the above-described embodiments. Furthermore, appropriate combinations of several of the above-described embodiments are within the scope of the present disclosure.

[0054] The following supplementary notes are further disclosed regarding the above-described embodiments and modifications: (Supplementary Note 1) An image acquisition unit (231A; 231A-1) acquires image (IM) data including a detection target (DT) on a workpiece (W1) moving in a conveying direction, the image (IM) being generated by a visual sensor (14) provided on a movable part (11B) of the robot (1); a storage unit (22; 22-1) that stores at least a first correspondence relationship that is a correspondence relationship between a first position (X1) of the movable part (11B) in an optical axis direction of the visual sensor (14), which is a direction intersecting the conveying direction, and a first detection target position (Hz1, Vt1) that is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the first position (X1), and a second correspondence relationship that is a correspondence relationship between a second position (X2) of the movable part (11B) in the optical axis direction and a second detection target position (Hz2, Vt2) that is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the second position (X2); and a target position setting unit (231B; 231B-1) that sets a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, based on the first correspondence relationship, the second correspondence relationship, and a position (X) of the movable part (11B) in the optical axis direction. (Supplementary Note 2) The robot control device (2) according to Supplementary Note 1, wherein the optical axis direction is a direction substantially perpendicular to the conveying direction. (Supplementary Note 3) The robot control device (2) according to Supplementary Note 1 or 2, further comprising a robot control unit (231; 2-2) that executes control of the position (X) of the movable part (11B) based on the position (Hz, Vt) of the detection target (DT) on the image (IM) and the target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, which is set by the target position setting unit (231B; 231B-1).(Supplementary Note 4) The robot control device (2) according to Supplementary Note 3, wherein the robot control unit (232; 2-2) controls the position of the movable unit (11B) only in the conveying direction based on the position (Hz, Vt) of the detection target (DT) on the image (IM) and the target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, which is set by the target position setting unit (231B; 231B-1). (Supplementary Note 5) The robot control device (2) according to Supplementary Note 4, wherein the robot control unit (232; 2-2) controls the position (X) of the movable unit (11B) in the optical axis direction based on information indicating the first position (X1) and information indicating the second position (X2), which are stored in the memory unit (22). (Supplementary Note 6) The first position (X1) is a movement start position of the movable part (11B) in the optical axis direction, The second position (X2) is a movement end position of the movable part (11B) in the optical axis direction, The first correspondence relationship is a correspondence relationship between the movement start position (X1) and the first detection target position (Hz1, Vt1) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the movement start position (X1), The second correspondence relationship is a correspondence relationship between the movement end position (X2) and the second detection target position (Hz2, Vt2) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the movement end position (X2), The robot control device (2) according to any one of Appendices 1 to 5, wherein the target position setting unit (231B; 231B-1) sets a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located when the position (X) of the movable part (11B) in the optical axis direction is neither the movement start position (X1) nor the movement end position (X2), based on the first correspondence relationship, the second correspondence relationship, and the position (X) of the movable part (11B) in the optical axis direction.(Appendix 7) The robot control device (2) according to any one of Appendices 1 to 6, wherein the first position (X1) of the movable part (11B) in the optical axis direction and the second position (X2) of the movable part (11B) in the optical axis direction are positions where the position and posture of the robot (1) are registered in robot teaching. (Supplementary Note 8) The robot control device (2) according to any one of Supplementary Notes 1 to 7, wherein a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, which is set by the target position setting unit (231B; 231B-1), is represented by a horizontal coordinate value (Hz(X)) and a vertical coordinate value (Vt(X)), the horizontal coordinate value (Hz(X)) changes in proportion to a change in the position (X) of the movable part (11B) in the optical axis direction, and the vertical coordinate value (Vt(X)) changes in proportion to a change in the position (X) of the movable part (11B) in the optical axis direction. (Supplementary Note 9) The robot control device (2) according to any one of Supplementary Notes 1 to 8, wherein the target position setting unit (231B; 231B-1) sets a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, based on the first correspondence relationship, the second correspondence relationship, and the position (X) of the movable part (11B) in the optical axis direction, when the position (X) of the movable part (11B) in the optical axis direction is neither the first position (X1) nor the second position (X2).(Supplementary Note 10) An image acquiring step of acquiring data of an image (IM) including a detection target (DT) on a workpiece (W1) moving in a conveying direction, the data being generated by a visual sensor (14) provided on a movable part (11B) of a robot (1); and a storage step of storing at least a first correspondence relationship which is a correspondence relationship between a first position (X1) of the movable part (11B) in an optical axis direction of the visual sensor (14), which is a direction intersecting the conveying direction, and a first detection target position (Hz1, Vt1) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the first position (X1), and a second correspondence relationship which is a correspondence relationship between a second position (X2) of the movable part (11B) in the optical axis direction and a second detection target position (Hz2, Vt2) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the second position (X2). a target position setting step of setting a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, based on the first correspondence relationship, the second correspondence relationship, and a position (X) of the movable part (11B) in the optical axis direction.(Supplementary Note 11) An image acquisition step of acquiring data of an image (IM) including a detection target (DT) on a workpiece (W1) moving in a conveying direction, the image (IM) being generated by a visual sensor (14) provided on a movable part (11B) of the robot (1); a storage step of storing at least a first correspondence relationship which is a correspondence relationship between a first position (X1) of the movable part (11B) in an optical axis direction of the visual sensor (14), which is a direction intersecting the conveying direction, and a first detection target position (Hz1, Vt1) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the first position (X1), and a second correspondence relationship which is a correspondence relationship between a second position (X2) of the movable part (11B) in the optical axis direction and a second detection target position (Hz2, Vt2) which is a target position on the image (IM) where the detection target (DT) should be located when the movable part (11B) is located at the second position (X2); a target position setting step of setting a target position (Hz(X), Vt(X)) on the image (IM) where the detection target (DT) should be located, based on the first correspondence relationship, the second correspondence relationship, and the position (X) of the movable part (11B) in the optical axis direction.

[0055] 100 Robot system 1 Robot 11 Link section 11A Base section 11B Movable section 12 Joint section 13 Actuator 13A Actuator sensor 14 Visual sensor 15 Connection member 2 Robot control device 21 Communication section 22 Memory section 23 Processing section 231 Image processing section 231A Image acquisition section 231B Target position setting section 232 Robot control section 232A Position calculation section 232B Control section C Conveyor W1 Work DT Detection target W2 Work IM Image

Claims

1. A robot control device comprising: an image acquisition unit that acquires image data including a detection target on a workpiece moving in a transport direction, generated by a visual sensor provided on a movable part of a robot; a memory unit that stores at least a first correspondence relationship that is a correspondence relationship between a first position of the movable part in the optical axis direction of the visual sensor, which is a direction intersecting the transport direction, and a first detection target position that is a target position on the image where the detection target should be located when the movable part is located at the first position, and a second correspondence relationship that is a correspondence relationship between a second position of the movable part in the optical axis direction and a second detection target position that is a target position on the image where the detection target should be located when the movable part is located at the second position; and a target position setting unit that sets the target position on the image where the detection target should be located based on the first correspondence relationship, the second correspondence relationship, and the position of the movable part in the optical axis direction.

2. The robot control device according to claim 1, wherein the optical axis direction is substantially perpendicular to the conveying direction.

3. A robot control device as described in claim 1 or 2, comprising a robot control unit that controls the position of the movable part based on the position of the detection object on the image and the target position on the image where the detection object should be located, set by the target position setting unit.

4. A robot control device as described in claim 3, wherein when the movable part is brought closer to the workpiece in the optical axis direction, the robot control unit controls the position of the movable part only in the transport direction based on the position of the detection object on the image and the target position on the image where the detection object should be located, which is set by the target position setting unit.

5. A robot control device as described in claim 4, wherein the robot control unit controls the position of the movable part in the optical axis direction based on information indicating the first position and information indicating the second position stored in the memory unit.

6. A robot control device as described in claim 1 or 2, wherein the first position is a movement start position of the movable part in the optical axis direction, the second position is a movement end position of the movable part in the optical axis direction, the first correspondence relationship is a correspondence relationship between the movement start position and the first detection target position which is a target position on the image where the detection target should be located when the movable part is located at the movement start position, and the second correspondence relationship is a correspondence relationship between the movement end position and the second detection target position which is a target position on the image where the detection target should be located when the movable part is located at the movement end position, and the target position setting unit sets the target position on the image where the detection target should be located when the position of the movable part in the optical axis direction is neither the movement start position nor the movement end position based on the first correspondence relationship, the second correspondence relationship, and the position of the movable part in the optical axis direction.

7. A robot control device as described in claim 1 or 2, wherein the first position of the movable part in the optical axis direction and the second position of the movable part in the optical axis direction are positions where the position and posture of the robot are registered in robot teaching.

8. A robot control device as described in claim 1 or 2, wherein the target position on the image where the detection target should be located, set by the target position setting unit, is represented by a horizontal coordinate value and a vertical coordinate value, the horizontal coordinate value changes in proportion to the change in position of the movable part in the optical axis direction, and the vertical coordinate value changes in proportion to the change in position of the movable part in the optical axis direction.

9. A robot control device as described in claim 1 or 2, wherein the target position setting unit sets a target position on the image where the detection object should be located based on the first correspondence relationship and the second correspondence relationship and the position of the movable part in the optical axis direction when the position of the movable part in the optical axis direction is neither the first position nor the second position.

10. A robot control method comprising: an image acquisition step for acquiring image data including a detection target on a workpiece moving in a transport direction, the image data being generated by a visual sensor provided on a movable part of a robot; a storage step for storing at least a first correspondence relationship which is a correspondence relationship between a first position of the movable part in the optical axis direction of the visual sensor, which is a direction intersecting the transport direction, and a first detection target position which is a target position on the image where the detection target should be located when the movable part is located at the first position, and a second correspondence relationship which is a correspondence relationship between a second position of the movable part in the optical axis direction and a second detection target position which is a target position on the image where the detection target should be located when the movable part is located at the second position; and a target position setting step for setting a target position on the image where the detection target should be located, based on the first correspondence relationship, the second correspondence relationship, and the position of the movable part in the optical axis direction.

11. A program for causing a computer to execute the following steps: an image acquisition step for acquiring image data including a detection target on a workpiece moving in a transport direction, generated by a visual sensor provided on a movable part of a robot; a storage step for storing at least a first correspondence relationship which is a correspondence relationship between a first position of the movable part in the optical axis direction of the visual sensor, which is a direction intersecting the transport direction, and a first detection target position which is a target position on the image where the detection target should be located when the movable part is located at the first position, and a second correspondence relationship which is a correspondence relationship between a second position of the movable part in the optical axis direction and a second detection target position which is a target position on the image where the detection target should be located when the movable part is located at the second position; and a target position setting step for setting a target position on the image where the detection target should be located, based on the first correspondence relationship, the second correspondence relationship, and the position of the movable part in the optical axis direction.

Citation Information

Patent Citations

  • Automatic teaching system and teaching method

    JP2014128855A

  • Robot teaching device

    JP2016083705A

  • Robot control device

    WO2022039245A1