Robot control device, robot control method, and program

The robot control device addresses misalignment issues by managing correspondence relationships between the movable part's position and detection object positions, allowing precise workpiece following despite changes in the sensor's optical axis direction.

US20260373928A1Pending Publication Date: 2026-11-26FANUC LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/148866
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Conventional robot control systems using a single visual sensor connected to a movable part face challenges in accurately following a workpiece due to changes in the appearance of detection objects as the sensor moves, leading to potential misalignment and inefficiencies.

Method used

A robot control device that includes an image acquisition unit, storage unit, and target position setting unit to manage correspondence relationships between the movable part's position and detection object positions on the image, enabling precise control even when the sensor's optical axis direction changes.

Benefits of technology

Enables the robot to accurately follow the workpiece in the transport direction by dynamically adjusting the target position of the detection object on the image, ensuring consistent alignment and operation despite changes in the sensor's optical axis direction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260373928A1-D00000_ABST
    Figure US20260373928A1-D00000_ABST
Patent Text Reader

Abstract

The present invention provides a robot control device including 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

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This is the U.S. National Phase application of PCT / JP2023 / 012613, filed Mar. 28, 2023, the disclosure of this application being incorporated herein by reference in its entirety for all purposes.FIELD OF THE INVENTION

[0002] The present disclosure relates to a robot control device, a robot control method, and a program.BACKGROUND OF THE INVENTION

[0003] Conventionally, a production line including a robot and a transport device for transporting a workpiece have been known. In this production line, the robot follows the workpiece transported in a transport direction by the transport device and then starts operations on the workpiece.

[0004] If a single visual sensor (for example, a two-dimensional camera) which is connected to a movable part of the robot (for example, hand, end effector, or the like) and which moves integrally with the movable part of the robot is used to cause the robot to follow the workpiece transported in the transport direction, when the movable part of the robot moves in the optical axis direction of the visual sensor, the appearance of a detection object on the workpiece transported in the transport direction, which is included in the image generated by the visual sensor, changes. If the appearance of the detection object included in the image changes, there is a risk that the movable part of the robot cannot be caused to appropriately follow the workpiece transported in the transport direction in conventional visual feedback using the single visual sensor.

[0005] Thus, conventionally, a fixed two-dimensional camera which is not connected to the movable part of the robot and which does not move integrally with the movable part of the robot is used, and the transport of the workpiece by the transport device is stopped when the detection object is located on the optical axis of the two-dimensional camera (refer to, for example, Japanese Unexamined Patent Publication (Kokai) No. 2012-161850). Thus, in this technology, the appearance of the detection object included in the image captured by the two-dimensional camera does not change, and the movable part of the robot can be caused to follow the workpiece. However, in this technology, it is necessary to use the fixed two-dimensional camera and make the detection object exist on the optical axis of the two-dimensional camera.PATENT LITERATURE

[0006] [PTL 1] Japanese Unexamined Patent Publication (Kokai) No. 2012-161850SUMMARY OF THE INVENTION

[0007] It is desirable to be able to appropriately control the position of the movable part of the robot so as to follow the workpiece moving in the transport direction based on the image generated by the visual sensor even if the appearance of the detection object on the workpiece moving in the transport direction included in the image generated by the visual sensor changes as the visual sensor, which is connected to the movable part of the robot and moves integrally with the movable part of the robot, moves in the optical axis direction of the visual sensor.

[0008] An aspect of the present disclosure provides a robot control device including: an image acquisition unit which acquires data of an image including a detection object on a workpiece which is moving in a transport direction and generated by a visual sensor provided on a movable part of a robot; a storage unit which stores at least a first correspondence relationship which is a correspondence relationship between a first position of the movable part in an optical axis direction of the visual sensor which is a direction intersecting the transport direction, and a first detection object target position which is a target position on the image where the detection object should be located when the movable part is in 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 object target position which is a target position on the image where the detection object should be located when the movable part is in the second position; and a target position setting unit which sets the target position on the image where the detection object should be located based on the first correspondence relationship, the second correspondence relationship, and a position of the movable part in the optical axis direction.BRIEF DESCRIPTION OF DRAWINGS

[0009] FIG. 1 is a view schematically showing an example of a robot system 100 to which a robot control device 2 of a first embodiment is applied.

[0010] FIG. 2 is a view showing an example of a functional block of the robot system 100 shown in FIG. 1.

[0011] FIG. 3 is a view showing the robot 1 included in the robot system 100 and the like shown in FIG. 1 as viewed from the upper side of FIG. 1.

[0012] FIG. 4 is a view for explaining an example of robot teaching performed in a movement start position X1 of a movable part 11B (hand) of the robot 1 in the X direction.

[0013] FIG. 5 is a view showing an example of an image IM captured by a visual sensor 14 (two-dimensional camera) in the robot teaching shown in FIG. 4.

[0014] FIG. 6 is a view for explaining an example of the robot teaching performed in a movement end position X2 of the movable part 11B (hand) of the robot 1 in the X direction.

[0015] FIG. 7 is a view showing an example of the image IM captured by the visual sensor 14 (two-dimensional camera) in the robot teaching shown in FIG. 6.

[0016] FIG. 8 is a view for explaining 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.

[0017] FIG. 9 is a view showing an example of a target position (Hz(X), Vt(X)) of a detection object DT on the image IM set by a target position setting unit 231B when the visual feedback shown in FIG. 8 is performed.

[0018] FIG. 10 is a flowchart for explaining an example of a process performed by the robot control device 2 of the first embodiment.

[0019] FIG. 11 is a view showing an example of the robot control device 2 of a second embodiment.DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION

[0020] Embodiments of robot control device, robot control method, and program of the present disclosure will be described below with reference to the accompanying drawings.First Embodiment

