Device and method for generating search model, device and method for teaching operation position, and control apparatus

The device and method simplify the generation and teaching of search models by simulating posture changes and storing positional relationships, addressing the complexity of existing methods and enhancing efficiency in workpiece searching and positioning.

WO2024189792A1PCT designated stage expired Publication Date: 2024-09-19FANUC LTD

Patent Information

Application Number
PCT/JP2023/009922
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing methods for generating search models for finding workpieces from image data require complex posture changes and teaching of work positions, making the process cumbersome and inefficient.

Method used

A device and method that generate search models by simulating posture changes of a workpiece model in a virtual space, allowing for the generation of search models representing the shape of the workpiece from various viewpoints, and a control device that teaches work positions by storing positional relationships between the workpiece model and the work position, enabling efficient teaching and use of search models.

Benefits of technology

Simplifies the generation and teaching of search models, allowing for efficient searching and positioning of workpieces by reducing the complexity of posture changes and sharing work positions across multiple search models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023009922_19092024_PF_FP_ABST
    Figure JP2023009922_19092024_PF_FP_ABST
Patent Text Reader

Abstract

There is a demand for simplifying an operation for generating a search model since it is necessary to prepare search models of various postures in order to search for a workpiece from image data. This device for generating a search model for searching for a workpiece from image data obtained by imaging the workpiece includes: an input reception unit for receiving an input of a change amount for changing a posture of a workpiece model, which is obtained by modeling the workpiece, in a virtual space; a simulation unit that changes, as a simulation, the posture of the workpiece model in the virtual space; and a search model generation unit that, when the simulation unit changes the posture, generates, on the basis of the workpiece model, a search model representing the shape of the workpiece model viewed from a prescribed viewpoint in the virtual space.
Need to check novelty before this filing date? Find Prior Art

Description

Apparatus and method for generating a search model, apparatus and method for teaching a work position, and control device

[0001] The present disclosure relates to an apparatus and method for generating a search model, an apparatus and method for teaching a work position, and a control device.

[0002] 2. Description of the Related Art There is known an apparatus that generates a search model for searching for a workpiece from image data and teaches a work position relative to the workpiece (see, for example, Patent Document 1).

[0003] JP 2018-144161 A

[0004] In order to search for a workpiece from image data, it is necessary to prepare search models of various postures, and there is a demand for simplifying the work of generating the search models. Furthermore, in the past, it was necessary to teach the work position to each of the multiple search models that were generated, which made the work of teaching complicated.

[0005] In one aspect of the present disclosure, an apparatus for generating a search model for searching for a workpiece from image data of the workpiece includes an input receiving unit that receives an input of a change amount for changing the posture of a workpiece model that models the workpiece in a virtual space, a simulation unit that simulates a change in the posture of the workpiece model in the virtual space according to the change amount received by the input receiving unit, and a search model generation unit that generates a search model based on the workpiece model that represents the shape of the workpiece model as seen from a predetermined viewpoint in the virtual space when the simulation unit changes the posture.

[0006] In another aspect of the present disclosure, a method for generating a search model for searching for a workpiece from image data of the workpiece includes a processor receiving an input of a change amount that changes the posture of a workpiece model that models the workpiece in a virtual space, simulating a change in the posture of the workpiece model in the virtual space according to the received change amount, and generating a search model based on the workpiece model that represents the shape of the workpiece model as seen from a specified viewpoint in the virtual space when the posture is changed.

[0007] In yet another aspect of the present disclosure, an apparatus for instructing a work position at which a robot performs work on a workpiece includes an input receiving unit that receives input for instructing a work position for a workpiece model that models the overall shape of the workpiece, and a position memory unit that stores the work position instructed in accordance with the input received by the input receiving unit in association with the workpiece model as a taught position that indicates the positional relationship between the workpiece model and the work position, and the stored taught position is used to calculate a work position for a workpiece searched for from image data by a search model generated based on the workpiece model.

[0008] In yet another aspect of the present disclosure, a method for teaching a work position where a robot will perform work on a workpiece includes a processor receiving input for teaching a work position for a workpiece model that models the overall shape of the workpiece, storing the work position taught in accordance with the received input in association with the workpiece model as a taught position that indicates the positional relationship between the workpiece model and the work position, and using the stored taught position, calculating a work position for a workpiece searched for from image data by a search model generated based on the workpiece model.

[0009] 1. A schematic diagram of a robot system according to one embodiment. A block diagram of the robot system shown in FIG. 1. A workpiece according to one embodiment and a workpiece model of the workpiece. An example of teaching setting image data is shown. An example of image data of a virtual space in which a robot model and a workpiece model are arranged is shown. A state in which an end effector model is moved in the virtual space shown in FIG. 5 is shown. An example of a rotation cursor image is shown. A state in which an end effector model is moved in the virtual space shown in FIG. 5 is shown. A block diagram showing other functions of the robot system. An example of search model setting image data is shown. A diagram of the workpiece model shown in FIG. 3 as viewed from a viewpoint VP. A search model generated based on the workpiece model shown in FIG. 11 is shown. A block diagram showing further other functions of the robot system. A flowchart showing an example of the operation flow of the robot system of FIG. 13. An example of image data captured in step S2 in FIG. 14 is shown. A state in which a search model is matched to the image data shown in FIG. 15 is shown. An example of the data structure of list data generated in step S5 in FIG. 14 is shown. List data in which target positions are rearranged according to the priority order shown in FIG. 17 is shown. List data in which the target positions shown in FIG. 18 are further rearranged according to predetermined conditions is shown. An example of a flow of step S6 in FIG. 14 is shown. Fig. 24 is a block diagram showing further other functions of the robot system. Fig. 25 shows another example of the flow of step S6 in Fig. 14. Fig. 26 is a diagram for explaining step S31 in Fig. 22. Fig. 27 is a schematic diagram of a control device according to another embodiment. Fig. 28 is a block diagram of the control device shown in Fig. 24.

[0010] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In various embodiments described below, like elements will be designated by like reference numerals, and duplicated descriptions will be omitted. First, a robot system 10 according to one embodiment will be described with reference to FIGS. 1 and 2. The robot system 10 includes a robot 12, a visual sensor 14, and a control device 16.

[0011] In this embodiment, the robot 12 is a vertical articulated robot and includes a robot base 18, a rotating body 20, a lower arm 22, an upper arm 24, a wrist 26, and an end effector 28. The robot base 18 is fixed to the floor of a work cell or on an automated guided vehicle (AGV). The rotating body 20 is mounted on the robot base 18 so as to be rotatable about a vertical axis.

[0012] The base end of the lower arm 22 is rotatably attached to the rotating body 20 around a horizontal axis, and the base end of the upper arm 24 is rotatably attached to the tip of the lower arm 22. The wrist 26 has a wrist base 26a attached to the tip of the upper arm 24 so as to be rotatable around two axes that are perpendicular to each other, and a wrist flange 26b attached to the wrist base 26a so as to be rotatable around a wrist axis A1.

[0013] The end effector 28 is detachably attached to the wrist flange 26 b. The end effector 28 is, for example, a robot hand capable of gripping the workpiece 200, a welding torch that welds the workpiece 200, or a laser processing head that laser processes the workpiece 200, and performs a predetermined operation on the workpiece 200 (workpiece handling, welding, laser processing, etc.).

[0014] Each component of the robot 12 (robot base 18, rotating body 20, lower arm 22, upper arm 24, and wrist 26) is provided with a servo motor 30 (FIG. 2). These servo motors 30 rotate each drive shaft of the robot 12 in response to commands from the control device 16. As a result, the robot 12 can move and position the end effector 28 at any desired position.

[0015] 1, a robot coordinate system C1 and a tool coordinate system C2 are set for the robot 12. The robot coordinate system C1 is a control coordinate system C for controlling the operation of each movable component of the robot 12 (i.e., the rotating body 20, the lower arm 22, the upper arm 24, the wrist base 26a, the wrist 26, and the end effector 28). In this embodiment, the robot coordinate system C1 is fixed relative to the robot base 18 so that its origin is located at the center of the robot base 18 and its z axis is parallel to (specifically, coincides with) the rotation axis of the rotating body 20.

[0016] On the other hand, the tool coordinate system C2 is a control coordinate system C that defines the position of the end effector 28 in the robot coordinate system C1 in order to control the robot 12 during work. In this embodiment, the tool coordinate system C2 is set with respect to the end effector 28 so that its origin (so-called TCP) is located at the work position of the end effector 28 (i.e., the workpiece gripping position, the welding position, or the laser light emission port) and its z axis is parallel to (specifically, coincides with) the wrist axis A1.

[0017] When moving the end effector 28, the control device 16 sets a tool coordinate system C2 in the robot coordinate system C1 and generates commands to each servo motor 30 of the robot 12 to position the end effector 28 at a position represented by the set tool coordinate system C2. In this manner, the control device 16 can position the end effector 28 at any position in the robot coordinate system C1. In this document, the term "position" may refer to both position and orientation.

[0018] The visual sensor 14 captures image data 140 ( FIG. 15 ) of the workpiece 200. In this embodiment, the visual sensor 14 is a three-dimensional visual sensor having, for example, an imaging sensor (CMOS, CCD, etc.) and an optical lens (collimating lens, focusing lens, etc.) that guides the subject image to the imaging sensor. The visual sensor 14 may be fixed to a movable component of the robot (e.g., the end effector 28 or the wrist flange 26 b) and moved by the robot 12.

[0019] Alternatively, the visual sensor 14 may be fixed at a fixed position where the workpiece 200 can be accommodated within its field of view. The visual sensor 14 is configured to capture an image of the object (i.e., the workpiece 200) along the optical axis A2 and measure the distance d to the object. The visual sensor 14 supplies the captured image data 140 to the control device 16.

[0020] The control device 16 controls the operations of the robot 12 and the visual sensor 14. As shown in Fig. 2, the control device 16 is a computer having a processor 32, a memory 34, an I / O interface 36, a display device 38, an input device 40, etc. The processor 32 has a CPU or a GPU, etc., and is communicatively connected to the memory 34, the I / O interface 36, the display device 38, and the input device 40 via a bus 42, and performs calculations to realize various functions described below while communicating with these components.

[0021] The memory 34 includes RAM, ROM, or the like, and temporarily or permanently stores various data. The memory 34 may be configured from a computer-readable non-transitory storage medium, such as a volatile memory, a non-volatile memory, a magnetic storage medium, or an optical storage medium. The I / O interface 36 includes, for example, an Ethernet (registered trademark) port, a USB port, an optical fiber connector, or an HDMI (registered trademark) terminal, and communicates data with external devices via wired or wireless connection under instructions from the processor 32. The servo motors 30 of the robot 12 and the visual sensor 14 are communicatively connected to the I / O interface 36.

[0022] The display device 38 has a liquid crystal display, an organic EL display, or the like, and visibly displays various data under instructions from the processor 32. The input device 40 has a push button, a switch, a keyboard, a mouse, a touch panel, or the like, and receives data input from an operator. The display device 38 and the input device 40 may be integrally incorporated into the housing of the control device 16, or may be connected to the I / O interface 36 as a single computer (PC, etc.) separate from the housing of the control device 16.

[0023] Below, we will explain a case where the end effector 28 is a robot hand, and the processor 32 causes the robot 12 to perform a predetermined task, which is work handling, in which the end effector 28 grasps and picks up workpieces 200 piled up in a container B at a predetermined work position Pw (i.e., a grasping position).

