Measuring Equipment
The measuring device simplifies robot program creation by automatically calculating and outputting waypoints and attributes, allowing users to focus on hand motion rather than controller interactions, thus enhancing program simplicity and accuracy.
Patent Information
- Application Number
- JP2019224154
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-12-12
- Publication Date
- 2024-08-22
- Estimated Expiration
- 2039-12-12
AI Technical Summary
Conventional three-dimensional measuring devices require users to manually program the movement path of a robot hand, which is complex due to the need to avoid obstacles and handle changes in the number of waypoints, leading to difficulty in creating robot programs.
A measuring device that automatically calculates waypoints and their attributes, allowing users to easily create robot programs by specifying the motion of the robot hand without considering the robot controller's motion path.
Enables users to create robot programs simply by describing the motion of the robot hand corresponding to each attribute, reducing complexity and ensuring accurate robot operations.
Smart Images

Figure 0007538595000008 
Figure 0007538595000021 
Figure 0007538595000016
Abstract
Description
[Technical field]
[0001] The present invention relates to a measuring device that is capable of measuring a workpiece placed in a working space and controlling a robot that transports the workpiece. [Background technology]
[0002] Conventionally, as disclosed in Patent Document 1, for example, there has been known a three-dimensional measuring device for measuring the three-dimensional shape of a workpiece placed in a working space, controlling a robot hand equipped on a robot to grasp the workpiece, and setting the operation of the robot so that the workpiece grasped by the robot hand is placed at a predetermined placement position.
[0003] The three-dimensional measuring device in Patent Document 1 is provided separately from the robot controller, and is capable of performing high-precision three-dimensional measurements that are difficult for a robot controller to perform, and is capable of outputting to the robot controller the points that the robot hand should pass through, such as the approach position of the robot hand when grasping a workpiece and the grasping position of the robot hand, in order to realize various functions based on the measurement results.
[0004] That is, the three-dimensional measuring device, for example, captures an image of the workpiece and its surroundings with an imaging unit to obtain three-dimensional data, and then searches for the workpiece from the obtained three-dimensional data to determine the gripping posture, etc. Then, it calculates the coordinates of the gripping position for gripping the workpiece and outputs the calculated coordinates to a robot controller. The robot controller receives the coordinates and controls the robot hand, grips the workpiece with the robot hand, transports it to a predetermined placement position, and places it at the placement position. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2018-144159 A Summary of the Invention [Problem to be solved by the invention]
[0006] Incidentally, while conventional three-dimensional measuring devices are capable of outputting points (waypoints) through which the robot hand must pass to a robot controller, the user must program the motion path of the robot hand between each waypoint. For example, if a workpiece is stored in a box, the box can become an obstacle during the robot hand's motion, so the program must be written to avoid the box, which makes the program more complicated and time-consuming.
[0007] Therefore, a method can be considered in which the coordinate measuring device automatically calculates not only the via points but also the motion paths between the via points, and outputs intermediate via points in addition to fixed points set by the user such as gripping positions, i.e., fixed via points. With this method, the user does not need to program the motion paths between each via point.
[0008] However, in this case, the number of via points that the robot must pass through cannot be determined without actually generating the movement path, so the robot controller cannot identify the via points where the robot hand should perform the grasping or placing operations, resulting in the problem that users cannot easily create robot programs.
[0009] Furthermore, when the user increases or decreases the number of fixed via points, unless the robot controller is reprogrammed, a discrepancy will arise between the number of via points output by the coordinate measuring device and the number of via points expected by the robot controller program. This means that the user must take the trouble of reprogramming the program every time they increase or decrease the number of fixed via points.
[0010] Furthermore, fixed via points each have their own unique attributes, such as "a point where a grasping operation should be performed," "a point where a placing operation should be performed," etc. For example, if a via point is changed on the 3D measuring device side, unless the robot controller side keeps track of the attributes of the changed via point, problems such as a grasping operation or a placing operation being performed in an unexpected place may occur, which also makes program creation difficult.
[0011] The present invention has been made in consideration of the above-mentioned points, and an object of the present invention is to enable a user to easily create a program for a robot. [Means for solving the problem]
[0012] In order to achieve the above-mentioned object, the measuring device of the present invention is a measuring device that measures a workpiece placed in a workspace and controls a robot that transports the workpiece, and is characterized in that it comprises a measurement unit that measures the position and posture of the workpiece placed in the workspace, a gripping information memory unit that stores gripping information indicating candidate gripping positions of the workpiece by a robot hand equipped on the robot, a position determination processing unit that determines a gripping position of the workpiece placed in the workspace by the robot hand based on the measurement results by the measurement unit and the gripping information stored in the gripping information memory unit, and determines the coordinates of a fixed via point having any one of the attributes of the approach position, gripping position, and retreat position after gripping of the robot hand for gripping the gripping position, and an output unit that outputs the coordinates of the fixed via point determined by the position determination processing unit and attribute information indicating the attributes of the fixed via point to a robot controller connected to the robot.
[0013] According to this configuration, when the position and orientation of the workpiece arranged in the working space is measured by the measuring unit, the gripping position of the workpiece by the robot hand is determined based on the measurement result and gripping information indicating the gripping candidate position of the workpiece stored in advance. In addition, the coordinates of a fixed via point having any one attribute among the approach position, gripping position, and retreat position after gripping of the robot hand for gripping the determined gripping position are also determined. Since the coordinates of the fixed via point and attribute information indicating the attribute of the fixed via point are output to the robot controller, the user can edit the path setting of the robot hand without considering the correspondence with the robot controller side, and can consider only the operation of the robot hand without being concerned with the operation of the robot itself. In other words, the user can create a robot program by simply describing the operation of the robot hand corresponding to each attribute information.
[0014] The coordinates of the fixed via point and the attribute information indicating the attributes of the fixed via point need only correspond to each other, and the coordinates of the fixed via point and the attribute information may be output in a combined form, or the coordinates of the fixed via point and the attribute information may be output separately. An example of the former form is fixed via point (start point) → fixed via point (approach position) → fixed via point (grasping position). An example of the latter form is first fixed via point → robot hand release command (attribute information) → second fixed via point → robot hand grip command (attribute information). Even if the coordinates of the fixed via point and the attribute information are output separately at different times, the first fixed via point and the robot hand release command are in a corresponding relationship.
[0015] The coordinates of the fixed via points and the attribute information indicating the attributes of the fixed via points may be managed in the same table or in different tables. In either case, the order and the number of the coordinates of the fixed via points and the attribute information indicating the attributes of the fixed via points are the same, and they correspond to each other.
[0016] In addition, the measurement unit may be a two-dimensional measurement unit capable of performing two-dimensional measurements in the X and Y directions, or a three-dimensional measurement unit capable of performing three-dimensional measurements including the Z direction (height direction) in addition to the X and Y directions.
[0017] Preferably, when multiple fixed via points are determined by the position determination processing unit, the device may be provided with a user interface generation unit that generates a user interface that indicates the order in which the multiple fixed via points are passed through and allows the multiple fixed via points to be edited individually, and a display unit that displays the user interface generated by the user interface generation unit.
[0018] According to this configuration, the user can grasp the order of passing through multiple fixed via points on the user interface, so that the user can easily imagine the movement of the robot hand. Furthermore, since each fixed via point can be edited, the user can easily change the program.
[0019] Preferably, the device includes an input unit that accepts the addition of a fixed via point on the user interface and accepts input of attribute information indicating attributes of the added fixed via point, and the output unit is configured to output the fixed via point and attribute information accepted by the input unit to the robot controller.
[0020] According to this configuration, the user can add a fixed via point, and when the user adds a fixed via point, the user can input attribute information for the fixed via point. The added fixed via point and the attribute information are output to the robot controller, and a robot program reflecting the added fixed via point is created.
[0021] Preferably, the input unit can be configured to be able to add a designated position designated by a user as a fixed via point.
[0022] According to this configuration, the user can add any designated position to avoid, for example, an obstacle, etc. This allows the user to move the robot hand with a simple operation so as not to interfere with the obstacle, etc.
[0023] Preferably, the input unit can be configured to be able to add a place position of a workpiece as a fixed via point.
[0024] According to this configuration, the user can add any place position (placing position) for the workpiece, and can create a program to place the workpiece at the added place position.
[0025] Preferably, the output unit can be configured to output to the robot controller the number of fixed via points determined by the position determination processing unit, the number of intermediate via points between the fixed via points in the case where multiple fixed via points are determined by the position determination processing unit, the coordinates of each fixed via point, and the coordinates of each intermediate via point.
[0026] With this configuration, the number of fixed via points, the number of intermediate via points, the coordinates of each fixed via point, and the coordinates of each intermediate via point can be output to the robot controller, so that a program can be created on the robot controller side based on this information.
[0027] Preferably, a fixed via point having attribute information of a gripping position is configured to be able to be associated with special operation information that causes the robot hand to perform a special operation other than transportation to a place position, and the output unit can be configured to output the special operation information to the robot controller when outputting the coordinates of the fixed via point with which the special operation information is associated.
[0028] That is, for example, in a case where a workpiece is stored in a box and the workpiece is located near a wall surface, it may be difficult to grasp the candidate gripping position of the workpiece. In such a case, it may be necessary to perform a special operation such as shifting the position of the workpiece to place the workpiece at a position where the candidate gripping position can be grasped by shifting the position of the workpiece. Examples of the special operation include an operation to pull the workpiece to the robot controller and an operation to lift the workpiece. According to this configuration, when outputting the coordinates of the fixed via point associated with the special operation information, the special operation information is output to the robot controller, so that the special operation as described above can be easily performed by the robot hand.
[0029] Moreover, a measuring device that measures a workpiece placed in a workspace and controls a robot that transports the workpiece may include a measurement unit that measures the position and posture of a workpiece placed in the workspace, a gripping information storage unit that stores gripping information indicating candidate gripping positions of the workpiece by a robot hand equipped on the robot, a position determination processing unit that determines a gripping position of the workpiece placed in the workspace by the robot hand based on the measurement results by the measurement unit and the gripping information stored in the gripping information storage unit, and determines the coordinates of a fixed via point having any one attribute from among the approach position, gripping position, and retreat position after gripping of the robot hand for gripping the gripping position, and processes attribute information indicating the attributes of the fixed via point and converts it into a command for the robot, and an output unit that outputs the command obtained by the position determination processing unit to a robot controller connected to the robot.
[0030] According to this configuration, the coordinates of a fixed via point having any one attribute among the approach position of the robot hand for grasping the grasping position, the grasping position, and the retreat position after grasping, and the attribute information of that fixed via point can be processed and converted into a command for the robot, and then the command can be output to the robot controller, so that the user can create a robot program and operate the robot hand simply by describing the operation of the robot hand corresponding to each attribute information. Effect of the Invention
[0031] As described above, the coordinates of a fixed via point having any one attribute among the approach position of the robot hand for grasping a grasping position, the grasping position, and the retreat position after grasping, and the attribute information of that fixed via point can be output to the robot controller, so that the user can achieve the desired operation simply by describing the operation of the robot hand corresponding to each attribute information, making it easy to create robot programs. [Brief description of the drawings]
[0032] [Figure 1] FIG. 1 is a schematic diagram showing a state in which a workpiece is transported using a robot system. [Diagram 2] FIG. 1 is a block diagram showing a configuration of a robot system. [Diagram 3] FIG. 2 is a perspective view showing an example of a sensor unit. [Figure 4A] 1 is a schematic diagram showing an example of gripping a workpiece with a robot hand; [Figure 4B] 1A and 1B are schematic diagrams showing an example of gripping a workpiece having a cavity from the inside with a robot hand. [Figure 4C] 1 is a schematic diagram showing an example of a robot hand suctioning and gripping a plate-shaped workpiece; FIG. [Diagram 5] 13 is a flowchart showing a procedure for setting a search model. [Figure 6] 11 is a flowchart showing a procedure for setting a hand model and a gripping position. [Figure 7] FIG. 13 is a diagram showing an example of a flowchart of basic control of a robot. [Figure 8] FIG. 13 is a diagram illustrating an example of a user interface for robot connection settings. [Figure 9] FIG. 13 is a diagram showing an example of a user interface for confirming the model of a robot. [Figure 10] FIG. 11 is a diagram illustrating an example of a user interface for user settings. [Figure 11] FIG. 13 is a diagram showing an example of an attribute information input window. [Figure 12] FIG. 13 is a diagram showing an example of a window for setting the position of a fixed via point. [Figure 13] FIG. 13 is a diagram showing an example of an operation / collision determination setting window. [Figure 14] FIG. 2 is a process sequence diagram of the measurement device, the robot controller, and the robot. [Figure 15A] An example of a main program when attribute information can be associated and registered on a user interface is shown below. [Figure 15B] An example of an action program in which attribute information can be associated and registered on a user interface is shown. [Figure 16] 13 shows an example of a main program when attribute information cannot be associated and registered on a user interface. [Figure 17] FIG. 11 is a diagram equivalent to FIG. 10 in which a fixed via point (designated position) is added before the approach position. [Figure 18] FIG. 15B is a diagram equivalent to FIG. 15A when a fixed via point is added. [Figure 19] 13 is a diagram showing a data array of via points and attribute information when the attribute information is processed on the robot controller side. FIG. [Figure 20] 13 is a diagram showing a data arrangement of via points and attribute information when the attribute information is processed on the measuring device side. FIG. [Figure 21] FIG. 15B is a diagram corresponding to FIG. 15A in the case where attribute information is processed on the measuring device side. [Figure 22] FIG. 20 corresponds to FIG. 20, but shows a case where via point data is included in the command array. [Figure 23] 13A and 13B are diagrams illustrating a situation in which the robot hand interferes with the wall surface of the container and is unable to grip the workpiece. [Figure 24] FIG. 13 is a diagram showing an example of a user interface for setting a special operation function. [Diagram 25] FIG. 13 is a diagram illustrating an example of a user interface for setting a priority. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] Hereinafter, the preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following description of the preferred embodiments is merely illustrative in nature and is not intended to limit the present invention, its applications, or its uses.
[0034] Fig. 1 is a schematic diagram showing a configuration example of a robot system 1000 equipped with a measuring device 100 according to an embodiment of the present invention. Fig. 1 shows an example of bulk picking in which a robot RBT grasps multiple workpieces WK arranged in a work space in a manufacturing plant for various products one by one, transports them to a stage STG installed in a predetermined location, and places them on the stage STG.
[0035] The robot system 1000 includes a robot RBT and a robot controller 6 that controls the robot RBT. The robot RBT is a general-purpose industrial robot, and its base is fixed to the floor of a factory or the like. The robot RBT is also called, for example, a manipulator, and is configured to be capable of six-axis control. The robot RBT includes an arm ARM extending from the base, and a robot hand HND provided at the tip of the arm ARM. The arm ARM can be configured as a multi-joint type having multiple joints as movable parts. The robot hand HND can be moved to a desired position within a movable range by the operation of each joint of the arm ARM and the rotational operation of the arm ARM itself.
[0036] The robot hand HND is configured to be able to grip the workpiece WK, and its structure is not particularly limited. For example, the robot hand HND may be a robot hand HND1 having a structure for pinching and gripping the outside of the workpiece WK as shown in FIG. 4A, a robot hand HND2 having a structure for holding the workpiece WK2 having a hollow portion by inserting a claw portion into the inside of the workpiece WK2 and expanding it as shown in FIG. 4B, or a robot hand HND3 for sucking and holding a plate-shaped workpiece WK3 as shown in FIG. 4C, and any of these robot hands may be used. In this specification, the term "hold" is used to include all examples, such as a method of pinching the outside of the workpiece WK shown in FIG. 4A, a method of inserting a claw portion into a hollow portion and expanding it, and a method of sucking.
[0037] The robot controller 6 controls the operation of the arm section ARM and the opening and closing operation (grasping operation) of the robot hand HND. The robot controller 6 also acquires information required for controlling the robot RBT from a measuring device 100 shown in Fig. 2. For example, the position and orientation of the workpieces WK, which are a number of parts randomly placed in a container BX shown in Fig. 1, is acquired using a sensor section 2 such as a three-dimensional camera and lighting, and the position and orientation of the workpieces WK are detected by the measuring device 100, and the robot controller 6 acquires this information.
[0038] 2 shows a functional block diagram of the robot system 1000. The robot system 1000 shown in this figure includes a measuring device 100, a display unit 3, an operation unit 4, and a robot operation tool 7 in addition to a robot RBT and a robot controller 6.
[0039] The operation unit 4 is a section for performing various settings. The measuring device 100 also includes a measuring unit 20, which captures an image of the workpiece WK and measures the position and orientation of the workpiece WK. Furthermore, the user can use the display unit 3 to perform various settings, check the operating status of the robot RBT, check the operating status of the measuring device 100, and the like.
[0040] On the other hand, the robot controller 6 is a well-known member configured to control the robot RBT according to a signal output from the measurement device 100. Also, the robot operation tool 7 sets the operation of the robot RBT. Note that, although the operation unit 4 and the robot operation tool 7 are separate members in the example of Fig. 2, they may be a common member.
[0041] The sensor unit 2 is a component called a robot vision or the like that captures images of the working space and the workpieces WK. In this embodiment, the workpieces WK are at least the objects to be captured, and the objects to be captured may include the containers BX. From the images captured by the sensor unit 2, it becomes possible to obtain three-dimensional shape data (image data) showing the three-dimensional shapes of the bulk-stacked workpieces WK. The three-dimensional shape data showing the three-dimensional shape of the containers BX can also be obtained from the images captured by the sensor unit 2.
[0042] In addition, methods for acquiring the three-dimensional shape of the workpiece WK or the container BX include, for example, a pattern projection method, a stereo method, a lens focusing method, a light section method, an optical radar method, an interference method (white light interference method), a TOF method, and the like, and any of these methods may be used. Each method is conventionally well known, so a detailed description is omitted. In this embodiment, of the pattern projection methods, a phase shift method is used in which a pattern light having a periodic illuminance distribution is irradiated onto the object to be imaged and the light reflected from the surface of the object to be imaged is received.
[0043] The measuring unit 20 is made up of the sensor unit 2 and a shape measurement processing unit 200. The shape measurement processing unit 200 can measure not only the position, posture, shape and dimensions of each part of the workpiece WK, but also the position, shape and dimensions of the container BX based on image data acquired by the sensor unit 2. The shape measurement processing unit 200 can be a part of the measuring device 100, but can also be configured as a separate member.
[0044] The measuring unit 20 may be a two-dimensional measuring unit capable of performing two-dimensional measurements in the X and Y directions, or may be a three-dimensional measuring unit capable of performing three-dimensional measurements including the Z direction (height direction) in addition to the X and Y directions. The specific configuration of the sensor unit 2 included in the measuring unit 20 is determined according to the measurement technology of the three-dimensional shape. In this example, the sensor unit 2 includes a camera, lighting, a projector, or the like. For example, when measuring the three-dimensional shape of the workpiece WK using the phase shift method, the sensor unit 2 includes a projector (light projecting unit) PRJ and multiple cameras (light receiving units) CME1, CME2, CME3, and CME4 as shown in FIG. 3. The projector PRJ is a member that irradiates light onto the workpiece WK. The cameras CME1, CME2, CME3, and CME4 are members having image pickup elements that receive light projected by the projector PRJ and reflected on the surface of the workpiece WK. The light source of the light projecting section can be configured, for example, by a plurality of light emitting diodes, a liquid crystal panel, an organic EL panel, a digital micromirror device (DMD), or the like.
[0045] The sensor unit 2 may be configured with a plurality of members such as the cameras CME1, CME2, CME3, and CME4 and the projector PRJ, or may be configured as an integrated unit. For example, the sensor unit 2 may be a 3D imaging head formed by integrating the cameras CME1, CME2, CME3, and CME4 and the projector PRJ into a head shape.
[0046] Furthermore, the generation of the three-dimensional shape data itself can be performed by the sensor unit 2. In this case, an image processing IC or the like that realizes a function of generating three-dimensional shape data is provided in the sensor unit 2. Alternatively, the generation of the three-dimensional shape data may not be performed on the shape measurement processing unit 200 side, and a raw image captured by the sensor unit 2 may be image-processed in another part of the measuring device 100 to generate three-dimensional shape data such as a three-dimensional image.
[0047] Furthermore, by performing calibration based on the image data acquired by the sensor unit 2, it is possible to link the actual position coordinates of the workpiece WK (the coordinates of the moving position of the robot hand HND) with the position coordinates on the image displayed on the display unit 3.
[0048] The measuring device 100 performs three-dimensional search, interference determination, gripping solution calculation, etc., based on three-dimensional shape data such as the position and orientation of the workpiece WK obtained by the measuring unit 20. This measuring device 100 can be configured with a general-purpose computer on which a dedicated image processing program is installed, a dedicated image processing controller, and dedicated hardware. Also, it can be configured with an image processing program installed on a dedicated computer with hardware such as a graphics board specialized for image inspection processing.
[0049] 2 shows an example in which the sensor unit 2 and the shape measurement processing unit 200 of the measurement unit 20 are configured as separate members, but the present invention is not limited to this configuration, and for example, the sensor unit 2 and the shape measurement processing unit 200 can be integrated, or a part of the sensor unit 2 can be incorporated into the shape measurement processing unit 200, or a part of the shape measurement processing unit 200 can be incorporated into the sensor unit 2. In this way, the division of the members shown in FIG. 2 is one example, and multiple members can be integrated, or one member can be separated. For example, the operation unit 4 and the robot operation tool 7 can be a common member.
[0050] As shown in Fig. 1, the sensor unit 2 is separate from the robot RBT. In other words, the sensor unit 2 is not provided on the arm unit ARM of the robot body 5, which is called an off-hand type. The sensor unit 2 may be provided on the arm unit ARM.
[0051] The display unit 3 can be, for example, a liquid crystal monitor, an organic EL display, or a CRT. The operation unit 4 is a member for performing various settings for various simulations, image processing, and the like, and can use input devices such as a keyboard and a mouse. In addition, the operation unit 4 and the display unit 3 can be integrated by making the display unit 3 a touch panel.
[0052] For example, when the measuring device 100 is configured with a computer on which an image processing program is installed, a graphical user interface (GUI) screen generated by executing the image processing program is displayed on the display unit 3, as described below. Various settings can be made from the GUI displayed on the display unit 3, and processing results and the like can be displayed. In this case, the display unit 3 can also be used as a setting unit or input unit for making various settings, and the setting unit and input unit may include the operation unit 4.
[0053] The robot controller 6 controls the operation of the robot based on, for example, information captured by the sensor unit 2 and information output from the measurement device 100. The robot operation tool 7 is a member for setting the operation of the robot RBT, and a so-called pendant or the like can be used.
[0054] As shown in FIG. 1, a plurality of workpieces WK are randomly stored in a container BX. A sensor unit 2 is disposed above such a working space. The robot controller 6 controls the robot RBT to identify the workpiece WK to be grasped from among the plurality of workpieces WK based on the three-dimensional shape of the workpiece WK obtained by the sensor unit 2, and to grasp the workpiece WK. Then, while grasping the workpiece WK at the grasping position, the arm unit ARM is operated to move the workpiece WK to a predetermined placement position, for example, onto the stage STG, and place the workpiece WK in a predetermined posture. In other words, the robot controller 6 controls the operation of the robot RBT to grasp the workpiece WK to be picked (grasped) identified by the sensor unit 2 and the measuring device 100 with the robot hand HND, place the grasped workpiece WK in a predetermined reference posture on a placement location (stage STG), and release the robot hand HND. The stage STG can be, for example, a conveyor belt or a pallet. The gripping operation can also be called "picking" and the gripping position can also be called "picking position." The placing operation can also be called "placing" and the placing position can also be called "place position."
[0055] Here, the picking targeted by this embodiment is not limited to bulk picking, and the robot RBT can transport the workpieces WK regardless of how they are placed. In this specification, bulk picking is used to mean an example in which the workpieces WK that are randomly stacked in a container BX are grasped by the robot RBT and placed in a predetermined position, as well as an example in which the workpieces WK stacked in a predetermined area are grasped and placed without using a container, or an example in which the workpieces WK that are arranged and stacked in a predetermined posture are grasped and placed one by one. In addition, the workpieces WK do not necessarily have to be stacked on top of each other, and the workpieces WK that are randomly placed on a plane without overlapping each other are also called bulk picking in this specification (this is the same reason why the workpieces WK are still called bulk picking even when they are picked one by one and there is no overlapping between them at the end of the picking process). Note that the present invention is not necessarily limited to bulk picking, and can also be applied to the application of picking up workpieces WK that are not stacked.
[0056] In addition, in the example of Fig. 1, the sensor unit 2 is fixed above the working space, but the fixed position of the sensor unit 2 may be any position that can capture an image of the working space, such as diagonally above, to the side, below, or diagonally below the working space. The sensor unit 2 may be disposed in a movable, indefinite position, such as on the arm unit ARM. Furthermore, the number of cameras and lights that the sensor unit 2 has is not limited to one, and may be multiple. Furthermore, the connection between the sensor unit 2, the robot RBT, and the robot controller 6 is not limited to a wired connection, and may be a well-known wireless connection.
[0057] When performing a bulk picking operation with the robot system 1000, teaching can be performed including settings for performing the bulk picking operation in advance. Specifically, it is possible to register which part of the workpiece WK the robot hand HND will grasp in what posture, the grasping position and the posture when grasping, and the placement position and the posture when placing can be registered. Such settings can be performed with a robot operating tool 7 such as a pendant. Also, as described later, settings can be performed in the vision space without operating the actual robot RBT.
[0058] The display unit 3 displays the work model, which virtually represents the three-dimensional shape of the workpiece WK, and the robot hand model, which is configured with three-dimensional CAD data and virtually represents the three-dimensional shape of the robot hand HND, in three-dimensional form in a virtual three-dimensional space. Furthermore, the display unit 3 can also display the basic direction image of the work model as a six-sided view. This makes it possible to display each posture of the work model in a six-sided view and perform the setting work of the gripping position, which was previously troublesome, and makes it easy to set the gripping position.
[0059] (Settings Procedure) Fig. 5 is a flowchart showing the procedure for setting a search model, and Fig. 6 is a flowchart showing the procedure for setting a hand model and a gripping position. The method described below is an example, and the search model may be created from CAD data or from point cloud data captured by the sensor unit 2, and is not particularly limited.
[0060] The setting of the search model and the setting of the robot model, hand model, and grip position can be performed in any order. The setting of the search model and the setting of the robot model, hand model, and grip position can be performed by the setting unit 21 shown in FIG.
[0061] In step SB1 after the start of the flowchart showing the procedure for setting the search model shown in Fig. 5, a search model of the workpiece WK is registered. The search model of the workpiece WK is a model that represents the shape of the workpiece WK and is used when executing the search process described below. When registering the search model of the workpiece WK in step SB1, three-dimensional CAD data (CAD model) of the workpiece WK is read and temporarily stored in the storage device 42 of the measuring device 100. The CAD data is data of the search model of the workpiece WK, and data in a format that has been commonly used in the past can be used.
[0062] The search model of the workpiece WK may be an interference judgment model generated based on the surface shape seen from a certain surface. In other words, a model in which the search point cloud is pushed to the zero surface (the surface on which the workpiece WK is placed) can be used as the interference judgment model. The procedure for acquiring the interference judgment model is to first acquire the point cloud information of the search model, and then obtain the height (extrusion amount) of the search model and the footprint of the model from the surface information of the zero surface. At this time, the background can be removed by a background removal threshold or by mask processing. Then, the point cloud is extruded based on the extrusion amount. At this time, only the height information of the footprint range is used. In order to fill holes and remove noise, the point cloud information or the height-changed image is optionally expanded and contracted in the X and Y directions.
[0063] When the surface of the collision detection model is polygonized, it can be of vertex index type. This allows polygons to be expressed with a vertex array and vertex index array, making it easier to handle and requiring less capacity than, for example, the STL format. When the surface of the collision detection model is polygonized, polygon reduction processing can be performed as desired. Also, point cloud information can be thinned out as desired. Furthermore, if the point cloud is a height image, it is also possible to reduce pixel values by reducing the image.
[0064] As described above, the extruded shape is effective for interference detection because it encloses a larger area than the workpiece WK, even if the workpiece WK has a complex shape. In addition, since there is no need to combine multiple surfaces, the operation is simple. Furthermore, by having multiple extrusion interference detection models for a certain workpiece WK, it is possible to select the best interference detection model that corresponds to the gripping position and posture and the search position and posture.
[0065] Furthermore, the search model of the workpiece WK can be in the STL format, which is the simplest format for CAD data. The STL format is data that is composed only of an array of triangular polygon information (the coordinates of three points and the normal vectors of their faces). Alternatively, the search model of the workpiece WK may be composed of point cloud data having three-dimensional information. Alternatively, the search model of the workpiece WK may be composed of image data having height information, such as a height image or a distance image.
[0066] After reading the CAD data of the search model of the workpiece WK in step SB1, the process proceeds to step SB2, where the search model of the workpiece WK is confirmed and registered. For example, the CAD data of the search model of the workpiece WK that has been read can be displayed on the display unit 3, allowing the user of the measuring device 100 to confirm whether or not it is the desired search model. If it is found to be the desired search model, the search model is registered in the measuring device 100. If it is found not to be the desired search model as a result of the confirmation, another CAD data is read and confirmed again.
[0067] In step SB2, when registering the search model of the workpiece WK, a circumscribed rectangular parallelepiped of the CAD model is defined, and an origin correction process is performed to correct the center of the circumscribed rectangular parallelepiped to the origin of the CAD. The origin of the search model of the workpiece WK is automatically determined by the measuring device 100 from the coordinate information of the three-dimensional CAD data. For example, for the three-dimensional CAD data of the search model of the workpiece WK, a virtual rectangular parallelepiped circumscribed to the search model can be defined, and the center of gravity of the virtual rectangular parallelepiped can be set as the origin of the search model.
[0068] In addition, in step SB2, height image data of the six sides of the CAD model read in step SB1, that is, the CAD model viewed from each of the directions of "top", "bottom", "left", "right", "front" and "rear" is generated. First, six pieces of height image data are generated so as to be a plan view, a bottom view, a left side view, a right side view, a front view and a rear view of the CAD model. A height image is obtained from this height image data. "Top" corresponds to a height image viewed from the positive direction (plus side) of the Z axis, "bottom" corresponds to a height image viewed from the negative direction (minus side) of the Z axis, "left" corresponds to a height image viewed from the negative direction of the X axis, "right" corresponds to a height image viewed from the positive direction of the X axis, "front" corresponds to a height image viewed from the negative direction of the Y axis, and "rear" corresponds to a height image viewed from the positive direction of the Y axis. However, these are only examples, and a different coordinate system may be used, or height images viewed from the positive and negative directions of each axis may be used based on a coordinate system that is perpendicular to the straight line X=Y in the XY plane as an axis. Furthermore, when generating a height image from three-dimensional CAD data, it is not necessary for the height image to be viewed from a direction perpendicular to the axis of the CAD data ("top", "bottom", "left", "right", "front", "back"). For example, the posture (viewpoint) of the search model of the workpiece WK can be changed arbitrarily and the height image can be generated from the changed viewpoint.
[0069] Furthermore, since the CAD model is made up of three-dimensional CAD data, by converting the three-dimensional CAD data into height images when viewed from the positive and negative directions for each of the X, Y, and Z coordinates of the CAD model, height images can be obtained for the six sides of the CAD model.
[0070] It is also possible to delete height images that have the same appearance among the six height images generated as described above. To check whether the appearance matches or not, height images of a total of six sides, seen from above and below (positive and negative directions on the Z axis), from the front and back (positive and negative directions on the Y axis), and from the left and right (positive and negative directions on the X axis), are generated based on the height image data, and it is confirmed whether the height images match. Here, the images are rotated in 90° increments to check whether they match, and any sides that appear to match other sides are excluded from the registration of the search model of the workpiece WK.
[0071] The remaining height image data as a result of the elimination is saved. Information indicating whether the saved height image data is an image viewed from the CAD model (up, down, left, right, front, back), i.e., information regarding the direction, is added to the height image data, and this information regarding the direction is associated with the height image data and saved in the storage device 42. This makes it possible to save each height image data in a state in which the relationship information of each of the surfaces (up, down, left, right, front, back) is held. Note that it is also possible to save only the height image data without saving the relationship information of the surfaces.
[0072] The above method is a method in the case where CAD data of the workpiece WK exists, but if there is no CAD data of the workpiece WK, multiple height image data of the search model of the workpiece WK viewed from different directions may be registered as the search model. That is, the workpiece WK is placed on a plane with the surface to be registered facing up, and three-dimensional measurement is performed. This three-dimensional measurement can be performed using the sensor unit 2 and shape measurement processing unit 200 of the robot system 1000. The measurement data obtained by the three-dimensional measurement by the shape measurement processing unit 200 is output from the shape measurement processing unit 200, and height image data of the surface to be registered of the workpiece WK can be obtained based on the measurement data.
[0073] After obtaining a height image based on the height image data thus obtained, the height image is registered as a search model. After registration, it is determined whether or not the registration required for the search has been completed. This determination can be made by the user, but it may also be made by the measuring device 100 or the image processing device 300. In other words, if the shapes of the workpiece WK viewed from each direction, up and down, left and right, front and back, are all different, it is preferable to obtain height images for all six faces, but if there are faces of the same shape, as in the case of the rectangle described above, it is not necessary to do this for all six faces. When the registration required for the search has been completed, the process ends.
[0074] In step SB3 following step SB2 in the flowchart shown in Fig. 5, search conditions are set. The search conditions include, for example, the number of workpieces WK that can be detected during a search, a lower limit of the correlation value between the search model and the workpieces WK, feature extraction conditions (edge extraction threshold value, etc.), etc. The search conditions are set by the user and are accepted by the setting unit 21.
[0075] Next, a flowchart showing the procedure for setting the hand model and the gripping position shown in FIG. 6 will be described. In step SC1 after the start, a robot model is registered. The robot model specifies various information related to the robot RBT used at the site. The various information related to the robot RBT includes, for example, the length of the arm ARM, the range of motion of the arm ARM, the position of the robot RBT, the swing speed and rotation speed of the movable part of the arm ARM, etc. The various information related to the robot RBT can include a model showing the shape of the robot RBT, and in this case, polygon data (CAD data) of the robot RBT is read. This step is the robot model registration step.
[0076] After registering the robot model in step SC1, proceed to step SC2 to register the robot hand model. The robot hand model is a model that represents the shape of the robot hand. When registering the hand model of the robot RBT, the polygon data (CAD data) of the robot hand is read.
[0077] Then, proceed to step SC3, where the relative position and orientation of the robot hand model registered in step SC2 and the flange surface of the robot model (registered in step SC1) to which the robot hand model is to be attached is defined. Specifically, the positional relationship between the mounting surface of the robot hand model and the flange surface of the robot model is defined so that they coincide with each other.
[0078] In step SC4 following step SC3, the tip coordinates of the robot hand model attached to the flange surface of the robot model are specified. These tip coordinates can be obtained from the robot controller 6, but can also be set by the user. After that, in step SC5, completion of registration of the robot hand model is confirmed.
[0079] After the robot hand model is registered as described above, the process proceeds to step SC6. In step SC6, a surface of the search model to be grasped by the hand model is selected. The surface of the search model can be represented by a height image registered using the flowchart shown in FIG. 5, and the user selects a height image corresponding to a surface that can be grasped by the robot hand model from among a plurality of registered height images. When selecting a height image, the height images are displayed on the display unit 3, and the user can select from these height images by operating the operation unit 4.
[0080] After selecting the height image in step SC6, the process proceeds to step SC7, where the position and posture of the robot hand HND when gripping the surface selected in step SC6 is registered. For example, the X-axis coordinate, Y-axis coordinate, Z-axis coordinate, rotation angle around the X-axis, rotation angle around the Y-axis, and rotation angle around the Z-axis can be individually input, and the robot hand model can be moved and placed at a desired position in the height image so as to correspond to the input values. This makes it possible to set which part of the search model the robot hand model will grip and in what posture, that is, the gripping position and posture, while adjusting the position of the robot hand model. The gripping position and posture can also be set by directly operating the robot hand model with the mouse of the operation unit 4, in addition to inputting numerical values.
[0081] The gripping positions set here are gripping candidate positions gripped by the robot hand HND. A plurality of gripping candidate positions gripped by the robot hand HND can be set in association with each search model of the workpiece WK already registered. For example, two gripping candidate positions can be set in association with one search model, and four gripping candidate positions can be set in association with another search model. The gripping information indicating the gripping candidate positions of the workpiece WK set in this manner can be stored in the gripping information storage unit 42a (shown in FIG. 2) of the storage device 42 of the measuring device 100 in association with the search model.
[0082] In general, multiple grip candidate positions are often registered for one workpiece WK. This is because if multiple grip candidate positions are registered, the optimal solution can be selected from multiple grip solutions, and if the obtained grip candidate solution cannot be the final solution due to interference with other objects of the robot hand HND, for example, the possibility of determining that gripping is possible increases if there are other grip candidate solutions. When multiple grip candidate positions are registered, if registration is performed from scratch each time, it becomes a hassle to register similar grip candidate positions, and the work becomes cumbersome. Therefore, by copying already registered grip candidate position information, changing some of the position parameters set in this grip candidate position, and making it possible to save it as a new grip candidate position, it becomes possible to easily register multiple grip candidate positions without much effort. It is also possible to read out existing grip candidate positions, appropriately modify the position parameters, and overwrite and save them.
[0083] When registering a candidate gripping position, the relative position and posture of the robot hand model when gripping the search model are registered with respect to the origin of the search model of the workpiece WK. On the other hand, when picking up the workpiece WK with the actual robot hand HND, it is necessary to convert from the vision coordinates, which are the coordinates of the three-dimensional space (vision space) in which the workpiece WK is imaged by the sensor unit 2, to the robot coordinates used by the robot controller 6 when actually operating the robot RBT.
[0084] Specifically, the position and orientation of the search model of the workpiece WK are expressed as position (X, Y, Z) and orientation (R X , R Y , R Z ) (Note that the posture (R X , R Y , R Z ) indicates the orientation expressed by the Euler angles of the ZYX system. Similarly, the orientation of the robot hand model that holds this is expressed by the position (X, Y, Z) and orientation (R X , R Y , R Z In order for the robot controller 6 to operate the robot RBT based on the position and orientation in the vision space, these are calculated as the position (X', Y', Z') and orientation (R X ', R Y ', R Z The process of calculating a conversion formula for converting the position and orientation calculated in this displayed coordinate system into the position and orientation in the coordinate system in which the robot controller 6 operates the robot hand HND is called calibration. This calibration can be performed by a conventionally known method.
[0085] In step SC8 of the flowchart shown in FIG. 6, it is determined whether or not the required number of gripping candidate positions have been registered. If there are many parts that can be gripped by the robot hand HND, the number of gripping candidate positions to be registered will be large, but since this is a matter to be determined by the user, the determination in step SC8 is made by the user. If the determination in step SC8 is NO and the required number of gripping candidate positions have not been registered and there are other gripping candidate positions to be registered, the process proceeds to step SC7 via step SC6, where other gripping candidate positions are set and registered. That is, the gripping information storage unit 42a can store a plurality of pieces of gripping information. On the other hand, if the determination in step SC8 is YES and the required number of gripping candidate positions have been registered, the process proceeds to step SC9.
[0086] In step SC9, the start position and the placement position for placing the gripped workpiece WK are registered. The start position is a standby position when the sensor unit 2 takes an image.
[0087] On the other hand, the placement position is a position where the workpiece WK is placed by the robot hand HND, and can be set, for example, on the stage STG shown in Fig. 1. The start position and placement position can be set by inputting coordinates or the like as numerical values, but can also be set by directly operating the robot hand model with, for example, the mouse of the operation unit 4.
[0088] When step SC9 is completed, the process proceeds to step SC10. In step SC10, the via points to be passed through while moving the workpiece WK from the gripping position to the placement position are registered. Two or more via points can be registered. The via points can be registered in multiple locations, in which case they can be named and stored, such as via point 1, via point 2, .... In this example, a case will be described in which the via points are registered by the user, but this is not limiting, and the measuring device 100 can also be configured to calculate the via points and present them to the user, in which case step SC10 is omitted.
[0089] The waypoint registered in step SC10 is a point through which the robot hand HND or the workpiece WK passes after the robot hand HND grasps the workpiece WK and before placing the workpiece WK on the placement position. The waypoint can be set by inputting coordinates or the like as numerical values, but it can also be set by, for example, directly operating the robot hand model with the mouse of the operation unit 4. When the waypoint is set, the operation of the arm unit ARM and the robot hand HND is set so that a part of the robot hand HND or a part of the workpiece WK passes through the waypoint while the robot hand HND grasps the workpiece WK and transports it from the start position to the placement position.
[0090] Furthermore, the setting unit 21 can set the standby position of the robot hand HND, and can also set waypoints on the forward path that the robot hand HND will take before gripping the workpiece WK in the container BX when the robot hand HND is at the standby position. The standby position and waypoints on the forward path of the robot hand HND can be set by inputting coordinates or the like as numerical values, but can also be set by directly operating the robot hand model with the mouse of the operation unit 4, for example.
[0091] Although the via point can be given in robot coordinates (XYZ, RxRyRz), it is preferable to give it in the axis angle (joint angle) of the arm part ARM. This uniquely determines the robot arm position for collision detection.
[0092] The shaft angle can be calculated from the robot coordinates of the gripping position etc. in the measuring device 100, and the calculated shaft angle can be transmitted to the robot controller 6. The specified position can be specified in either the robot coordinates or the shaft angle on the user interface. This mechanism for calculating the shaft angle from the robot coordinates is called "inverse kinematics", and like interference detection, this is a part of the path generation.
[0093] (Basic robot control) 7 is a diagram showing an example of a flowchart of the basic control of the robot RBT. In step SD1 after the start, the measurement unit 20 captures an image of the workpiece WK to measure the position and orientation of the workpiece WK, and generates data for search processing (height image data) executed in step SD2. Since the measurement unit 20 is capable of three-dimensional measurement, the data for search processing can include height information.
[0094] Then, proceed to step SD2, where a search process is executed to detect the position and orientation of the workpiece WK from the search process data generated in step SD1. The search process can be called a three-dimensional search, since it searches the search process data including height information. Specifically, the orientation and position of the workpiece WK are specified using a registered search model of the workpiece WK. First, the position and orientation (X, Y, Z, R) of the workpiece WK that best matches each feature point of the search model are determined. X , R Y , R Z ) is searched for in the search processing data. Here, R X , R Y , R Z represent the rotation angle about the X axis, the rotation angle about the Y axis, and the rotation angle about the Z axis, respectively. Various methods for expressing such rotation angles have been proposed, and ZYX system Euler angles can be used here. In addition, it is not necessary for each search model to have one matching position and orientation, and multiple positions and orientations that match to a certain degree or more may be detected.
[0095] By using an image of the workpiece WK viewed from each side, such as a six-sided view, as a search model for a three-dimensional search, the calculation process of the three-dimensional search can be simplified, and the processing load can be reduced and the processing can be accelerated, compared to when a perspective view is used. In addition, the displayed state is easy to see when registering the search model, and the user can easily understand it visually. In addition, the results of superimposing each feature point of the search model on the position of the three-dimensional search result can be displayed in two dimensions or three dimensions. The search result can be scored according to the extent to which the corresponding feature points exist in the search processing data (for example, the percentage of the number of feature points that correspond to the search processing data within an error of a certain distance).
[0096] If the result of searching for the presence or absence of a registered search model is that the search model does not exist in the search processing data, that is, if the work WK cannot be detected, this flowchart ends.
[0097] Also, in step SD2, the position determination processing unit 22 shown in FIG. 2 determines the gripping position of the workpiece WK placed in the workspace by the robot hand HND based on the measurement results by the measurement unit 20 and the gripping information stored in the gripping information memory unit 42a.
[0098] For example, it is determined whether or not the three-dimensional point cloud indicated by the pixel data of each point of the height image, which is data for search processing, interferes with the robot hand model input in advance. Before this interference determination, for one workpiece WK detected by the three-dimensional search, the position (grasping coordinates) and posture at which the robot hand HND should be placed are calculated based on the position of this workpiece WK and the registered gripping posture of the workpiece WK. It is determined whether or not the robot hand HND interferes with surrounding objects at the calculated position. In this interference determination, it is possible to determine whether or not the three-dimensional point cloud interferes with the cross-sectional model by using the cross-sectional model of the robot hand HND. For example, if all three-dimensional points are away from the cross-sectional model of the robot hand HND, it is determined that the three-dimensional point cloud, i.e., the height image, and the hand model HND do not interfere, whereas if at least one three-dimensional point is inside the cross-sectional model of the robot hand HND or at least one three-dimensional point is in contact with the edge of the cross-sectional model of the robot hand HND, it is determined that the three-dimensional point cloud, i.e., the height image, and the robot hand HND interfere with each other. If there is no interference, it means that a grip solution for this workpiece WK has been calculated, i.e., the grip position has been calculated, and the process proceeds to step SD3. On the other hand, if there is interference, it means that a grip solution for this workpiece WK cannot be calculated, and the process ends this flowchart, or an attempt is made to calculate a grip solution for another workpiece WK.
[0099] In step SD3, the path generating unit 23 shown in Fig. 2 generates a path for the robot hand HND from the current position of the robot hand HND to the gripping position calculated in step SD2 via the approach position, and also generates a path for the robot hand HND from the start position (grip position) to the placement position. The path generated in step SD3 is a path that passes through via points. In addition, the path generated in step SD3 may include a path that does not pass through via points.
[0100] In step SD4, the output unit 24 outputs the coordinates of the gripping position, placement position, via point, etc. The robot controller 6 receives the coordinates of the gripping position, placement position, via point, etc. output from the output unit 24, generates a control signal, and outputs the generated control signal to the robot RBT. After that, in step SD5, the robot RBT operates according to the control signal to transport the workpiece WK along a predetermined path.
[0101] The points that the path generating unit 23 outputs to the robot controller 6 include fixed via points (fixed points set by the user, and approach positions, grip positions, and retreat positions automatically calculated by the path generating unit 23) and intermediate via points in the path generation (points automatically calculated by the path generating unit 23). Regarding the via points to be output to the robot controller 6, both output of each axis value of the arm section ARM and output of XYZ, RxRyRz are possible.
[0102] If the path generation unit 23 only outputs the approach position, the gripping position, etc., it would be necessary to write a program on the robot controller 6 side to avoid obstacles such as the container BX, which would lead to a complex program and make it difficult for the user to customize the program. In contrast, as in this example, by having the path generation unit 23 plan the overall movement of the robot hand HND and being able to output several waypoints along the way to the robot controller 6, there is an advantage in that it is possible to simplify the program description on the robot controller 6 side.
[0103] However, since the number of via points through which the robot hand HND must pass cannot be determined without actually generating the motion path of the robot RBT, the robot controller 6 cannot identify the via points through which the robot hand HND must perform the grasping or placing motion.
[0104] Furthermore, when the user increases or decreases the number of fixed via points, unless the program is rewritten on the robot controller 6 side, a difference will occur between the number of via points output by the measuring device 100 and the number of via points expected by the program on the robot controller 6 side. Therefore, every time the user increases or decreases the number of fixed via points, the user has to go through the trouble of rewriting the program.
[0105] Furthermore, each fixed via point has its own unique attribute, such as "a point where a gripping operation should be performed" or "a point where a placing operation should be performed." For example, if the via point is changed on the measuring device 100 side, and the robot controller 6 side does not follow this, problems such as a gripping operation being performed at an unexpected place may occur, which also makes it difficult to create a program.
[0106] To address such problems, in this example, the position determination processing unit 22 is configured to not only determine the gripping position of the robot hand HND of the workpiece WK arranged in the workspace based on the measurement results by the measurement unit 20 and the gripping information stored in the gripping information storage unit 42a, but also to determine the coordinates of a fixed via point having any one attribute among the approach position of the robot hand HND for gripping the determined gripping position, the gripping position, and the retreat position after gripping.Then, the output unit 24 outputs the coordinates of the fixed via point determined by the position determination processing unit 22 and attribute information indicating the attribute of the fixed via point to the robot controller 6 connected to the robot RBT.
[0107] (Details of Operation of Measurement Device 100) The operation of the measuring device 100 according to this embodiment will be described in detail below. As shown in Fig. 2, the measuring device 100 includes a user interface generating unit 25. This user interface generating unit 25 is a part that generates a user interface for various settings of the measuring device 100, a user interface for model registration, windows, etc., and displays them on the display unit 3.
[0108] FIG. 8 is a diagram showing an example of a user interface 50 for robot connection settings generated by the user interface generating unit 25. The user interface 50 for robot connection settings is provided with a connection setting area 50a for setting a manufacturer and a communication method, a communication setting area 50b for performing network settings, an operation setting area 50c for selecting whether or not to enable the operation of the robot RBT from the measuring device 100, and a model setting area 50d for setting the model of the robot RBT. Each of the areas 50a to 50d can be input with information by operating the operating unit 4. For example, when the model of the robot RBT is input in the model setting area 50d, a connection with the robot controller 6 that controls the input robot RBT becomes possible, and various data of the input robot RBT (such as the movable range of the arm part ARM) can also be automatically read. In addition, the communication format of the measuring device 100 can be automatically changed to a format according to the manufacturer. In other words, for example, information and communication formats of major robots RBT manufactured by major robot RBT manufacturers are stored in advance in a storage device 42 or the like, and the information can be read and used by the user's input operation, eliminating the need to input information about the robot RBT individually when setting it up.
[0109] When input to each of the areas 50a to 50d of the robot connection setting user interface 50 is completed, the user interface generation unit 25 generates a model confirmation user interface 51 shown in Fig. 9 and displays it on the display unit 3. The model confirmation user interface 51 is provided with a robot display area 51a in which a three-dimensional image showing the robot RBT input in the robot connection setting user interface 50 is displayed, a model display area 51b in which the manufacturer and model are displayed, and an accuracy confirmation area 51c in which the accuracy of the position and posture is confirmed. The user can confirm whether the selected robot RBT is correct or not by using the model confirmation user interface 51.
[0110] (Details of user settings when generating a route) FIG. 10 is a diagram showing an example of the user interface 52 for user settings. The user interface 52 for user settings is provided with a robot display area 52a in which a three-dimensional image showing the selected robot RBT is displayed, a selection area 52b in which various setting operations are selected, and a sequence display area 52c showing the movement sequence of the robot hand HND. In the sequence display area 52c, fixed via points such as an approach position, a gripping position, and a retreat position are displayed, as well as intermediate via points automatically calculated by the path generating unit 23, together with their names. The names can be names that are easy for the user to understand, such as "approach position", "retreat position", "grip position", and "designated position". The via points displayed in the sequence display area 52c are displayed in a state in which the relative positional relationship with the robot RBT can be grasped in the robot display area 52a.
[0111] The sequence display area 52c is configured to display multiple fixed via points when multiple fixed via points are determined by the position determination processing unit 22, and to indicate the via order of the fixed via points. That is, in the sequence display area 52c, the "start position" where the robot hand HND starts its operation is positioned at the top, and multiple via points are displayed in a lined up order below it. The display form of the fixed via points and intermediate via points (hereinafter, these are also collectively referred to as via points) is not limited to the form shown in the figure, and may be, for example, a form in which they are arranged in order in the left-right direction. In addition, a curve or straight line that complements the fixed via points is a set of intermediate via points, and is therefore synonymous with an intermediate via point.
[0112] The order display area 52c is provided with an add button 52d and an insert button 52e that are operated when adding a via point. The order display area 52c is also provided with an edit button 52f that is operated when editing a via point. When the user operates the add button 52d or the insert button 52e, the via point can be added or inserted at a desired position. When a via point is added, as shown in FIG. 11, the user interface generating unit 25 generates an attribute information input window 53 for inputting attribute information of the via point, and displays it superimposed on the order display area 52c. This attribute information input window 53 allows individual editing of multiple fixed via points. It is also possible to delete unnecessary fixed via points.
[0113] The attribute information includes the approach position, gripping position, retreat position after gripping, place position, relative position, etc. of the robot hand HND. The attribute information input window 53 displays any one of the attribute information in a selectable form. In other words, one piece of attribute information can be associated with one fixed via point. The input unit for inputting the attribute information of the via point can be constituted by the operation unit 4 capable of performing input operations on the attribute information input window 53.
[0114] When the OK button 53a in the attribute information input window 53 is pressed, the selected contents are reflected and the fixed via point and the attribute information are stored in the storage device 42 in an associated state, whereas when the Cancel button 53b is pressed, the selected contents are discarded. When the OK button 53a or the Cancel button 53b is pressed, the attribute information input window 53 is closed.
[0115] When an edit button 52f shown in FIG. 10 is pressed, the user interface generating unit 25 generates a position setting window 54 shown in FIG. 12 and displays it superimposed on the user setting user interface 52. The position setting window 54 is provided with a name display area 54a for displaying the name of the fixed via point to be edited, and a position and orientation designation area 54b for designating the position of the fixed via point and the orientation of the robot hand HND at the fixed via point. The name displayed in the name display area 54a can be changed. In addition, in the position and orientation designation area 54b, it is possible to select whether to designate the position and orientation in Cartesian coordinates or in the angle of each axis, and also to designate the image capture standby position. The image capture standby position is a position where the robot hand HND can be retreated to a place that is not within the field of view of the sensor unit 2 when the sensor unit 2 images the workpiece WK.
[0116] When the Next button 54c in the position setting window 54 is operated, the user interface generating unit 25 generates an action / collision detection setting window 55 shown in Fig. 13 and displays it superimposed on the user interface for user settings 52. The action / collision detection setting window 55 is provided with an action setting area 55a and a collision detection setting area 55b. In the action setting area 55a, it is possible to select whether or not to generate a route that passes through a waypoint.
[0117] When no path generation is performed, it is possible to select whether to move the robot by each axis interpolation operation or by linear interpolation operation. Each axis interpolation operation is a linear movement in the axis angle space, but in the real three-dimensional space, it is an actuation that draws a curve. Linear interpolation operation is the opposite. In this embodiment, all coordinates are internally managed by the angle of each axis, so strictly speaking, linear interpolation movement is realized by a set of each axis interpolation operation in a small section. In this case, a number of path points are generated that can be considered to be sufficiently straight (each axis is interpolated between the generated path points). Although this is determined at the time of setting, there will be via points that are not explicitly set by the user, as in the case of path generation. Note that even when no path generation is performed, interference judgment is performed, but since it is not possible to generate a path that avoids interference, if there is interference on this path, path generation is not possible as a whole. For example, when a path is generated, the path generation unit 23 can automatically generate a path that passes through via points and display it in the robot display area 52a. When a path is automatically generated, via points on the way are automatically generated.
[0118] In the interference determination setting area 55b, the margin information to be used for interference determination can be input as a numerical value (mm). If the distance between the robot hand HND and an obstacle is less than the input numerical value, it is determined that interference will occur.
[0119] 14 is a process sequence diagram of the measuring device 100, the robot controller 6, and the robot RBT. In the process sequence diagram, in S100, the robot controller 6 requests a path generation result from the path generation unit 23 of the measuring device 100. Upon receiving this request, the path generation unit 23 generates a path and causes the output unit 24 to output to the robot controller 6 the number of fixed via points, the number of via points between the fixed via points, the attributes of the fixed via points, the coordinates of the via points, the presence or absence of special evacuation, etc.
[0120] Here, the number of fixed via points can be dynamically changed. For example, if the number of fixed via points increases on the user setting user interface 52 shown in Fig. 10, the number of fixed via points transmitted to the robot controller 6 increases, and if the number of fixed via points decreases on the user setting user interface 52, the number of fixed via points transmitted to the robot controller 6 decreases. In this embodiment, attribute information for each fixed via point is output, but as an alternative example, an index of a fixed via point corresponding to each attribute information can also be output.
[0121] S101 in FIG. 14 is a process that is repeated for the number of fixed via points. In this process, first, in S102, the robot controller 6 identifies a desired fixed via point. Then, in S103, a command is issued to the robot RBT to move to the via point. In S104, an attribute is determined based on attribute information associated with the current fixed via point. In S105, an action execution file according to the attribute determined in S104 is called. The action execution file is, for example, grasping, placing, etc. Then, in S106, an action is issued to the robot RBT. Then, in S102, another fixed via point is identified. S102 to S106 are repeated for the number of fixed via points, thereby allowing the workpiece WK to be transported.
[0122] (Robot controller pseudo program) Next, the robot controller pseudo program will be described. The robot controller pseudo program has a method (first method) in which attribute information of a fixed via point is registered and output in association with the fixed via point in the measuring device 100, and the attribute information is processed on the robot controller 6 side, and a method (second method) in which attribute information of a fixed via point is processed on the measuring device 100 side and converted into a command to the robot RBT, and the robot controller 6 side executes the received command one by one. Specific examples of the first method and the second method will be described below.
[0123] (Example of the first method) First, an example of a main program for a case in which attribute information of a fixed via point can be registered in association with the fixed via point on a user interface is shown in Fig. 15A. In this example, the measurement unit 20 is made to perform measurement, and if there is no measurement result, the program is terminated, whereas if there is a measurement result, the subsequent process is executed. For example, the path generation result is received, the robot hand HND is moved to the fixed via point and the intermediate via point, the attribute of the current fixed via point is determined, and an action according to the attribute is issued. Here, as shown in Fig. 15B, an action program is called as a separate program and executed.
[0124] On the other hand, a case where attribute information cannot be associated and registered on a user interface will be described. When way points are set in the order shown in the order display area 52c in Fig. 10, a main program is generated as shown in an example in Fig. 16. Fixed way points 1 to 5 of the main program shown in Fig. 16 correspond to the "approach position", "holding position", "escape position", and two "designated positions" in the order display area 52c in Fig. 10, respectively, and actions are issued based on the attribute information of each way point.
[0125] As shown in FIG. 17, a fixed via point (designated position) can be added before the approach position, and how the main program changes in this case will be described. FIG. 17 shows a form in which a "designated position" indicated by a black mark has been added to the sequence display area 52c. When adding a "designated position", the user inputs attribute information using the attribute information input window 53 shown in FIG. 11, so the added "designated position" is associated with the attribute information. In this case, the main program erases "HAND OPEN" written on line 11 as shown in FIG. 18, and rewrites "HAND OPEN" on line 16. Then, the process is increased by the amount of the via point added on line 33. Note that the grip position is "HAND CLOSE".
[0126] In this way, the measurement device 100 registers and outputs the way points and attribute information in association with each other, and the robot controller 6 interprets and processes the attribute information associated with the way points. In this example, the robot program can be simplified by having two arrays, one for the way points and the other for the attribute information associated with them. An example of how data is held in this case is shown in FIG. 19.
[0127] (Example of the second method) Next, a second method will be described in which the measurement device 100 processes attribute information of the fixed via point and converts it into a command, and the robot controller 6 executes the command sequentially. In this case, the measurement device 100 transmits command information and position information of the via point to the robot controller 6, so that the robot controller 6 has a data array as shown in Fig. 20. In Fig. 20, "via point" requests tracing the via point, and "hand" requests operating the robot hand HND.
[0128] The robot controller 6 can decide what to do next by referring to the command array shown in Fig. 20. The main program in this case is shown in Fig. 21, where after a Move command is issued to the robot RBT on line 11, a hand action is issued to the robot hand HND on line 13. Also, via point data may be included in the command array as shown in Fig. 22.
[0129] (Special operation function) In this example, a special operation function is installed that allows the workpiece WK to be pulled or lifted by the robot hand HND. For example, as shown in FIG. 23, it is assumed that the workpiece WK is placed near the wall of the container BX, and when the robot hand HND tries to grasp the candidate gripping position, the robot hand HND comes into contact with the wall of the container BX, and is unable to grasp the candidate gripping position. This may occur even if multiple candidate gripping positions are set for one workpiece WK. In the example shown in FIG. 23, the robot hand HND comes into contact with the wall of the container BX within the circle indicated by the reference numeral 60. In this case, the robot hand HND grasps the part that can be grasped and moves the workpiece WK, and then grasps the previously set candidate gripping position and transports it to the place position.
[0130] Conventionally, the above operation was realized by receiving a flag indicating where the workpiece WK was gripped from a measuring device or the like, and then branching the robot program. However, to realize this function, settings were required in two controllers, the robot controller 6 and the measuring device, which created maintenance issues. In addition, the robot program became complicated, which was also a factor in depending on the user's skills.
[0131] The special operation function of this example differs from conventional control in that it can be realized by settings only in the measurement device 100. A specific description will be given below using a user interface.
[0132] FIG. 24 is a diagram showing an example of a special operation function setting user interface 70 generated by the user interface generating unit 25, and is displayed on the display unit 3. The special operation function setting user interface 70 is provided with a display area 70a capable of displaying the robot hand HND and the workpiece WK. A retraction setting window 71 is superimposed on the special operation function setting user interface 70 as a separate window. The retraction setting window 71 is provided with a selection area 71a capable of selecting whether to perform an operation of lifting the workpiece WK or an operation of pulling the workpiece WK as the retraction operation, and an operation setting area 71b. In the operation setting area 71b, the amount of lifting the workpiece WK can be set in mm units. In addition, in the operation setting area 71b, it is possible to set, as details of the retraction operation, for example, an operation of lifting the workpiece WK at an angle and then moving it away from the inner wall of the container BX, or lifting the workpiece WK after moving it away from the inner wall of the container BX. It is also possible to set the distance by which the workpiece WK is to be moved away from the inner wall of the container BX.
[0133] 25, the user interface generating unit 25 can generate a priority setting user interface 72 and display it on the display unit 3. The priority setting user interface 72 is provided with a basic setting area 72a and a gripping position setting area 72b. In the basic setting area 72a, it is possible to set a lower priority for gripping when pulling. In the gripping position setting area 72b, it is possible to set a gripping position.
[0134] The pulling action and lifting action are special actions other than the transport to the place position. The fixed via point having the attribute information of the gripping position is configured to be associated with special action information for making the robot hand HND execute a special action. For example, if the information for executing the pulling action is associated with the fixed via point having the attribute information of the gripping position, the output unit 24 outputs the special action information to the robot controller 6 when outputting the coordinates of the fixed via point associated with the special action information. This allows the robot hand HND to execute the pulling action when the robot hand HND reaches the fixed via point. When the robot hand HND executes the pulling action, a special route can be set such that the robot hand HND does not move to the place position, but returns to the initial position, for example. In this case, the robot controller 6 follows it without the user having to respond, so the burden on the user is reduced. In other words, if the settings are made on the measuring device 100 side, the output path will be a path that returns to the initial position, so there is no need to make any changes or branching on the robot program side. When performing a pulling action, the only thing that needs to be changed on the robot program side is the OPEN / CLOSE command of the robot hand HND.
[0135] (Effects of the embodiment) As described above, when the position and orientation of the workpiece WK arranged in the working space is measured by the measuring unit 20, the gripping position of the workpiece WK by the robot hand HND is determined based on the measurement result and gripping information indicating the gripping candidate positions of the workpiece WK stored in advance. In addition, the coordinates of a fixed via point having any one attribute among the approach position, gripping position, and retreat position after gripping of the robot hand HND for gripping the determined gripping position are also determined. Since the coordinates of the fixed via point and attribute information indicating the attribute of the fixed via point are output from the measuring device 100 to the robot controller 6, the user can edit the path setting of the robot hand HND without considering the correspondence with the robot controller 6 side, and can consider only the operation of the robot hand HND without being concerned with the operation of the robot RBT itself. In other words, the user can create a robot program simply by describing the operation of the robot hand HND corresponding to each attribute information.
[0136] The above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention. [Industrial Applicability]
[0137] As described above, the measuring device according to the present invention can be used, for example, to measure a workpiece placed in a work space and to control a robot that transports the workpiece. [Explanation of symbols]
[0138] 2 Sensor section 3 Display section 4 Operation section (input section) 6 Robot Controller 20 Measuring part 22 Position determination processing unit 24 Output section 25 User interface generation unit 42a Grip information storage unit 100 Measuring Equipment HND Robot Hand RBT Robot WK Work
Claims
1. A measuring device that measures a workpiece arranged in a working space and controls a robot that transports the workpiece, a user interface generating unit that generates a user interface including a sequence display area showing a sequence of passing through a plurality of fixed via points included in a route for transporting the workpiece and a robot display area different from the sequence display area, and that allows individual editing of the plurality of fixed via points; an input unit that accepts, on the user interface, addition or insertion of a first fixed via point into a route sequence desired by a user and accepts input of attribute information indicating attributes of the added or inserted first fixed via point; A measurement unit that measures a position and orientation of a workpiece placed in the working space; a gripping information storage unit configured to store gripping information indicating candidate gripping positions of the workpiece by a robot hand provided in the robot; a position determination processing unit that determines a gripping position of the workpiece arranged in the workspace by the robot hand based on the measurement result by the measurement unit and the gripping information stored in the gripping information storage unit, and determines the coordinates of a second fixed via point having any one attribute from among an approach position of the robot hand for gripping the gripping position, the gripping position, and a retreat position after gripping; an output unit that outputs to a robot controller connected to the robot the coordinates of the first fixed via point added or inserted via the input unit and the second fixed via point determined by the position determination processing unit, and attribute information indicating attributes of the first fixed via point and the second fixed via point corresponding to the coordinates, in correspondence with a passing order of the first fixed via point and the second fixed via point, The input unit is configured to be able to input the coordinates of a designated position specified by a user as the coordinates of the first fixed via point, and is configured to be able to input the fact that the first fixed via point is a designated position specified by the user as attribute information indicating the attributes of the first fixed via point.
2. 2. The measuring device according to claim 1, The input unit is a measuring device configured to be able to add a place position of a workpiece as a fixed via point.
3. 3. The measuring device according to claim 1, The output unit is configured to output to the robot controller the number of fixed via points determined by the position determination processing unit, the number of intermediate via points between the fixed via points in the case where multiple fixed via points are determined by the position determination processing unit, the coordinates of each fixed via point, and the coordinates of each intermediate via point.
4. 4. The measuring device according to claim 1, A fixed via point having attribute information of a gripping position can be associated with special operation information for causing the robot hand to execute a special operation other than transportation to a place position, The measurement device is configured such that, when outputting the coordinates of the fixed via point with which the special operation information is associated, the output unit outputs the special operation information to the robot controller.
5. A measuring device that measures a workpiece arranged in a working space and controls a robot that transports the workpiece, a user interface generating unit that generates a user interface including a sequence display area showing a sequence of passing through a plurality of fixed via points included in a route for transporting the workpiece and a robot display area different from the sequence display area, and that allows individual editing of the plurality of fixed via points; an input unit that accepts addition or insertion of a first fixed via point into a route sequence desired by a user on the user interface generated by the user interface generation unit and accepts input of attribute information indicating attributes of the added or inserted first fixed via point; A measurement unit that measures a position and orientation of a workpiece placed in the working space; a gripping information storage unit configured to store gripping information indicating candidate gripping positions of the workpiece by a robot hand provided in the robot; a position determination processing unit that determines a gripping position of the workpiece arranged in the workspace by the robot hand based on the measurement results by the measurement unit and the gripping information stored in the gripping information storage unit, determines the coordinates of a second fixed via point having any one attribute from among an approach position of the robot hand for gripping the gripping position, a gripping position, and a retreat position after gripping, and processes attribute information indicating each attribute associated with the coordinates of the first fixed via point and the second fixed via point, and information indicating the passing order of each fixed via point among the multiple fixed via points, and converts them into commands for the robot; an output unit that outputs the command obtained by the position determination processing unit to a robot controller connected to the robot, The input unit is configured to be able to input the coordinates of a designated position specified by a user as the coordinates of the first fixed via point, and is configured to be able to input the fact that the first fixed via point is a designated position specified by the user as attribute information indicating the attributes of the first fixed via point.
Citation Information
Patent Citations
Robot teaching system
JP2010179388A
Information processing device, robot, scenario information creation method and program
JP2015054378A
Robot setting device, robot system, robot setting method, robot setting program and recording medium readable by computer as well as equipment with the same recorded
JP2018144159A
Interference avoidance device
WO2018092860A1
Robot teaching device
WO2019064919A1
