Apparatus, control device, system, method, and computer program for acquiring positional relationship between robot and work equipment

The device simplifies the determination of positional relationships between robots and work equipment by using contact-based data acquisition and coordinate system calculations, enabling precise alignment without complex point touches.

JP7568735B2Active Publication Date: 2024-10-16FANUC LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022554024
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-30
Filing Date
2021-09-28
Publication Date
2024-10-16
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

Existing technologies face challenges in easily obtaining the positional relationship between robots and work equipment, requiring complex processes to determine their relative positions.

Method used

A device and method that acquires the positional relationship by operating a robot's hand portion to obtain position data, bringing it into contact with a known position on the work equipment, and using coordinate systems to calculate the positional relationship based on acquired data.

Benefits of technology

Simplifies the process of determining the positional relationship between robot and work equipment coordinate systems, allowing for precise and efficient alignment without the need for multiple point touches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568735000001
    Figure 0007568735000001
  • Figure 0007568735000002
    Figure 0007568735000002
  • Figure 0007568735000003
    Figure 0007568735000003
Patent Text Reader

Abstract

A technique for more easily acquiring data indicating a positional relationship between a robot coordinate system and a working machine coordinate system is required. A device 60 for acquiring a positional relationship between a robot coordinate system set in a robot 12 and a working machine coordinate system set in a working machine installed outside the robot 12, comprises a position data acquisition unit 62 that acquires, when a finger part of the robot 12 is placed in a predetermined position and posture with respect to the working machine, first position data indicating the position and posture of the finger part with respect to the robot coordinate system, and second position data indicating the position and the posture of the finger part with respect to the working machine coordinate system; and a positional relationship acquisition unit 64 that acquires third position data indicating the positional relationship using the first position data and the second position data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an apparatus, a control device, a system, a method, and a computer program for acquiring the positional relationship between a robot and a work device. [Background technology]