[0024] The operator sets various parameters of the operation program OP in order to construct the operation program OP for executing this operation (i.e., workpiece handling). The operation program OP includes computer programs such as a detection program OP1 that processes image data 140 of the workpiece 200 and detects the workpiece 200 that appears in the image data 140. Specifically, the operator executes a teaching process that teaches the work position Pw (gripping position) where the operation (workpiece handling) is performed on the workpiece 200.

[0025] 3 shows an example of a workpiece 200 to be worked on. In this embodiment, the workpiece 200 is a cylindrical member having a central axis A3, and includes a shaft 202 and a flange 204. The workpiece 200 has an overall shape that is rotationally symmetrical with respect to the central axis A3. For the teaching process, the operator creates a workpiece model 200M that models the overall shape of the workpiece 200. The workpiece model 200M is, for example, a three-dimensional CAD model, and is created by the operator using a CAD device (not shown).

[0026] In the following description, a model of a certain member XX (e.g., robot 12) will be referred to as member model XXM (robot model 12M). Therefore, the workpiece model 200M has a shaft model 202M and a flange model 204M. The workpiece model 200M represents the overall shape of the workpiece 200 (i.e., all surfaces and edges of the workpiece 200, etc.). As shown in FIG. 3, a workpiece coordinate system C3 is set for the workpiece model 200M.

[0027] The workpiece coordinate system C3 is a control coordinate system C that defines the position of the workpiece 200 to be worked on in the robot coordinate system C1 in order to control the robot 12 during work. In this embodiment, the workpiece coordinate system C3 is set with respect to the workpiece model 200M so that its origin is located at the center of gravity of the workpiece model 200M (i.e., the workpiece 200) and its z-axis is parallel to (specifically, coincides with) the central axis A3. Note that the origin of the workpiece coordinate system C3 may be a CAD origin that is used as a reference when creating the workpiece model 200M with a CAD device.

[0028] The workpiece model 200M created by the CAD device is downloaded to the control device 16 and stored in the memory 34. The data (or data file) of the workpiece model 200M is accompanied by identification information Is (for example, a model name, a file name, or characters or symbols representing an identification code) for identifying the workpiece model 200M.

[0029] After starting the teaching process, the processor 32 generates teaching setting image data 100 shown in Fig. 4 and displays it on the display device 38. The teaching setting image data 100 is a graphical user interface (GUI) for selecting an operation program OP for executing a task and an end effector of the robot 12. Specifically, the teaching setting image data 100 includes a program selection image 102, a workpiece information image 104, an end effector selection image 106, and a model load button image 108.

[0030] The program selection image 102 is a GUI for selecting an operation program OP to be used for a task from a plurality of operation programs OP prepared in advance. For example, when the operator operates the input device 40 to click on the program selection image 102 on the image, a list of various operation programs OP stored in the memory 34 (for example, a list of program names or program identification codes, etc.) is displayed.

[0031] The operator can select an operation program OP to be used during work from the displayed operation programs OP. A("Operation Program A" shown in FIG. 4) is selected, and the operation program OP A The case of setting the parameters will be described below.

[0032] The work information image 104 shows the operation program OP selected in the program selection image 102. A In the example shown in FIG. 4, the workpiece model registered in association with the operation program OP A 3 is registered in association with the workpiece 200 shown in Fig. 3. On the other hand, the end effector selection image 106 is a GUI for selecting an end effector to be used in an actual task from among a plurality of types of end effectors prepared in advance.

[0033] For example, when the operator operates the input device 40 to click on the end effector selection image 106, a list of various types of end effectors stored in the memory 34 (e.g., a list of model names, model numbers, identification codes, etc.) is displayed. The operator can select an end effector to be used during work from the various end effectors displayed. The following describes a case where the end effector 28 shown in FIG. 1 is selected as the end effector.

[0034] The model load button image 108 is a GUI for loading the workpiece model 200M, the robot model 12M that is a model of the robot 12, and the control coordinate system C and arranging them in the virtual space VS in order to teach the work position Pw. When the processor 32 receives an input from the operator clicking the model load button image 108 via the input device 40, the processor 32 arranges the workpiece model 200M and the robot model 12M in the virtual space VS ( FIG. 5 ) together with the robot coordinate system C1, the tool coordinate system C2, and the workpiece coordinate system C3 that serve as the control coordinate system C.

[0035] The processor 32 selects the operation program OP selected in the program selection image 102. Aand a robot model 12M having an end effector model 28M of the end effector 28 selected in the end effector selection image 106 are placed in a virtual space VS together with a robot coordinate system C1, a tool coordinate system C2, and a work coordinate system C3.

[0036] In this virtual space VS, the processor 32 sets the robot coordinate system C1 to the robot base model 18M and sets the tool coordinate system C2 to the end effector model 28M, similar to the actual robot 12. The processor 32 may place only the end effector model 28M selected in the end effector selection image 106 in the virtual space VS, while not necessarily placing the robot base model 18M, rotating torso model 20M, lower arm model 22M, upper arm model 24M, and wrist model 26M in the virtual space VS. The processor 32 (model placement unit 52) ​​also references setting information for a workpiece coordinate system C3 registered in association with the workpiece model 200M and sets the workpiece coordinate system C3 to the workpiece model 200M. For example, the origin of the workpiece coordinate system C3 is set to be located at the center of gravity (or the CAD origin) of the workpiece model 200M.

[0037] As described above, in this embodiment, the processor 32 functions as a model placement unit 52 ( FIG. 2 ) that places the workpiece model 200M, the robot model 12M, and the control coordinate system C (specifically, the robot coordinate system C1, the tool coordinate system C2, and the workpiece coordinate system C3) in the virtual space VS. Note that when the processor 32 (model placement unit 52) ​​places the workpiece model 200M in the virtual space VS, it may automatically calculate the origin of the workpiece coordinate system C3 as the center of gravity (or the CAD origin) of the workpiece model 200M, and then place the workpiece coordinate system C3 in the virtual space VS.

[0038] Next, the processor 32 generates image data 110 of the virtual space VS in which the workpiece model 200M, the robot model 12M, and the control coordinate system C (robot coordinate system C1, tool coordinate system C2) are arranged, and displays the image data 110 on the display device 38. An example of the image data 110 is shown in FIG. 5. In this manner, in this embodiment, the processor 32 functions as the image generation unit 54 (FIG. 2) that generates the image data 110 of the virtual space VS.

[0039] In this embodiment, the operator operates the input device 40 to simulate the movement of the robot model 12M in the virtual space VS, while instructing the work position Pw for the workpiece model 200M. The processor 32 receives an input F for instructing the work position Pw for the workpiece model 200M in the virtual space VS.

[0040] Specifically, the processor 32 receives an input Fm that simulates movement of the robot model 12M and the control coordinate system C (robot coordinate system C1, tool coordinate system C2, and workpiece coordinate system C3) in the virtual space VS as the input F. Here, the processor 32 functions as the image generation unit 54 and further displays a movement selection button image 112 on the image data 110.

[0041] The movement selection button image 112 is a GUI for selecting whether to translate or rotate the end effector model 28M together with the tool coordinate system C2 within the virtual space VS. The operator can select translation or rotation by operating the input device 40 and clicking the movement selection button image 112 on the image.

[0042] 5, "translational movement" is selected. In this case, the operator can operate the input device 40 to simulate translational movement of the robot model 12M (specifically, the end effector model 28M) and the tool coordinate system C2 in the virtual space VS. When "translational movement" is selected by the movement selection button image 112, the processor 32 generates an input Fm for translational movement of the end effector model 28M and the tool coordinate system C2 in the virtual space VS. t will be able to accept.

[0043] As an example, the operator may operate the input device 40 to perform an input Fm dragging and dropping of the end effector model 28M (or the tool coordinate system C2) in the virtual space VS in order to translate the end effector model 28M and the tool coordinate system C2. t1 The processor 32 provides the input Fm t1 is received, and the movable component models of the robot model 12M (specifically, the rotating torso model 20M, the lower arm model 22M, the upper arm model 24M, and the wrist model 26M) are simulated to operate within the virtual space VS, thereby translating the end effector model 28M and the tool coordinate system C2 within the virtual space VS.

[0044] As another example, the operator may input an input Fm that specifies a displacement amount δ for displacing the end effector model 28M (i.e., the origin of the tool coordinate system C2) in the virtual space VS. t2 For example, the operator may input, as the displacement δ, a displacement δx in the x-axis direction, a displacement δy in the y-axis direction, and a displacement δz in the z-axis direction of the robot coordinate system C1. t2 is received, and the end effector model 28M and the tool coordinate system C2 are translated by a displacement amount δ (δx, δy, δz) in the virtual space VS.

[0045] As yet another example, the operator may input Fm t3 The processor 32 receives the input Fm t3 and translates the end effector model 28M and the tool coordinate system C2 to the position of the coordinate Q (x, y, z) in the virtual space VS. The processor 32 may function as the image generation unit 54 and further display an image for inputting the displacement amount δ or the coordinate Q in the image data 110.

[0046] Thus, the processor 32 receives the input Fm for translation from the operator. t, and simulates translational movement of the end effector model 28M and the tool coordinate system C2 within the virtual space VS. At this time, the posture of the end effector model 28M does not change. Furthermore, while the origin of the tool coordinate system C2 is displaced along with the translational movement of the end effector model 28M, the axial directions of the tool coordinate system C2 do not change. By this translational movement, as shown in FIG. 6, the end effector model 28M and the tool coordinate system C2 can be placed at desired positions relative to the workpiece model 200M.

[0047] On the other hand, when the operator clicks on the movement selection button image 112 to select "rotation movement", the processor 32 generates an input Fm for rotating the end effector model 28M and the tool coordinate system C2 in the virtual space VS. r In this embodiment, when "rotational movement" is selected, the processor 32 functions as the image generating unit 54 and displays a rotation cursor image 114 in the image data 110 superimposed on the tool coordinate system C2.

[0048] 7 shows an example of the rotation cursor image 114. The rotation cursor image 114 is a GUI for specifying the direction in which to rotate the end effector model 28M and the tool coordinate system C2 within the virtual space VS. Specifically, the rotation cursor image 114 has an x-axis rotation ring 114a, a y-axis rotation ring 114b, and a z-axis rotation ring 114c. The x-axis rotation ring 114a is a GUI for rotating the end effector model 28M and the tool coordinate system C2 around the x-axis of the tool coordinate system C2 before movement.

[0049] An input Fm is an input in which the operator operates the input device 40 to operate (click or drag and drop) the x-axis rotation ring 114a on the image. r1 Given this, the processor 32 calculates the input Fm r1 In response to this, the end effector model 28M and the tool coordinate system C2 are rotated around the x-axis of the tool coordinate system C2 before the movement in the virtual space VS. On the other hand, the input Fm r2 Given this, the processor 32 calculates the input Fm r2is received, and the end effector model 28M and the tool coordinate system C2 are rotated around the y axis of the tool coordinate system C2 before movement.

[0050] Also, the input Fm r3 Given this, the processor 32 calculates the input Fm r3 , and rotates the end effector model 28M and the tool coordinate system C2 around the z-axis of the tool coordinate system C2 before movement. By such rotational movement, as shown in FIG. 8, the orientation of the end effector model 28M and the tool coordinate system C2 can be arbitrarily changed with respect to the workpiece model 200M. While this rotational movement changes the orientation of the end effector model 28M, the position of the end effector model 28M does not displace. Furthermore, while the direction of each axis of the tool coordinate system C2 changes with the rotational movement of the end effector model 28M, the origin position does not displace.