[0021] FIG. 1 is a view schematically showing an example of a robot system 100 to which a robot control device 2 of a first embodiment is applied. FIG. 2 is a view showing an example of a functional block of the robot system 100 shown in FIG. 1. FIG. 3 is a view showing the robot 1 included in the robot system 100 and the like shown in FIG. 1 as viewed from the upper side of FIG. 1.

[0022] In the example shown in FIG. 1 to FIG. 3, the robot system 100 includes a robot 1 and the robot control device 2.

[0023] Though the robot system 100 does not include a teaching pendant in the example shown in FIG. 1 to FIG. 3, in another example, the robot system 100 may include the teaching pendant.

[0024] In the example shown in FIG. 1 to FIG. 3, the robot 1 is a six-axis vertical articulated robot. The robot 1 includes a plurality of link parts 11, a plurality of joint parts 12, a plurality of actuators 13, a visual sensor 14, and a connection member 15.

[0025] The plurality of link parts 11 include a base part 11A, a plurality of movable parts 11C, and a movable part 11B. The plurality of movable parts 11C include a part which functions as a torso of the robot 1 and a part which functions as a lower arm of the robot 1. The plurality of movable parts 11C also include parts which function as an upper arm of the robot 1 (more specifically, lower arm side part of the upper arm of the robot 1 and wrist side part of the upper arm of the robot 1). The plurality of movable parts 11C also include a part which functions as a wrist of the robot 1 (more specifically, upper arm side part of the wrist of the robot 1). The movable part 11B includes a tip side part (hand) of the wrist of the robot 1.

[0026] Each of the plurality of joint parts 12 has a function as a rotary joint.

[0027] The plurality of joint parts 12 include a joint part 12 for connecting the base part 11A and the movable part 11C which functions as the torso of the robot 1. The plurality of joint parts 12 also include a joint part 12 for connecting the movable part 11C which functions as the torso of the robot 1 and the movable part 11C which functions as the lower arm of the robot 1. The plurality of joint parts 12 also include a joint part 12 for connecting the movable part 11C which functions as the lower arm of the robot 1 and the movable part 11C which functions as the lower arm side part of the upper arm of the robot 1. The plurality of joint parts 12 also include a joint part 12 for connecting the movable part 11C which functions as the lower arm side part of the upper arm of the robot 1 and the movable part 11C which functions as the wrist side part of the upper arm of the robot 1. The plurality of joint parts 12 also include a joint part 12 for connecting the movable part 11C which functions as the wrist side part of the upper arm of the robot 1 and the movable part 11C which functions as the upper arm side part of the wrist of the robot 1. The plurality of joint parts 12 also include a joint part 12 for connecting the movable part 11C which functions as the upper arm side part of the wrist of the robot 1 and the movable part 11B (hand) which functions as the tip side part of the wrist of the robot 1.

[0028] In another example, the joint parts 12 may function as prismatic joints.

[0029] In the example shown in FIG. 1 to FIG. 3, the plurality of actuators 13 include an actuator 13 for rotating (turning) the movable part 11C which functions as the torso of the robot 1, relative to the base part 11A. The plurality of actuators 13 also include an actuator 13 for rotating the movable part 11C which functions as the lower arm of the robot 1, relative to the movable part 11C which functions as the torso of the robot 1. The plurality of actuators 13 also include an actuator 13 for rotating the movable part 11C which functions as the lower arm side part of the upper arm of the robot 1 relative to the movable part 11C which functions as the lower arm of the robot 1. The plurality of actuators 13 also include an actuator 13 for rotating the movable part 11C which functions as the wrist side part of the upper arm of the robot 1 relative to the movable part 11C which functions as the lower arm side part of the upper arm of the robot 1 (i.e., twisting the upper arm of the robot 1). The plurality of actuators 13 also include an actuator 13 for rotating the movable part 11C which functions as the upper arm side part of the wrist of the robot 1 relative to the movable part 11C which functions as the wrist side part of the upper arm of the robot 1. The plurality of actuators 13 also include an actuator 13 for rotating the movable part 11B (hand) which functions as the tip side part of the wrist of the robot 1 relative to the movable part 11C which functions as the upper arm side part of the wrist of the robot 1 (i.e., twisting the wrist of the robot 1).

[0030] Each of the plurality of actuators 13 is constituted by a servo motor. The servo motor rotates a rotation shaft of the servo motor based on a control signal from the robot control device 2. Each of the plurality of actuators 13 (servo motors) includes an actuator sensor 13A. The actuator sensor 13A is constituted by an encoder for detecting position and speed of the rotation shaft of the servo motor. The actuator sensor 13A (encoder) outputs actuator sensor data indicating the position and the speed of the rotation shaft of the servo motor to the robot control device 2.

[0031] In another example, an actuator other than the servo motor may be used as the actuator 13, and an actuator sensor other than the encoder may be used as the actuator sensor 13A.

[0032] In the example shown in FIG. 1 to FIG. 3, the visual sensor 14 is a two-dimensional camera. The two-dimensional camera captures an image IM (refer to FIG. 5, etc.) including a detection object DT on a workpiece W1 transported in a transport direction (negative side of the Y-direction, front side of FIG. 1, right side of FIG. 3) by a conveyor C. Specifically, the visual sensor 14 generates data of the image IM including the detection object DT on the workpiece W1 moving in the transport direction and transmits it to the robot control device 2.

[0033] Furthermore, the visual sensor 14 is connected to the movable part 11B (hand) which functions as the tip side part of the wrist of the robot 1 via the connection member 15. Specifically, when the movable part 11B (hand) of the robot 1 is moved by the actuator 13, the visual sensor 14 moves integrally with the movable part 11B (hand). In other words, the visual sensor 14 is provided on the movable part 11B (hand) of the robot 1.