[0002] 2. Description of the Related Art There is known a technique for acquiring the relative position between a work device and a robot by using a robot to touch up a plurality of points set on the work device that holds a workpiece (for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2010-76054 A Summary of the Invention [Problem to be solved by the invention]

[0004] There is a demand for technology that makes it easier to obtain data showing the positional relationship between robots and work equipment. [Means for solving the problem]

[0005] In one aspect of the present disclosure, an apparatus for acquiring a positional relationship between a robot coordinate system set in a robot and a work equipment coordinate system set in a work equipment installed outside the robot includes a position data acquisition unit that acquires first position data indicating a position and orientation of the robot's end effector with respect to the robot coordinate system when the end effector is placed in a predetermined position and orientation with respect to the work equipment, and second position data indicating the position and orientation of the end effector with respect to the work equipment coordinate system, and a positional relationship acquisition unit that acquires the positional relationship based on the first position data and the second position data.

[0006] In another aspect of the present disclosure, a device for acquiring the positional relationship between a robot and a work equipment is configured to acquire the positional relationship based on the position and posture of the robot relative to the work equipment when the robot is brought into contact with an abutment part provided at a known position relative to the work equipment.

[0007] In yet another aspect of the present disclosure, a method for acquiring a positional relationship between a robot coordinate system set in a robot and a work equipment coordinate system set in a work equipment installed outside the robot includes acquiring first position data indicating a position and orientation of the robot's end equipment with respect to the robot coordinate system when the end equipment is placed in a predetermined position and orientation with respect to the work equipment, and second position data indicating the position and orientation of the end equipment with respect to the work equipment coordinate system, and acquiring the positional relationship based on the first position data and the second position data.

[0008] In yet another aspect of the present disclosure, a method for acquiring a positional relationship between a robot and a work equipment acquires the positional relationship based on the position and posture of the robot relative to the work equipment when the robot is brought into contact with an abutment portion provided at a known position relative to the work equipment.

[0009] In yet another aspect of the present disclosure, a computer program causes the processor to function as a position data acquisition unit that acquires first position data indicating the position and orientation of the robot's endoscope unit relative to the robot coordinate system when the endoscope unit of the robot is placed in a predetermined position and orientation relative to the work equipment, and second position data indicating the position and orientation of the endoscope unit relative to the work equipment coordinate system, and a positional relationship acquisition unit that acquires the positional relationship based on the first position data and the second position data, in order to acquire the positional relationship between a robot coordinate system set in the robot and a work equipment coordinate system set in a work equipment installed outside the robot. Effect of the Invention

[0010] According to the present disclosure, by arranging the end effector of the robot in one position and posture, it is possible to obtain third position data indicating the positional relationship between the robot coordinate system (i.e., the robot) and the work equipment coordinate system (i.e., the work equipment). This makes it possible to greatly simplify the process of determining the positional relationship between the robot coordinate system and the work equipment coordinate system. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a perspective view of a system according to one embodiment. [Diagram 2] FIG. 2 is a block diagram of the system shown in FIG. [Diagram 3] FIG. 2 is an enlarged view of the hand of the robot shown in FIG. [Figure 4] 2 is an enlarged view of a contact portion shown in FIG. 1. [Diagram 5] FIG. 2 is an enlarged view of a main part of FIG. [Figure 6] This shows a state in which the robot's hand is in contact with the contact portion shown in Figure 4. [Figure 7] 1 is a perspective view of a system according to another embodiment. [Figure 8] FIG. 8 is a block diagram of the system shown in FIG. [Figure 9] FIG. 11 is a block diagram of a system according to yet another embodiment. [Figure 10] FIG. 11 is a block diagram of a system according to yet another embodiment. [Figure 11] 1 illustrates a contact detection sensor according to an embodiment. [Figure 12] 11 is a flowchart showing an example of an operation flow of the system shown in FIG. [Figure 13] FIG. 11 is a block diagram of a system according to yet another embodiment. [Figure 14] FIG. 11 is a block diagram of a system according to yet another embodiment. [Figure 15] FIG. 11 is a block diagram of a system according to yet another embodiment. [Figure 16] 1 illustrates a position detection sensor according to an embodiment. [Figure 17] FIG. 13 is a perspective view of a system according to yet another embodiment. [Figure 18] FIG. 18 is a block diagram of the system shown in FIG. 17. [Figure 19] FIG. 18 is an enlarged view of a main part of FIG. [Figure 20] FIG. 18 is an enlarged perspective view of the workpiece shown in FIG. 17. [Figure 21] FIG. 18 is a cross-sectional view of a main part of FIG. [Figure 22] 18 is a front view of the work holding mechanism and the contact portion shown in FIG. 17. [Figure 23] 18 is a cross-sectional view showing a state in which a workpiece according to another embodiment is gripped by a robot hand and held by the workpiece holding mechanism shown in FIG. 17. [Figure 24] FIG. 24 is an enlarged perspective view of the workpiece shown in FIG. 23 and a robot hand that grips the workpiece. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings. In various embodiments described below, similar elements are given the same reference numerals, and duplicated explanations will be omitted. First, a system 10 according to one embodiment will be described with reference to Figs. 1 and 2. The system 10 includes a robot 12, a work device 14, and a control device 16.

[0013] In this embodiment, the robot 12 is a vertical articulated robot (e.g., a six-axis robot) and has a robot base 18, a rotating body 20, a robot arm 22, a wrist unit 24, and an end effector 26. The robot base 18 is fixed to a support mechanism 28. The support mechanism 28 may be, for example, a base fixed to the floor of a work cell, a traveling device capable of self-propelling within a work cell, or a hand cart that is manually moved by an operator.

[0014] The rotating body 20 is mounted on the robot base 18 so as to be rotatable around a vertical axis. The robot arm 22 has a lower arm 30 mounted on the rotating body 20 so as to be rotatable around a horizontal axis, and an upper arm 32 rotatably mounted on the tip of the lower arm 30. The wrist 24 is rotatably mounted on the tip of the upper arm 32, and rotates the end effector 26 around the wrist axis A1.

[0015] 3, in this embodiment, the end effector 26 is a robot hand capable of gripping a workpiece WP1. Specifically, the end effector 26 has a base portion 34, a plurality of claw portions 36 provided on the base portion 34 in an openable and closable manner, and a claw driving portion (not shown) that drives the claw portions 36.

[0016] The base portion 34 is detachably attached to the tip portion (so-called wrist flange) of the wrist portion 24. The claw portions 36 are provided on the base portion 34 so as to be movable in directions approaching and separating from each other. Each claw portion 36 has a gripping surface 36a and an engagement surface 36b on its inner side. The gripping surface 36a is a substantially flat surface. The engagement surface 36b is a flat surface substantially perpendicular to the gripping surface 36a and extends inward from the top edge of the engagement surface 36b. The claw drive portion is, for example, an air cylinder or a motor, and opens and closes the claw portions 36 in response to commands from the control device 16, thereby enabling the end effector 26 to grip and release the workpiece WP1.

[0017] In this embodiment, the workpiece WP1 is a substantially rectangular parallelepiped member having a bottom surface B1, a top surface B2, and side surfaces B3, B4, and B5. The bottom surface B1 and the top surface B2 are planes that are substantially parallel to each other. The side surfaces B3 and B4 are planes that are substantially parallel to each other and opposed to each other, and are orthogonal to the bottom surface B1 and the top surface B2. The side surface B5 is a plane that is orthogonal to the bottom surface B1, the top surface B2, and the side surfaces B3 and B4.

[0018] The end effector 26 grips the workpiece WP1 at a predetermined gripping position. When the end effector 26 grips the workpiece WP1, the gripping surfaces 36a of the pair of claws 36 abut against the side surfaces B3 and B4 of the workpiece WP1 at predetermined positions on the side surfaces B3 and B4, respectively, while the engagement surfaces 36b of the pair of claws 36 engage with the top surface B2 of the workpiece WP1 at predetermined positions on the top surface B2.

[0019] The workpiece WP1 that the end effector 26 grasps at a predetermined grasping position can be regarded as being integral with the end effector 26, in other words, as a part of the end effector 26. In this embodiment, the tip (wrist flange) of the wrist 24, the end effector 26, and the workpiece WP1 that the end effector 26 grasps at a predetermined grasping position are referred to as the hand 40 of the robot 12.

[0020] A plurality of servo motors 38 (FIG. 2) are built into each of the components (robot base 18, rotating body 20, lower arm 30, upper arm 32, wrist 24) of the robot 12. In response to a command from the control device 16, each servo motor 38 rotates each movable element of the robot 12 (rotating body 20, lower arm 30, upper arm 32, wrist 24) around a drive shaft.

[0021] The work equipment 14 is installed outside the robot 12. The work equipment 14 is, for example, a work holder, a work table device, or a machine tool. The work holder is fixed to a work cell, and a work is fixed thereto during work. The work table device has a work table to which a work is fixed, and a movement mechanism (such as a ball screw mechanism) that moves the work table.

[0022] A machine tool is a lathe, milling machine, or machining center capable of performing multiple types of machining, and has a work holding mechanism (jig, work table, chuck mechanism, etc.) that fixes a workpiece, a tool that machines the workpiece fixed to the work holding mechanism, and a moving mechanism (ball screw mechanism, etc.) that moves the work holding mechanism and the tool relatively.

[0023] An abutment portion 44 is fixed to the surface 42 of the working implement 14 so as to protrude outward from the surface 42. As shown in Fig. 4, the abutment portion 44 has a first portion 46 and a second portion 48. The first portion 46 extends linearly in one direction and has an inner surface 46a that is approximately perpendicular to the surface 42. On the other hand, the second portion 48 extends linearly from one end of the first portion 46 so as to be perpendicular to the first portion 46, and has an inner surface 48a that is approximately perpendicular to the inner surface 46a of the first portion 46 and the surface 42.

[0024] 2, the control device 16 controls the operation of the robot 12. Specifically, the control device 16 is a computer having a processor 50, a memory 52, and an I / O interface 54. The processor 50 has a CPU, a GPU, or the like, and is communicatively connected to the memory 52 and the I / O interface 54 via a bus 56. The processor 50 performs arithmetic processing to realize various functions described below while communicating with the memory 52 and the I / O interface 54.

[0025] The memory 52 has a RAM or a ROM, etc., and temporarily or permanently stores various data. The I / O interface 54 has, for example, an Ethernet (registered trademark) port, a USB port, an optical fiber connector, or an HDMI (registered trademark) terminal, and communicates data with an external device in a wired or wireless manner under instructions from the processor 50. The servo motor 38 described above is connected to the I / O interface 54 so as to be able to communicate in a wired or wireless manner.

[0026] 1, a robot coordinate system C1 is set for the robot 12. The robot coordinate system C1 is a coordinate system for automatically controlling the operation of each movable element of the robot 12, and is fixedly set with respect to the robot base 18 (or the support mechanism 28). In this embodiment, the robot coordinate system C1 is set with respect to the robot 12 so that its origin is located at the center of the robot base 18 and its z axis coincides with the rotation axis of the rotating body 20.

[0027] 3, a mechanical interface (MIF) coordinate system C2 is set for the hand 40. The MIF coordinate system C2 is a coordinate system that defines the position and posture of the hand 40 (specifically, the end effector 26) in the robot coordinate system C1. In this embodiment, the MIF coordinate system C2 is set for the hand 40 so that its origin is located at the center of the tip of the wrist 24 and its z-axis coincides with the wrist axis A1.

[0028] When moving the end device 40 (end effector 26), the processor 50 sets the MIF coordinate system C2 in the robot coordinate system C1, and controls each servo motor 38 of the robot 12 to position the end device 40 at the position and orientation represented by the set MIF coordinate system C2. In this way, the processor 50 can position the end device 40 at any position and orientation in the robot coordinate system C1. Therefore, the positional relationship of the MIF coordinate system C2 with respect to the robot coordinate system C1 (i.e., the origin position and the directions of each axis) is known.

[0029] On the other hand, a user coordinate system C3 is set for the workpiece WP1 held by the end effector 26 at a predetermined gripping position. In this embodiment, the user coordinate system C3 is set for the workpiece WP1 such that its origin is located at the vertex F formed by the bottom surface B1 and the side surfaces B4 and B5 of the workpiece WP1 held by the end effector 26, its xz plane is parallel to the side surface B5 of the workpiece WP1 held by the end effector 26, and its yz plane is parallel to the side surfaces B3 and B4 of the workpiece WP1 held by the end effector 26 (or the gripping surface 36a of the end effector 26).

[0030] Here, as described above, the workpiece WP1 grasped by the end effector 26 at a predetermined gripping position can be regarded as one with the end effector 26 (i.e., as part of the end effector 26), so if the shape of the workpiece WP1 and the gripping position are known, the positional relationship (origin position and directions of each axis) of the user coordinate system C3 set for the workpiece WP1 grasped by the end effector 26 at the gripping position with respect to the MIF coordinate system C2 becomes known.

[0031] Therefore, the positional relationship of the user coordinate system C3 with respect to the robot coordinate system C1 is known via the MIF coordinate system C2. More specifically, the positional relationship of the user coordinate system C3 with respect to the robot coordinate system C1 can be expressed as coordinates D (X, Y, Z, W, P, R) of the robot coordinate system C1.

[0032] Here, coordinates D(X,Y,Z) represent the coordinates in the robot coordinate system C1 of the origin of the user coordinate system C3. On the other hand, coordinates D(W,P,R) represent the inclinations (so-called yaw, pitch, roll) of the x-axis, y-axis, and z-axis of the user coordinate system C3 relative to the x-axis, y-axis, and z-axis of the robot coordinate system C1. A coordinate transformation matrix M13 from the robot coordinate system C1 to the user coordinate system C3 is a known homogeneous transformation matrix, and each parameter of the coordinate transformation matrix M13 is determined from the coordinates D(X,Y,Z,W,P,R).

[0033] 1, a work equipment coordinate system C4 is set for the work equipment 14. The work equipment coordinate system C4 defines the position and orientation of each component of the work equipment 14, and each component of the work equipment 14 is expressed as coordinates in the work equipment coordinate system C4. In this embodiment, the work equipment coordinate system C4 is set fixedly with respect to the work equipment 14 so that its origin is located at one end point of the bottom surface of the work equipment 14 and its z-axis direction is parallel to the height direction (e.g., vertical direction) of the work equipment 14.

[0034] The surface 42 and the abutment portion 44 of the work implement 14 are disposed at a known position in the work implement coordinate system C4. In this embodiment, the surface 42 of the work implement 14 is disposed at a known position in the work implement coordinate system C4 so that it is parallel to the xy plane of the work implement coordinate system C4, the inner surface 46a of the abutment portion 44 is parallel to the xz plane of the work implement coordinate system C4, and the inner surface 48a of the abutment portion 44 is parallel to the yz plane of the work implement coordinate system C4. Therefore, the vertex G formed by the surface 42 and the inner surfaces 46a and 48a is expressed as known coordinates in the work implement coordinate system C4.

[0035] In this embodiment, the positional relationship between the robot coordinate system C1 (i.e., the robot 12) and the work equipment coordinate system C4 (i.e., the work equipment 14) is unknown. The processor 50 functions as a device 60 that acquires the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4. The function of the device 60 will be described below.

[0036] First, the robot 12 brings the workpiece WP1, which is being held by the end effector 26 at a predetermined gripping position, into contact with the contact portion 44, as shown in Figures 1, 5 and 6. At this time, the bottom surface B1 of the workpiece WP1 comes into surface contact with the surface 42 of the working device 14, the side surface B5 of the workpiece WP1 comes into surface contact with the inner surface 46a of the contact portion 44, and the side surface B4 of the workpiece WP1 comes into surface contact with the inner surface 48a of the contact portion 44. In this way, the hand portion 40 is positioned stationary at a predetermined position PS1 and attitude OR1 relative to the working device 14.

[0037] At this time, the positional relationship of the user coordinate system C3 with respect to the work tool coordinate system C4 is known. Specifically, it can be considered that the origin of the user coordinate system C3 coincides with the position of the above-mentioned vertex G, the xy plane of the user coordinate system C3 is parallel to the surface 42 of the work tool 14, the xz plane of the user coordinate system C3 is parallel to the inner surface 46a of the contact portion 44, and the yz plane of the user coordinate system C3 is parallel to the inner surface 48a of the contact portion 44.

[0038] Therefore, the coordinates of the user coordinate system C3 in the work device coordinate system C4 at this time can be expressed as known coordinates E1 (x1, y1, z1, w1, p1, r1). The coordinates E1 (x1, y1, z1) represent the coordinates of the origin (i.e., vertex G) of the user coordinate system C3 in the work device coordinate system C4. On the other hand, the coordinates E1 (w1, p1, r1) represent the inclinations (so-called yaw, pitch, roll) of the x-axis, y-axis, and z-axis of the user coordinate system C3 relative to the x-axis, y-axis, and z-axis of the work device coordinate system C4.

[0039] In addition, the coordinate transformation matrix M43 from the work device coordinate system C4 to the user coordinate system C3 _1 is a known homogeneous transformation matrix, and the coordinate transformation matrix M _1 Each parameter of is determined from the coordinate E1 (x1, y1, z1, w1, p1, r1). In this way, the positional relationship between the work device coordinate system C4 and the user coordinate system C3 can be made known.

[0040] In this way, by bringing the end device 40 (specifically, the workpiece WP1) into contact with the contact portion 44, the end device 40 is positioned stationary at a predetermined position PS1 and orientation OR1 relative to the work device 14, and the position PS1 and orientation OR1 of the end device 40 relative to the work device coordinate system C4 at this time are expressed as coordinates E1 (x1, y1, z1, w1, p1, r1) in the user coordinate system C3. Therefore, the contact portion 44 functions as an element for expressing the position PS1 and orientation OR1 of the end device 40 in the work device coordinate system C4.

[0041] The processor 50 acquires second position data β1 indicating the position PS1 and orientation OR1 relative to the work device coordinate system C4 when the hand 40 is placed at the position PS1 and orientation OR1. As an example, the processor 50 acquires the above-mentioned coordinates E1 (x1, y1, z1, w1, p1, r1) or the coordinate transformation matrix M43 as the second position data β1. _1 Get the.

[0042] As another example, the processor 50 may convert, as the second position data β1, a coordinate transformation matrix M34 from the user coordinate system C3 to the work equipment coordinate system C4 when the hand 40 is placed at the position PS1 and the orientation OR1. _1 This coordinate transformation matrix M34 _1 is the above coordinate transformation matrix M43 _1 Inverse transformation matrix: inv(M43 _1 ) can be calculated as

[0043] As yet another example, the processor 50 may acquire, as the second position data β1, coordinates E1' (x1', y1', z1', w1', p1', r1') of the work device coordinate system C4 in the user coordinate system C3 when the hand 40 is placed at the position PS1 and the orientation OR1. The coordinates E1' are calculated using the coordinate transformation matrix M34 _1 (=inv(M43 _1 )) can be determined.

[0044] In this manner, in this embodiment, coordinates E1 (x1, y1, z1, w1, p1, r1), coordinates E1' (x1', y1', z1', w1', p1', r1'), coordinate transformation matrix M43 _1 , and the coordinate transformation matrix M34 _1 configures second position data β1, and the processor 50 functions as a position data acquisition unit 62 (FIG. 2) that acquires the second position data β1.

[0045] On the other hand, the processor 50 acquires first position data α1 indicating the position PS1 and orientation OR1 relative to the robot coordinate system C1 when the end device 40 is placed at the position PS1 and orientation OR1. Here, when the end device 40 is placed at the position PS1 and orientation OR1, the coordinates of the user coordinate system C3 in the robot coordinate system C1 are expressed as known coordinates D1 (X1, Y1, Z1, W1, P1, R1), and a coordinate transformation matrix M13 from the robot coordinate system C1 to the user coordinate system C3 at this time is _1 Each parameter is determined from the coordinates D1 (X1, Y1, Z1, W1, P1, R1).

[0046] As an example, the processor 50 may use the above-mentioned coordinates D1 (X1, Y1, Z1, W1, P1, R1) or the coordinate transformation matrix M13 as the first position data α1. _1 As another example, the processor 50 acquires, as the first position data α1, a coordinate transformation matrix M31 from the user coordinate system C3 to the robot coordinate system C1 when the hand unit 40 is placed at the position PS1 and the orientation OR1. _1 This coordinate transformation matrix M31 _1 is the above coordinate transformation matrix M13 _1 Inverse transformation matrix: inv(M13 _1 ) can be calculated as

[0047] As yet another example, the processor 50 may acquire, as the first position data α1, coordinates D1' (X1', Y1', Z1', W1', P1', R1') of the robot coordinate system C1 in the user coordinate system C3 when the hand 40 is placed at the position PS1 and the orientation OR1. The coordinates D1' are calculated by the coordinate transformation matrix M31. _1 (=inv(M13 _1 )) can be determined.

[0048] In this embodiment, the coordinates D1 (X1, Y1, Z1, W1, P1, R1), the coordinates D1' (X1', Y1', Z1', W1', P1', R1'), the coordinate transformation matrix M13 _1 , and the coordinate transformation matrix M31 _1 configures the first position data α1, and the processor 50 functions as the position data acquisition unit 62 (FIG. 2) to acquire the first position data α1.

[0049] Next, the processor 50 uses the acquired first position data α1 and second position data β1 to acquire third position data γ1 indicating the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4. As an example, the processor 50 acquires, as the third position data γ1, a coordinate transformation matrix M14 from the robot coordinate system C1 to the work equipment coordinate system C4. _1 Specifically, the processor 50 obtains the coordinate transformation matrix M13, which is the first position data α1. _1 and the coordinate transformation matrix M34 which is the second position data β1_1 (or M43 _1 ) and M14 _1 =M13 _1 M34 _1 =M13 _1 ·inv(M43 _1 ) from the formula, the coordinate transformation matrix M14 _1 can be calculated.

[0050] As another example, the processor 50 may acquire coordinates D2 (X2, Y2, Z2, W2, P2, R2) of the work equipment coordinate system C4 in the robot coordinate system C1 as the third position data γ1. The coordinates D2 (X2, Y2, Z2, W2, P2, R2) are calculated by the known coordinate transformation matrix M14. _1 It can be determined from each parameter.

[0051] As yet another example, the processor 50 may calculate the third position data γ1 by using a coordinate transformation matrix M41 from the work equipment coordinate system C4 to the robot coordinate system C1. _1 This coordinate transformation matrix M41 may be obtained. _1 is the above-mentioned coordinate transformation matrix M14 _1 Inverse transformation matrix: inv(M14 _1 ) or the coordinate transformation matrix M41 _1 is the coordinate transformation matrix M31 which is the first position data α1 _1 (or M13 _1 ) and the coordinate transformation matrix M43 which is the second position data β1 _1 Using the and, M41 _1 =M43 _1 M31 _1 =M43 _1 ·inv(M13 _1 ) can also be calculated from the formula:

[0052] As yet another example, the processor 50 may acquire coordinates E2 (x2, y2, z2, w2, p2, r2) of the robot coordinate system C1 in the work equipment coordinate system C4 as the third position data γ1. The coordinates E2 are calculated by the above-mentioned coordinate transformation matrix M41. _1 It can be determined from each parameter.

[0053] In this manner, in this embodiment, the processor 50 uses the first position data α1 and the second position data β1 to derive the third position data γ1 (coordinate transformation matrix M14 _1 , coordinate transformation matrix M41 _1 , coordinate D2, or coordinate E2).

[0054] As described above, the processor 50 functions as a device 60 including a position data acquisition unit 62 and a positional relationship acquisition unit 64, and acquires the third position data γ1 indicating the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4 from the first position data α1 and the second position data β1. With this configuration, the third position data γ1 can be acquired by placing the end device 40 at one position PS1 and orientation OR1, without executing a process of touching up multiple points set on the work equipment 14 with the end device 40. This makes it possible to greatly simplify the process of determining the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4.

[0055] In this embodiment, the end portion 40 is placed at the position PS1 and orientation OR1 by contacting the end portion 40 with the contact portion 44 for expressing the position PS1 and orientation OR1 of the end portion 40 in the work device coordinate system C4. According to this configuration, the position PS1 and orientation OR1 of the end portion 40 with respect to the work device coordinate system C4 (specifically, the positional relationship in the user coordinate system C3) can be made known simply by contacting the end portion 40 with the contact portion 44, so that the second position data β1 can be acquired easily and with high accuracy.

[0056] Furthermore, in this embodiment, the device 60 is configured to acquire the positional relationship (specifically, the third position data γ1) between the robot 12 and the work implement 14 based on the position and posture (specifically, the second position data β1) of the robot 12 relative to the work implement 14 when the robot 12 (specifically, the hand 40) is brought into contact with the contact portion 44. With this configuration, the positional relationship (third position data γ1) between the robot 12 and the work implement 14 can be acquired simply by bringing the robot 12 into contact with the contact portion 44.

[0057] The abutment portion 44 is not limited to the form shown in FIG. 4, and may have any structure, such as a hole, recess, or protrusion formed in the work equipment 14, or a work holding mechanism (chuck mechanism, jig) that fixes the workpiece WP1, as long as the hand portion 40 (e.g., the workpiece WP1) can be abutted against the abutment portion 44 to position the hand portion 40 stationary and make the position PS1 and orientation OR1 (positional relationship in the user coordinate system C3) of the hand portion 40 relative to the work equipment coordinate system C4 known.

[0058] Next, a system 70 according to another embodiment will be described with reference to Fig. 7 and Fig. 8. The system 70 differs from the above-mentioned system 10 in that the system 70 further includes a teaching device 72. The teaching device 72 is a computer such as a so-called teaching pendant or a tablet-type terminal device, and is connected to the I / O interface 54 of the control device 16 in a wired or wireless manner so as to be able to communicate with each other.

[0059] The teaching device 72 has a processor (not shown), a memory (not shown), a display device 74, and an input device 76. The display device 74 has a liquid crystal display, an organic EL display, or the like, and displays various data. The input device 76 has a push button, a touch panel, or the like, and accepts input operations from an operator.

[0060] In the system 70, an operator operates the teaching device 72 to teach the robot 12 an operation for positioning the end effector unit 40 of the robot 12 at a position PS1 and an attitude OR1. Specifically, the operator operates the input device 76 while visually checking the data displayed on the display device 74, thereby inputting input data for jogging the end effector unit 40 of the robot 12 in the robot coordinate system C1 into the input device 76.

[0061] The teaching device 72 generates a teaching command TC for performing a jog operation on the robot 12 in response to input data to the input device 76, and transmits the teaching command TC to the I / O interface 54 of the control device 16. The processor 50 of the control device 16 receives the teaching command TC through the I / O interface 54.

[0062] Thus, in this embodiment, the processor 50 functions as a teaching command receiving unit 78 (FIG. 8) that receives a teaching command TC. The processor 50 generates commands for the servo motors 38 of the robot 12 in response to the received teaching command TC, thereby causing the hand unit 40 of the robot 12 to perform a jog motion.

[0063] The operator operates the input device 76 of the teaching device 72 until the end effector 26 brings the workpiece WP1 held at a predetermined gripping position into contact with the abutment portion 44, and the processor 50 jogs the hand portion 40 of the robot 12 in response to the teaching command TC from the teaching device 72.

[0064] As a result, the end portion 40 (workpiece WP1) abuts against the abutment portion 44 and is positioned at position PS1 and orientation OR1 so that the bottom surface B1 of the workpiece WP1 is in surface contact with the surface 42 of the work piece 14, the side surface B5 of the workpiece WP1 is in surface contact with the inner surface 46a of the abutment portion 44, and the side surface B4 of the workpiece WP1 is in surface contact with the inner surface 48a of the abutment portion 44. In this manner, the processor 50 functions as a robot control portion 79 (FIG. 8) that operates the robot 12 so as to position the end portion 40 at position PS1 and orientation OR1 by abutting the end portion 40 (specifically, the workpiece WP1) against the abutment portion 44.

[0065] As described above, in this embodiment, the device 60 includes a position data acquisition unit 62, a positional relationship acquisition unit 64, a teaching command receiving unit 78, and a robot control unit 79, and the processor 50 functions as the position data acquisition unit 62, the positional relationship acquisition unit 64, the teaching command receiving unit 78, and the robot control unit 79 of the device 60.

[0066] According to this embodiment, the operator can position the end effector 40 at the position PS1 and the orientation OR1 by operating the teaching device 72 to teach the robot 12 while checking the actual arrangement of the end effector 40 and the contact portion 44. This can shorten the time required for the operation of positioning the end effector 40 at the position PS1 and the orientation OR1.

[0067] Next, a system 80 according to yet another embodiment will be described with reference to Fig. 9. The system 80 differs from the above-mentioned system 70 in that it includes a force sensor 82 instead of the teaching device 72. As an example, the force sensor 82 includes a plurality of torque sensors provided on the servo motors 38 of the robot 12. In this case, the force sensor 82 detects the torque T applied to the drive shaft of each servo motor 38 as detection data DF.

[0068] As another example, the force sensor 82 is provided on the robot base 18, the rotating body 20, the lower arm 30, the upper arm 32, or the wrist 24 of the robot 12, and has a six-axis force sensor having a plurality of strain gauges. In this case, the force sensor 82 detects the force F acting on the robot 12 as detection data DF. Note that the force sensor 82 may be any type of force sensor, such as a torque detection type force sensor using a secondary encoder, or a capacitance type force sensor.

[0069] Based on the detection data DF (i.e., torque T or force F) of the force sensor 82, the processor 50 identifies the magnitude and direction of the external force EF applied to the robot 12 and the part of the robot 12 to which the external force EF was applied (the rotating torso 20, the lower arm 30, the upper arm 32, the wrist 24, or the hand 40).

[0070] Then, in response to an external force EF applied to any part of the robot 12, the processor 50 moves that part of the robot 12 in the direction of the external force EF. Using this function, the operator teaches the robot 12 an operation of abutting the hand 40 of the robot 12 against the abutment portion 44 to position the robot 12 at a position PS1 and a posture OR1 (so-called direct teach).

[0071] Specifically, after switching the operation mode of the robot 12 to a teaching mode by the control device 16, the operator applies a teaching external force EF to any part of the robot 12 (for example, the hand 40). T Then, the force sensor 82 detects the external force EF T Detect data DF T and supplies it to the processor 50.

[0072] After switching to the teaching mode, the processor 50 receives the detection data DF detected by the force sensor 82. T Based on the external force EF T The part of the robot 12 to which the external force EF was applied (hand part 40) is identified. T Then, the processor 50 determines the magnitude and direction of the external force EF T The part (hand part 40) of the robot 12 to which the external force EF T Jog in the direction.

[0073] In this way, the operator can determine the external force EF applied to any part of the robot 12. T In other words, in this embodiment, the processor 50 instructs the robot 12 to perform a jog motion in response to the external force EF and to perform a motion in which the hand 40 abuts against the abutting portion 44 and is positioned at the position PS1 and the posture OR1. T The detection data DF detected by the force sensor 82 when the force is applied T is used as a teaching command, and the detection data DF T In response to this, the robot 12 is made to jog.

[0074] Therefore, the detection data DF T is the teaching command (specifically, the external force EF T The processor 50 generates a direct teach command (detection data DF T ) and a robot control unit 79 that operates the robot 12. In the teaching mode, the processor 50T External force EF determined from T Depending on the magnitude of the external force EF, the moving distance or moving speed of the jog operation of the part of the robot 12 is changed (for example, T (increased in proportion to the size of

[0075] The above-mentioned direct teach includes teaching in which an operation command is given to the servo motor 38 by operating, for example, an operation unit (joystick, etc.) without using the force sensor 82. In this case, the operation command to the servo motor 38 constitutes a teaching command (direct teach teaching command). Alternatively, the operator may apply an external force EF to a part of the robot 12 (for example, the lower arm 30, the upper arm 32, or the hand 40) while holding the robot 12 in a state in which no torque is applied to each axis of the robot 12. T Add the EF T Direct teaching can also be performed by manually moving the part using the

[0076] Next, a system 90 according to still another embodiment will be described with reference to Figures 10 and 11. The system 90 differs from the above-described system 10 in that the system 90 further includes a contact detection sensor 92. The contact detection sensor 92 detects that the hand portion 40 has come into contact with the contact portion 44.

[0077] Specifically, the contact detection sensor 92 has a first sensor element 94, a second sensor element 96, and a third sensor element 98. Each of the first sensor element 94, the second sensor element 96, and the third sensor element 98 is, for example, a proximity sensor (such as a capacitive proximity sensor or a proximity switch), a distance measuring sensor, a pressure sensor, a piezoelectric element, or a strain gauge, and detects the proximity or contact of an object. The first sensor element 94 is provided on the surface 42 of the work equipment 14. The second sensor element 96 is provided on the inner surface 46a of the contact portion 44, while the third sensor element 98 is provided on the inner surface 48a of the contact portion 44.

[0078] As shown in Figure 6, when the hand portion 40 abuts against the abutment portion 44 and is positioned at a predetermined position PS1 and posture OR1, the detection data DA of the first sensor element 94 becomes a value DA0 indicating surface contact between the bottom surface B1 of the workpiece WP1 and the surface 42, the detection data DB of the second sensor element 96 becomes a value DB0 indicating surface contact between the side surface B5 of the workpiece WP1 and the inner surface 46a of the abutment portion 44, and the detection data DC of the third sensor element 98 becomes a value DC0 indicating surface contact between the side surface B4 of the workpiece WP1 and the inner surface 48a of the abutment portion 44.

[0079] In other words, when the first sensor element 94 detects detection data DA0, the second sensor element 96 detects detection data DB0, and the third sensor element 98 detects detection data DC0, it can be regarded that the hand portion 40 is in contact with the contact portion 44 and is positioned at position PS1 and posture OR1.

[0080] Next, the function of the system 90 will be described with reference to Fig. 12. The flow shown in Fig. 12 is started when the processor 50 receives a positional relationship acquisition command from an operator, a higher-level controller, or a computer program. When the flow shown in Fig. 12 is started, the hand portion 40 of the robot 12 is holding the workpiece WP1 at a predetermined holding position.

[0081] In step S1, the processor 50 functions as the robot control unit 79 to operate the robot 12 and place the end device 40 in a predetermined initial position PS0 and initial posture OR0. For example, the initial position PS0 can be determined by an operator as a position where the workpiece WP1 of the end device 40 is placed in the vicinity of the contact portion 44.

[0082] The initial orientation OR0 can be determined by an operator from the design dimensions (CAD data) of the robot 12 and the work implement 14, etc., as an orientation in which the z-axis direction of the user coordinate system C3 is estimated to be approximately perpendicular to the surface 42 of the work implement 14, the y-axis direction of the user coordinate system C3 is estimated to be approximately perpendicular to the inner surface 46a of the contact portion 44, and the x-axis direction of the user coordinate system C3 is estimated to be approximately perpendicular to the inner surface 48a of the contact portion 44. The initial position PS0 and initial orientation OR0 may be determined by teaching the robot 12 an operation to place the workpiece WP1 in the vicinity of the contact portion 44.

[0083] In step S2, the processor 50 operates the robot 12 to move the end effector 40 along the first axis. For example, the processor 50 moves the end effector 40 from the initial position PS0 and the initial posture OR0 in the z-axis direction of the user coordinate system C3 (i.e., a direction estimated to be perpendicular to the surface 42).

[0084] In step S3, the processor 50 determines whether the detection data DA detected by the first sensor element 94 at this time is within a predetermined allowable range [DA th1 ,D.A. th2 ]. th1 ,D.A. th2 ], a threshold value DA that defines th1 and D.A. th2 may be predetermined by an operator based on the above-mentioned value DA0 (eg, to include the value DA0).

[0085] The processor 50 determines whether the detection data DA is within the allowable range (i.e., DA th1 ≦DA≦DA th2 ), the result is YES and the process proceeds to step S4. On the other hand, if the detection data DA is outside the allowable range (i.e., DA <DA th1 , or DA>DA th2 ), the result is NO, and the process returns to step S2.

[0086] Thus, the processor 50 loops steps S2 and S3 until it determines YES in step S3. When it determines YES in step S3, it can be considered that the bottom surface B1 of the workpiece WP1 and the surface 42 are in surface contact. Note that, each time the processor 50 executes step S2, the processor 50 may determine the direction in which the hand portion 40 is moved in step S2 from among the positive z-axis direction and the negative z-axis direction of the user coordinate system C3 as the direction that can bring the detection data DA closer to the allowable range.

[0087] For example, the detection data DA used in the n-th step S3 n is the detection data DA acquired in step S3 for the n-1th time. n-1 Compared with the threshold DA th1 or becomes smaller than the threshold DA th2 , the direction in which the hand portion 40 is moved in step S2 executed the (n+1)th time may be reversed from the direction in which the hand portion 40 was moved in step S2 executed the nth time. With this configuration, the detection data DA can be brought into the allowable range more quickly.

[0088] In step S2, the processor 50 may change the posture of the hand portion 40 in accordance with the most recently acquired detection data DA. For example, the processor 50 can change the posture of the hand portion 40 by rotating the hand portion 40 in a direction around the x-axis, y-axis, or z-axis of the user coordinate system C3.

[0089] In this case, the processor 50 may determine the direction in which to move the hand portion 40 from among directions around the x-axis, y-axis, or z-axis of the user coordinate system C3 as a direction that can bring the detection data DA closer to the acceptable range (for example, a direction in which the bottom surface B1 of the workpiece WP1 is parallel to the surface 42).

[0090] In step S4, the processor 50 operates the robot 12 to move the hand 40 along the second axis. For example, the processor 50 moves the hand 40 from the position and posture at the time when the result of the determination in step S3 is YES in the y-axis direction of the user coordinate system C3 (i.e., a direction estimated to be perpendicular to the inner surface 46a).

[0091] In step S5, the processor 50 determines whether the detection data DB detected by the second sensor element 96 at this time is within a predetermined allowable range [DB th1 ,DB th2 ]. This allows us to determine whether the th1 ,DB th2 ] Threshold DB that defines th1 and DB th2 may be predetermined by an operator based on the above-mentioned value DB0 (eg, to include the value DB0).

[0092] The processor 50 determines whether the detection data DB is within the acceptable range (i.e., DB th1 ≦DB≦DB th2 ), the result is YES and the process proceeds to step S6. On the other hand, if the detection data DB is outside the allowable range (i.e., DB <DB th1 , or DB>DB th2 ), the result is NO, and the process returns to step S4.

[0093] In this way, the processor 50 loops steps S4 and S5 until it determines YES in step S5. When it determines YES in step S5, it can be considered that the side surface B5 of the workpiece WP1 and the inner surface 46a are in surface contact. Note that, each time the processor 50 executes step S4, the processor 50 may determine the direction in which the hand portion 40 is moved in step S4 from among the positive y-axis direction and the negative y-axis direction of the user coordinate system C3 as the direction that can bring the detection data DB closer to the allowable range.

[0094] Furthermore, in step S4, the processor 50 may change the posture of the hand portion 40 in accordance with the most recently acquired detection data DB. In this case, the processor 50 may determine the direction in which to move the hand portion 40 from among directions around the x-axis, y-axis, or z-axis of the user coordinate system C3 as a direction that can bring the detection data DB closer to an allowable range (for example, a direction that makes the side surface B5 of the workpiece WP1 parallel to the inner surface 46a of the contact portion 44).

[0095] In step S6, the processor 50 operates the robot 12 to move the hand 40 along the third axis. For example, the processor 50 moves the hand 40 from the position and posture at the time when the result of the determination in step S5 is YES in the x-axis direction of the user coordinate system C3 (i.e., a direction estimated to be perpendicular to the inner surface 48a).

[0096] In step S7, the processor 50 determines whether the detection data DC detected by the third sensor element 98 at this time is within a predetermined allowable range [DC th1 ,DC th2 ]. th1 ,DC th2 ], a threshold DC th1 and D.C. th2 may be predetermined by an operator with reference to the above-mentioned value DC0 (eg, to include the value DC0).

[0097] The processor 50 determines whether the detection data DC is within the acceptable range (i.e., DC th1 ≦DC≦DC th2 ), the result is YES and the process proceeds to step S8. On the other hand, if the detection data DB is outside the allowable range (i.e., DC <DC th1 , or DC>DC th2 ), the processor 50 judges it as NO and returns to step S6. In this way, the processor 50 loops steps S6 and S7 until it judges it as YES in step S7.

[0098] When the determination in step S7 is YES, it can be considered that the side surface B4 of the workpiece WP1 and the inner surface 48a of the contact portion 44 are in surface contact. Note that, each time the processor 50 executes step S6, the processor 50 may determine the direction in which the hand portion 40 is moved in step S6 from among the positive x-axis direction and the negative x-axis direction of the user coordinate system C3 as the direction that can bring the detection data DC closer to the allowable range.

[0099] Furthermore, in step S6, the processor 50 may change the posture of the end device 40 in accordance with the most recently acquired detection data DC. In this case, the processor 50 may determine the direction in which to move the end device 40 from among directions around the x-axis, y-axis, or z-axis of the user coordinate system C3 as a direction that can bring the detection data DC closer to an allowable range (for example, a direction that makes the side surface B4 of the workpiece WP1 parallel to the inner surface 48a of the contact portion 44).

[0100] In this way, by executing steps S2 to S7 based on the detection data DA, DB and DC of the contact detection sensor 92, the processor 50 can automatically perform the operation of abutting the hand portion 40 against the abutment portion 44 and positioning it at position PS1 and posture OR1 as shown in Figure 6.

[0101] In step S8, the processor 50 functions as the position data acquisition unit 62 to acquire the first position data α1 and the second position data β1, similar to the above-described embodiment. Then, in step S9, the processor 50 functions as the positional relationship acquisition unit 64 to acquire the third position data γ1, similar to the above-described embodiment.

[0102] As described above, in this embodiment, the processor 50 functions as the robot control unit 79 and automatically executes the operation of abutting the hand 40 against the abutment portion 44 to position it at the position PS1 and the attitude OR1. With this configuration, the process of acquiring the third position data γ1 can be automated, thereby simplifying and speeding up the process.

[0103] In this embodiment, the system 90 is also provided with a contact detection sensor 92 that detects contact of the hand end portion 40 with the contact portion 44. With this configuration, appropriate contact of the hand end portion 40 with the contact portion 44 can be detected automatically and with high accuracy, so that the operation of positioning the hand end portion 40 at the position PS1 and posture OR1 can be performed automatically and with high accuracy. Also, the flow shown in Fig. 12 can be automated with a relatively simple algorithm.

[0104] The contact detection sensor 92 may be provided on the robot 12. For example, the first sensor element 94 may be provided on the bottom surface B1 of the workpiece WP1 constituting the hand portion 40, the second sensor element 96 may be provided on a side surface B5 of the workpiece WP1, and the third sensor element 98 may be provided on a side surface B4 of the workpiece WP1. Even in this case, the processor 50 can execute steps S1 to S7 in FIG. 12 to appropriately abut the hand portion 40 against the abutment portion 44 and position the hand portion 40 at the position PS1 and the attitude OR1.

[0105] Alternatively, the contact detection sensor 92 may be configured from the above-mentioned force sensor 82. Specifically, the processor 50 receives the detection data DF S2 Therefore, the external force EF applied to the hand part 40 from the surface 42 of the working tool 14 S2 Size: |EF S2 | is required.

[0106] Then, in step S3, the processor 50 calculates |EF S2 | is within a predetermined tolerance [EF S2_th1 ,F S2_th2 ]. S2_th1 ,F S2_th2 ] is the external force EF detected by the force sensor 82 when the bottom surface B1 of the workpiece WP1 and the surface 42 are in proper surface contact with each other. S2 It can be determined based on the size of