[0051] As described above, the operator can position the end effector model 28M and the tool coordinate system C2 at a desired work position Pw relative to the workpiece model 200M by simulating the movement of the end effector model 28M and the tool coordinate system C2 within the virtual space VS. Then, the operator operates the input device 40 to provide an input Fr for storing the work position Pw. Upon receiving the input Fr, the processor 32 stores the work position Pw in the memory 34.

[0052] In this way, the work position Pw is taught to the workpiece model 200M. In this way, in the present embodiment, the processor 32 receives the input F (inputs Fm and Fr) for teaching the work position Pw from the operator, and teaches the workpiece model 200M the work position Pw in accordance with the input F. Therefore, the processor 32 functions as an input receiving unit 56 ( FIG. 2 ) that receives the input F for teaching the work position Pw.

[0053] When the processor 32 receives the above-mentioned input Fr from the operator, it calculates the coordinate Qw(x w , y w , zw , w w , p w , r w ) is acquired. This coordinate Qw represents the work position Pw (in other words, the position and posture of the end effector 28 when performing the work) taught to the work model 200M, and is data indicating the positional relationship between the work model 200M (work coordinate system C3) and the work position Pw. More specifically, of the coordinate Qw, the coordinate (x w , y w , z w ) represents the position of the tool coordinate system C2 (i.e., the end effector model 28M) relative to the workpiece coordinate system C3 (i.e., the workpiece model 200M), and the coordinates (w w , p w , r w ) represent the attitude (so-called yaw, pitch, and roll) of the tool coordinate system C2 relative to the workpiece coordinate system C3.

[0054] The processor 32 converts the acquired coordinates Qw into a teaching position Pw that indicates the positional relationship between the workpiece model 200M and the work position Pw. t In this embodiment, the processor 32 stores the teaching position Pw t The data is stored in the memory 34 in association with the workpiece model 200M (for example, the identification information Is). t and the workpiece model 200M are associated with each other.

[0055] During actual work, the processor 32 uses the teaching position Pw stored as described above. t Using this, the work position Pw relative to the workpiece 200 is calculated. In actual work, the processor 32 uses a search model 200S generated based on the workpiece model 200M to search for the workpiece 200 that appears in image data 140 ( FIG. 15 ) obtained by capturing an image of the workpiece 200 by the visual sensor 14. The search model 200S will be described later.

[0056] In this manner, in this embodiment, the processor 32 converts the work position Pw taught to the workpiece model 200M into the taught position Pw t(Specifically, the coordinate Qw) in association with the workpiece model 200M. t A database DB is generated for the acquired teaching position Pw t The data (coordinates Qw) may be stored in the database DB. This database DB may be associated with the workpiece model 200M (identification information Is) and stored in the memory 34. As a result of this teaching process, information on the end effector 28 (end effector model 28M) to be used in the actual work and the taught teaching position Pw t The data (coordinates Qw) will be registered.

[0057] As described above, in this embodiment, the processor 32 teaches the work position Pw by functioning as the model placement unit 52, the image generation unit 54, the input reception unit 56, and the position storage unit 58. Therefore, the model placement unit 52, the image generation unit 54, the input reception unit 56, and the position storage unit 58 constitute the device 50 ( FIG. 2 ) that teaches the work position Pw.

[0058] In this device 50, an input receiving unit 56 receives an input F (Fm, Fr) for teaching a work position Pw to a work model 200M, and a position memory unit 58 stores the work position Pw taught in accordance with the input F as a taught position Pw indicating the positional relationship between the work model 200M (or the work coordinate system C3) and the work position Pw. t (coordinate Qw) and stored in association with the workpiece model 200M. Then, in an actual work, the thus-stored teaching position Pw t Using this, the work position Pw for the workpiece 200 searched from the image data 140 by the search model 200S is calculated.

[0059] According to this configuration, the operator can determine the work position Pw (taught position Pw) with respect to the workpiece model 200M, not the search model 200S. t), it is not necessary to teach the work position Pw to the search model 200S every time a search model 200S (described later) is generated. Therefore, even when search models 200S with multiple postures are generated, the work position Pw can be shared among these search models 200S. This greatly simplifies the work of teaching the work position Pw.

[0060] In the apparatus 50, the model placement unit 52 places the robot model 12M and at least one of the control coordinate system C (robot coordinate system C1, tool coordinate system C2, workpiece coordinate system C3), and the workpiece model 200M in a virtual space VS, and the image generation unit 54 generates image data 110 of the virtual space VS ( FIG. 5 ). The input reception unit 56 receives, as an input F for teaching, an input Fm that simulates movement of the robot model 12M or the control coordinate system C in the virtual space VS. With this configuration, the operator can easily teach a desired work position Pw by visually viewing the image data 110 of the virtual space VS and simulatedly manipulating the robot model 12M (specifically, the end effector model 28M) or the control coordinate system C (specifically, the tool coordinate system C2).