[0034] Further, as shown by a dash-dot line (center line) in FIG. 3, an optical axis direction of the visual sensor 14 is set in the X direction. Specifically, the optical axis direction of the visual sensor 14 is a direction which intersects the transport direction (Y-direction) of the workpiece W1, and for example, a direction which is approximately perpendicular to the transport direction (Y-direction) of the workpiece W1. The optical axis of the visual sensor 14 and the conveyor C for transporting the workpiece W1 may, for example, intersect three-dimensionally (specifically, the optical axis of the visual sensor 14 and the conveyor C for transporting the workpiece W1 may have a relationship of, for example, a “skew position”). Note that the optical axis direction of the visual sensor 14 is not limited to be a direction which is substantially perpendicular to the transport direction of the workpiece W1, and the optical axis direction of the visual sensor 14 and the transport direction of the workpiece W1 may include minute angle deviations.

[0035] In the example shown in FIG. 1 to FIG. 3, the visual sensor 14 is connected to the movable part 11B (hand) which functions as the tip side part of the wrist of the robot 1 via the connection member 15. In another example, the visual sensor 14 may be connected to the movable part 11C other than the movable part 11B (hand) of the robot 1 via the connection member 15. For example, in the example in which the actuator 13 for rotating the movable part 11B (hand) of the robot 1 relative to the movable part 11C which functions as the upper arm side part of the wrist of the robot 1 is not operated, the visual sensor 14 may be connected to the movable part 11C which functions as the upper arm side part of the wrist of the robot 1 via the connection member 15.

[0036] In the example shown in FIG. 1 to FIG. 3, the robot control device 2 is configured by a computer including a communication unit 21, a storage unit 22, and a process unit 23.

[0037] The communication unit 21 is a communication interface and has an interface circuit for connecting the robot control device 2 to the actuator 13, the visual sensor 14 and the like of the robot 1 via, for example, a signal line. The storage unit 22 is memory such as ROM (Read-Only Memory), RAM (Random Access Memory) and the like, storage such as HDD (Hard Disk Drive), SSD (Solid State Drive), and the like. The storage unit 22 stores programs used in processes performed by the process unit 23 and various data. The process unit 23 is a processor and has a function as an image process unit 231 and a function as a robot control unit 232.

[0038] The image process unit 231 performs process of the image IM captured by the visual sensor 14 (two-dimensional camera) and the like. The robot control unit 232 performs control (visual feedback) of the robot 1 based on the image IM captured by the visual sensor 14 (two-dimensional camera).

[0039] The image process unit 231 has a function as an image acquisition unit 231A and a function as a target position setting unit 231B.

[0040] The image acquisition unit 231A acquires the data of the image IM (refer to FIG. 5, etc.) including the detection object DT on the workpiece W1 moving in the transport direction (right side in FIG. 3) generated by the visual sensor 14. Specifically, the image acquisition unit 231A acquires the data of the image IM captured by the visual sensor 14 (two-dimensional camera).

[0041] The target position setting unit 231B sets a target position (Hz(X), Vt(X)) (refer to FIG. 9) of the detection object DT on the image IM captured by the visual sensor 14 (two-dimensional camera), which is used in the visual feedback performed 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 object DT on the image IM when the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X direction calculated by a position calculation unit 232A described later is X.

[0042] The robot control unit 232 has a function as the position calculation unit 232A and a function as a control unit 232B.

[0043] The position calculation unit 232A calculates the position (more specifically, the position (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 connection member 15 based on the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) detected by each of the plurality of actuator sensors 13A (encoders).

[0044] The control unit 232B performs the control (visual feedback) of the position (X, Y, Z) of the movable part 11B (hand) of the robot 1 connected to the visual sensor 14 via the connection member 15, based on the target position (Hz(X), Vt(X)) of the detection object DT on the image IM set by the target position setting unit 231B and the like.

[0045] In the example shown in FIG. 1 to FIG. 3, the control unit 232B performs the control to bring the movable part 11B (hand (more specifically, the hand holding a workpiece W2)) of the robot 1 close to the workpiece W1 on the conveyor C in the X direction in visual feedback of the position (X, Y, Z) of the movable part 11B (hand) of the robot 1. Furthermore, the control unit 232B performs the control to change the position of the movable part 11B (hand) of the robot 1 in the Y-direction so as to follow the workpiece WI transported by the conveyor C to the negative side (right side in FIG. 3) in the Y-direction. Conversely, the control unit 232B does not perform the control to change the Z direction position of the movable part 11B (hand) of the robot 1.

[0046] In another example, the control unit 232B may perform the control to change the Z-direction position of the movable part 11B (hand) of the robot 1 in visual feedback of the position (X, Y, Z) of the movable part 11B (hand) of the robot 1. In detail, in this example, the control unit 232B performs the control to change the Z-direction position of the movable part 11B (hand) of the robot 1, when the control unit 232B performs the control to bring the movable part 11B (hand) of the robot 1 close to the workpiece WI on the conveyor C in the X direction and performs the control to change the position of the movable part 11B (hand) of the robot 1 in the Y-direction so as to follow the workpiece W1 transported by the conveyor C to the negative side (right side in FIG. 3) in the Y-direction.

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

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

[0049] In the example shown in FIG. 4 and FIG. 5, when, for example, the operator performs the robot teaching in the movement start position X1 of the movable part 11B (hand) of the robot 1 in the X-direction, the operator sets the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X-direction to X1. Furthermore, for example, the operator appropriately sets the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Y-direction and the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Z-direction so that the detection object DT on the workpiece WI 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 showing the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) detected by the actuator sensor 13A when, for example, the operator sets the position (movement start position X1) of the movable part 11B (hand) of the robot 1 in the X-direction, the position of the movable part 11B (hand) of the robot 1 in the Y-direction, and the position of the movable part 11B (hand) of the robot 1 in the Z-direction position.