[0107] In the same manner, the processor 50 receives the detection data DF detected by the force sensor 82 when step S4 in FIG. S4 Therefore, the external force EF applied to the hand tip 40 from the inner surface 46a of the contact portion 44 is S4 Size: |EF S4 Then, in step S5, the processor 50 calculates |EF S4 | is within a predetermined tolerance [EF S4_th1 ,F S4_th2 ] and determine whether it is within the range.

[0108] In addition, the processor 50 receives the detection data DF detected by the force sensor 82 when step S6 in FIG. S6 Therefore, the inner surface 4 of the contact portion 44 8 External force EF applied to the hand part 40 from a S6 Size: |EF S6 Then, in step S5, the processor 50 calculates |EF S6 | is within a predetermined tolerance [EF S6_th1 ,F S6_th2 In this embodiment, the force sensor 82 provided on the robot 12 functions as a contact detection sensor 92 that detects that the hand portion 40 has come into contact with the contact portion 44.

[0109] Next, a system 100 according to still another embodiment will be described with reference to Fig. 13. The system 100 differs from the above-described system 10 in that the system 100 further includes a design support device 102. The design support device 102 includes a CAD device 104 and a CAM device 106. The CAD device 104 creates drawing data (three-dimensional CAD data) of a robot model 102M that models the robot 12 shown in Fig. 1, and a work equipment model 14M that models the work equipment 14, in response to input from an operator.

[0110] In the following description, when the name of a member in real space is "XX", the model of that component will be referred to as the "XX model". Thus, the robot model 102M has a robot base model 18M, a rotating torso model 20M, a robot arm model 22M (lower arm model 30M, upper arm model 32M), a wrist model 24M, and an end effector model 26M.

[0111] The CAM device 106 creates an operation program OP for the robot 12 or work equipment 14 based on the drawing data created by the CAD device 104. Specifically, the CAM device 106 places the robot model 102M and the work equipment model 14M in the virtual space together with the robot coordinate system C1 and the work equipment coordinate system C4 in response to input from the operator. At this time, the robot model 102M and the work equipment model 14M are placed at a relative position RP1 on the design dimensions in the virtual space.

[0112] Then, in the virtual space, the CAM device 106 causes the workpiece model WM, which is held by the end effector model 26M at a predetermined gripping position, to abut against the abutment part model 44M provided on the work equipment model 14M by the operation of the robot model 102M, and moves the hand part model 40M to a predetermined position PS 1_V and posture OR 1_V The operation of positioning the hand model 40M at the position PS 1_V and posture OR 1_V The coordinates D of the user coordinate system C3 in the robot coordinate system C1 when the robot is placed in the 1_V (X 1_V ,Y 1_V ,Z 1_V ,W 1_V ,P 1_V ,R 1_V ) can be known by simulation.

[0113] Through this simulation, the CAM device 106 moves the hand model 40M to the position PS 1_V and posture OR 1_VThe operation program OP1 executes an operation of positioning the hand model 40M at the position PS 1_V and posture OR 1_V A plurality of teaching points TP that are passing points of the hand model 40M (specifically, the origin of the MIF coordinate system C2) when moving to n (n=1,2,3,...,n MAX ) and two teaching points TP n and TP n+1 and a travel path between the

[0114] In addition, multiple teaching points TP n The last teaching point TP nMAX The hand model 40M is placed in position PS 1_V and posture OR 1_V He place Placement The created operation program OP1 is stored in the memory 52.

[0115] Here, when a system 100 is constructed in which the robot 12 and the work implement 14 are arranged to correspond to the designed relative position RP1 in real space, a difference may occur between the designed relative position RP1 and the relative position RP2 of the robot 12 and the work implement 14 in real space (in other words, a change may occur from the relative position RP1 to the relative position RP2). In this case, even if the robot 12 is operated in real space according to the operation program OP1 created by simulation, it may not be possible to properly abut the hand 40 against the abutment portion 44 and accurately position it at the position PS1 and the attitude OR1.

[0116] Therefore, in this embodiment, the processor 50 acquires displacement data indicating the difference between the relative position RP1 and the relative position RP2, and corrects the operation program OP1 using the displacement data. Specifically, after constructing the system 100 in the real space, the processor 50 functions as the position data acquisition unit 62 and acquires the first position data α1 at the relative position RP2, similarly to the above-mentioned embodiment. For example, the processor 50 acquires the coordinates D1 (X1, Y1, Z1, W1, P1, R1) as the first position data α1.

[0117] On the other hand, the processor 50 calculates the coordinate D obtained at the relative position RP1 in the above simulation. 1_V (X 1_V ,Y 1_V ,Z 1_V ,W 1_V ,P 1_V ,R 1_V Then, the processor 50 obtains the coordinates D1 and D 1_V Difference Δ D1 =D1-D 1_V The displacement data Δ D1 In this manner, in the present embodiment, the processor 50 acquires the first position data α1 (coordinates D1, D 1_V ) based on the displacement data Δ D1 The displacement data acquisition unit 108 acquires the displacement data.

[0118] The processor 50 then converts the acquired displacement data Δ D1 For example, the processor 50 corrects the operation program OP1 using the teaching point TP n (For example, the last teaching point TP nMAX ) to the displacement data Δ D1 By correcting the above, a new operation program OP2 is created.

[0119] Thus, in this embodiment, the processor 50 calculates the displacement data Δ D1Then, the processor 50 functions as a position data acquisition unit 62 to acquire the second position data β1, and functions as a positional relationship acquisition unit 64 to acquire the third position data γ1, in the same manner as in the above-described embodiment.

[0120] As described above, in this embodiment, the device 60 includes a position data acquisition unit 62, a positional relationship acquisition unit 64, a displacement data acquisition unit 108, and a correction unit 110, and the processor 50 functions as the position data acquisition unit 62, the positional relationship acquisition unit 64, the displacement data acquisition unit 108, and the correction unit 110 of the device 60.

[0121] According to this embodiment, a part of the data of the operation program OP1 created by simulation (for example, the teaching point TP n ), while using other parts of the data of the operation program OP1, an operation program OP2 can be created for the robot 12 to execute an operation for positioning the end effector 40 in the real space at the position PS1 and the orientation OR1. Therefore, the work of creating the operation program OP2 for the real space can be significantly reduced.

[0122] In the system 100, the processor 50 can also acquire the displacement data by using the second position data β1. Specifically, the processor 50 acquires the displacement data by using the second position data β1 when the hand model 40M is at the position PS 1_V and posture OR 1_V The coordinates E of the user coordinate system C3 in the work coordinate system C4 when the 1_V (x 1_V ,y 1_V ,z 1_V ,w 1_V ,p 1_V ,r 1_V ) to get the

[0123] After constructing the system 100 in the real space, the processor 50 functions as the position data acquisition unit 62 in the same manner as in the above-described embodiment, and acquires the above-described coordinates E1 (x1, y1, z1, w1, p1, r1), which are the second position data β1. Then, the processor 50 functions as the displacement data acquisition unit 108, and acquires the coordinates E1 and the coordinates E 1_V Difference Δ E1 =E1-E 1_V The processor 50 then functions as the correction unit 110 to obtain the displacement data Δ E1 The operation program OP1 is corrected using

[0124] In the system 100, the processor 50 can also obtain displacement data by using the third position data γ1. Specifically, the processor 50 calculates the coordinates D of the work equipment coordinate system C4 in the robot coordinate system C1 arranged in the virtual space by the CAM device 106 for the simulation. 2_V (X 2_V ,Y 2_V ,Z 2_V ,W 2_V ,P 2_V ,R 2_V ) to get the

[0125] After constructing the system 100 in the real space, the processor 50 functions as the positional relationship acquisition unit 64 in the same manner as in the above-described embodiment, and acquires the above-described coordinates D2 (X2, Y2, Z2, W2, P2, R2) which are the third position data γ1. Then, the processor 50 functions as the displacement data acquisition unit 108, and acquires the coordinates D2 and the coordinates D 2_V Difference Δ D2 =D2-D 2_V The processor 50 then functions as the correction unit 110 to obtain the displacement data Δ D2 The operation program OP1 is corrected using

[0126] Similarly, the processor 50 calculates the third position data γ1, which is the above-mentioned coordinates E2 (X2, Y2, Z2, W2, P2, R2), and the coordinates E of the robot coordinate system C1 in the work equipment coordinate system C4 arranged in the virtual space. 2_V (x 2_V ,y 2_V ,z 2_V ,w 2_V ,p 2_V ,r 2_V ) and the displacement data Δ E2 =E2-E 2_V Obtain the displacement data Δ E2 It is also possible to correct the operating program OP1 using

[0127] It should be noted that the displacement data acquiring unit 108 and the correction unit 110 can also be applied to the above-mentioned system 70. Such an embodiment is shown in Fig. 7 and Fig. 14. In the system 70' shown in Fig. 7 and Fig. 14, the device 60 includes a position data acquiring unit 62, a positional relationship acquiring unit 64, a teaching command receiving unit 78, a robot control unit 79, the displacement data acquiring unit 108, and a correction unit 110.

[0128] The function of the system 70' will be described below. First, the operator constructs the system 70' in which the robot 12 and the work implement 14 are arranged at a relative position RP3 in the real space. At this relative position RP3, the operator operates the teaching device 72 to bring the hand 40 of the robot 12 into contact with the contact portion 44 to bring the robot 12 into position PS 1_3 and posture OR 1_3 The robot 12 is taught the operation of positioning the robot 12 in the above manner.

[0129] The processor 50 functions as a teaching command receiving unit 78 to receive a teaching command TC from the teaching device 72, and functions as a robot control unit 79 to operate the robot 12 in response to the teaching command TC to move the hand unit 40 to a position PS 1_3 and posture OR 1_3 Through this teaching process, the teaching device 72 (or the processor 50) positions the hand 40 at the position PS 1_3 and posture OR 1_3The operation program OP3 executes an operation of positioning the hand part 40 at the position PS 1_3 and posture OR 1_3 The teaching point TP of the hand 40 (or the origin of the MIF coordinate system C2) when moving to n (n=1,2,3,...,n MAX ) and two teaching points TP n and TP n+1 and a travel path between the

[0130] Next, the processor 50 functions as the position data acquisition unit 62 and acquires the first position data α 1_3 , the hand part 40 is at the position PS 1_3 and posture OR 1_3 Coordinate D of the user coordinate system C3 in the robot coordinate system C1 when 1_3 (X 1_3 ,Y 1_3 ,Z 1_3 ,W 1_3 ,P 1_3 ,R 1_3 The processor 50 also functions as a position data acquisition unit 62 to acquire second position data β 1_3 and functions as the positional relationship acquisition unit 64 to acquire third position data γ 1_3 Get the.

[0131] Here, the system 70' may be moved to another manufacturing line, or at least one of the robot 12 and the work implement 14 may be replaced in the system 70'. In this case, the relative position between the robot 12 and the work implement 14 in the system 70' may change from a relative position RP3 before the move or replacement to a relative position RP4 after the move or replacement. If this happens, even if the robot 12 is operated according to the operation program OP3 at the relative position RP4, it may not be possible to properly bring the hand portion 40 into contact with the contact portion 44.

[0132] Then, at the relative position RP4 after the relocation or replacement, the operator operates the teaching device 72 again to bring the hand portion 40 of the robot 12 into contact with the contact portion 44 to the position PS 1_4 and posture OR 1_4 The processor 50 then functions as a position data acquisition unit 62 and acquires the first position data α 1_4 , the hand part 40 is at the position PS 1_4 and posture OR 1_4 Coordinate D of the user coordinate system C3 in the robot coordinate system C1 when 1_4 (X 1_4 ,Y 1_4 ,Z 1_4 ,W 1_4 ,P 1_4 ,R 1_4 ) to get the

[0133] Next, the processor 50 functions as the displacement data acquisition unit 108 to acquire the coordinate D 1_3 and the coordinate D obtained at the relative position RP4 1_4 Difference Δ D1 =D 1_4 -D 1_3 The displacement data Δ D1 Then, the processor 50 functions as the correction unit 110 to correct the acquired displacement data Δ D1 For example, the processor 50 corrects the operation program OP3 using the teaching point TP n (For example, the last teaching point TP nMAX ) to the displacement data Δ D1 By correcting this, a new operation program OP4 is created.

[0134] In this way, according to the present embodiment, a part of the data of the operation program OP3 created at the relative position RP3 (for example, the teaching point TP n), while using other parts of the data of the operation program OP3, an operation program OP4 for operating the robot 12 at the relative position RP4 can be created. Therefore, the work of creating the operation program OP4 can be significantly reduced.

[0135] In the system 70', the processor 50 calculates the displacement data Δ D1 Using the method described in the above system 100, the displacement data Δ based on the second position data β1 can be calculated. E1 , or the displacement data Δ based on the third position data γ1 D2 Or Δ E2 and the displacement data Δ E1 , Δ D2 or Δ E2 It will be appreciated that the operating program OP3 can be corrected using

[0136] In addition, in the system 70', the force sensor 82 of the above-mentioned system 80 is applied instead of the teaching device 72, and the operator can measure the external force EF applied to the robot 12 by using a method similar to that of the system 80. T By operating the robot 12 in accordance with the above, it is also possible to teach the robot 12 the operation of abutting the hand 40 against the abutment portion 44 and positioning it.

[0137] Next, a system 120 according to still another embodiment will be described with reference to Figs. 15 and 16. The system 120 differs from the above-mentioned system 10 in the following configuration. Specifically, the system 120 further includes a position detection sensor 122. The position detection sensor 122 detects the position of the hand 40 in the task device coordinate system C4 when the hand 40 is placed at a predetermined position PS2 and orientation OR2. In this embodiment, the position detection sensor 122 is composed of a touch probe that detects an object by contacting the object with a detection point 122a provided at the tip of the sensor.

[0138] On the other hand, the work equipment 14 has a main body 124 (FIG. 16), a movable part 126, and a moving mechanism 128. The movable part 126 is, for example, a work table, a work holding mechanism (such as a chuck mechanism), or a main shaft of a machine tool, and is movably provided on the main body 124. The above-mentioned position detection sensor 122 is fixed to the movable part 126 so as to extend straight in one direction from the movable part 126.

[0139] The moving mechanism 128 has, for example, a ball screw mechanism and a servo motor (neither shown) that drives the ball screw mechanism, and moves the movable part 126 in the x-axis, y-axis, and z-axis directions of the work equipment coordinate system C4 under instructions from the control device 16. A moving coordinate system C5 is set for the movable part 126 (or the position detection sensor 122). The moving coordinate system C5 is for controlling the position of the movable part 126 in the work equipment coordinate system C4, and moves together with the movable part 126 in the work equipment coordinate system C4.

[0140] Specifically, when moving the movable part 126, the processor 50 sets a moving coordinate system C5 in the work equipment coordinate system C4, and generates a command to the moving mechanism 128 to position the movable part 126 at a position defined by the set moving coordinate system C5. In this way, the processor 50 can position the movable part 126 at any position in the work equipment coordinate system C4. Therefore, the positional relationship of the moving coordinate system C5 with respect to the work equipment coordinate system C4 (i.e., the origin position and the directions of each axis) is known.

[0141] On the other hand, the detection point 122a of the position detection sensor 122 is disposed at a known position in the moving coordinate system C5. Therefore, the position (specifically, coordinates) of the detection point 122a of the position detection sensor 122 in the work equipment coordinate system C4 is known via the moving coordinate system C5.

[0142] Next, the function of the system 120 will be described. First, the processor 50 operates the robot 12 to place the end portion 40 at a predetermined position PS2 and orientation OR2. This position PS2 is determined in advance by an operator so that at least a part of the end portion 40 (for example, the workpiece WP1 gripped by the end effector 26) is included in the movement range of the detection point 122a by the movement mechanism 128 when the end portion 40 is placed at the position PS2.

[0143] Next, the processor 50 operates the moving mechanism 128 to move the position detection sensor 122, and touches up (makes contact with) multiple positions of the hand portion 40 with the detection point 122a of the position detection sensor 122. Specifically, the processor 50 operates the moving mechanism 128 to sequentially touch up three points PT1, PT2, and PT3 on the side surface B4 of the workpiece WP1 gripped by the end effector 26 with the detection point 122a. The three points PT1, PT2, and PT3 are points that are distributed on the side surface B4 so as not to be aligned in a straight line.

[0144] Every time the detection point 122a touches up points PT1, PT2, and PT3, the position detection sensor 122 transmits detection data DP1, DP2, and DP3 to the processor 50. The processor 50 obtains positions (coordinates) H1, H2, and H3 of the detection point 122a in the work device coordinate system C4 when the detection data DP1, DP2, and DP3 are received. From these positions H1, H2, and H3, the processor 50 can specify the position of the side surface B4 in the work device coordinate system C4.

[0145] Next, the processor 50 operates the moving mechanism 128 to move the position detection sensor 122, and sequentially touches up two points PT4 and PT5 on the side B5 of the workpiece WP1 that is perpendicular to the side B4 on which the three points have been touched up, with the detection point 122a of the position detection sensor 122. Every time the detection point 122a touches up the points PT4 and PT5, the position detection sensor 122 transmits the detection data DP4 and DP5 to the processor 50.

[0146] The processor 50 obtains the positions (coordinates) H4 and H5 of the detection point 122a in the work device coordinate system C4 when the detection data DP4 and DP5 are received. From these positions H4 and H3, the processor 50 can identify the position of the side surface B5 in the work device coordinate system C4.

[0147] Next, the processor 50 operates the moving mechanism 128 to move the position detection sensor 122, and touches up one point PT6 on the bottom surface B1 of the workpiece WP1, which is perpendicular to the side surface B4 touched up at three points and the side surface B5 touched up at two points, at the detection point 122a. When the detection point 122a touches up the point PT6, the position detection sensor 122 transmits detection data DP6 to the processor 50. The processor 50 acquires the position (coordinate) H6 of the detection point 122a in the work equipment coordinate system C4 when the detection data DP6 is received. From this position H6, the processor 50 can identify the position of the bottom surface B1 in the work equipment coordinate system C4.

[0148] In this way, based on the detection data DP1 to DP6, the processor 50 can identify the positions of the side surfaces B4 and B5 and the bottom surface B1 in the work equipment coordinate system C4, and thereby identify the position and posture of the workpiece WP1 (hand end portion 40) in the work equipment coordinate system C4 (i.e., the origin position and the directions of each axis of the user coordinate system C3).

[0149] At this time, the coordinates of the user coordinate system C3 in the work device coordinate system C4 can be expressed as known coordinates E3 (x3, y3, z3, w3, p3, r3). ​​In addition, the coordinate transformation matrix M43 from the work device coordinate system C4 to the user coordinate system C3 _2 is a known homogeneous transformation matrix, and the coordinate transformation matrix M _2 Each parameter of is determined from the coordinate E3 (x3, y3, z3, w3, p3, r3). ​​In this way, the positional relationship between the work device coordinate system C4 and the user coordinate system C3 becomes known.

[0150] The processor 50 functions as a position data acquisition unit 62 and acquires second position data β2 indicating the position PS2 and the orientation OR2 in the work device coordinate system C4 when the hand 40 is placed at the position PS2 and the orientation OR2. For example, the processor 50 acquires the second position data β2 by using the above-mentioned coordinate transformation matrix M43 _2 Get the.

[0151] Meanwhile, the processor 50 acquires first position data α2 indicating the position PS2 and orientation OR2 in the robot coordinate system C1 when the end device 40 is placed at the position PS2 and orientation OR2. Here, when the end device 40 is placed at the position PS2 and orientation OR2, the coordinates of the user coordinate system C3 in the robot coordinate system C1 are expressed as known coordinates D3 (X3, Y3, Z3, W3, P3, R3), and a coordinate transformation matrix M13 from the robot coordinate system C1 to the user coordinate system C3 at this time is _2 Each parameter can be obtained from the coordinates D3 (X3, Y3, Z3, W3, P3, R3). For example, the processor 50 calculates the first position data α2 by using the coordinate transformation matrix M13 _2 Get the.

[0152] Next, the processor 50 uses the acquired first position data α2 and second position data β2 to acquire third position data γ2 indicating the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4. For example, the processor 50 uses the coordinate transformation matrix M14 from the robot coordinate system C1 to the work equipment coordinate system C4 as the third position data γ2. _2 Specifically, the processor 50 obtains the coordinate transformation matrix M13, which is the first position data α2. _2 and the coordinate transformation matrix M43 which is the second position data β2 _2 Using the and, M14 _2 =M13 _2 ·inv(M43 _2 ) from the formula, the coordinate transformation matrix M14 _2 can be calculated.

[0153] As described above, in this embodiment, the processor 50 acquires the second position data β2 based on the detection data DP1 to DP6 of the position detection sensor 122 that detects the position of the end device 40 (specifically, the workpiece WP1) in the work device coordinate system C. With this configuration, the position and orientation of the end device 40 with respect to the work device coordinate system C4 (i.e., the positional relationship in the user coordinate system C3) can be made known without using the above-mentioned contact part 44.

[0154] In addition, in this embodiment, the position detection sensor 122 is composed of a touch probe, and detects the position of the end portion 40 in the work equipment coordinate system C4 by contacting the end portion 40 (workpiece WP1) which is moved by the moving mechanism 128 and positioned at a predetermined position PS2 and posture OR2.

[0155] According to this configuration, when the work equipment 14 has a moving mechanism 128 with high positioning accuracy, the position of the hand 40 can be detected with high accuracy by the position detection sensor 122, so that the accuracy of the second position data β2 can be improved. Also, the process of acquiring the second position data β2 can be automated.

[0156] In the present embodiment, the processor 50 touches up the side surface B4, the side surface B5, and the bottom surface B1 of the workpiece W using the position detection sensor 122. However, this is not limited to the above, and the processor 50 may use the position detection sensor 122 to touch up any surface of the hand portion 40 (for example, three surfaces of the claw portion 36 that are perpendicular to each other).

[0157] Furthermore, the position detection sensor 122 may have a visual sensor (three-dimensional visual sensor or two-dimensional camera) that captures image data of the hand 40 (workpiece WP1) instead of (or in addition to) the touch probe described above. If the position and orientation of the visual sensor in the work equipment coordinate system C4 are known, the processor 50 can identify the position and orientation of the hand 40 (workpiece WP1) in the work equipment coordinate system C4 (i.e., the origin position and the directions of each axis of the user coordinate system C3) based on the image data (detection data) captured by the visual sensor.

[0158] Furthermore, in the system 120, the processor 50, as in the above-described system 10, calculates, as the first position data α2, the above-described coordinates D3 (X3, Y3, Z3, W3, P3, R3), and a coordinate transformation matrix M31 from the user coordinate system C3 to the robot coordinate system C1 when the hand portion 40 is placed at the position PS2 and the orientation OR2. _2 Alternatively, the coordinates D3' (X3', Y3', Z3', W3', P3', R3') of the robot coordinate system C1 in the user coordinate system C3 may be acquired.

[0159] Similarly to the above-described system 10, the processor 50 calculates, as the second position data β2, the above-described coordinates E3 (x3, y3, z3, w3, p3, r3) and a coordinate transformation matrix M34 from the user coordinate system C3 to the work equipment coordinate system C4 when the hand end unit 40 is placed at the position PS2 and the orientation OR2. _2 Alternatively, the coordinates E3' (x3', y3', z3', w3', p3', r3') of the work device coordinate system C4 in the user coordinate system C3 may be acquired.

[0160] Similarly to the system 10 described above, the processor 50 calculates, as the third position data γ2, coordinates D4 (X4, Y4, Z4, W4, P4, R4) of the work equipment coordinate system C4 in the robot coordinate system C1, a coordinate transformation matrix M41 from the work equipment coordinate system C4 to the robot coordinate system C1, _2 Alternatively, the coordinates E4 (x4, y4, z4, w4, p4, r4) of the robot coordinate system C1 in the work equipment coordinate system C4 may be acquired.

[0161] 7 or the force sensor 82 shown in Fig. 9 may be applied to the system 120, and the operator may teach the robot 12 an operation for positioning the end device 40 at a predetermined position PS2 and orientation OR2. In this case, the processor 50 of the system 120 functions as the above-mentioned teaching command receiving unit 78 and a robot control unit 79 that operates the robot 12 to position the end device 40 at the position PS2 and orientation OR2.

[0162] Next, a system 130 according to yet another embodiment will be described with reference to Fig. 17 to Fig. 22. The system 130 includes a robot 132, a work equipment 134, and a control device 16. The control device 16 controls the operations of the robot 132 and the work equipment 134. As in the above-described embodiment, a robot coordinate system C1 and a work equipment coordinate system C4 are set for the robot 132 and the work equipment 134, respectively.

[0163] The robot 132 differs from the above-mentioned robot 12 in the end effector 136. The end effector 136 is a robot hand capable of gripping the workpiece WP2, and is detachably attached to the tip end (wrist flange) of the wrist 24. As an example, the end effector 136 has a plurality of openable and closable claws, and a claw drive unit (both not shown) that drives the claws. As another example, the end effector 136 may have an adsorption unit (negative pressure generator, electromagnet, suction cup, or the like) that can adsorb the workpiece WP2, and grip the workpiece WP2 by adsorbing it.

[0164] 20, in this embodiment, the workpiece WP2 has a columnar (or cylindrical) main body WA and a rectangular prism-shaped protrusion WB protruding from the main body WA. More specifically, the main body WA has a pair of end faces J1 and J2, each of which is substantially flat, and a cylindrical outer circumferential surface J3 extending between the end faces J1 and J2.

[0165] The protrusion WB is formed on the end surface J2 of the main body WA. More specifically, the protrusion WB has a bottom surface B6 and side surfaces B7, B8, B9, and B10, each of which is substantially flat. The side surfaces B7 and B8 are arranged parallel to each other and perpendicular to the bottom surface B6. The side surfaces B9 and B10 are arranged parallel to each other and perpendicular to the bottom surface B6 and the side surfaces B7 and B8.

[0166] The end effector 136 grasps a predetermined position of the main body portion WA, thereby grasping the workpiece WP2 at a predetermined grasping position. 1 2, the workpiece WP2 grasped by the end effector 136 at a predetermined gripping position can be regarded as one piece with the end effector 136, in other words, as a part of the end effector 136. Therefore, the tip (wrist flange) of the wrist 24, the end effector 136, and the workpiece WP2 grasped by the end effector 136 at a predetermined gripping position constitute a hand portion 140 of the robot 132.

[0167] A user coordinate system C3 is set for the workpiece WP2 that is gripped by the end effector 136 at a predetermined gripping position. In this embodiment, the user coordinate system C3 has its origin at the end effector 13 6 is placed at the center point of the bottom surface B6 (FIG. 20) of the workpiece WP2 to be gripped, and the xz plane is 13 6 is parallel to the bottom surface B6 of the workpiece WP2 to be gripped, and the yz plane is 13 6 is set with respect to the workpiece WP2 so that it is parallel to the side surfaces B7 and B8 of the workpiece WP2 to be gripped.

[0168] As described above, the workpiece WP2 grasped by the end effector 136 at a predetermined grasping position can be regarded as one with the end effector 136 (i.e., as part of the end effector 136). Therefore, if the grasping position and the shape of the workpiece WP2 are known, the positional relationship (origin position and directions of each axis) of the user coordinate system C3 set for the workpiece WP2 grasped by the end effector 136 with respect to the MIF coordinate system C2 becomes known.

[0169] Therefore, the positional relationship of the user coordinate system C3 with respect to the robot coordinate system C1 is known via the MIF coordinate system C2. Therefore, similarly to the above-mentioned embodiment, the positional relationship of the user coordinate system C3 with respect to the robot coordinate system C1 is expressed as coordinates D (X, Y, Z, W, P, R) of the robot coordinate system C1, and the coordinate transformation matrix M13 (and its inverse transformation matrix: M31) from the robot coordinate system C1 to the user coordinate system C3 is a known homogeneous transformation matrix.

[0170] The work equipment 134 is, for example, a machine tool, and has a main body 142, a workpiece holding mechanism 144, and a moving mechanism 146. The workpiece holding mechanism 144 is movably provided on a surface 148 of the main body 142. In this embodiment, the workpiece holding mechanism 144 is a chuck mechanism. Specifically, as shown in Figures 19, 21 and 22, the workpiece holding mechanism 144 has a chuck base 150, a plurality of chuck jaws 152 provided on the chuck base 150 in an openable and closable manner, and a chuck driver (not shown) that drives the chuck jaws 152.

[0171] The chuck base 150 is a cylindrical member having a central axis A2, and has a substantially flat holding surface 150a facing outward. The chuck jaws 152 are movably provided on the chuck base 150 so as to move toward and away from the axis A2. In this embodiment, a total of three chuck jaws 152 are arranged so as to be aligned at substantially equal intervals around the axis A2. The chuck drive unit is, for example, a pneumatic or hydraulic cylinder or a motor, and opens and closes the chuck jaws 152 under a command from the control device 16. When the chuck jaws 152 grip an object, the object is held coaxially with the axis A2.

[0172] 21 and 22, in this embodiment, the abutment portion 154 is gripped in advance by the chuck jaws 152. The abutment portion 154 is a cylindrical member and has a pair of end faces 156 and 158, each of which is substantially flat, an outer circumferential surface 160 which is a cylindrical surface extending between the end faces 156 and 158, and a through hole 162 which penetrates the abutment portion 154 in the axial direction.

[0173] The through hole 162 has the same outer shape as the protruding portion WB of the workpiece WP2, and slidably receives the protruding portion WB as described below. More specifically, the through hole 162 is defined by inner surfaces 162a, 162b, 162c, and 162d, each of which is a substantially flat surface. The inner surfaces 162a and 162b are arranged parallel to each other and face each other. The inner surfaces 162c and 162d are perpendicular to the inner surfaces 162a and 162b, and are arranged parallel to each other and face each other.

[0174] The moving mechanism 146 has, for example, a ball screw mechanism and a servo motor (neither shown) that drives the ball screw mechanism, and moves the workpiece holding mechanism 144 in the x-axis, y-axis, and z-axis directions of the work equipment coordinate system C4 under instructions from the control device 16. A moving coordinate system C5 is set for the workpiece holding mechanism 144.

[0175] The moving coordinate system C5 is for controlling the position of the workpiece holding mechanism 144 in the work equipment coordinate system C4, and moves in the work equipment coordinate system C4 together with the workpiece holding mechanism 144. In this embodiment, the moving coordinate system C5 is set with respect to the workpiece holding mechanism 144 so that its origin is located at the intersection of the axis A2 and the holding surface 150a (i.e., the center point of the holding surface 150a) and its y axis is perpendicular to the holding surface 150a.

[0176] In this embodiment, the contact portion 154 is held by the chuck jaws 152 in such a position that its inner surfaces 162a and 162b are parallel to the yz plane of the moving coordinate system C5, and its inner surfaces 162c and 162d are parallel to the xy plane of the moving coordinate system C5. In this manner, the contact portion 154 is held by the workpiece holding mechanism 144 so as to be coaxial with the axis A2, and the workpiece holding mechanism 144 and the contact portion 154 are moved together.

[0177] When moving the workpiece holding mechanism 144, the processor 50 sets a movement coordinate system C5 in the work equipment coordinate system C4, and controls the movement mechanism 146 to position the workpiece holding mechanism 144 at a position defined by the set movement coordinate system C5. In this way, the processor 50 can position the workpiece holding mechanism 144 at any position in the work equipment coordinate system C4.

[0178] Therefore, the positional relationship of the moving coordinate system C5 with respect to the work equipment coordinate system C4 (i.e., the origin position and the directions of each axis) is known, and the moving coordinate system C5 is expressed as coordinates E (x, y, z, w, p, r) of the work equipment coordinate system C4. In addition, the positions of the work holding mechanism 144 and the abutment part 154 with respect to the moving coordinate system C5 are known. Therefore, the positions of the work holding mechanism 144 and the abutment part 154 in the work equipment coordinate system C4 are known via the moving coordinate system C5.

[0179] Next, the function of the system 130 will be described. First, the work equipment 134 operates the moving mechanism 146 to move the workpiece holding mechanism 144 (i.e., the contact portion 154) to a predetermined position PS W The positional relationship between the work device coordinate system C4 and the moving coordinate system C5 at this time is known as described above, and the coordinates of the moving coordinate system C5 in the work device coordinate system C4 are expressed as coordinates E5 (x5, y5, z5, w5, p5, r5). In addition, the coordinate transformation matrix M45 from the work device coordinate system C4 to the moving coordinate system C5 is _3 is a known homogeneous transformation matrix, and the coordinate transformation matrix M _3 Each parameter is determined from the coordinates E5 (x5, y5, z5, w5, p5, r5).

[0180] Next, the robot 132 brings the workpiece WP2, which is being held by the end effector 136 at a predetermined holding position, into contact with the contact portion 154, as shown in Figures 17, 19, and 21. At this time, the protrusion WB of the workpiece WP2 is fitted into the through hole 162 of the contact portion 154, the bottom surface B6 of the protrusion WB comes into surface contact with the holding surface 150a, the side surfaces B7 and B8 of the protrusion WB come into surface contact with the inner surfaces 162a and 162b of the contact portion 154, respectively, and the side surfaces B9 and B10 of the protrusion WB come into surface contact with the inner surfaces 162c and 162d of the contact portion 154, respectively.

[0181] In this way, the hand 140 is stationary and positioned at a predetermined position PS3 and orientation OR3 relative to the work device 134. At this time, the user coordinate system C3 and the moving coordinate system C5 can be considered to coincide with each other. That is, the origin positions, and the x-axis, y-axis, and z-axis directions of the user coordinate system C3 and the moving coordinate system C5 can be considered to coincide with each other.

[0182] Therefore, the positional relationship of the user coordinate system C3 with respect to the work device coordinate system C4 at this time becomes known, and the coordinates of the user coordinate system C3 in the work device coordinate system C4 are expressed as the above-mentioned coordinates E5 (x5, y5, z5, w5, p5, r5). In addition, the coordinate transformation matrix M43 from the work device coordinate system C4 to the user coordinate system C3 is _3 is the above coordinate transformation matrix M45 _3 is equal to

[0183] In this way, by bringing the end device 140 (specifically, the workpiece WP2) into contact with the contact portion 154, the end device 140 is positioned stationary at a predetermined position PS3 and orientation OR3 relative to the work device 134, and the positional relationship of the user coordinate system C3 with respect to the work device coordinate system C4 at this time (i.e., the position PS3 and orientation OR3 of the end device 140) becomes known. Therefore, the contact portion 154 functions as an element for expressing the position PS3 and orientation OR3 of the end device 140 in the work device coordinate system C4.

[0184] Then, the processor 50 functions as the position data acquisition unit 62 to acquire second position data β3 indicating the position PS3 and the orientation OR3 in the work device coordinate system C4 when the hand 140 is placed at the position PS3 and the orientation OR3. As an example, the processor 50 acquires the above-mentioned coordinates E5 (x5, y5, z5, w5, p5, r5) or the coordinate transformation matrix M43 as the second position data β3. _3 Get the.

[0185] As another example, the processor 50 may convert, as the second position data β3, a coordinate transformation matrix M34 from the user coordinate system C3 to the work device coordinate system C4 when the hand 140 is placed at the position PS3 and the orientation OR3. _3 =inv(M43 _3 ), or the coordinates E5' (x5', y5', z5', w5', p5', r5') of the work device coordinate system C4 in the user coordinate system C3 may be acquired.

[0186] On the other hand, the processor 50 acquires first position data α3 indicating the position PS3 and orientation OR3 in the robot coordinate system C1 when the end effector 140 is placed at the position PS3 and orientation OR3. As an example, the processor 50 acquires, as the first position data α3, coordinates D5 (X5, Y5, Z5, W5, P5, R5) of the user coordinate system C3 in the robot coordinate system C1 when the end effector 140 is placed at the position PS3 and orientation OR3, or a coordinate transformation matrix M13 from the robot coordinate system C1 to the user coordinate system C3. _3 Get the.

[0187] As another example, the processor 50 may set, as the first position data α3, coordinates D5' (X5', Y5', Z5', W5', P5', R5') of the robot coordinate system C1 in the user coordinate system C3 when the end effector 140 is placed at the position PS3 and the orientation OR3, or a coordinate transformation matrix M31 from the user coordinate system C3 to the robot coordinate system C1. _3 may be obtained.

[0188] Next, the processor 50 functions as the positional relationship acquisition unit 64, and acquires third position data γ3 indicating the positional relationship between the robot coordinate system C1 and the work equipment coordinate system C4, using the acquired first position data α3 and second position data β3. As an example, the processor 50 acquires, as the third position data γ3, a coordinate transformation matrix M14 from the robot coordinate system C1 to the work equipment coordinate system C4. _3 , M14 _3 =M13 _3 M34 _3 =M13 _3 ·inv(M43 _3 ) is calculated using the formula:

[0189] As another example, the processor 50 may calculate the third position data γ3 by using a coordinate transformation matrix M41 from the work equipment coordinate system C4 to the robot coordinate system C1. _3 (=inv(M14 _3 )), coordinates D6 (X6, Y6, Z6, W6, P6, R6) of the work equipment coordinate system C4 in the robot coordinate system C1, or coordinates E6 (x6, y6, z6, w6, p6, r6) of the robot coordinate system C1 in the work equipment coordinate system C4 may be acquired.

[0190] As described above, according to this embodiment, the processor 50 can acquire the third position data γ3 by placing the end device 140 at one position PS3 and orientation OR3, without executing a process of touching up multiple points set on the work implement 134 with the end device 140. This can greatly simplify the process of determining the positional relationship between the robot coordinate system C1 and the work implement coordinate system C4.

[0191] The above-mentioned contact detection sensor 92 can also be applied to the system 130. For example, the first sensor element 94 of the contact detection sensor 92 is provided at the center of the holding surface 150a of the workpiece holding mechanism 144 (or the bottom surface B6 of the workpiece WP2), the second sensor element 96 is provided on the inner surface 162a or 162b of the abutting portion 154 (or the side surface B7 or B8 of the workpiece WP2), and the third sensor element 98 is provided on the inner surface 162c or 162d of the abutting portion 154 (or the side surface B9 or B10 of the workpiece WP2).

[0192] In this case, the processor 50 may execute the flow shown in Fig. 12. For example, in step S1, the processor 50 may place the workpiece WP2 at an initial position PS0 and an initial posture OR0 such that at least a part of the protrusion WB of the workpiece WP2 is fitted into the through-hole 162 of the abutting portion 154. Also, in step S2, the processor 50 may move the hand portion 140 in the y-axis direction of the user coordinate system C3 at this time point (i.e., a direction estimated to be perpendicular to the holding surface 150a).

[0193] Furthermore, in step S4, the processor 50 may move the hand portion 140 in the x-axis direction of the user coordinate system C3 at this time point (i.e., a direction estimated to be perpendicular to the inner surfaces 162a and 162b). Furthermore, in step S6, the processor 50 may move the hand portion 140 in the z-axis direction of the user coordinate system C3 at this time point (i.e., a direction estimated to be perpendicular to the inner surfaces 162c and 162d). In this way, the processor 50 can automatically perform an operation of abutting the hand portion 140 against the abutment portion 154 and positioning it at a predetermined position PS3 and orientation OR3 by executing the flow shown in FIG. 12.

[0194] The above-mentioned displacement data acquisition unit 108 and correction unit 110 can also be applied to the system 130. For example, the processor 50 acquires the first position data α3 (e.g., coordinate D5) or the second position data β3 (e.g., coordinate E5) before and after relocating the system 130 or replacing the robot 132 or the work equipment 134 (or when applying the simulation to an actual machine).

[0195] The processor 50 may function as a displacement data acquisition unit 108 and acquire displacement data Δ indicating a difference between a relative position RP5 before the relocation or replacement and a relative position RP6 after the relocation or replacement by calculating a difference between two pieces of position data acquired before and after the relocation or replacement using a method similar to that of the above-described system 100. The processor 50 may function as a correction unit 110 and correct the operation program OP created before the relocation or replacement using the acquired displacement data Δ.

[0196] The above-mentioned position detection sensor 122 (touch probe) can also be applied to the system 130. Specifically, the position detection sensor 122 is fixed to the workpiece holding mechanism 144 of the work equipment 134 (for example, gripped by the chuck jaws 152). Then, the processor 50 places the hand 140 at a predetermined position PS4 and attitude OR4.

[0197] Next, the processor 50 operates the moving mechanism 146 to move the position detection sensor 122, and touches up (makes contact with) a plurality of positions of the hand portion 140 (workpiece WP2) with the detection point 122a of the position detection sensor 122. For example, the processor 50 operates the moving mechanism 146 to sequentially touch up three points PT1, PT2, and PT3 on the side surface B7 (or B8) of the workpiece WP2 gripped by the end effector 136 with the detection point 122a.

[0198] Next, the processor 50 operates the moving mechanism 146 to sequentially touch up, with the detection point 122a, two points PT4 and PT5 on the side surface B9 (or B10) of the workpiece WP2 held by the end effector 136. Next, the processor 50 operates the moving mechanism 146 to touch up, with the detection point 122a, one point P6 on the bottom surface B6 of the workpiece WP2 held by the end effector 136.

[0199] Then, similar to the above-mentioned system 120, the processor 50 determines the position and posture (i.e., the origin position and directions of each axis of the user coordinate system C3) of the workpiece WP2 (hand end portion 140) in the work equipment coordinate system C4 based on the detection data DP1 to DP6 received from the position detection sensor 122 each time the six points PT1 to PT6 are touched up at the detection point 122a, thereby acquiring the second position data β4.

[0200] In this manner, when the position detection sensor 122 is applied to the system 130, the processor 50 may use the position detection sensor 122 to acquire second position data β4 (e.g., coordinate E of the user coordinate system C3 in the work equipment coordinate system C4) before and after relocating the system 130 or replacing the robot 132 or the work equipment 134 (or when applying the simulation to the actual equipment).

[0201] Then, the processor 50 functions as the displacement data acquisition unit 108, and calculates the difference between the two pieces of second position data β4 acquired before and after the relocation or replacement (or when the simulation is applied to the actual machine) using a method similar to that of the above-described system 100, to obtain displacement data Δ E3 (or, Δ E1 ) may be obtained.

[0202] For example, at a relative position RP5 before relocation or replacement (or when a simulation is performed), the processor 50 acquires coordinates E7 (x7, y7, z7, w7, p7, r7) of the user coordinate system C3 in the work equipment coordinate system C4 as the second position data β4, and at a relative position RP6 after relocation or replacement (or after the system 130 is constructed in real space), the processor 50 acquires coordinates E8 (x8, y8, z8, w8, p8, r8) of the user coordinate system C3 in the work equipment coordinate system C4 as the second position data β4.

[0203] The processor 50 then functions as a displacement data acquisition unit 108 and acquires the displacement data Δ E3 The difference between coordinates E7 and E8 is Δ E3 Then, the processor 50 functions as the correction unit 110 to obtain the obtained displacement data Δ E3 (=E8-E7) may be used to correct the operation program OP5 of the work device 134 created before the relocation or replacement (or when the simulation is performed). Specifically, the processor 50 may use the acquired displacement data Δ to correct the above-mentioned position PS W A new operation program OP6 may be created by correcting the teaching points.

[0204] The position PS3 and orientation OR3 for positioning the hand 140 in the system 130 may be a target position and a target orientation when the robot 132 performs a predetermined task (such as workpiece handling) on ​​the work equipment 134 in an actual manufacturing process. For example, in an actual manufacturing process, the processor 50 operates the moving mechanism 146 of the work equipment 134 to move the workpiece holding mechanism 144 to a predetermined position PS W Position it at.

[0205] Then, the processor 50 operates the robot 132 to transfer the workpiece that the end effector 136 has gripped at the predetermined gripping position to the position PS W The workpiece is gripped by the chuck jaws 152 of the workpiece holding mechanism 144 positioned at the position indicated by the arrow A, and transferred to the workpiece holding mechanism 144. Next, the processor 50 operates the work equipment 134 to machine the workpiece with the tool while moving the workpiece held by the workpiece holding mechanism 144 with the moving mechanism 146.

[0206] After the workpiece has been machined, the processor 50 operates the moving mechanism 146 of the work equipment 134 to move the workpiece holding mechanism 144 to the position PS W Then, the robot 132 is operated so that the machined workpiece held by the workpiece holding mechanism 144 is received by the end effector 136.

[0207] In such a series of manufacturing processes, the predetermined position PS3 and orientation OR3 may be set so that the target position and target orientation when the robot 132 performs a work handling operation on the work equipment 134 (i.e., transferring a work to the work holding mechanism 144 and receiving a work from the work holding mechanism 144) coincide with the above-mentioned predetermined position PS3 and orientation OR3. Furthermore, the processor 50 may use the position data of the predetermined position PS3 and orientation OR3 and the acquired third position data γ3 to create an operation program OP7 for causing the robot 132 and the work equipment 134 to cooperatively execute a series of manufacturing processes.

[0208] According to this configuration, since the third position data γ3 can be acquired with the hand unit 140 (end effector 136) positioned at the target position and target posture, it is possible to cause the robot 132 to perform a task (such as workpiece handling) on ​​the work equipment 134 with high accuracy in an actual manufacturing process. Note that the predetermined position PS1 and posture OR1 in the above-mentioned system 10, or the predetermined position PS2 and posture OR2 in the system 120 may also be set as the target position and posture when the robot 12 performs a predetermined task on the work equipment 14.

[0209] In the system 130, the moving mechanism 146 is omitted, and the workpiece holding mechanism 144 is held at a known position PS in the workpiece coordinate system C4. W In this case, the positional relationship of the user coordinate system C3 with respect to the work device coordinate system C4 when the workpiece WP2 of the hand portion 140 is brought into contact with the contact portion 154 can be considered as a known positional relationship as shown in FIG.

[0210] In addition, in the case where the moving mechanism 146 is omitted from the system 130, the work equipment 134 may further include a tool for machining the workpiece held by the workpiece holding mechanism 144 and a moving mechanism for moving the tool relative to the workpiece holding mechanism 144 (both not shown), and the above-mentioned position detection sensor 122 (touch probe) may be fixed to the tool and the position detection sensor 122 may be moved by the moving mechanism.

[0211] In this case, the processor 50 may acquire the second position data β4 by moving the position detection sensor 122 with the movement mechanism while positioning the hand 140 of the robot 132 at a predetermined position PS3 and orientation OR3, and touching up any point PT1 to PT6 of the hand 140 with the detection point 122a. At this time, the position PS3 and orientation OR3 for positioning the hand 140 may be the above-mentioned target position and target orientation.

[0212] In the system 130, the abutment portion 154 and the workpiece WP2 may be configured so that the assembly of the abutment portion 154 and the workpiece WP2 fitted together as shown in Fig. 21 has the same shape (dimensions) as the workpiece WP3 to be operated in the actual manufacturing process. In this case, this is equivalent to obtaining the third position data γ3 using the workpiece WP3 to be used in the actual manufacturing process, and therefore the accuracy of the workpiece handling by the robot 132 in the actual manufacturing process can be further improved.

[0213] Furthermore, in the system 130, the third position data γ3 may be acquired using a workpiece WP3 that is an object of work in an actual manufacturing process, instead of the contact portion 154 and the workpiece WP2. This function will be described below with reference to Figures 23 and 24. The workpiece WP3 is a cylindrical member, and has a pair of end faces K1 and K2, and an outer circumferential surface K3.

[0214] The end effector 136 grasps the workpiece WP3 at a predetermined gripping position by grasping the workpiece WP3 at a predetermined gripping position. At this time, the tip end (wrist flange) of the wrist 24, the end effector 136, and the workpiece WP3 grasped by the end effector 136 at the predetermined gripping position constitute a hand portion 140' of the robot 132.

[0215] A user coordinate system C3 is set for the workpiece WP3 that is gripped by the end effector 136 at a predetermined gripping position. In this embodiment, the user coordinate system C3 has its origin at the end effector 13 6 is placed at the center point of the end face K2 of the workpiece WP3 to be gripped, and the xz plane is 13 6 is set with respect to the workpiece WP3 so as to be parallel to the end face K2 of the workpiece WP3 to be gripped.

[0216] The processor 50 operates the robot 132 to bring the end surface K2 of the workpiece WP3 into contact with the holding surface 150a of the workpiece holding mechanism 144, and operates the chuck driving unit to grip the workpiece WP3 with the chuck jaws 152. As a result, the hand portion 140' is held by the workpiece holding mechanism 144 and is positioned stationary at a predetermined position PS3 and attitude OR3.

[0217] At this time, the origin of the user coordinate system C3 is located at the center point of the holding surface 150a (i.e., the origin of the moving coordinate system C5), and the y-axis of the user coordinate system C3 is in a direction perpendicular to the holding surface 150a. Here, in this embodiment, the processor 50 maintains the posture of the hand 140' when the end surface K2 of the workpiece WP3 is brought into contact with the holding surface 150a at a known posture in the task coordinate system C4.

[0218] For example, the processor 50 maintains the orientation of the end portion 140' when the workpiece WP3 is brought into contact with the holding surface 150a in an orientation in which the positive direction of the z-axis of the user coordinate system C3 corresponds to the vertically upward direction. In this case, when the workpiece WP3 is gripped by the chuck jaws 152 and the end portion 140' is positioned at the position PS3 and the orientation OR3, the orientation of the end portion 140' is maintained in an orientation in which the positive direction of the z-axis of the user coordinate system C3 corresponds to the vertically upward direction.

[0219] On the other hand, in the task coordinate system C4, the vertically upward direction (for example, the positive z-axis direction of the task coordinate system C4) can be specified, so that the z-axis direction of the user coordinate system C3 in the task coordinate system C4 when the end unit 140' is placed at the position PS3 and the orientation OR3 can be specified. In this way, the origin position, y-axis direction, and z-axis direction of the user coordinate system C3 in the task coordinate system C4 can be specified, and thus the positional relationship of the user coordinate system C3 with respect to the task coordinate system C4 (i.e., the position and orientation of the end unit 140') can be made known.

[0220] According to this embodiment, by setting the posture of the end portion 140' when positioning the end portion 140' at the position PS3 and posture OR3 to a known posture in the work coordinate system C4, it is possible to obtain second position data β3 indicating the position and posture of the end portion 140' in the work coordinate system C4 without using the abutment portion 154 and workpiece WP2 shown in Figure 21.

[0221] In addition, the processor 50 may maintain the posture of the hand portion 140' when contacting the workpiece WP3 with the holding surface 150a in a posture in which the positive z-axis direction of the user coordinate system C3 coincides with the vertical downward direction known in the work coordinate system C4, or in a posture in which the positive x-axis direction of the user coordinate system C3 coincides with the horizontal left (or right) direction known in the work coordinate system C4.

[0222] 23, the outer peripheral surface K3 of the workpiece WP3 abuts against the chuck jaws 152, and the end surface K2 of the workpiece WP3 abuts against the holding surface 150a, so that the end portion 140' is stationary and disposed at the position PS3 and the orientation OR3, and thus the position and orientation of the end portion 140' in the task coordinate system C4 are known. Therefore, in this embodiment, the chuck jaws 152 and the holding surface 150a of the workpiece holding mechanism 144 function as abutment portions.

[0223] 7 or the force sensor 82 shown in Fig. 9 may be applied to the system 130, and the operator may teach the robot 132 the operation of abutting the hand portion 140 (or 140') against the abutment portion 154 (or the workpiece holding mechanism 144) to position the robot 132 at a predetermined position PS3 and attitude OR3. In this case, the processor 50 of the system 130 functions as the teaching command receiving unit 78 and the robot control unit 79 described above.

[0224] The system 130 may also include a first control device 16A that controls the robot 132, and a second control device 16B that is communicatively connected to the first control device 16A and controls the work equipment 134. In this case, the processor 50 of either one of the control devices 16A and 16B may function as the position data acquisition unit 62 and the positional relationship acquisition unit 64, or the processor 50 of the first control device 16A may function as one of the position data acquisition unit 62 and the positional relationship acquisition unit 64, and the processor 50 of the second control device 16B may function as the other of the position data acquisition unit 62 and the positional relationship acquisition unit 64.

[0225] In the above-described system 10, 70, 70', 80, 90, 100, 120, or 130, the processor 50 may automatically execute the process of acquiring the first position data α, the second position data β, and the third position data γ in accordance with a computer program. In this case, the computer program causes the processor 50 to function as the position data acquiring unit 62 and the positional relationship acquiring unit 64.

[0226] In the above-described embodiment, the end effector 26 and 136 are described as robot hands capable of gripping a workpiece. However, the end effector 26 or 136 is not limited to this, and may be any type of end effector capable of performing a predetermined task (e.g., processing, welding, painting, etc.).

[0227] In the above embodiment, the tip of the wrist 24, the end effector 26, 136, and the workpieces WP1, WP2, WP3 grasped by the end effector 26, 136 constitute the hand portion 40, 140, 140'. However, the end effector 26, 136 does not necessarily have to grasp the workpieces WP1, WP2, WP3. In this case, the tip of the wrist 24 and the end effector 26, 136 constitute the hand portion 40B, 140B.

[0228] 3, the user coordinate system C3 may be set for the end effector 26 such that its origin is located at one vertex of one gripping surface 36a and its yz plane is parallel to the one gripping surface 36a. In this case, the claw portion 36 of the end effector 26 may be brought into contact with the contact portion 44 to place the hand 40B in a predetermined position and posture. In this case, the positional relationship of the user coordinate system C3 with respect to the work equipment coordinate system C4 (the position and posture of the hand 40B) can be made known using the same principle as in the above embodiment.

[0229] Furthermore, with regard to the hand portion 140B, for example, in the end effector 136 shown in FIG. 19, the user coordinate system C3 may be set with respect to the end effector 136 so that its origin is located at the position where an object is grasped (for example, a position between multiple fingers or the center of the suction surface of the suction portion) and its z axis is parallel to (specifically, coincides with) the wrist axis A1 (FIG. 1).

[0230] In this case, the end part 140B may be arranged in a predetermined position and posture by bringing any part (fingers or suction part) of the end effector 136 into contact with the workpiece holding mechanism 144 as a contact part and holding it on the workpiece holding mechanism 144. Even in this case, the positional relationship of the user coordinate system C3 with respect to the work equipment coordinate system C4 (the position and posture of the end part 140B) can be made known by the same principle as in the above embodiment.

[0231] With respect to the end portion 40B, 140B, the above-mentioned sensor elements 94, 96, 98 may be provided on the tip portion of the wrist portion 24 or on the end effector 26, 136, and the end portion 40B, 140B may be positioned in a predetermined position and posture by abutting against the abutment portion 44, 154. In addition, the end portion 40, 140, 140' may be composed of only the tip portion (wrist flange) of the wrist portion 24, for example, or may be defined as any part of the robot 12.

[0232] Furthermore, the above-mentioned abutment portions 44, 154 are one example for making the position PS and orientation OR of the end portions 40, 40B, 140, 140B of the robot 12 relative to the work equipment coordinate system C4 known, and may have any shape as long as it can make the position PS and orientation OR of the end portions 40, 40B, 140, 140B of the robot 12 relative to the work equipment coordinate system C4 known.

[0233] In addition, instead of the abutment portions 44, 154, the end portions 40, 40B, 140, 140B may be positioned at a predetermined position PS and attitude OR by abutting them against any part (hole, recess, or convex portion) of the robot 12 or the work equipment 14 whose position in the work equipment coordinate system C4 is known.

[0234] Furthermore, the user coordinate system C3 is not limited to the above embodiment, and may be set at any position whose positional relationship with respect to the MIF coordinate system C2 is known. For example, in the embodiment shown in Fig. 3, the origin of the user coordinate system C3 may be set at a vertex other than the vertex F of the workpiece WP1, or at the center point of the bottom surface B1 or the top surface B2.

[0235] In the above embodiment, the processor 50 acquires data indicating the positional relationship of the user coordinate system C3 with respect to the work equipment coordinate system C4 as the second position data β. However, the present invention is not limited to this. The processor 50 may acquire data indicating the positional relationship of the MIF coordinate system C3 with respect to the work equipment coordinate system C4 as the second position data β. If the shapes of the workpieces WP1, WP2, and WP3 and the positions where the end effectors 26 and 136 grip the workpieces WP1, WP2, and WP3 are known, the positional relationship of the MIF coordinate system C3 with respect to the work equipment coordinate system C4 can be made known using the above method.

[0236] Although the present disclosure has been described above through the embodiments, the above-described embodiments do not limit the invention according to the claims. [Explanation of symbols]

[0237] 10,70,70',80,90,100,120,130 system 12,132 Robots 14,134 Work equipment 16 Control device 40,140,140' Hands 44,154 Contact part 60 equipment 62 Position data acquisition unit 64 Positional relationship acquisition unit 78 Instruction and Command Reception Department 79 Robot Control Unit 92 Contact detection sensor 108 Displacement data acquisition section 110 Correction section 122 Position detection sensor

Claims

1. An apparatus for acquiring a positional relationship between a robot coordinate system set in a robot and a work equipment coordinate system set in a work equipment installed outside the robot, comprising: a position data acquisition unit that acquires first position data indicating a position and orientation of the end effector of the robot with respect to the robot coordinate system and second position data indicating a position and orientation of the end effector of the robot with respect to the work equipment coordinate system when the end effector of the robot is placed at a predetermined position and orientation with respect to the work equipment; a positional relationship acquisition unit that acquires the positional relationship based on the first position data and the second position data.

2. The apparatus according to claim 1 , further comprising a robot control unit that operates the robot to position the end device in the predetermined position and orientation by abutting the end device against an abutment provided at a known position in the work device coordinate system to represent the predetermined position and orientation in the work device coordinate system.

3. the robot or the work equipment has a contact detection sensor that detects contact of the hand tip with the contact portion, The device according to claim 2 , wherein the robot control unit executes an operation of positioning the hand at the predetermined position and posture based on detection data from the contact detection sensor.

4. The device according to claim 1 , wherein the position data acquisition unit acquires the second position data based on detection data from a position detection sensor that detects the position of the hand in the work device coordinate system.

5. The work equipment has a movement mechanism, The device according to claim 4 , wherein the position detection sensor has a touch probe that detects a position of the end point in the work device coordinate system by contacting the end point moved by the moving mechanism and placed at the predetermined position and attitude.

6. The device according to claim 1 , further comprising a teaching command receiving unit that receives a teaching command for positioning the end effector unit at the predetermined position and posture.

7. The apparatus according to claim 6 , wherein the teaching command includes a direct teach teaching command for moving the hand portion in response to an external force applied to the robot.

8. The apparatus according to any one of claims 1 to 7, wherein the predetermined position and orientation are a target position and target orientation when the robot performs a predetermined task with respect to the work equipment.

9. The device according to any one of claims 1 to 8, further comprising a displacement data acquisition unit that acquires displacement data indicating a difference between the relative position before and after a change in the relative position between the robot and the work equipment, based on the first position data or the second position data acquired by the position data acquisition unit before and after a change in the relative position between the robot and the work equipment.

10. The apparatus according to claim 9 , further comprising a correction unit that uses the displacement data acquired by the displacement data acquisition unit to correct an operation program for causing the robot or the work equipment to execute a predetermined operation at the relative position before the change.

11. A control device for the robot or the work equipment, comprising the device according to any one of claims 1 to 10.

12. Robots and A work device installed outside the robot; A system comprising: a control device according to claim 11.

13. A method for acquiring a positional relationship between a robot coordinate system set in a robot and a work equipment coordinate system set in a work equipment installed outside the robot, comprising: acquiring first position data indicating a position and orientation of the end effector of the robot relative to the robot coordinate system and second position data indicating a position and orientation of the end effector of the robot relative to the work equipment coordinate system when the end effector of the robot is disposed at a predetermined position and orientation relative to the work equipment; obtaining the positional relationship based on the obtained first position data and the obtained second position data.

14. A processor is provided to acquire a positional relationship between a robot coordinate system set in the robot and a work equipment coordinate system set in a work equipment installed outside the robot, a position data acquisition unit that acquires first position data indicating a position and orientation of the end effector of the robot with respect to the robot coordinate system and second position data indicating a position and orientation of the end effector of the robot with respect to the work equipment coordinate system when the end effector of the robot is placed at a predetermined position and orientation with respect to the work equipment; and a positional relationship acquisition unit that acquires the positional relationship based on the first position data and the second position data; A computer program that functions as a

Citation Information

Patent Citations

  • Finding method of relative position relationship between plurality of robots

    JP1993111897A

  • Robot apparatus and control method of robot apparatus

    JP2010076054A

  • Robot control device, and robot control method

    JP2011230238A

  • Robot system, method for controlling robot and method for manufacturing workpiece

    JP2014176940A

  • Robot system provided with camera for imaging target mark

    JP2017071001A