[0061] In the device 50, the input receiving unit 56 receives, as the input Fm, an input Fm for translating the end effector model 28M so that the origin of the tool coordinate system C2 is displaced. t (Fm t1 , Fm t2 , Fm t3 ), or an input Fm that rotates and moves the end effector model 28M around an axis (x-axis, y-axis, or z-axis) of the tool coordinate system C2. r (Fm r1 , Fm r2 , Fm r3 According to this configuration, the operator can operate the end effector model 28M in the virtual space VS together with the tool coordinate system C2 in a more versatile manner with simple operations.

[0062] In the device 50, the image generation unit 54 further displays a movement selection button image 112 for selecting translational movement or rotational movement on the image data 110. When translational movement is selected by the movement selection button image 112, the input acceptance unit 56 receives an input Fm for translational movement. t On the other hand, when rotational movement is selected by the movement selection button image 112, an input Fm r This configuration can further improve the operability of the end effector model 28M and the tool coordinate system C2 in the virtual space VS by the operator.

[0063] In the above teaching process, the operator sets a plurality of work positions Pw1, Pw2, . . . Pw for one workpiece model 200M. m In this case, the processor 32 functions as the input receiving unit 56 in the teaching process and receives the plurality of work positions Pw m The processor 32 then receives an input F (Fm, Fr) for teaching the position Pw. t1 , Pw t2 , ... Pw tm (That is, coordinate Qw1 (x w1 , y w1 , z w1 , w w1 , p w1 , r w1 ), Qw2(x w2 , y w2 , z w2 , w w2 , p w2 , r w2 ), ...Qw m (x wm , y wm , z wm , w wm , p wm , r wm )) are stored in the memory 34 in association with the workpiece model 200M.

[0064] In this case, the processor 32 functions as the input receiving unit 56 and receives the plurality of taught work positions Pw tmAn input G for determining the priority of the teaching position Pw (m=1, 2, 3, ...) may be further received. tm After the teaching positions Pw are stored, the input device 40 is operated to input the teaching positions Pw tm The processor 32 provides an input for assigning a priority indicated by label information of "high priority", "medium priority", or "low priority" to the teaching position Pw stored in the memory 34. tm This allows the operator to store the work positions Pw tm (That is, multiple teaching positions Pw tm ) can be given a desired priority.

[0065] In the above embodiment, the processor 32 functions as the model placement unit 52 to place the robot model 12M and the robot coordinate system C1, tool coordinate system C2, and workpiece coordinate system C3 as the control coordinate system C in the virtual space VS together with the workpiece model 200M. However, the present invention is not limited to this, and the processor 32 does not have to place the robot model 12M or the control coordinate system C in the virtual space VS.

[0066] For example, the processor 32 may arrange only the tool coordinate system C2 in the virtual space VS as the control coordinate system C. In this case, the processor 32 functions as the image generation unit 54 and generates image data 110 of the virtual space VS in which only the tool coordinate system C2 is arranged. The processor 32 also functions as the input reception unit 56 and receives an input Fm from the operator that simulates movement of the tool coordinate system C2 in the virtual space VS.

[0067] Alternatively, the processor 32 may function as the model placement unit 52 and place only the robot model 12M (e.g., the end effector model 28M) in the virtual space VS without placing the control coordinate system C in the virtual space VS. In this case, the processor 32 functions as the image generation unit 54 and generates image data 110 of the virtual space VS in which only the robot model 12M (end effector model 28M) is placed.

[0068] In this way, the processor 32 (model placement unit 52) ​​places at least one of the robot model 12M and the control coordinate system C, and the workpiece model 200M in the virtual space VS. Note that the processor 32 may, as the model placement unit 52, place the robot model 12M, the robot coordinate system C1, the tool coordinate system C2, the workpiece coordinate system C3, and the workpiece model 200M in the virtual space VS, while, as the image generation unit 54, generate image data 110 of the virtual space VS that displays only the tool coordinate system C2.

[0069] In the above-described embodiment, the processor 32 (image generation unit 54) displays the rotation cursor image 114 (FIGS. 7 and 8) when "rotation movement" is selected with the movement selection button image 112, and rotates the robot model 12M in response to an operation on the rotation cursor image 114. However, the processor 32 may receive an input specifying, for example, the amount of rotation by which the end effector model 28M is to be rotated and the axis of the control coordinate system C that serves as the center of rotation, without displaying the rotation cursor image 114.

[0070] The movement selection button image 112 may also be omitted from the image data 110. In this case, the processor 32 may be configured to switch between translational movement and rotational movement in response to a predetermined command input (e.g., function key input, etc.) by the operator to the input device 40. The model placement unit 52 and the image generation unit 54 may also be omitted from the device 50. For example, the operator may manually input the coordinates Qw of the work position Pw without visually checking the image data 110 as shown in FIG. 5. The workpiece model 200M may also be a two-dimensional CAD model. The processor 32 may execute the above-described teaching process in accordance with the computer program PG1. This computer program PG1 may be pre-stored in the memory 34.

[0071] Next, other functions of the robot system 10 will be described with reference to Fig. 9. In this embodiment, the processor 32 executes a search model generation process that generates a search model 200S for searching for the workpiece 200 from image data 140 of the workpiece 200. Hereinafter, the above-mentioned operation program OP A A case will be described in which a search model 200S is generated to be used when performing work by executing the above.

[0072] After the search model generation process starts, the processor 32 generates search model setting image data 120 shown in Fig. 10 and displays it on the display device 38. The search model setting image data 120 is a GUI for assisting the operator in generating the search model 200S. Specifically, the search model setting image data 120 includes position input images 122, 124, and 126, posture input images 128, 130, and 132, a posture interval input image 134, and a model load button image 136.

[0073] The model load button image 136 is a GUI for selecting a workpiece model to be used as the actual workpiece from among the various workpiece models stored in the memory 34. For example, when the operator operates the input device 40 to click the model load button image 136 on the image, a list of the various workpiece models stored in the memory 34 (e.g., a list of file names, model names, workpiece identification codes, etc.) is displayed. The operator can select a workpiece model to be used as the workpiece from the displayed workpiece models. In this embodiment, it is assumed that the workpiece model 200M shown in FIG. 3 is selected as the workpiece model.

[0074] The position input images 122, 124, and 126 are used to set the origin position of the workpiece coordinate system C3. Specifically, the position input images 122, 124, and 126 allow input of the amount of displacement for displacing the origin of the workpiece coordinate system C3 (for example, the center of gravity of the workpiece model or the CAD origin) as the initial setting in the x-axis direction, y-axis direction, and z-axis direction of the workpiece coordinate system C3.

[0075] The orientation input images 128, 130, and 132 are used to set the orientation of the workpiece coordinate system C3 (i.e., the direction of each axis). Specifically, the orientation input images 128, 130, and 132 allow input of angles for rotating the orientation of each axis of the workpiece coordinate system C3 as the initial setting around the x-axis, y-axis, and z-axis of the workpiece coordinate system C3, respectively. Using these position input images 122, 124, and 126 and the orientation input images 128, 130, and 132, the operator can arbitrarily adjust the position and orientation of the workpiece coordinate system C3 set in the search model 200S.

[0076] The posture interval input image 134 is a GUI for inputting a change amount θ by which the posture of the workpiece model 200M is changed in the virtual space VS in order to generate the search model 200S. The operator can operate the input device 40 to input the change amount θ as an angle θ (θ = 9° in the example of FIG. 10 ) into the posture interval input image 134. The processor 32 functions as the input receiving unit 56 and receives input of the displacement amount θ (angle θ).

[0077] After the operator inputs desired values ​​into the position input images 122, 124, and 126, the orientation input images 128, 130, and 132, and the orientation interval input image 134, the operator clicks the model load button image 136 and then selects the workpiece model 200M. In response to the operator's input operation, the processor 32 loads the model data (i.e., CAD data) of the workpiece model 200M and places it in the virtual space VS together with the workpiece coordinate system C3. At this time, the processor 32 places the workpiece coordinate system C3 at the position and orientation set by the position input images 122, 124, and 126 and the orientation input images 128, 130, and 132.

[0078] Next, the processor 32 generates a search model 200S1 of a first orientation when the workpiece model 200M placed in the virtual space VS is viewed from a predetermined reference viewpoint VP ( FIG. 3 ). FIG. 11 shows the workpiece model 200M in the first orientation when viewed from the reference viewpoint VP. The processor 32 generates the search model 200S1 of the first orientation by assigning a point cloud to model components (models of faces, edges, etc.) of the workpiece model 200M in the first orientation based on the model data of the workpiece model 200M.

[0079] An example of a search model 200S1 in the first orientation is shown in FIG. 12. In this search model 200S1, model components (surface models, edge models) of the workpiece model 200M that can be seen from the reference viewpoint VP in the virtual space VS are represented by a three-dimensional point cloud. Using these point clouds, the search model 200S1 represents the shape of the workpiece model 200M in the first orientation as seen from the reference viewpoint VP. In addition, a workpiece coordinate system C3 is set in the search model 200S1. Note that, when the processor 32 reads the workpiece model 200M, the processor 32 may automatically set the reference viewpoint VP to any position in the virtual space VS. In addition, the processor 32 may receive input from the operator to determine the reference viewpoint VP.

[0080] Next, the processor 32 performs a calculation process to simulate a change in the posture of the workpiece model 200M in the virtual space VS in accordance with the change amount (angle) θ received as input through the posture interval input image 134. Specifically, the processor 32 changes the posture of the workpiece model 200M in the virtual space VS by repeatedly executing a simulated rotation operation VR that rotates the workpiece model 200M around the x-axis (or y-axis) and z-axis of the workpiece coordinate system C3 by the angle θ input in the posture interval input image 134.

[0081] For example, after generating the search model 200S1 of the first posture, the processor 32 performs a first simulated rotation operation VR in which the workpiece model 200M (FIG. 11) viewed from the reference viewpoint VP is rotated by an angle θ (=9°) around the x-axis of the workpiece coordinate system C3. xAs a result, the orientation of the workpiece model 200M as seen from the reference viewpoint VP changes from the first orientation to the second orientation. In this manner, in this embodiment, the simulator 62 functions as a simulator 62 (FIG. 9) that simulates a change in the orientation of the workpiece model 200M in the virtual space VS in accordance with the input change amount (angle) θ.

[0082] Then, the processor 32 generates a search model 200S2 of the second orientation, which represents the shape of the workpiece model 200M in the second orientation as viewed from the reference viewpoint VP, based on the workpiece model 200M in the second orientation. Thereafter, the processor 32 performs a first simulated rotation operation VR to rotate the workpiece model 200M by an angle θ around the x-axis of the workpiece coordinate system C3. x is repeatedly executed, and the first simulated rotation operation VR x Each time the search model 200S is executed, n For example, the processor 32 may rotate the workpiece model 200M around the x-axis of the workpiece coordinate system C3 by an angle θ in a range of 0° to π (for example, π = 180° or 360°), with the first orientation shown in FIG.

[0083] First simulated rotation operation VR x In addition, the processor 32 performs a second simulated rotation operation VR to rotate the workpiece model 200M viewed from the reference viewpoint VP by an angle θ around the z-axis of the workpiece coordinate system C3. z Then, the processor 32 repeatedly executes the second simulated rotation operation VR z Each time the search model 200S is executed, n For example, the processor 32 may rotate the workpiece model 200M around the z-axis of the workpiece coordinate system C3 by an angle θ in a range of −π to π (e.g., π=180°), with the first orientation shown in FIG.

[0084] Thus, the processor 32 performs the simulated rotational motion VR (VR x , V.R. z) is repeatedly executed, the orientation of the workpiece model 200M as viewed from the reference viewpoint VP is changed to a first orientation, a second orientation, a third orientation, ..., an n-th orientation, and a search model 200S1 in the first orientation, a search model 200S2 in the second orientation, a search model 200S3 in the third orientation, ..., a search model 200S4 in the n-th orientation is generated. n Generate.

[0085] As a result, the processor 32 generates a total of n search models 200S: n=(π / θ+1)·(2π sin φ / θ+1). n Here, φ indicates the angle obtained by rotating the workpiece model 200M around the z-axis of the workpiece coordinate system C3. In this manner, in this embodiment, the processor 32 generates the search model 200S based on the workpiece model 200M. n The search model 200S thus generated functions as the search model generation unit 64 (FIG. 9) that generates the search model 200S. n is used for searching for the workpiece 200 from the image data 140 of the workpiece 200 captured by the visual sensor 14 for actual work. The flow of the actual work will be described later.

[0086] The processor 32 executes the search model 200S. n When generating the search model 200S, point cloud data of the front-side model components that can be seen from the reference viewpoint VP in the virtual space VS is generated, but point cloud data of the back-side model components that cannot be seen from the reference viewpoint VP (for example, the edge models and surface models on the back side of the paper of the model components of the workpiece model 200M in FIG. 11) does not need to be generated. n This can reduce the amount of data.

[0087] As a result of the above-described search model generation process, the data of the workpiece model 200M selected by operating the model read button image 136 is stored in the operation program OP together with its identification information Is. A In addition, the search model 200S is registered in association with the n The data is the operation program OP Aand the workpiece model 200M (identification information Is) are registered in association with each other. A , teaching position Pw t , work model 200M, and search model 200S. n are related to each other.

[0088] As described above, in this embodiment, the processor 32 functions as the input receiving unit 56, the simulating unit 62, and the search model generating unit 64 to generate the search model 200S. n Therefore, the input receiving unit 56, the simulating unit 62, and the search model generating unit 64 generate the search model 200S n 9. The apparatus 60 (FIG. 9) generates

[0089] In this device 60, the input receiving unit 56 receives an input of a change amount θ that changes the posture of the workpiece model 200M in the virtual space VS, and the simulating unit 62 simulates the change amount θ in the virtual space VS according to the change amount θ received by the input receiving unit 56. Then, the search model generating unit 64 generates a search model 200S that represents the shape of the workpiece model 200M as seen from a predetermined viewpoint VP in the virtual space VS when the simulating unit 62 changes the posture. n is generated based on the workpiece model 200M.

[0090] According to this configuration, the operator can generate search models 200S of various postures simply by inputting the amount of change θ. n This allows the search model 200S to be automatically generated. n Furthermore, the operator can select the amount of change θ appropriately to generate the search model 200S. n The postures and the number of postures can be arbitrarily designed. n This also increases the degree of freedom in design.

[0091] In addition, in the device 60, the input receiving unit 56 receives input of the angle θ by which the work model 200M is rotated around the axes (x-axis, y-axis, z-axis) of the coordinate system C (work coordinate system C3) set in the virtual space VS as the amount of change θ, and the simulating unit 62 changes the posture of the work model 200M by repeatedly executing a simulated rotation operation VR that rotates the work model 200M around the axis by the angle θ.

[0092] Then, the search model generating unit 64 generates the search model 200S every time the simulating unit 62 executes the simulated rotation operation VR. n According to this configuration, the operator can change the posture of the workpiece model 200M based on the axes of the coordinate system C set in the virtual space VS. n The posture can be designed effectively.

[0093] In the apparatus 60, the simulator 62 performs a first simulated rotation operation VR to rotate the workpiece model 200M around a first axis (for example, the x-axis of the workpiece coordinate system C3). x and a second simulated rotation operation VR for rotating the workpiece model 200M around a second axis (for example, the z-axis of the workpiece coordinate system C3) that is perpendicular to the first axis. z According to this configuration, the search model 200S to be generated is n This makes it possible to design a wider variety of postures more easily.

[0094] In the above embodiment, the processor 32 (input receiving unit 56) receives input of the angle θ by which the workpiece model 200M is rotated around the axis of the workpiece coordinate system C2 as the displacement amount θ. However, the invention is not limited to this, and the displacement amount θ may be predetermined as a required value (e.g., θ = 9°).

[0095] 10 is merely an example, and any other GUI may be used. For example, the displacement θ may include an angle θx by which the workpiece model 200M is rotated around the x-axis (or y-axis) of the workpiece coordinate system C3 and an angle θz by which the workpiece model 200M is rotated around the z-axis of the workpiece coordinate system C3, and the search model setting image data 120 may include an orientation interval input image 134x for inputting the angle θx and an orientation interval input image 134z for inputting the angle θz. The processor 32 may execute the above-described search model generation process according to a computer program PG2. This computer program PG2 may be stored in advance in the memory 34.

[0096] Next, other functions of the robot system 10 will be described with reference to FIG. 13. The processor 32 functions as the above-described device 50 (i.e., the model placement unit 52, the image generation unit 54, the input reception unit 56, and the position storage unit 58), executes the above-described teaching process, and sets the work position Pw (i.e., the teaching position Pw) with respect to the workpiece model 200M. t ) is taught.

[0097] In this embodiment, it is assumed that a total of three work positions Pw1, Pw2, and Pw3 are taught to one workpiece model 200M in this teaching process. That is, in this case, the processor 32 functions as the input receiving unit 56 and receives the input F that teaches a total of three work positions Pw1, Pw2, and Pw3 to one workpiece model 200M. Then, the processor 32 functions as the position storage unit 58 and stores the first taught position Pw t1 (coordinate Qw1), second teaching position Pw t2 (coordinate Qw2), and the third teaching position Pw t3 (Coordinate Qw3) is associated with the workpiece model 200M and stored in advance in the memory 34.