[0050] Next, the visual sensor 14 captures the image IM including the detection object DT on the workpiece W1 shown in FIG. 5, the image acquisition unit 231A acquires the data of the image IM, and the storage unit 22 stores the data of the image IM. The target position setting unit 231B calculates the position (coordinates) (Hz1, Vt1) of the detection object DT on the image IM shown in FIG. 5. The target position setting unit 231B sets the position (Hz1, Vt1) as the target position of the detection object DT on the image IM captured by the visual sensor 14 when the robot control unit 232 performs the visual feedback (more specifically, when the movable part 11B (hand) of the robot 1 starts moving in the X direction when performing the visual feedback).

[0051] Next, for example, the operator sets the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X-direction to the movement end position X2 and performs the robot teaching in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X-direction.

[0052] FIG. 6 is a view for explaining an example of the robot teaching performed in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X direction. FIG. 7 is a view showing an example of the image IM captured by the visual sensor 14 (two-dimensional camera) in the robot teaching shown in FIG. 6 (i.e., when the position of the movable part 11B (hand) of the robot 1 in the X direction is the movement end position X2).

[0053] In the example shown in FIG. 6 and FIG. 7, for example, the operator changes the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X-direction from X1 to X2 without changing the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Y-direction and the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Z-direction from the state shown in FIG. 4, and performs the robot teaching in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X-direction. The storage unit 22 stores the information showing the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) when, for example, the operator changes the position of the movable part 11B (hand) of the robot 1 in the X-direction from X1 to X2.

[0054] Next, the visual sensor 14 captures the image IM including the detection object DT on the workpiece WI shown in FIG. 6, the image acquisition unit 231A acquires the data of the image IM, and the storage unit 22 stores the data of the image IM. The target position setting unit 231B calculates the position (coordinates) (Hz2, Vt2) of the detection object DT on the image IM shown in FIG. 7. The target position setting unit 231B sets the position (Hz2, Vt2) as the target position of the detection object DT on the image IM captured by the visual sensor 14 when the robot control unit 232 performs the visual feedback (in detail, when the movement of the movable part 11B (hand) of the robot 1 in the X direction ends when the visual feedback is performed).

[0055] In the example shown in FIG. 1 to FIG. 3, in order to make the robot 1 follow the workpiece W1 transported in the transport direction (Y-direction), one visual sensor 14 (two-dimensional camera) which is connected to the movable part 11B (hand) of the robot 1 via the connection member 15 and moves integrally with the movable part 11B (hand) of the robot 1 is used. Thus, 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 FIG. 4 and FIG. 6, the appearance of the detection object DT on the workpiece WI transported in the transport direction (Y-direction) included in the image IM generated (imaged) by the visual sensor 14 (two-dimensional camera) changes as shown in FIG. 5 and FIG. 7.

[0056] In detail, the position of the movable part 11B (hand) of the robot 1 in the Y-direction and position of the movable part 11B (hand) of the robot 1 in the Z-direction in the state shown in FIG. 4 and FIG. 5 are the same (unchanged) as the position of the movable part 11B (hand) of the robot 1 in the Y-direction and the position of the movable part 11B (hand) of the robot 1 in the Z-direction in the state shown in FIG. 6 and FIG. 7. Nevertheless, the position (coordinates) (Hz1, Vt1) of the detection object DT on the image IM captured by the visual sensor 14 (two-dimensional camera) in the state shown in FIG. 4 and FIG. 5 differs from the position (coordinates) (Hz2, Vt2) of the detection object DT on the image IM captured by the visual sensor 14 (two-dimensional camera) in the state shown in FIG. 6 and FIG. 7.

[0057] Thus, if conventional visual feedback is adopted, since the position (coordinate) Hz1 of the detection object DT on the image IM shown in FIG. 5 in the horizontal direction is different from the position (coordinate) Hz2 of the detection object DT on the image IM shown in FIG. 7 in the horizontal direction, there is a risk that the robot control device 2 erroneously determines that the position of the workpiece W1 in the transport direction (Y-direction) has changed.

[0058] In light of the foregoing, in the example shown in FIG. 1 to FIG. 3, the storage unit 22 stores a first correspondence relationship which is a 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 object DT should be located when the movable part 11B of the robot 1 is in the movement start position X1 (i.e., at the time of the state shown in FIG. 4 and FIG. 5). The storage unit 22 also stores a second correspondence relationship which is a correspondence relationship between the movement end position X2 of the movable part 11B of the robot 1 in the X direction and the target position (Hz2, Vt2) on the image IM where the detection object DT should be located when the movable part 11B of the robot 1 is in the movement end position X2 (i.e., at the time of the state shown in FIG. 6 and FIG. 7).

[0059] Further, in the example shown in FIG. 1 to FIG. 3, when the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1, the target position setting unit 231B sets the target position (Hz(X), Vt(X)) on the image IM where the detection object DT should be located when the position of the movable part 11B (hand) of the robot 1 in the X 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 of the robot 1 in the X direction.

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

[0061] In further detail, the target position setting unit 231B calculates the target position Hz(X) of the detection object DT on the image IM in the horizontal direction based on the following formula:Hz(X)=Hz1+((Hz2−Hz1) / (X2−X1))×(X−X1)

[0062] Further, the target position setting unit 231B calculates the target position Vt(X) of the detection object DT on the image IM in the vertical direction based on the following formula:Vt(X)=Vt1+((Vt2−Vt1) / (X2−X1))×(X−X1))