[0098] In this teaching process, the operator also stores the three teaching positions Pw tm (m=1, 2, 3) First teaching position Pw t1 is given a "high priority" and the second teaching position Pw t2is given a "medium priority" and the third teaching position Pw t3 In other words, in this case, the processor 32 functions as the input receiving unit 56 and assigns a "low priority" to the three work positions Pw tm The CPU 100 receives an input G that determines the priority ("high priority", "medium priority", "low priority") of the processes.

[0099] The processor 32 also functions as the above-described device 60 (i.e., the input receiving unit 56, the simulating unit 62, and the search model generating unit 64), executes the above-described search model generating process, and generates search models 200S of various postures based on the workpiece model 200M. n The generated search model 200S is generated. n is stored in advance in the memory 34.

[0100] After the execution of the teaching process and the search model generation process, the processor 32 executes the flow shown in Fig. 14. The flow in Fig. 14 is for performing work (workpiece handling) on ​​the workpiece 200 in the container B. The operator operates the input device 40 to generate an operation program OP in which various parameters have been set by the teaching process and the search model generation process described above, as an operation program OP for executing the flow in Fig. 14. A Specify.

[0101] When the processor 32 receives a work start command from an operator or a higher-level controller, it starts the operation program OP A 14 is started. In step S1, the processor 32 executes the teaching position Pw tm Specifically, the processor 32 acquires the currently running operating program OP A and the teaching position Pw registered in association with the workpiece model 200M. tm The data is read out and acquired from the memory 34.

[0102] In step S2, the processor 32 captures an image of the workpiece 200 in the container B using the visual sensor 14. Specifically, the processor 32 operates the visual sensor 14 to capture image data 140 of the workpiece 200. The processor 32 acquires the captured image data 140 from the visual sensor 14. An example of the image data 140 is shown in FIG.

[0103] As shown in Fig. 15, in this embodiment, the image data 140 is three-dimensional point cloud image data, and the visual features (i.e., surfaces, edges, etc.) of the captured workpiece 200 are represented by a point cloud. Each point constituting the point cloud has information on the distance d described above. Note that while Fig. 15 shows an example in which a total of three workpieces 200 are captured in the image data 140, it should be understood that in reality, more than three workpieces may be captured.

[0104] In step S3, the processor 32 calculates the workpiece 200 shown in the image data 140 acquired in the most recent step S2 based on the search model 200S generated in advance. n Specifically, the processor 32 adds search models 200S of various postures to the point cloud representing the workpiece 200 shown in the image data 140, thereby obtaining the detected position Pd of the workpiece 200 shown in the image data 140. n are matched in order, and a score SC is calculated as a result of the matching each time the matching is performed.

[0105] This score SC is calculated by comparing the point cloud representing the workpiece 200 with the search model 200S. n The higher (or lower) the score SC, the more similar the two are. When the calculated score SC exceeds a predetermined threshold, the processor 32 calculates the similarity (or dissimilarity) between the point cloud of the workpiece 200 and the search model S. n 16, search models 200S1 and 200S2 are applied to the point cloud of the workpiece 200. 11 and 200S 21 indicates a highly matched state.

[0106] Search models 200S1 and 200S matched to the point cloud of the workpiece 20011 and 200S 21 As described above, the workpiece coordinate system C3 is set for each of the matched search models 200S1, 200S2, and 200S3. 11 and 200S 21 The coordinates Qd1 and Qd2 in the robot coordinate system C1 of the workpiece coordinate system C3 set as 11 and Qd 21 are obtained respectively.

[0107] Here, the position of the visual sensor 14 in the robot coordinate system C1 is known by calibration. Therefore, the coordinates in the robot coordinate system C1 of the point cloud captured in the image data 140 captured by the visual sensor 14 are also known. Therefore, the processor 32 calculates the search models 200S1, 200S2, and 200S3 as shown in FIG. 11 and 200S 21 When the coordinates Qd1 and Qd2 are matched to the point cloud, the coordinates Qd1 and Qd2 in the robot coordinate system C1 of the workpiece coordinate system C3 are 11 and Qd 21 can be obtained.

[0108] Thus, processor 32 generates search model 200S n The processor 32 searches for the workpiece 200 shown in the image data 140 using the coordinates Qd1, Qd 11 and Qd 21 are the detection positions Pd1 and Pd2 indicating the position of the workpiece 200 when the image data 140 is captured. 11 and Pd 21 and stores it in the memory 34.

[0109] In this manner, in this embodiment, the processor 32 converts the workpiece 200 shown in the image data 140 into a search model 200S. n By searching using the above, the position of the workpiece 200 is detected at the detection positions Pd1, Pd 11 and Pd 21 (Specifically, coordinates Qd1, Qd 11 and Qd 21 ) and functions as a position detection unit 66 (FIG. 13).

[0110] In step S4, the processor 32 calculates the teaching position Pw tm and the detected position Pd obtained in the immediately preceding step S3 q (q=1, 11, 21) and the detected position Pd q Specifically, the processor 32 calculates the target position Pt of the work for the detected workpiece 200. Specifically, the processor 32 calculates the coordinate Qd1 in the robot coordinate system C1 representing the detected position Pd1 and the first taught position Pw t1 A predetermined calculation (specifically, multiplication of the coordinate and the transformation matrix) is performed using the coordinate Qw1 of the workpiece coordinate system C3 representing the coordinate Qw1 in the robot coordinate system C1 and the transformation matrix MX (for example, a homogeneous transformation matrix or a Jacobian matrix) between the robot coordinate system C1 and the workpiece coordinate system C3, and the coordinate Qw1 is expressed as a coordinate Qr 1_1 Ask for.

[0111] This coordinate Qr 1_1 is the first taught position Pw taught to the workpiece 200 that detected the detected position Pd1 (i.e., the workpiece 200 that matched the search model 200S1 in FIG. 16). t1 The processor 32 calculates the coordinates Qr 1_1 is used to calculate the first target position Pt 1_1 is required.