[0063] In the example shown in FIG. 1 to FIG. 3, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 based on the position (Hz, Vt) of the detection object 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 object DT should be located set by the target position setting unit 231B. In detail, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 so that the position (Hz, Vt) of the detection object DT on the image IM matches the target position (Hz(X), Vt(X)) of the detection object DT on the image IM.

[0064] In other words, in the example shown in FIG. 1 to FIG. 3, the robot control unit 232 performs the control of the position of the movable part 11B (hand) of the robot 1 in the X-direction based on the information showing the movement start position X1 and the information showing the movement end position X2 of the movable part 11B (hand) of the robot 1 stored in the storage unit 22.

[0065] FIG. 8 is a view for explaining an example of the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 performed by the robot control unit 232. FIG. 9 is a view showing an example of the target position (Hz(X), Vt(X)) of the detection object DT on the image IM set by the target position setting unit 231B when the visual feedback shown in FIG. 8 is performed.

[0066] As shown in FIG. 9, a trajectory of the target position (Hz(X), Vt(X)) of the detection object 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 object DT on the image IM when the position of the movable part 11B (hand) of the robot 1 in the X-direction is the movement start position X1, and the position (Hz2, Vt2) of the detection object DT on the image IM when the position of the movable part 11B (hand) of the robot 1 in the X-direction is the movement end position X2.

[0067] In the example shown in FIG. 8 and FIG. 9, the robot control unit 232 performs the control to bring the movable part 11B (hand) of the robot 1 close to the workpiece W1 on the conveyor C in the X direction, and performs the control to change the position of the movable part 11B (hand) of the robot 1 in the Y-direction to the negative side (right side in FIG. 8) in the Y-direction by following the workpiece WI transported to the negative side (right side in FIG. 8) in the Y-direction by the conveyor C. Specifically, an operation is performed to attach the workpiece W2 (door) held by the movable part 11B (hand) of the robot 1 to the workpiece WI (car body) transported to the negative side (right side in FIG. 8) in the Y-direction by the conveyor C.

[0068] In detail, in the example shown in FIG. 8 and FIG. 9, when the robot control unit 232 brings the movable part 11B (hand) of the robot 1 close to the workpiece W1 in the X direction, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 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 object DT on the image IM and the target position (Hz(X), Vt(X)) of the detection object DT on the image IM set by the target position setting unit 231B.

[0069] In other words, in the example shown in FIG. 8 and FIG. 9, the control of the position of the movable part 11B (hand) of the robot 1 in the Z-direction is different from the control (visual feedback) of the position of the movable part 11B in the Y-direction.

[0070] As described above, in the example shown in FIG. 4 and FIG. 5, the robot teaching is performed in the movement start position X1 of the movable part 11B (hand) of the robot 1 in the X-direction, and in the example shown in FIG. 6 and FIG. 7, the robot teaching is performed in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X-direction.

[0071] In another example, the robot teaching may be performed in any two positions between the movement start position X1 and the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X direction.

[0072] In this example, the storage unit 22 stores the first correspondence relationship which is the correspondence relationship between one position (first position) among the two positions between the movement start position X1 and the movement end position X2 of the movable part 11B of the robot 1 in the X direction and the target position on the image IM where the detection object DT should be located when the movable part 11B of the robot 1 is in the first position. Furthermore, the storage unit 22 stores the second correspondence relationship which is the correspondence relationship between the other position (second position) among the two positions between the movement start position X1 and the movement end position X2 of the movable part 11B of the robot 1 in the X direction and the target position on the image IM where the detection object DT should be located when the movable part 11B of the robot 1 is in the second position.

[0073] In this example, when the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1, the target position setting unit 231B sets the target position (Hz(X), Vt(X)) on the image IM where the detection object DT should be located when the position of the movable part 11B (hand) of the robot 1 in the X direction is neither the first position nor the second position based on the first correspondence relationship, the second correspondence relationship, and the position X of the movable part 11B of the robot 1 in the X direction.

[0074] In this example, in the same manner as the example shown in FIG. 1 to FIG. 3, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 based on the position (Hz, Vt) of the detection object 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 object DT should be located set by the target position setting unit 231B.

[0075] FIG. 10 is a flowchart for explaining an example of the process performed by the robot control device 2 of the first embodiment.

[0076] In the example shown in FIG. 10, at step S11, the robot teaching for registering the position and the posture of the robot 1 in the movement start position X1 of the movable part 11B (hand) of the robot 1 in the X direction is performed.

[0077] In detail, for example, the operator sets the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X-direction to X1, and sets the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Y-direction and the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the Z-direction so that the detection object 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.

[0078] At step S11A, the storage unit 22 stores the information showing the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) detected by the actuator sensor 13A. In other words, the registration of the position and the posture of the robot 1 in the movement start position X1 of the movable part 11B (hand) of the robot 1 in the X direction is performed.

[0079] At step S11B, the image acquisition unit 231A acquires the data of the image IM (refer to FIG. 5) including the detection object DT on the workpiece W1 captured by the visual sensor 14, and the storage unit 22 stores the data of the image IM.

[0080] At step S11C, the target position setting unit 231B calculates the position (coordinates) (Hz1, Vt1) (refer to FIG. 5) of the detection object DT on the image IM.

[0081] At step S11D, the target position setting unit 231B sets the position (Hz1, Vt1) as the target position of the detection object 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 when the visual feedback is performed by the robot control unit 232.

[0082] At step S11E, the storage unit 22 stores the first correspondence relationship which is the 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 object DT should be located when the movable part 11B of the robot 1 is in the movement start position X1 (i.e., at the time of the state shown in FIG. 4 and FIG. 5).