[0112] Similarly, the processor 32 calculates the second teaching position Pw for the detected position Pd1. t2 The second target position Pt 1_2 (Coordinate Qr of robot coordinate system C1 1_2 ) and the third teaching position Pw t3 The third target position Pt 1_3 (Coordinate Qr of robot coordinate system C1 1_3 In this way, the processor 32 calculates three target positions Pt 1_1 , Pt 1_2 and Pt 1_3 Ask for.

[0113] Similarly, the processor 32 detects the detected position Pd 11(That is, the search model 200S in FIG. 16 11 For the workpiece 200 that matches the first teaching position Pw t1 The first target position Pt 11_1 (Coordinate Qr of robot coordinate system C1 2_1 ) and the second teaching position Pw t2 The second target position Pt 11_2 (Coordinate Qr of robot coordinate system C1 11_2 ) and the third teaching position Pw t3 The third target position Pt 11_3 (Coordinate Qr of robot coordinate system C1 11_3 ) is obtained.

[0114] The processor 32 also detects the detected position Pd 21 (That is, the search model 200S in FIG. 16 21 For the workpiece 200 that matches the first teaching position Pw t1 The first target position Pt 21_1 (Coordinate Qr of robot coordinate system C1 21_1 ) and the second teaching position Pw t2 The second target position Pt 21_2 (Coordinate Qr of robot coordinate system C1 21_2 ) and the third teaching position Pw t3 The third target position Pt 21_3 (Coordinate Qr of robot coordinate system C1 21_3 ) is obtained.

[0115] In this way, the processor 32 detects the three detection positions Pd q When (q=1, 11, 21) is acquired, a total of nine target positions Pt q_m (q=1, 11, 21 m=1, 2, 3) is calculated. q_m In this manner, in the present embodiment, the processor 32 stores the teaching position Pw tm and the detected position Pd obtained in step S3 q (Coordinate Qd q ) and the target position Pt q_m (Coordinate Qr q_m) by calculation.

[0116] In step S5, the processor 32 calculates the target positions Pt q_m An example of the list data 150 is shown in FIG. 17. In the list data 150 shown in FIG. 17, a column 152 indicated as "No." is used to generate list data 150 for the target position Pt q_m The column 154 labeled "detection position ID" indicates the order of the detection position Pd q Identification ID: "q" for (q=1, 11, 21).

[0117] In addition, a column 156 indicated as "Teaching position ID" indicates the teaching position Pw tm (m=1, 2, 3) The identification ID: "m" is shown. Also, the column 158 indicated as "priority" indicates the teaching position Pw tm The column 160 labeled "target position" indicates the target position Pt q_m (That is, coordinate Qr q_m ) Also, a column 152 labeled "Status" indicates the status of the work. "Waiting for work" in this column 162 indicates that the work on the work 200 is incomplete and that the work is scheduled to be executed.

[0118] Here, the processor 32 calculates the target position Pt q_m As a result, the processor 32 updates the list data 150 as shown in FIG. 18. In the updated list data 150, the plurality of target positions Pt q_m are sorted in order of high priority, medium priority, and low priority.

[0119] The list data 150 shown in FIG. 18 includes a target position Pt q_m As the three target positions Pt 1_1 (Coordinate Qr 1_1 ), Pt 11_1 (Coordinate Qr 11_1 ), and Pt 21_1(Coordinate Qr 21_1 Similarly, for medium priority and low priority, three target positions Pt q_m Therefore, the processor 32 selects three target positions Pt q_m In order to further determine the priority of the work order for the target positions Pt q_m are further sorted according to the magnitude of the z coordinate of the robot coordinate system C1 (in other words, the height in the vertical direction).

[0120] Suppose a high-priority target position Pt 1_1 z coordinate: z 1_1 and the target position Pt 11_1 z coordinate: z 11_1 and the target position Pt 21_1 z coordinate: z 21_1 Between 21_1 >z 1_1 >z 11_1 Furthermore, the medium-priority target position Pt 1_2 , t 11_2 and t 21_2 For the z coordinate of 21_2 >z 1_2 >z 11_2 Furthermore, the low-priority target position Pt 1_3 , t 11_3 and t 21_3 For the z coordinate of 21_3 >z 1_3 >z 11_3 Assume that the following relationship holds.

[0121] In this case, the processor 32 selects the target positions Pt q_m 19. In this way, the processor 32 sorts the target positions Pt q_m Therefore, processor 32 functions as list generator 70 (FIG. 13) that generates list data 150.

[0122] 14 again, in step S6, the processor 32 executes the interference verification process. This step S6 will be described with reference to FIG. 20. In step S21, the processor 32 moves the robot 12 to the target position Pt q_m When the robot 12 is positioned at the predetermined position, it is determined whether or not interference occurs between the robot 12 and an environmental object E (not shown).

[0123] Specifically, the processor 32 calculates the target position Pt q_m The target position Pt q_m If step S21 is executed for the first time, the processor 32 determines whether or not interference occurs for the target position Pt 21_1 : Coordinate Qr 21_1 (x 21_1 , y 21_1 , z 21_1 , w 21_1 , p 21_1 , r 21_1 ) will be subjected to collision detection.

[0124] More specifically, the processor 32 uses the image data 140 acquired in step S2 and the coordinates Qr 21_1 and the robot model 12M, the end effector model 28M of the robot model 12M is calculated based on the coordinates Qr 21_1 When the end effector model 28M is positioned at the position shown in FIG.

[0125] If interference occurs, the processor 32 determines YES and proceeds to step S22, whereas if it determines NO, the processor 32 proceeds to step S7 in Fig. 14. As described above, in this embodiment, the processor 32 moves the robot 12 to the target position Pt q_m The interference determination unit 72 (FIG. 13) determines whether or not interference occurs between the robot 12 and the environmental object E when the robot 12 is positioned in the predetermined position.

[0126] In step S22, the processor 32 determines whether or not interference between the robot 12 and the environmental object E can be avoided. Specifically, the processor 32 calculates the target position Pt q_m (For example, target position Pt 21_1 ) to a position where interference can be avoided and work can be performed. q_m ' to calculate.

[0127] The interference avoidance condition CD is, for example, q_m In step S22, the processor 32 calculates the corrected position Pt q_m If the result of the determination is NO, the process proceeds to step S24. In step S23, the processor 32 calculates the target position Pt q_m is calculated in the immediately preceding step S22. q_m Then, the processor 32 proceeds to step S7 in FIG. 14. In this manner, in this embodiment, the processor 32 corrects the target position Pt q_m The position corrector 74 (FIG. 13) corrects the position.

[0128] In step S24, the processor 32 updates the status. Specifically, the processor 32 functions as the list generation unit 70 and generates the target position Pt q_m (For example, target position Pt 21_1 ) is changed to "interference avoidance calculation failed" which indicates that the calculation for interference avoidance has failed in step S22. q_m may be deleted from the list data 150.

[0129] Then, the processor 32 returns to step S21 and selects the target position Pt q_m (For example, the target position Pt 1_1 ) in the order shown in column 152 of list data 150 in FIG. 19 (in other words, the priority order in column 158). q_m Collision detection is performed for each of the following in order.

[0130] 14 again, in step S7, the processor 32 executes the operation on the workpiece 200. For example, in the immediately preceding step S21, the processor 32 determines the top target position Pt 21_1 In this case, in step S7, the processor 32 determines the target position Pt 21_1 Data (coordinates Qr 21_1 ), commands are generated for the servo motors 30 of the robot 12, and the robot 12 is controlled in accordance with the commands, thereby moving the end effector 28 to the coordinates Qr in the robot coordinate system C1. 21_1 Position it at.

[0131] Then, the processor 32 operates the end effector 28 to generate the search model 200S in FIG. 21 The robot 12 then grips the workpiece 200 at the first work position Pw1. In this way, the robot 12 performs the work (workpiece handling) on ​​the workpiece 200. In this way, in this embodiment, the processor 32 selects the target position Pt 21_1 and controls the robot 12 to move the robot 12 to the top target position Pt 21_1 The actuator 76 functions as an operation command unit 76 (FIG. 13) for positioning the actuator.

[0132] On the other hand, in the immediately preceding step S23, the processor 32 q_m Correction position Pt q_mIn this case, the processor 32 corrects the position Pt q_m ', and the end effector 28 is moved to the corrected position Pt q_m Then, the processor 32 operates the end effector 28 to position the workpiece 200 at the corrected position Pt q_m The workpiece is gripped at the work position Pw1' corresponding to '.

[0133] In step S8, the processor 32 determines whether the work performed in the immediately preceding step S7 has been properly completed. If the processor 32 determines YES, the process proceeds to step S9, whereas if the processor 32 determines NO, the process proceeds to step S10. In step S9, the processor 32 functions as the list generation unit 70, and generates the target position Pt q_m Change the "Status" of to "Work Successful" to indicate that the work has been completed successfully.

[0134] For example, the top target position Pt 21_1 When the operation of step S7 is completed using the target position Pt 21_1 At this time, the processor 32 changes the "status" of the target position Pt 21_1 The target position Pt of the sequence No. 4 with the same identification ID: m=21 as 21_2 and the target position Pt 21_3 The processor 32 also changes the "status" of the target position Pt q_m (For example, target position Pt 21_1 , Pt 21_2 and Pt 21_3 ) may be deleted from the list data 150.

[0135] In step S10, the processor 32 functions as the list generation unit 70, and generates the target position Pt q_mFor example, if the processor 32 changes the "status" of the target position Pt 21_1 In this case, the processor 32 executes the work using the target position Pt 21_1 Change the "Status" to "Work Failed."

[0136] At this time, the processor 32 calculates the target position Pt 21_1 The target position Pt of the sequence No. 4 with the same identification ID: m=21 as 21_2 , and the target position Pt of the sequence No. 7 21_3 The processor 32 may also change the "status" of the target position Pt q_m may be deleted from the list data 150.

[0137] In step S11, the processor 32 selects the target position Pt q_m If the determination is YES, the processor 32 returns to step S6 and determines whether the target position Pt q_m The target position Pt q_m On the other hand, if the processor 32 determines that the answer is NO, the process proceeds to step S12.

[0138] In step S12, the processor 32 determines whether or not work has been completed on all of the workpieces 200 in the container B. If the processor 32 determines YES, it ends the flow shown in Fig. 14, whereas if the processor 32 determines NO, it returns to step S2. Then, in step S2, the processor 32 again causes the visual sensor 14 to capture an image of the workpieces 200 in the container B, and executes the flow of steps S2 to S12 based on the newly captured image data 140.

[0139] As described above, in this embodiment, the control device 16 has the functions of the devices 50 and 60, the position detection unit 66, the position calculation unit 68, the list generation unit 70, the interference determination unit 72, the position correction unit 74, and the operation command unit 76. The position detection unit 66 converts the workpiece 200 shown in the image data 140 captured by the visual sensor 14 into the search model 200S generated by the search model generation unit 64. n By searching using the above, the position of the workpiece 200 shown in the image data 140 is detected as the detection position Pd q (Coordinate Qd q ) (step S3).

[0140] The position calculation unit 68 calculates the teaching position Pw stored in the position storage unit 58. tm and the detected position Pd obtained by the position detection unit 66 q Based on this, the detected position Pd q The work position Pw for the workpiece 200 at which the m , the target position Pt q_m (Step S4). According to this configuration, the search model 200S for various postures having the above-mentioned advantages can be obtained. n The workpiece 200 can be effectively searched for from the image data 140 using the teaching position Pw tm Search Model 200S in various positions n The search model 200S is shared among n The target position Pt of the work for the workpiece 200 detected by q_m can be calculated efficiently.

[0141] In this embodiment, the list generation unit 70 also generates a list of the target positions Pt q_m In this configuration, the list data 150 includes a plurality of target positions Pt q_m This effectively manages the order of work on the workpiece 200. As a result, the work can be carried out smoothly.

[0142] In this embodiment, the input receiving unit 56 receives the instructed work position Pwm The list generating unit 70 further receives an input G that determines the priority of the target positions Pt q_m Then, the operation command unit 76 generates list data 150 (FIGS. 18 and 19) in which the target position Pt q_m (For example, target position Pt 21_1 ) and controls the robot 12 to move the robot 12 to the top target position Pt q_m In this configuration, the operator can set the target position Pt at which the robot 12 can easily perform the work (step S7). q_m This reduces the possibility of work failure, thereby improving work efficiency.

[0143] In this embodiment, the interference determination unit 72 determines whether the robot 12 is at the target position Pt q_m The interference determination unit 72 determines whether or not interference occurs between the robot 12 and the environmental object E when the robot 12 is positioned at the target position Pt q_m The interference determination is performed for each of the following in order of priority.

[0144] Then, the operation command unit 76 selects the target positions Pt q_m The highest target position Pt q_m (For example, target position Pt 21_1 According to this configuration, the robot 12 is controlled based on the priority order determined by the operator, and the robot 12 is determined to have a higher priority than the target position Pt q_m This allows the work efficiency to be improved more effectively.

[0145] In step S10, the processor 32 functions as the list generator 70 and generates the target position Pt q_mFor example, in the most recent step S7, the processor 32 may change the "status" of the target position Pt in the vicinity of the target position Pt with the order No. 1 in the list data 150 of FIG. 19 to "task failed" (or "task pending"). 21_1 As a result of performing the work using the above, it is determined that the result is NO in step S8.

[0146] In this case, the processor 32 determines the target position Pt 21_1 , the target position Pt of the sequence No. 4 21_2 , and the target position Pt of the sequence No. 7 21_3 At this time, the processor 32 also changes the "status" of the target position Pt 21_1 The work 200 (i.e., the search model 200S in FIG. 16) 21 The target position Pt is calculated for the workpiece 200 within a predetermined distance Δ from the workpiece 200 that has been matched. q_m The "status" of the task is also changed to "task failed" (or "task pending").

[0147] For example, in FIG. 16, search model 200S 21 A search model 200S is located within a predetermined distance Δ from the matched workpiece 200. 11 In this case, the processor 32 determines the target position Pt 11_1 , the target position Pt of the sequence No. 6 11_2 , and the target position Pt of the sequence No. 9 11_3 The "status" of the task is also changed to "task failed" (or "task pending").

[0148] Here, if the operation on one workpiece 200 fails, the position of another workpiece 200 in the vicinity may change. When such a change in the position of the other workpiece 200 occurs, the target position Pt q_m Even if the end effector 28 is positioned at the target position Pt q_mBy also changing the "status" of the target position Pt in the vicinity of the target position Pt to "task failed", the possibility of frequent task failures can be reduced, thereby improving task efficiency.

[0149] 14, the processor 32 executes step S1 after the start of the flow. However, this is not limiting. The processor 32 may execute step S1 after step S3, or may execute step S1 at any timing before executing step S4. Furthermore, steps S8 to S11 may be omitted from the flow of FIG. 14.

[0150] In the above embodiment, the processor 32 (device 60) generates the search model 200S before executing the flow of FIG. n However, the present invention is not limited to this. The processor 32 may generate the search model 200S in advance during the execution of the flow of FIG. n For example, before the flow of Fig. 14, the operator inputs parameters such as the origin position of the workpiece coordinate system C3 and the amount of change (angle) θ through the search model setting image data 120 shown in Fig. 10, and selects the workpiece model 200M through the model loading button image 136. Then, after the start of the flow of Fig. 14, for example, immediately after step S1 or S2, the processor 32 generates the search model 200M. n may be generated.

[0151] The list generating unit 70 may be omitted from the control device 16 shown in Fig. 13. In this case, step S5 is omitted from the flow of Fig. 14. In this case, the processor 32 searches for one workpiece 200 in step S3, and determines one target position Pt q_m Alternatively, in step S3, a plurality of detection positions Pd q In step S4, the processor 32 calculates the detected positions Pd q Among these, the detected position Pd is the one with the largest z coordinate in the robot coordinate system C1. q For one target position Pt q_m You may ask for:

[0152] In the above embodiment, the processor 32 (input receiving unit 56) receives the taught work position Pw tm However, the present invention is not limited to this, and the input G that determines the priority of the work position Pw tm In this case, the processor 32 may execute steps S6 and S7 in Fig. 14 in accordance with the order shown in the column 152 of the list data 150 in Fig. 17 .

[0153] Alternatively, in step S5, the processor 32 may select the target position Pt q_m may be rearranged according to the magnitude of the z coordinate of the robot coordinate system C1, or according to any other criteria such as the distance from the wall surface of the container B. The interference determination unit 72 may be omitted from the control device 16 in Fig. 13. In this case, step S6 is omitted from the flow in Fig. 14.

[0154] Next, with reference to Fig. 21 , further functions of the robot system 10 will be described. In this embodiment, the device 60 further includes an information acquisition unit 78 that acquires symmetry information Im related to the symmetry of the workpiece model 200M. Specifically, in the above-described search model generation process, the processor 32 reads the workpiece model 200M selected in response to an input operation on the model read button image 136 shown in Fig. 10 and places the workpiece model 200M in the virtual space VS.

[0155] At this time, the processor 32 functions as an information acquisition unit 78, analyzes the model data (i.e., CAD data) of the workpiece model 200M, and acquires symmetry information Im. Here, the workpiece may have a predetermined symmetry in its overall shape. For example, in the case of the workpiece 200 shown in FIG. 3, its overall shape has rotational symmetry with respect to the central axis A3. Furthermore, this is not limited to the cylindrical workpiece 200, and a workpiece having an overall shape of a regular i-gon (i = 3, 4, 5, ...) (e.g., a regular square prism, a regular triangular pyramid, etc.) will have i-fold symmetry with respect to the central axis.

[0156] In this embodiment, the processor 32 functions as an information acquisition unit 78, analyzes the model data of the workpiece model 200M, and automatically acquires, as symmetry information Im, position data β indicating the position and direction of the central axis A3 (or symmetry axis) of the workpiece model 200M in the workpiece coordinate system C3, and information γ about i-fold symmetry. For example, the processor 32 acquires an angle α (= 360° / i) as the symmetry information γ.

[0157] For example, in the case of the workpiece 200 shown in Figure 3, α = 0° (or ∞), whereas in the case of a workpiece in the shape of a regular square prism, α = 90°. The processor 32 calculates the symmetry information Im (position data β, information γ: angle α) obtained by the instruction at the taught position Pw t The data (coordinates Qw) is stored in the memory 34 in association with the workpiece model 200M.

[0158] Next, the operation flow executed by the control device 16 shown in Fig. 21 will be described with reference to Fig. 14 and Fig. 22. In this embodiment, the processor 32 executes the flow shown in Fig. 22 as step S6 in Fig. 14. In the flow of Fig. 22, if YES is determined in step S21, in step S31, the processor 32 determines whether the target position Pt q_m symmetrical position Pt q_m It is determined whether or not interference between the robot 12 and the environmental object E can be avoided by t''.

[0159] Specifically, the processor 32 obtains symmetry information Im (position data β, angle α) of the workpiece model 200M. Then, the processor 32 compares the position data β and angle α included in the symmetry information Im with the target position Pt at which interference is determined. q_m Based on this, the target position Pt q_m symmetrical position Pt q_m " is calculated.

[0160] This symmetric position Pt q_m 23, the processor 32 sets the target position Pt q_mThe target position Pt q_m If the end effector 28 is positioned at this position, the end effector 28 will interfere with the container B and other workpieces 200.

[0161] Therefore, in this step S31, the processor 32 selects the search model 200S that matched with the workpiece 200A in the most recent step S3 based on the position data β. n Then, the processor 32 calculates the position of the central axis A3 relative to the workpiece coordinate system C3 set as follows: q_m The rotation angle α' by which the lens is rotated around the central axis A3 is automatically determined within the range of 0° to α.

[0162] In this embodiment, the angle α with respect to the workpiece model 200M is α=0° (or ∞), so the processor 32 automatically determines an arbitrary rotation angle α′ within the range of 0° to 360°. q_m is rotated by a rotation angle α' around the central axis A3 to a symmetric position Pt q_m In the example of FIG. 23, the rotation angle α' is determined as α'=180°. If the angle α is α=90° (i.e., the workpiece model has an outer shape of a regular rectangle), the processor 32 automatically determines an arbitrary rotation angle α' within the range of 0° to 90°. In this case, the processor 32 may determine the rotation angle α'=α=90°.

[0163] In this way, the processor 32 calculates the target position Pt q_m symmetrical position Pt q_m Then, the processor 32 functions as an interference determination unit 72 and determines the symmetric position Pt q_m ", interference determination is performed again. q_m 23, the end effector 28 does not interfere with the container B and other workpieces 200. Therefore, in this case, the processor 32 determines YES in step S31.

[0164] Suppose this symmetric position Pt q_m If it is determined that interference still occurs for the symmetric position Pt, the processor 32 determines a new rotation angle α′ within the range of 0° to α (within the range of 0° to 360° when α=0°), and q_m In this way, the rotation angle α' is selected within the range of 0° to α, and the symmetric position Pt q_m By performing an interference check every time " is calculated, the symmetric position Pt q_m On the other hand, in step S31, the symmetric position Pt q_m If " cannot be calculated, the processor 32 determines "NO" and proceeds to step S22, where it sequentially executes steps S22 to S24 described above.

[0165] In step S32, the processor 32 functions as the position correction unit 74 and corrects the target position Pt q_m the symmetric position Pt calculated in the immediately preceding step S31. q_m Then, the processor 32 proceeds to step S7 in FIG. 14, and in this step S7, the processor 32 functions as the operation command unit 76 to correct the symmetric position Pt q_m 23, the robot 12 is controlled based on the q_m " and perform the operation on the workpiece 200A.

[0166] As described above, in this embodiment, the information acquisition unit 78 acquires symmetry information Im (position data β, information γ: angle α) regarding the symmetry of the workpiece 200 (i.e., the workpiece model 200M). Then, based on the symmetry information Im acquired by the information acquisition unit 78, the position correction unit 74 calculates the target position Pt q_m the target position Pt q_m The symmetric position Pt q_m " is corrected.

[0167] Here, as in this embodiment, the work position Pw m and a plurality of search models 200S nThe work position Pw m If you share the search model 200S n Work position Pw m Compared with the case where the target position Pt q_m 23 is likely to occur. m When the symmetry information Im is used to teach the target position Pt q_m symmetric position Pt q_m ", so that such interference can be effectively avoided.

[0168] 22, the processor 32 may execute step S22 when determining YES in step S21, and may execute step S31 when determining NO in step S22, similarly to the flow in Fig. 20. Then, when determining YES in step S31, the processor 32 may execute step S32, whereas when determining NO, the processor 32 may proceed to step S24.

[0169] The processor 32 may function as the input receiving unit 56 and receive input of the symmetry information γ. For example, the operator operates the input device 40 to input at least one of the position data β of the central axis A3 (or the symmetry axis) in the workpiece coordinate system C3, the adjustment amount λ for adjusting the position or direction of the central axis A3, and the angle α (or the rotation angle α').

[0170] The processor 32 functions as the input receiving unit 56 and receives input H of the position data β, the adjustment amount λ, and the angle α. Meanwhile, the processor 32 may update the position data β and the angle α acquired by the information acquiring unit 78 based on the position data β, the adjustment amount λ, and the angle α received from the operator, and register the updated position data β and the angle α as the symmetry information Im. In this case, the processor 32 may generate image data of a GUI for accepting the input H of the position data β, the adjustment amount λ, and the angle α. For example, the processor 32 may display this GUI in the search model setting image data 120 shown in FIG. 10 .

[0171] In the above embodiment, the device 60 is described as having the information acquisition unit 78, but the device 50 may also have the functions of the information acquisition unit 78. In this case, the processor 32 functions as the model placement unit 52 in the above teaching process, loads the workpiece model 200M in response to an input operation on the model load button image 108 shown in FIG. 4 , and places the workpiece model 200M in the virtual space VS.

[0172] At this time, the processor 32 may function as the information acquisition unit 78 to analyze the model data of the workpiece model 200M and acquire the symmetry information Im. In this case, the processor 32 may generate image data of a GUI for receiving input H of the position data β, the adjustment amount λ, and the angle α from the operator, and display the image data on the teaching setting image data 100 shown in FIG. 4, for example.

[0173] The control device 16 may be composed of at least two computers. Such a configuration is shown in Figures 24 and 25. In this embodiment, the control device 16 has a robot controller 16A and a personal computer (PC) 16B. The robot controller 16A has a processor 32A, a memory 34A, an I / O interface 36A, a display device 38A, an input device 40A, etc. The PC 16B has a processor 32B, a memory 34B, an I / O interface 36B, a display device 38B, an input device 40B, etc. The I / O interfaces 36A and 36B are connected to each other so that they can communicate with each other.

[0174] In this embodiment, the functions of the devices 50 and 60 are implemented in a PC 16B, and a processor 32B executes the above-mentioned teaching process and search model generation process. On the other hand, the functions of a position detection unit 66, a position calculation unit 68, a list generation unit 70, an interference determination unit 72, and a position correction unit 74 are implemented in a robot controller 16A, and a processor 32A executes an operation program OP A By executing the above, the flow of FIG. 14 is executed.

[0175] At least one of the functions of the devices 50 and 60 (i.e., the model placement unit 52, the image generation unit 54, the input reception unit 56, the position storage unit 58, the information acquisition unit 78, the simulation unit 62, and the search model generation unit 64) may be implemented in the robot controller 16A. Alternatively, at least one of the functions of the position detection unit 66, the position calculation unit 68, the list generation unit 70, the interference determination unit 72, and the position correction unit 74 may be implemented in the PC 16B.

[0176] In the above embodiment, in step S3 in FIG. 14, the processor 32 q As a result, the Search Model 200S n The coordinate Qd of the workpiece coordinate system C3 in the robot coordinate system C1 when matching q However, the present invention is not limited to this. The processor 32 may acquire the detected position Pd q The coordinates of the workpiece coordinate system C3 in the user coordinate system C4 set in the robot coordinate system C1 may be acquired as follows: The user coordinate system C4 is the control coordinate system C set by the operator at an arbitrary position in the robot coordinate system C1 (such as a corner of the container B).

[0177] In this case, in step S4 in FIG. 14, the processor 32 calculates the target position Pt q_m may be acquired as coordinates in the user coordinate system C4, and then, when executing step S7, the coordinates in the user coordinate system C4 may be converted into coordinates in the robot coordinate system C1. q and target position Pt q_m may be acquired as coordinates of any control coordinate system C other than the user coordinate system C4.

[0178] Although the present disclosure has been described in detail above, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values ​​or mathematical expressions are used in the description of the above-described embodiments.

[0179] The present disclosure discloses the following aspects: (Aspect 1) A search model 200S for searching for a workpiece 200 from image data 140 obtained by capturing an image of the workpiece 200. n The apparatus 60 for generating a workpiece 200 includes an input receiving unit 56 that receives an input of a change amount θ for changing the posture of a workpiece model 200M that is a model of a workpiece 200 in a virtual space VS, a simulating unit 62 that simulates changing the posture of the workpiece model 200M in the virtual space VS according to the change amount θ received by the input receiving unit 56, and a search model 200S that represents the shape of the workpiece model 200M as seen from a predetermined viewpoint VP in the virtual space VS when the simulating unit 62 changes the posture. n and a search model generation unit 64 that generates a search model based on the workpiece model 200M. (Aspect 2) The input receiving unit 56 receives an input of an angle θ by which the workpiece model 200M is rotated around the axes (x-axis, y-axis, z-axis) of a coordinate system C (workpiece coordinate system C3) set in the virtual space VS as the amount of change θ, and the simulator 62 changes the posture by repeatedly executing a simulated rotation operation VR that rotates the workpiece model 200M around the axis by the angle θ, and the search model generation unit 64 generates the search model 200M each time the simulator 62 executes the simulated rotation operation VR. n The apparatus 60 according to aspect 1 generates a first simulated rotation operation VR that rotates the workpiece model 200M around a first axis (the x-axis and y-axis of the workpiece coordinate system C3). xand a second simulated rotation operation VR in which the workpiece model is rotated around a second axis (z axis of the workpiece coordinate system C3) perpendicular to the first axis. z (Aspect 4) The apparatus 60 according to any one of Aspects 1 to 3, wherein the workpiece has symmetry, and the apparatus 60 further comprises an information acquisition unit 78 that acquires symmetry information Is relating to the symmetry. (Aspect 5) The apparatus 60 according to any one of Aspects 1 to 4, and a search model 200S generated by the search model generation unit 64 for the workpiece 200 shown in the image data 140. n and a position detection unit 66 that acquires the position Pd of the workpiece 200 captured in the image data 140 by searching using the search model 200S. (Aspect 6) Search model 200S for searching the workpiece 200 from the image data 140 of the workpiece 200 n The processor 32 receives an input of a change amount θ for changing the posture of a workpiece model 200M that is a model of a workpiece 200 in a virtual space VS, simulates the posture of the workpiece model 200M in the virtual space VS according to the received change amount θ, and generates a search model 200S that represents the shape of the workpiece model 200M as seen from a predetermined viewpoint VP in the virtual space VS when the posture is changed. n (Aspect 7) A device 50 for teaching a work position Pw where a robot 12 performs work on a workpiece 200, the device including an input receiving unit 56 that receives an input F (Fm, Fr) for teaching the work position Pw to a workpiece model 200M that models the overall shape of the workpiece 200, and a teaching position Pw that indicates the positional relationship between the workpiece model 200M and the work position Pw, the teaching position Pw being taught in accordance with the input F received by the input receiving unit 56. t The position memory unit 58 stores the teaching position Pw (coordinate Qw) in association with the workpiece model 200M. t A search model 200S is generated based on the workpiece model 200M using nand a position storage unit 58 that calculates a working position Pw for a workpiece 200 searched for from the image data 140 by using the above-mentioned calculation. (Aspect 8) An apparatus 60 according to Aspect 7, comprising: a model placement unit 52 that places a robot model 12M that models the robot 12, at least one of a control coordinate system C (robot coordinate system C1, tool coordinate system C2, workpiece coordinate system C3) for controlling the robot 12, and a workpiece model 200M in a virtual space VS; and an image generation unit 54 that generates image data 110 of the virtual space VS in which the workpiece model 200M and at least one of the control coordinate systems C are placed, and an input receiving unit 56 receives, as an input F for teaching, an input Fm that simulates movement of at least one of the control coordinate systems C (robot coordinate system C1, tool coordinate system C2, workpiece coordinate system C3) in the virtual space VS. (Aspect 9) The robot 12 has an end effector 28 that performs work on a workpiece 200, and the control coordinate system C has a tool coordinate system C2 that defines the position of the end effector 28. The model placement unit 52 places an end effector model 28M that models the end effector 28 and the tool coordinate system C2 in the virtual space VS, and the input reception unit 56 receives, as an input Fm to be moved, an input Fm that translates the end effector model 28M so that the origin of the tool coordinate system C2 is displaced. t (Fm t1 , Fm t2 , Fm t3 ), or an input Fm that rotates and moves the end effector model 28M around the axes (x-axis, y-axis, z-axis) of the tool coordinate system C2. r (Fm r1 , Fm r2 , Fm r3 (Aspect 10) The image generation unit 54 further displays, in the image data 110, a movement selection button image 112 for selecting translational movement or rotational movement, and the input acceptance unit 56, when translational movement is selected by the movement selection button image 112, accepts an input Fm for translational movement. t On the other hand, when rotational movement is selected by the movement selection button image 112, an input Fm r (Aspect 11) The apparatus 60 according to any one of Aspects 7 to 10 and the workpiece 200 shown in the image data 140 are used to generate a search model 200S.n By searching using the above, the position of the workpiece 200 shown in the image data 140 is detected as the detection position Pd q (Coordinate Qd q ) and the teaching position Pw stored in the position storage unit 58. tm and the detected position Pd obtained by the position detection unit 66 q Based on this, the detected position Pd q The work position Pw for the workpiece 200 at which the m , the target position Pt q_m The control device 16 includes a position calculation unit 68 that calculates the target positions Pt q_m The control device 16 according to aspect 11 further includes a list generating unit 70 that generates list data 150 in which the taught work position Pw m The list generating unit 70 further receives an input G that determines the priority of the target positions Pt q_m The control device 16 generates list data 150 in which the target position Pt q_m and controls the robot 12 to move the robot 12 to the top target position Pt q_m The control device 16 according to aspect 12 further includes an operation command unit 76 for positioning the robot 12 at the target position Pt q_m The interference determination unit 72 determines whether or not interference occurs between the robot 12 and the environmental object E when the robot 12 is positioned at a plurality of target positions Pt q_m The operation command unit 76 sequentially determines whether there is interference with the target positions Pt q_m The highest target position Pt q_mThe control device 16 according to aspect 13 controls the robot 12 based on the target position Pt calculated by the position calculation unit 68 based on symmetry information Is regarding the symmetry. q_m the target position Pt q_m The symmetric position Pt q_m (Aspect 16) A method for teaching a work position Pw where the robot 12 performs work on the workpiece 200, the method including: receiving an input F (Fm, Fr) for teaching the work position Pw to a workpiece model 200M that is a model of the overall shape of the workpiece 200; and correcting the work position Pw that is taught in accordance with the received input F to the taught position Pw. t (coordinate Qw) is stored in association with the workpiece model 200M, and the stored teaching position Pw t A search model 200S is generated based on the workpiece model 200M using n The method calculates the work position Pw for the workpiece 200 searched from the image data 140.

[0180] REFERENCE SIGNS LIST 10 Robot system 12 Robot 14 Visual sensor 16 Control device 32 Processor 50, 60 Device 52 Model placement unit 54 Image generation unit 56 Input reception unit 58 Position storage unit 62 Simulating unit 64 Search model generation unit 66 Position detection unit 68 Position calculation unit 70 List generation unit 72 Interference determination unit 74 Position correction unit 76 Operation command unit 78 Information acquisition unit

Claims

1. An apparatus for generating a search model for searching for a workpiece from image data of the workpiece, comprising: an input receiving unit that receives an input of an amount of change by which the posture of a workpiece modeled on the workpiece is changed within a virtual space; a simulation unit that simulates changing the posture of the workpiece model within the virtual space in accordance with the amount of change received by the input receiving unit; and a search model generation unit that generates the search model based on the workpiece model, the search model representing the shape of the workpiece model viewed from a specified viewpoint within the virtual space when the simulation unit changes the posture.

2. The device described in claim 1, wherein the input receiving unit receives an input of an angle by which the work model is rotated around an axis of a coordinate system set in the virtual space as the amount of change, the simulator unit changes the posture by repeatedly executing a simulated rotation operation that rotates the work model by the angle around the axis, and the search model generation unit generates the search model each time the simulator unit executes the simulated rotation operation.

3. The apparatus described in claim 2, wherein the simulating unit performs a first simulated rotation operation to rotate the work model around a first axis, and a second simulated rotation operation to rotate the work model around a second axis perpendicular to the first axis.

4. The apparatus according to claim 1, wherein the workpiece has symmetry, and the apparatus further comprises an information acquisition unit that acquires symmetry information regarding the symmetry.

5. A control device comprising: the device described in claim 1; and a position detection unit that acquires the position of the workpiece depicted in the image data by searching for the workpiece depicted in the image data using the search model generated by the search model generation unit.

6. A method for generating a search model for searching for a workpiece from image data of the workpiece, comprising: a processor receiving an input of an amount of change for changing the posture of a workpiece model that models the workpiece within a virtual space; simulating a change in the posture of the workpiece model within the virtual space according to the received amount of change; and generating the search model based on the workpiece model, the search model representing the shape of the workpiece model as viewed from a specified viewpoint within the virtual space when the posture is changed.

7. An apparatus for teaching a work position where a robot will perform work on a workpiece, comprising: an input receiving unit for receiving input for teaching the work position to a workpiece model which models the overall shape of the workpiece; and a position memory unit for storing the work position taught in accordance with the input received by the input receiving unit in association with the workpiece model as a taught position indicating the positional relationship between the workpiece model and the work position, the stored taught position being used to calculate the work position for the workpiece searched for from image data by a search model generated based on the workpiece model.

8. The device described in claim 7, comprising: a model placement unit that places in a virtual space at least one of a robot model that models the robot and a control coordinate system for controlling the robot, and the work model; and an image generation unit that generates image data of the virtual space in which the work model and the at least one of them are placed, wherein the input receiving unit receives an input for simulating movement of the at least one of them in the virtual space as an input for teaching.

9. The apparatus described in claim 8, wherein the robot has an end effector that performs the operation on the workpiece, the control coordinate system has a tool coordinate system that defines the position of the end effector, the model placement unit places an end effector model that models the end effector and the tool coordinate system in the virtual space, and the input receiving unit receives, as the input for movement, an input for translating the end effector model so as to displace the origin of the tool coordinate system, or an input for rotating the end effector model around an axis of the tool coordinate system.

10. The device according to claim 9, wherein the image generation unit further displays a movement selection button image on the image data for selecting the translational movement or the rotational movement, and the input acceptance unit is capable of accepting an input for the translational movement when the translational movement is selected by the movement selection button image, and is capable of accepting an input for the rotational movement when the rotational movement is selected by the movement selection button image.

11. A control device comprising: the device described in claim 7; a position detection unit that acquires the position of the workpiece shown in the image data as a detected position by searching for the workpiece shown in the image data using the search model; and a position calculation unit that calculates, as a target position, the working position for the workpiece whose detected position has been detected based on the teaching position stored in the position memory unit and the detected position acquired by the position detection unit.

12. The control device according to claim 11, further comprising a list generating section that generates list data in which the plurality of target positions determined by the position calculation section are arranged in a list format.

13. The control device according to claim 12, further comprising: an input receiving unit that further receives an input that determines a priority order of the instructed work positions; a list generation unit that generates the list data in which the multiple target positions are arranged according to the priority order received by the input receiving unit; and an operation command unit that controls the robot based on the target position with the highest priority order in the list data, and positions the robot at the highest target position to perform the work.

14. A control device as described in claim 13, further comprising an interference judgment unit that judges whether or not interference will occur between the robot and an environmental object when the robot is positioned at the target position, wherein the interference judgment unit sequentially judges the interference for the multiple target positions included in the list data according to the priority order, and the operation command unit controls the robot based on the highest target position among the multiple target positions included in the list data that is judged by the interference judgment unit to not cause the interference.

15. The control device according to claim 11, wherein the overall shape has symmetry, and the control device further comprises a position correction unit that corrects the target position determined by the position calculation unit to a position symmetrical to the target position based on symmetry information regarding the symmetry.

16. A method for teaching a working position where a robot will perform work on a workpiece, comprising: a processor receiving input for teaching the working position for a workpiece model which models the overall shape of the workpiece; storing the work position taught in accordance with the received input in association with the workpiece model as a teaching position indicating the positional relationship between the workpiece model and the working position; and using the stored teaching position, calculating the working position for the workpiece searched for from image data by a search model generated based on the workpiece model.

Citation Information

Patent Citations

  • Robot device having image processing function

    JP2000288974A

  • Robot setting device, robot setting method, robot setting program, computer-readable recording medium, and recorded device

    JP2018144162A

  • Image processing device

    JP2021121461A

Cited By

  • Industrial standard operation step generation method and system based on human body behavior sequence recognition

    CN122637486A