[0083] In other words, at step S11, the target position (Hz1, Vt1) of the detection object DT on the image IM when the movable part 11B (hand) of the robot 1 is in the movement start position X1 is taught.

[0084] Next, at step S12, the robot teaching for registering the position and the posture of the robot 1 in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X direction is performed.

[0085] In detail, for example, the position (actual coordinate value) of the movable part 11B (hand) of the robot 1 in the X direction is changed from X1 to X2 by the operator.

[0086] At step S12A, the storage unit 22 stores the information showing the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) detected by the actuator sensor 13A. In other words, the registration of the position and the posture of the robot 1 in the movement end position X2 of the movable part 11B (hand) of the robot 1 in the X direction is performed.

[0087] At step S12B, the image acquisition unit 231A acquires the data of the image IM (refer to FIG. 7) including the detection object DT on the workpiece W1 captured by the visual sensor 14, and the storage unit 22 stores the data of the image IM.

[0088] At step S12C, the target position setting unit 231B calculates the position (coordinates) (Hz2, Vt2) (refer to FIG. 7) of the detection object DT on the image IM.

[0089] At step S12D, the target position setting unit 231B sets the position (Hz2, Vt2) as the target position of the detection object DT on the image IM captured by the visual sensor 14 when the movable part 11B (hand) of the robot 1 ends moving in the X direction when the visual feedback is performed by the robot control unit 232.

[0090] At step S12E, the storage unit 22 stores the second correspondence relationship which is the correspondence relationship between the movement end position X2 of the movable part 11B of the robot 1 in the X direction and the target position (Hz2, Vt2) on the image IM where the detection object DT should be located when the movable part 11B of the robot 1 is in the movement end position X2 (i.e., at the time of the state shown in FIG. 6 and FIG. 7).

[0091] In other words, at step S12, the target position (Hz2, Vt2) of the detection object DT on the image IM when the movable part 11B (hand) of the robot 1 is in the movement end position X2 is taught.

[0092] Next, at step S13, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1.

[0093] In detail, for example, the operator sets the position of the movable part 11B (hand) of the robot 1 in the X-direction to the movement start position X1, and the control unit 232B starts the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 in the Y-direction. While the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 in the Y-direction is performed, the robot control unit 232 performs the control (control different from the visual feedback) to change the position of the movable part 11B (hand) of the robot 1 in the X-direction from the movement start position X1 to movement end position X2.

[0094] At step S13A, the position calculation unit 232A calculates the position (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 connection member 15 based on the position of the rotation shaft of each of the plurality of actuators 13 (servo motors) detected by each of the plurality of actuator sensors 13A (encoders).

[0095] At step S13B, the image acquisition unit 231A acquires the data of the image IM including the detection object DT on the workpiece WI captured by the visual sensor 14.

[0096] At step S13C, the target position setting unit 231B sets the target position (Hz(X), Vt(X)) on the image IM where the detection object DT should be located based on the first correspondence relationship, the second correspondence relationship, and the position X of the movable part 11B of the robot 1 in the X direction.

[0097] In detail, the target position setting unit 231B calculates the target position Hz(X) of the detection object DT on the image IM in the horizontal direction and the target position Vt(X) of the detection object DT on the image IM in the vertical direction based on the formulas described above.

[0098] In the example shown in FIG. 10, the process for calculating the target position (Hz(X), Vt(X)) of the detection object DT on the image IM is performed while the visual feedback is performed. In another example, the process for calculating the target position (Hz(X), Vt(X)) of the detection object DT on the image IM may be performed in pre-processing. In this example, a map which shows the correspondence relationship between the position X of the movable part 11B (hand) of the robot 1 in the X-direction and the target position (Hz(X), Vt(X)) of the detection object DT on the image IM is generated. By using the map, while the visual feedback is performed, the target position (Hz(X), Vt(X)) of the detection object DT on the image IM which corresponds to the position X of the movable part 11B (hand) of the robot 1 in the X-direction is set.

[0099] In the example shown in FIG. 10, at step S13D, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 in the Y-direction based on the position (Hz, Vt) of the detection object DT on the image IM indicated by the data acquired at step S13B and the target position (Hz(X), Vt(X)) on the image IM where the detection object DT should be located set at step S13C.

[0100] In detail, the robot control unit 232 performs the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 in the Y-direction so that the position (Hz, Vt) of the detection object DT on the image IM indicated by the data acquired at step S13B matches the target position (Hz(X), Vt(X)) on the image IM where the detection object DT should be located set at step S13C. As a result, regardless of where the detection object DT is located on the image IM, the movable part 11B (hand) of the robot 1 can be made to follow the workpiece W1 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.

[0101] In other words, at step S13, while the movable part 11B (hand) of the robot 1 is moved in the X direction, the control (visual feedback) of the position of the movable part 11B (hand) of the robot 1 in the Y-direction is performed. Furthermore, while the visual feedback is performed, the target position (Hz(X), Vt(X)) of the detection object DT on the image IM is changed in accordance with the position of the movable part 11B (hand) of the robot 1 in the X direction.Second Embodiment

[0102] The robot control device 2 of a second embodiment is configured in the same manner as the robot control device 2 of the first embodiment described above, except for the points described below.

[0103] FIG. 11 is a view showing an example of the robot control device 2 of the second embodiment. In the example shown in FIG. 11, the robot control device 2 includes an image process unit 2-1 and a robot control unit 2-2.

[0104] The image process unit 2-1 is configured by a computer including a communication unit 21-1, a storage unit 22-1, and a process unit 23-1.

[0105] The communication unit 21-1 is a communication interface and has an interface circuit for connecting the image process 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 is a memory such as ROM, RAM and the like, storage such as HDD, SDD, and the like. The storage unit 22-1 stores programs used in processes performed by the process unit 23-1 and various data. The process unit 23-1 is a processor and has a function as an image acquisition unit 231A-1 and a function as 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 functions as the target position setting unit 231B shown in FIG. 2.

[0106] The robot control unit 2-2 is configured by a computer including a communication unit 21-2, a storage unit 22-2, and a process unit 23-2.

[0107] 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 process unit 2-1 and the like via, for example, a signal line. The storage unit 22-2 is a memory such as ROM, RAM and the like, storage such as HDD, SDD, and the like. The storage unit 22-2 stores programs used in processes performed by the process unit 23-2 and various data. The process unit 23-2 is a processor and has a function as a position calculation unit 232A-2 and a function as a control unit 232B-2. The position calculation unit 232A-2 has the same functions as the position calculation unit 232A shown in FIG. 2. The control unit 232B-2 has the same functions as the control unit 232B shown in FIG. 2.Third Embodiment

[0108] The robot system 100 to which the robot control device 2 of a third embodiment is applied is configured in the same manner as 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.

[0109] 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 constituted by the servo motor, and has the encoder as the actuator sensor 13A.

[0110] In the robot system 100 to which the robot control device 2 of the third embodiment is applied, the actuator 13 is constituted by a stepping motor and does not have an actuator sensor.

[0111] In the robot system 100 to which the robot control device 2 of the third embodiment is applied, position and speed of a rotation shaft of the stepping motor serving as the actuator 13 are estimated based on a control signal (information showing a drive pulse) transmitted from the robot control device 2 to the stepping motor serving as the actuator 13.

[0112] In other words, 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-, Y-, and Z-directions) of the movable part 11B (hand) of the robot 1 connected to the visual sensor 14 via the connection member 15 based on the position of each rotation shaft of the plurality of actuators 13 (stepping motors) estimated based on the control signal (information showing the drive pulse) transmitted to the actuator 13 (stepping motor).Fourth Embodiment

[0113] The robot system 100 to which the robot control device 2 of a fourth embodiment is applied is configured in the same manner as 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.

[0114] 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 the six-axis vertical articulated robot.

[0115] Conversely, 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 the six-axis vertical articulated robot (for example, horizontal articulated robot, Cartesian coordinate robot, parallel link robot, or the like).

[0116] According to the robot control device 2 of the first to fourth embodiments, even if the appearance of the detection object DT on the workpiece WI moving in the transport direction included 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 so as to follow the workpiece W1 moving in the transport direction based on the image IM generated by the visual sensor 14.

[0117] Though 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, replacements, modifications, or partial deletions can be made to these embodiments within the scope of the spirit of the invention, or within the scope of the idea and intent of the present invention derived from the contents described in the claims and their equivalents. For example, the order of each operation and the order of each process of the embodiments described above are shown as examples, and are not limited to these. The same applies when numerical values or formulas are used in the description of the embodiments described above. Furthermore, appropriate combinations of some of the embodiments described above are included in the scope of the present disclosure.

[0118] In relation to the embodiments and modification examples described above, the following supplementary notes are further disclosed.Supplementary Note 1

[0119] A robot control device (2) including:

[0120] an image acquisition unit (231A; 231A-1) which acquires data of an image (IM) including a detection object (DT) on a workpiece (W1) which is moving in a transport direction and generated by a visual sensor (14) provided on a movable part (11B) of a robot (1);

[0121] a storage unit (22; 22-1) which stores 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 transport direction, and a first detection object target position (Hz1, Vt1) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in 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 object target position (Hz2, Vt2) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in the second position (X2); and

[0122] a target position setting unit (231B; 231B-1) which sets the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (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

[0123] The robot control device (2) according to Supplementary Note 1, wherein the optical axis direction is a direction substantially perpendicular to the transport direction.Supplementary Note 3

[0124] The robot control device (2) according to Supplementary Note 1 or 2, including a robot control unit (231; 2-2) which performs control of the position (X) of the movable part (11B) based on a position (Hz, Vt) of the detection object (DT) on the image (IM) and the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (DT) should be located set by the target position setting unit (231B; 231B-1).Supplementary Note 4

[0125] The robot control device (2) according to Supplementary Note 3, wherein when the robot control unit (232; 2-2) brings the movable part (11B) close to the workpiece (W1) in the optical axis direction, the robot control unit (232; 2-2) performs the control of the position of the movable part (11B) based on the position (Hz, Vt) of the detection object (DT) on the image (IM) and the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (DT) should be located set by the target position setting unit (231B; 231B-1), only in the transport direction.Supplementary Note 5

[0126] The robot control device (2) according to Supplementary Note 4, wherein the robot control unit (232; 2-2) performs the control of the position (X) of the movable part (11B) in the optical axis direction based on information showing the first position (X1) and information showing the second position (X2) stored in the storage unit (22).Supplementary Note 6

[0127] The robot control device according to any one of Supplementary Notes 1 to 5, wherein the first position (X1) is a movement start position of the movable part (11B) in the optical axis direction,

[0128] the second position (X2) is a movement end position of the movable part (11B) in the optical axis direction,

[0129] the first correspondence relationship is a correspondence relationship between the movement start position (X1) and the first detection object target position (Hz1, Vt1) which is the target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in the movement start position (X1),

[0130] the second correspondence relationship is a correspondence relationship between the movement end position (X2) and the second detection object target position (Hz2, Vt2) which is the target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in the movement end position (X2), and

[0131] the target position setting unit (231B; 231B-1) sets the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (DT) should be located when the position (X) of the movable part (11B) 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 (X) of the movable part (11B) in the optical axis direction.Supplementary Note 7

[0132] The robot control device (2) according to any one of Supplementary Notes 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 registration of position and posture of the robot (1) is performed in robot teaching.Supplementary Note 8

[0133] The robot control device according to any one of Supplementary Notes 1 to 7, wherein the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (DT) should be located set by the target position setting unit (231B; 231B-1) is shown by horizontal coordinate value (Hz(X)) and vertical coordinate value (Vt(X)), the horizontal coordinate value (Hz(X)) changes in proportion to 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 change in the position (X) of the movable part (11B) in the optical axis direction.Supplementary Note 9

[0134] The robot control device (2) according to any one of Supplementary Notes 1 to 8, wherein 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), the target position setting unit (231B; 231B-1) sets the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (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.Supplementary Note 10

[0135] A robot control method including:

[0136] an image acquisition step for acquiring data of an image (IM) including a detection object (DT) on a workpiece (W1) which is moving in a transport direction generated by a visual sensor (14) provided on a movable part (11B) of a robot (1);

[0137] a storage step for 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 transport direction, and a first detection object target position (Hz1, Vt1) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in 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 object target position (Hz2, Vt2) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in the second position (X2); and

[0138] a target position setting step for setting the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (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

[0139] A program for causing a computer to perform:

[0140] an image acquisition step for acquiring data of an image (IM) including a detection object (DT) on a workpiece (W1) which is moving in a transport direction generated by a visual sensor (14) provided on a movable part (11B) of a robot (1);

[0141] a storage step for 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 transport direction, and a first detection object target position (Hz1, Vt1) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in 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 object target position (Hz2, Vt2) which is a target position on the image (IM) where the detection object (DT) should be located when the movable part (11B) is in the second position (X2); and

[0142] a target position setting step for setting the target position (Hz(X), Vt(X)) on the image (IM) where the detection object (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.DESCRIPTION OF REFERENCE SIGNS100 robot system

[0144] 1 robot

[0145] 11 link part

[0146] 11A base part

[0147] 11B movable part

[0148] 12 joint part

[0149] 13 actuator

[0150] 13A actuator sensor

[0151] 14 visual sensor

[0152] 15 connection member

[0153] 2 robot control device

[0154] 21 communication unit

[0155] 22 storage unit

[0156] 23 process unit

[0157] 231 image process unit

[0158] 231A image acquisition unit

[0159] 231B target position setting unit

[0160] 232 robot control unit

[0161] 232A position detection unit

[0162] 232B control unit

[0163] C conveyor

[0164] W1 workpiece

[0165] DT detection object

[0166] W2 workpiece

[0167] IM image

Claims

1. A robot control device comprising:an image acquisition unit which acquires data of an image including a detection object on a workpiece which is moving in a transport direction and generated by a visual sensor provided on a movable part of a robot;a storage unit which stores at least a first correspondence relationship which is a correspondence relationship between a first position of the movable part in an optical axis direction of the visual sensor which is a direction intersecting the transport direction, and a first detection object target position which is a target position on the image where the detection object should be located when the movable part is in 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 object target position which is a target position on the image where the detection object should be located when the movable part is in the second position; anda target position setting unit which sets the target position on the image where the detection object should be located based on the first correspondence relationship, the second correspondence relationship, and a 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 a direction substantially perpendicular to the transport direction.

3. The robot control device according to claim 1, comprising a robot control unit which performs control of the position of the movable part based on a 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. The robot control device according to claim 3, wherein when the robot control unit brings the movable part close to the workpiece in the optical axis direction, the robot control unit performs the control of 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, only in the transport direction.

5. The robot control device according to claim 4, wherein the robot control unit performs the control of the position of the movable part in the optical axis direction based on information showing the first position and information showing the second position stored in the storage unit.

6. The robot control device according to claim 1, 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 object target position which is the target position on the image where the detection object should be located when the movable part is in the movement start position,the second correspondence relationship is a correspondence relationship between the movement end position and the second detection object target position which is the target position on the image where the detection object should be located when the movable part is in the movement end position, andthe target position setting unit sets the target position on the image where the detection object 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. The robot control device according to claim 1, 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 registration of position and posture of the robot is performed in robot teaching.

8. The robot control device according to claim 1, wherein the target position on the image where the detection object should be located set by the target position setting unit is shown by horizontal coordinate value and vertical coordinate value,the horizontal coordinate value changes in proportion to change in the position of the movable part in the optical axis direction, andthe vertical coordinate value changes in proportion to change in the position of the movable part in the optical axis direction.

9. The robot control device according to claim 1, wherein when the position of the movable part in the optical axis direction is neither the first position nor the second position, the target position setting unit sets the target position on the image where the detection object 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.

10. A robot control method comprising:an image acquisition step for acquiring data of an image including a detection object on a workpiece which is 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 an optical axis direction of the visual sensor which is a direction intersecting the transport direction, and a first detection object target position which is a target position on the image where the detection object should be located when the movable part is in 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 object target position which is a target position on the image where the detection object should be located when the movable part is in the second position; anda target position setting step for setting the target position on the image where the detection object should be located based on the first correspondence relationship, the second correspondence relationship, and a position of the movable part in the optical axis direction.

11. A non-transitory recording medium having recorded thereon a program for causing a computer to perform:an image acquisition step for acquiring data of an image including a detection object on a workpiece which is 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 an optical axis direction of the visual sensor which is a direction intersecting the transport direction, and a first detection object target position which is a target position on the image where the detection object should be located when the movable part is in 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 object target position which is a target position on the image where the detection object should be located when the movable part is in the second position; anda target position setting step for setting the target position on the image where the detection object should be located based on the first correspondence relationship, the second correspondence relationship, and a position of the movable part in the optical axis direction.