Support system, image processing device, support method and program
The support system automates the setup for measuring workpiece position and orientation by using an imaging device and presenting correlated maps, addressing inefficiencies in manual parameter adjustment and improving accuracy.
Patent Information
- Application Number
- JP2021020864
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-12
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-02-12
AI Technical Summary
Existing systems require manual adjustment of measurement parameters for workpiece position and orientation, which is time-consuming and inefficient due to varying postures of workpieces in bulk, leading to increased setup time and effort.
A support system that includes an imaging device, setting, measurement, evaluation, and presentation units to automatically measure and present a map correlating object postures with evaluation results, allowing users to set optimal conditions for position and orientation measurement.
Enables efficient and accurate setting of conditions for measuring workpiece position and orientation, reducing setup time and improving measurement accuracy by considering possible postures of objects.
Smart Images

Figure 0007533265000001 
Figure 0007533265000004 
Figure 0007533265000007
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a support system, an image processing device, a support method, and a program. [Background technology]
[0002] Conventionally, there is known a technology in which a robot picks up workpieces one by one from a pile of multiple objects (hereinafter also referred to as "workpieces") that are piled up. In such a technology, the position and orientation of the workpiece are measured, and the operation of the robot is determined according to the measurement result.
[0003] For example, Japanese Patent Application Laid-Open No. 2019-155535 (Patent Document 1) discloses a work picking device including a sensor that measures the position and orientation of a work, a hand that grips the work, a robot that moves the hand to a gripping position and then moves it from the gripping position, and a control device. The control device judges the status of the work based on the measurement result of the position and orientation of the work and the calculation result of the number of workpieces whose positions and orientations have been detected, and changes the measurement parameters when the judgment result satisfies a predetermined condition. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2019-155535 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technology described in Patent Document 1 sets measurement parameters to improve the success rate of gripping when the picking device is in operation. In other words, the technology described in Patent Document 1 does not assume support for setting conditions for measuring the position and orientation of a workpiece when starting up the picking device.
[0006] Bulk-stacked workpieces can take various postures when viewed from the sensor. Therefore, in order to properly set the conditions for measuring the position and orientation of the workpieces when starting up the picking device, the user needs to manually change the posture of the workpiece as appropriate and check the measurement results of the position and orientation of the workpiece. As a result, it is time-consuming to set the conditions for measuring the position and orientation of the workpiece. Therefore, there is a need for the development of a system that supports the setting of conditions taking into account the postures that the target object can take.
[0007] The present disclosure has been made in consideration of the above problems, and its purpose is to provide a support system, image processing device, support method, and program that can assist in setting conditions when measuring the position and orientation of an object, taking into account possible orientations of the object. [Means for solving the problem]
[0008] According to an example of the present disclosure, an assistance system includes an imaging device, a setting unit, a robot, a measurement unit, an evaluation unit, and a presentation unit. The imaging device captures an image of an object. The setting unit sets a movement range of the imaging device. The robot sequentially moves the imaging device to a plurality of measurement positions within the movement range. The measurement unit measures the position and orientation of the object for each of the plurality of measurement positions using an image captured by the imaging device. The evaluation unit evaluates the measurement results by the measurement unit. The presentation unit presents a map showing a correspondence between each of the plurality of measurement positions and the evaluation results by the evaluation unit.
[0009] According to this disclosure, the postures of an object are different in captured images obtained by capturing images from a plurality of measurement positions. Therefore, by checking the map, a user can easily understand the correspondence between the position and posture of an object captured in a captured image and the evaluation result of the measured position and posture of the object. Based on the correspondence, a user can determine whether the evaluation result for each measurement position is good or bad, and appropriately set conditions for measuring the position and posture of the object using an image in which the object is captured. In this way, the support system can support the setting of conditions for measuring the position and posture of an object, taking into account possible postures of the object.
[0010] In the above disclosure, the evaluation unit calculates at least one evaluation value representing an evaluation result, and the presentation unit accepts designation of one measurement position among a plurality of measurement positions on a map, and presents at least one evaluation value corresponding to the one measurement position in response to the designation of the one measurement position.
[0011] According to the above disclosure, a user can easily check an evaluation value, which is a detailed evaluation result, for each measurement position. The user can appropriately adjust conditions for measuring the position and orientation of an object depending on the magnitude of the evaluation value.
[0012] In the above disclosure, the measurement unit generates three-dimensional point cloud data of the field of view of the imaging device based on captured images corresponding to each of the multiple measurement positions. The presentation unit accepts designation of one of the multiple measurement positions on a map, and presents an image generated from the three-dimensional point cloud data corresponding to the one measurement position in response to the designation of the one measurement position.
[0013] According to the above disclosure, a user can easily check for each measurement position whether there are missing points or any erroneous detected points in the three-dimensional point cloud data generated from the captured image.
[0014] In the above disclosure, the setting unit sets a reference position within the movement range and registers the position and orientation of the object model so that it coincides with the position and orientation of the object measured from the captured image corresponding to the reference position. The presentation unit generates a virtual image of the model as viewed from one measurement position in response to the designation of the one measurement position, and presents the virtual image.
[0015] According to the above disclosure, a user can easily check whether or not the three-dimensional point cloud data has been generated appropriately by comparing an image generated from the three-dimensional point cloud data with a virtual image.
[0016] In the above disclosure, the measurement unit generates three-dimensional point cloud data of a field of view of the imaging device based on a captured image, and measures the position and orientation based on the three-dimensional point cloud data and template data. At least one evaluation value includes a correlation value between the three-dimensional point cloud data and the template data.
[0017] According to the above disclosure, a user can check the correlation value to determine whether there is a problem in searching for an object using template data. If the correlation value is low, the user can take measures to increase the correlation value (e.g., adjusting the intensity of the illumination light, the shutter speed, the camera gain, etc.).
[0018] In the above disclosure, the measurement unit performs a plurality of measurements at each of the plurality of measurement positions, and the at least one evaluation value includes a value indicating repeatability of the plurality of measurements.
[0019] According to the above disclosure, a user can check the stability of the measurement by checking the value indicating the repeatability. If the repeatability is low, the user can take measures to improve the repeatability (for example, adjusting the intensity of the illumination light, the shutter speed, the camera gain, etc.).
[0020] In the above disclosure, the plurality of measurement positions include a reference position. The measurement unit measures a position and orientation of an object in a camera coordinate system based on an image capture device. At least one evaluation value includes a value indicating a difference between a first amount of change in the position and orientation of the object in the camera coordinate system, which is estimated based on an amount of movement from a reference position, and a second amount of change from the position and orientation measured at the reference position to the position and orientation measured at the measurement position, for each of the plurality of measurement positions.
[0021] According to the above disclosure, the user can check whether or not a problem occurs in the process of searching for an object from a captured image by checking the value indicating the difference between the first change amount and the second change amount. If such a problem occurs, the user can change the conditions related to the process of searching for an object from a captured image.
[0022] In the above disclosure, the measurement locations are on the same sphere, and the map is expressed in a polar coordinate system with the origin at the center of the sphere.
[0023] According to the above disclosure, a user can easily understand each of a plurality of measurement positions arranged on a spherical surface by checking the map.
[0024] According to one example of the present disclosure, an image processing device includes a setting unit that sets a movement range of an imaging device that images an object, a measurement unit that measures the position and orientation of the object for each of a plurality of measurement positions within the movement range using an image obtained from the imaging device located at the measurement position, an evaluation unit that evaluates the measurement results by the measurement unit, and a presentation unit that presents a map showing the correspondence between each of the plurality of measurement positions and the evaluation results by the evaluation unit.
[0025] According to an example of the present disclosure, the support method includes first to fifth steps. The first step is a step of setting a movement range of an imaging device that captures an image of an object. The second step is a step of sequentially moving the imaging device to a plurality of measurement positions within the movement range using a robot. The third step is a step of measuring the position and orientation of the object for each of the plurality of measurement positions using a captured image obtained by imaging with the imaging device. The fourth step is a step of evaluating the measurement results of the position and orientation. The fifth step is a step of presenting a map showing the correspondence between each of the plurality of measurement positions and the evaluation results.
[0026] According to an example of the present disclosure, a program causes a computer to execute the above-mentioned support method. These disclosures can support setting of conditions for measuring the position and orientation of an object, taking into account possible orientations of the object. Effect of the Invention
[0027] According to the present disclosure, it is possible to assist in setting conditions for measuring the position and orientation of an object, taking into account possible orientations of the object. [Brief description of the drawings]
[0028] [Figure 1] 1 is a schematic diagram showing an overall configuration of a support system according to an embodiment; [Diagram 2] FIG. 1 is a diagram showing an example of bulk-stacked workpieces. [Diagram 3] 2 is a schematic diagram illustrating an example of a hardware configuration of an image sensor controller illustrated in FIG. 1. [Figure 4] FIG. 2 is a diagram showing an example of a coordinate system used in the support system. [Diagram 5] 2 is a block diagram showing an example of a functional configuration of an image sensor controller shown in FIG. 1. [Figure 6] 1 is a flowchart showing a flow of a support process in the support system. [Figure 7] FIG. 13 is a diagram showing an example of a screen (setting screen) for assisting in setting a movement range. [Figure 8] FIG. 13 illustrates an example of a performance report screen. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and the description thereof will not be repeated.
[0030] §1 Examples of application An example of a situation in which the present invention is applied will be described with reference to Fig. 1. Fig. 1 is a schematic diagram showing an overall configuration of a support system according to an embodiment. The support system 1 illustrated in Fig. 1 supports setting of conditions when measuring the position and orientation of a workpiece W, which is an object, by using an image showing the workpiece W. The support system 1 is incorporated in, for example, a production line and used for controlling picking of workpieces W stacked in bulk.
[0031] The support system 1 illustrated in FIG. 1 includes an image sensor controller 100, a measuring head 200, a robot 300, a robot controller 400, and a display 500.
[0032] The measurement head 200 captures an image of a subject including a workpiece W. The measurement head 200 includes a projection unit 201 and an imaging unit 202. The projection unit 201 projects an arbitrary projection pattern light onto the subject in accordance with an instruction from the image sensor controller 100. The projection pattern is, for example, a pattern in which brightness changes periodically along a predetermined direction within an irradiation surface. The imaging unit 202 captures an image of the subject on which the projection pattern light is projected in accordance with an instruction from the image sensor controller 100.
[0033] The projection unit 201 includes, as main components, a light source such as an LED (Light Emitting Diode) or a halogen lamp, and a filter arranged on the side of the irradiation surface of the projection unit 201. The filter generates a projection pattern light required for measuring a three-dimensional shape as described later, and can arbitrarily change the light transmittance in the surface according to a command from the image sensor controller 100. The projection unit 201 may project a fixed projection pattern light that does not change over time, or may project a projection pattern light that changes over time. The projection unit 201 may be configured using a liquid crystal or a DMD (Digital Mirror Device) and a light source (such as an LED or laser light source).
[0034] The imaging unit 202 includes, as main components, an optical system such as a lens, and an imaging element such as a CCD (Coupled Charged Device) or a CMOS (Complementary Metal Oxide Semiconductor) sensor.
[0035] The robot 300 moves the measuring head 200. Furthermore, the robot 300 may pick up the workpieces W. That is, the assistance system 1 may use a robot that picks up the bulk-stacked workpieces W to assist in setting conditions when measuring the position and orientation of the workpieces W. Note that the assistance system 1 may use a robot different from the robot that picks up the bulk-stacked workpieces W to assist in setting conditions when measuring the position and orientation of the workpieces W.
[0036] The robot 300 includes a multi-joint arm 301 and a base 302 that supports the multi-joint arm 301. A flange plate 303 is attached to the tip of the multi-joint arm 301. A support member 305 that supports the measuring head 200 and an end effector 304 is attached to the flange plate 303. The operation of the robot 300 is controlled by a robot controller 400. The end effector 304 is configured to hold a workpiece W and includes, for example, a suction pad or a two-fingered hand.
[0037] The robot controller 400 controls the multi-joint arm 301 in accordance with a movement command from the image sensor controller 100. The movement command indicates, for example, the position and orientation of the flange plate 303. The robot controller 400 controls the multi-joint arm 301 so that the position and orientation of the flange plate 303 coincide with the movement command.
[0038] The image sensor controller 100 provides a screen that helps set conditions when measuring the position and orientation of the workpiece W. As shown in FIG. 1, the image sensor controller 100 includes a setting unit 11, a measurement unit 12, an evaluation unit 13, and a presentation unit 14.
[0039] The setting unit 11 sets the moving range of the measurement head 200. The setting unit 11 may set the moving range according to user input. The setting unit 11 generates a movement command to sequentially move the measurement head 200 to a plurality of measurement positions within the moving range, and outputs the generated movement command to the robot controller 400. Thereby, the robot 300 sequentially moves the measurement head 200 to a plurality of measurement positions within the moving range. For example, the measurement head 200 moves along the arrows 50, 51.
[0040] The measurement unit 12 measures the position and orientation of the workpiece W using the captured image obtained by imaging with the measurement head 200 for each of the plurality of measurement positions. Specifically, the measurement unit 12 measures the three-dimensional shape of the visual field area of the measurement head 200 based on the captured image, and searches for the shape corresponding to the workpiece W among the measured three-dimensional shapes. The measurement unit 12 measures the position and orientation of the workpiece W according to the search result.
[0041] The evaluation unit 13 evaluates the measurement results of the position and orientation of the workpiece W by the measurement unit 12 for each of the plurality of measurement positions.
[0042] The presentation unit 14 presents a map 60 showing the correspondence between each of the plurality of measurement positions and the evaluation result by the evaluation unit 13.
[0043] In the captured images obtained by imaging from a plurality of measurement positions, the postures of the workpiece W are different from each other. Therefore, by checking the map 60, the user can easily grasp the correspondence between the position and orientation of the workpiece W shown in the captured image and the evaluation result of the measured position and orientation of the workpiece W. Based on the correspondence, the user can judge the quality of the evaluation result for each measurement position and appropriately set the conditions when measuring the position and orientation of the workpiece W. In this way, the support system 1 can support the setting of conditions for measuring the position and orientation of the workpiece W in consideration of the possible postures of the workpiece W.
[0044] §2 Specific Example <Example of a workpiece stacked in bulk> FIG. 2 is a diagram showing an example of the workpieces stacked in bulk. In FIG. 2, a plurality of workpieces W stacked in bulk are shown within the container 2. The plurality of workpieces W stacked in bulk within the container 2 are sequentially picked one by one.
[0045] When there is a workpiece W whose position and orientation are not accurately measured, the workpiece W remains within the container 2 without being picked. The number of workpieces W remaining within the container 2 without being picked is desirably 0. Therefore, it is preferable to set conditions so that each workpiece W in various possible postures within the container 2 can be accurately measured. However, it takes time to find the optimal conditions for accurately measuring each workpiece W in various possible postures within the container 2. Therefore, the user needs to set the conditions when measuring the position and orientation of the workpiece W in consideration of the possible postures of the workpiece W so that both the time required for condition setting and the number of workpieces W remaining within the container 2 without being picked are within an acceptable range. The support system 1 according to the present embodiment supports such condition setting.
[0046] <B. Hardware Configuration Example of Image Sensor Controller> The image sensor controller 100 is typically a computer having a general-purpose architecture, and executes the support processing according to the present embodiment by executing a pre-installed program (instruction code). Such a program typically circulates in a state stored in various recording media or the like, or is installed in the image sensor controller 100 via a network or the like.
[0047] When such a general-purpose computer is used, an OS (Operating System) for executing basic processing of the computer may be installed in addition to the application for executing the assistance processing according to the present embodiment. In this case, the program according to the present embodiment may execute processing by calling necessary modules in a predetermined sequence at a predetermined timing among program modules provided as part of the OS. That is, the program according to the present embodiment itself may not include the above-mentioned modules, and may execute processing in cooperation with the OS. The program according to the present embodiment may be in a form that does not include some of these modules.
[0048] Furthermore, the program according to the present embodiment may be provided by being incorporated into a part of another program. In this case, the program itself does not include the modules included in the other program to be combined as described above, and the processing is executed in cooperation with the other program. That is, the program according to the present embodiment may be in a form incorporated into such other program. Note that some or all of the functions provided by the execution of the program may be implemented as a dedicated hardware circuit.
[0049] Fig. 3 is a schematic diagram showing an example of a hardware configuration of the image sensor controller shown in Fig. 1. As shown in Fig. 3, the image sensor controller 100 includes a CPU (Central Processing Unit) 101 which is an arithmetic processing unit, a main memory 102 and a hard disk 103 which serve as storage units, a measurement head interface 104, an input interface 105, a display controller 106, a communication interface 107, and a data reader / writer 108. These units are connected to each other via a bus 109 so as to be able to communicate data with each other.
[0050] The CPU 101 loads the programs (codes) installed on the hard disk 103 into the main memory 102 and executes them in a predetermined order to perform various calculations. The main memory 102 is typically a volatile storage device such as a dynamic random access memory (DRAM), and in addition to the programs read from the hard disk 103, it holds images acquired by the measuring head 200, etc. Furthermore, the hard disk 103 stores various data, etc., as described below. In addition to the hard disk 103, or instead of the hard disk 103, a semiconductor storage device such as a flash memory may be adopted.
[0051] The measurement head interface 104 mediates data transmission between the CPU 101 and the measurement head 200. That is, the measurement head interface 104 is connected to the measurement head 200. The measurement head interface 104 provides projection commands and image capture commands to the measurement head 200 in accordance with internal commands generated by the CPU 101. The measurement head interface 104 includes an image buffer 104a for temporarily storing images from the measurement head 200. When a predetermined number of images are stored in the image buffer 104a, the measurement head interface 104 transfers the stored images to the main memory 102.
[0052] The input interface 105 mediates data transmission between the CPU 101 and the input device 600. That is, the input interface 105 accepts input information input by a user to the input device 600. The input device 600 includes a keyboard, a mouse, a touch panel, and the like.
[0053] The display controller 106 is connected to a display 500, and controls the screen of the display 500 so as to notify the user of the processing results of the CPU 101, etc.
[0054] The communication interface 107 mediates data transmission between the CPU 101 and an external device such as the robot controller 400. The communication interface 107 typically consists of, for example, Ethernet (registered trademark) or USB (Universal Serial Bus).
[0055] The data reader / writer 108 mediates data transmission between the CPU 101 and the memory card 700 which is a recording medium. That is, the memory card 700 circulates with a program executed by the image sensor controller 100 and the like stored therein, and the data reader / writer 108 reads out the program from this memory card 700. Further, the data reader / writer 108 writes the image captured by the measurement head 200 and / or the processing result in the image sensor controller 100 and the like to the memory card 700 in response to an internal command of the CPU 101. Note that the memory card 700 consists of a general-purpose semiconductor memory device such as SD (Secure Digital), a magnetic storage medium such as a flexible disk, an optical storage medium such as a CD-ROM (Compact Disk Read Only Memory), and the like.
[0056] <C. Coordinate System> The CPU 101 calculates the position and orientation of the workpiece W, the measurement head 200, and the robot 300 using the coordinate values of a plurality of coordinate systems.
[0057] FIG. 4 is a diagram showing an example of the coordinate system used in the support system. As shown in FIG. 4, the support system 1 uses a robot base coordinate system, a flange coordinate system (also referred to as a tool coordinate system), a camera coordinate system, and a workpiece coordinate system.
[0058] The robot base coordinate system is a coordinate system based on the base 302 of the robot 300. The robot base coordinate system is defined by the origin Ob set on the base 302 and the base vectors Xb, Yb, Zb.
[0059] The flange coordinate system is a coordinate system based on the flange plate 303 of the robot 300. The flange coordinate system is defined by an origin Of set on the flange surface of the flange plate 303 and base vectors Xf, Yf, and Zf.
[0060] The camera coordinate system is a coordinate system based on the imaging unit 202 of the measurement head 200. The camera coordinate system is determined by an origin Oc set in the imaging unit 202 and base vectors Xc, Yc, and Zc.
[0061] The workpiece coordinate system is a coordinate system based on the workpiece W. The workpiece coordinate system is defined by an origin Ow set on the workpiece W and base vectors Xw, Yw, and Zw.
[0062] The position and orientation of the workpiece W detected based on the captured image received from the measuring head 200 is, for example, a coordinate transformation matrix for transforming the camera coordinate system into the workpiece coordinate system. C H W The coordinate transformation matrix C H W represents the position of the origin Ow of the work coordinate system in the camera coordinate system and the base vectors Xw, Yw, Zw.
[0063] The measurement head 200 is fixed to the flange plate 303 via a support member 305. Therefore, the relative positional relationship between the measurement head 200 and the flange plate 303 is constant. The relative positional relationship is expressed by, for example, a coordinate transformation matrix F H C The coordinate transformation matrix F H C represents the position of the origin Oc of the camera coordinate system in the flange coordinate system and the base vectors Xc, Yc, and Zc. F H C is expressed as a fixed value and is obtained by a calibration performed in advance. As the calibration, for example, a known hand-eye calibration may be adopted in which an image of a marker installed at a fixed position is captured by the imaging unit 202 of the measurement head 200 while the robot 300 is operating.
[0064] The movement command output from the image sensor controller 100 to the robot controller 400 is, for example, a coordinate transformation matrix for transforming the base coordinate system into the flange coordinate system. B H F The coordinate transformation matrix B H F represents the origin Of and the base vectors Xf, Yf, and Zf of the flange coordinate system in the base coordinate system.
[0065] The position and orientation of the measuring head 200 in the robot base coordinate system is expressed by, for example, a coordinate transformation matrix B H C The coordinate transformation matrix B H C teeth, B H C = B H F · F H C As mentioned above, therefore, the coordinate transformation matrix F H C is expressed as a fixed value. Therefore, the CPU 101 can calculate a movement command to be output to the robot controller 400 from the position and orientation of the measuring head 200 at the movement destination.
[0066] The position and orientation of the workpiece W in the robot base coordinate system can be expressed, for example, by a coordinate transformation matrix that transforms the robot base coordinate system into the workpiece coordinate system: B H W The coordinate transformation matrix B H W teeth, B H W = B H F · F H C · C H W As mentioned above, the coordinate transformation matrix C H WThis shows the position and orientation of the work W in the camera coordinate system and is detected based on the captured image received from the measurement head 200. Therefore, the CPU 101 can calculate the position and orientation of the work W in the robot base coordinate system using the movement command output to the robot controller 400 and the measurement results based on the captured image.
[0067] <D. Functional Configuration Example of Image Sensor Controller> FIG. 5 is a block diagram showing an example of the functional configuration of the image sensor controller shown in FIG. 1. As shown in FIG. 5, the image sensor controller 100 includes a setting unit 11, a measurement unit 12, an evaluation unit 13, a presentation unit 14, and a storage unit 15. The setting unit 11, the measurement unit 12, the evaluation unit 13, and the presentation unit 14 are realized by the CPU 101 shown in FIG. 3 executing a program stored in the hard disk 103. The storage unit 15 is realized by the main memory 102 and the hard disk 103 shown in FIG. 3.
[0068] (D-1. Storage Unit) The storage unit 15 stores calibration data 151, work shape data 152, a plurality of template data 153, a measurement position list 154, and model position and orientation data 155.
[0069] The calibration data 151 is data that defines the relative positional relationship between the measurement head 200 and the flange plate 303. The calibration data 151 is generated, for example, by hand-eye calibration and represents the coordinate transformation matrix F H C as shown.
[0070] The work shape data 152 shows the three-dimensional shape of the work W. The work shape data 152 is, for example, CAD (Computer-Aided Design) data.
[0071] The plurality of template data 153 are created in advance based on the workpiece shape data 152. The plurality of template data 153 indicate the coordinates of points on the surface of the workpiece model when the workpiece model indicated by the workpiece shape data 152 is viewed from a plurality of virtual viewpoints in a virtual space.
[0072] The measurement position list 154 indicates a list of measurement positions of the measuring head 200. The measurement position list 154 is generated by the setting unit 11 as described later.
[0073] The model position and orientation data 155 indicates the position and orientation of the workpiece model in the robot base coordinate system. The model position and orientation data 155 is generated by the setting unit 11 as described later.
[0074] (D-2. Setting section) The setting unit 11 includes a movement range determination unit 111 , a registration unit 112 , and a movement command unit 113 .
[0075] The movement range determination unit 111 sets the movement range of the measurement head 200 according to the input to the input device 600 and the captured image received from the measurement head 200 at the specified position and orientation. The movement range of the measurement head 200 indicates, for example, a spherical area centered on a reference point set in the field of view of the measurement head 200 and having a radius equal to the distance between the reference point and the imaging unit 202 of the measurement head 200. The reference point is, for example, the center of the field of view of the measurement head 200 and a point having the same height (Z coordinate value) as the center of gravity of the workpiece W.
[0076] The movement range determination unit 111 sets each of the multiple positions within the movement range as a measurement position. The movement range determination unit 111 sets the above-mentioned specified position as a reference position. The reference position is included in the multiple measurement positions.
[0077] The registration unit 112 registers information about the movement range determined by the movement range determination unit 111 in the storage unit 15. The registration unit 112 generates a measurement position list 154 and model position and orientation data 155 as information about the movement range.
[0078] The registration unit 112 generates a measurement position list 154 indicating a list of each measurement position and the orientation of the measurement head 200 at each measurement position for the multiple measurement positions determined by the movement range determination unit 111. The orientation of the measurement head 200 at each measurement position is set so that a reference point is located on the optical axis of the imaging unit 202. In other words, the orientation of the measurement head 200 at each measurement position is set so that the orientation of the measurement head 200 when viewed from the reference point is constant. That is, in the camera coordinate system, the reference point is a fixed position (for example, the center position of the field of view). For example, when the workpiece W is located at the reference point, the workpiece W is captured at the center in the captured image of each measurement position. When the workpiece W is located at a position away from the reference point, the workpiece W is captured at a position away from the center in the captured image of each measurement position. The position and orientation of the measurement head 200 at each measurement position is, for example, expressed as a coordinate transformation matrix θ ... B H C As shown in the figure.
[0079] The measurement position list 154 includes a number for identifying each measurement position in order to distinguish between multiple measurement positions. In the measurement position list 154, the number "0" corresponds to the reference position.
[0080] The registration unit 112 determines the position and orientation of the workpiece W measured using the captured image received from the measurement head 200 at the above-mentioned specified position and orientation as the position and orientation of the workpiece model. The workpiece model is a model having the same shape as the workpiece W. The registration unit 112 generates model position and orientation data 155 indicating the determined position and orientation of the workpiece model, and registers it in the storage unit 15. The model position and orientation data 155 indicates the position and orientation of the workpiece model in the robot base coordinate system.
[0081] The movement command unit 113 generates a movement command for sequentially moving the measuring head 200 to a plurality of measurement positions in response to a start command input to the input device 600 , and outputs the generated movement command to the robot controller 400 .
[0082] As described above, the robot controller 400 receives a movement command indicating the position and orientation of the flange plate 303 and controls the articulated arm 301 so that the position and orientation of the flange plate 303 coincide with the movement command. For this purpose, the movement command unit 113 reads from the measurement position list 154 a coordinate transformation matrix indicating the position and orientation of the measuring head 200 corresponding to each measurement position. B H C Read out the coordinate transformation matrix. B H C and the coordinate transformation matrix that transforms the flange coordinate system into the camera coordinate system. F H C and the coordinate transformation matrix for transforming the robot base coordinate system into the flange coordinate system. B H F satisfies the following formula: B H C = B H F · F H C Therefore, the movement command unit 113 reads out the coordinate transformation matrix B H C and the coordinate transformation matrix indicated by the calibration data 151 F H C Using the coordinate transformation matrix B H F The movement command unit 113 calculates the coordinate transformation matrix B H F Then, a movement command indicating the above may be generated.
[0083] (D-3. Measurement section) The measurement unit 12 measures the position and orientation of the workpiece W by performing a three-dimensional measurement process that measures the three-dimensional shape of the subject from the captured image acquired from the measurement head 200, and a search process that searches for the shape of the workpiece W from the measured three-dimensional shape. For this reason, the measurement unit 12 includes a point cloud data generation unit 121 that performs the three-dimensional measurement process, and a workpiece detection unit 122 that performs the search process.
[0084] The point cloud data generating unit 121 performs three-dimensional measurement of the field of view of the measurement head 200 placed at each measurement position based on the captured image corresponding to the measurement position, and generates three-dimensional point cloud data. The three-dimensional point cloud data indicates the three-dimensional coordinates of each point on the subject surface (measurement surface) present in the field of view of the measurement head 200.
[0085] For example, a triangulation method or a coaxial method may be adopted as the three-dimensional measurement process. The triangulation method is a method in which the optical axes of the imaging and the light projection are separated by a base line length, and parallax is converted into distance. The triangulation methods include an active method and a passive method. The active method includes a structured illumination method, a phase shift method, and a space code method. The coaxial method is a method in which the optical axes of the imaging and the distance measurement means are set to be the same. The distance measurement means includes a focusing method. In addition, a TOF (Time of Flight) method is also included as a method close to the coaxial method. The point cloud data generation unit 121 may execute the three-dimensional measurement process using any of these methods. For example, the three-dimensional measurement process is performed using the phase shift method.
[0086] The workpiece detection unit 122 detects the position and orientation of the workpiece W by a three-dimensional search. Specifically, the workpiece detection unit 122 compares multiple template data 153 stored in the memory unit 15 with the three-dimensional point cloud data, and searches for data similar to the templates from the three-dimensional point cloud data. The searched data corresponds to data of the portion where the workpiece W exists. The workpiece detection unit 122 detects the position and orientation of the workpiece W based on the data similar to the template searched for from the three-dimensional point cloud data. The position and orientation of the workpiece W detected by the workpiece detection unit 122 is indicated in the camera coordinate system.
[0087] The workpiece detection unit 122 may use a known detection algorithm to detect the position and orientation of the workpiece W. Specifically, the workpiece detection unit 122 calculates a correlation value between the three-dimensional point cloud data and the template data 153, and determines that the workpiece W is present when the calculated correlation value is equal to or greater than a first threshold value. Then, the workpiece detection unit 122 detects the position and orientation of the workpiece according to the template data 153 with the highest correlation value.
[0088] The measurement unit 12 may measure the position and orientation of the workpiece W multiple times for each measurement position.
[0089] (D-4. Evaluation section) The evaluation unit 13 includes a correlation value calculation unit 131, a repetition accuracy calculation unit 132, a movement error calculation unit 133, and a determination unit .
[0090] The correlation value calculation unit 131 calculates a correlation value between the three-dimensional point cloud data and the template data 153 for each measurement position as an evaluation value for evaluating the measurement result of the measurement unit 12. The correlation value calculation unit 131 calculates a correlation value for the template data 153 that is most similar to the three-dimensional point cloud data among the multiple template data 153. The correlation value calculation unit 131 calculates, for example, a correlation value (surface correlation value) indicating the similarity of surface elements that are characteristic parts. Alternatively, the correlation value calculation unit 131 may calculate a correlation value (contour correlation value) indicating the similarity of contour elements that are characteristic parts.
[0091] When the measurement unit 12 measures the position and posture of the workpiece W multiple times at each measurement position, the correlation value calculation unit 131 may calculate a representative value (e.g., average, median, maximum, minimum, etc.) of the correlation values obtained from the multiple measurements.
[0092] The repeatability calculation unit 132 calculates the repeatability, which indicates the variation of the positions and orientations obtained by the multiple measurements, for each measurement position as an evaluation value for evaluating the measurement result of the measurement unit 12. The repeatability is calculated using, for example, a coordinate transformation matrix indicating the position and orientation of the workpiece W.C H W It is expressed by a value indicating the variation of the parameter values (e.g., standard deviation, difference between maximum and minimum values, etc.).
[0093] The movement error calculation unit 133 calculates a movement error (hereinafter also referred to as "linearity") for each measurement position as an evaluation value for evaluating the measurement result of the measurement unit 12. The movement error indicates a difference between a first change amount of the position and orientation of the workpiece W in the camera coordinate system, which is estimated based on the movement amount from the reference position of the measurement head 200 to each measurement position, and a second change amount from the position and orientation measured at the reference position to the position and orientation measured at each measurement position.
[0094] The movement error calculation unit 133 places the work model in the position and orientation indicated by the model position and orientation data 155 in the virtual space, and places a first virtual viewpoint at a reference position. The movement error calculation unit 133 calculates the position and orientation of the work model when viewed from the first virtual viewpoint (hereinafter referred to as the "first position and orientation"). Furthermore, the movement error calculation unit 133 places a second virtual viewpoint at each measurement position in the virtual space. The movement error calculation unit 133 calculates the position and orientation of the work model when viewed from the second virtual viewpoint (hereinafter referred to as the "second position and orientation"). The movement error calculation unit 133 calculates the difference between the first position and orientation and the second position and orientation as a first change amount.
[0095] The movement error calculation unit 133 calculates, as a second change amount, a difference between a position and orientation corresponding to a reference position and a position and orientation corresponding to each measurement position, both of which are obtained by measurement by the measurement unit 12. Then, the movement error calculation unit 133 calculates a difference between the first change amount and the second change amount as a movement error (linearity).
[0096] The determination unit 134 uses the correlation value, the repeatability accuracy, and the movement error to determine the rank of the overall evaluation result of the measurement results of the position and orientation of the workpiece W at each measurement position.
[0097] For example, the determination unit 134 determines which of three ranks the overall evaluation result is. If all of the following conditions (a) to (c) are satisfied, the determination unit 134 determines that the overall evaluation result is rank "A." If the following condition (a) is satisfied and at least one of conditions (b) and (c) is not satisfied, the determination unit 134 determines that the overall evaluation result is rank "B." If the following condition (a) is not satisfied, the determination unit 134 determines that the overall evaluation result is rank "C." (a) The correlation value is equal to or greater than a predetermined first threshold value. (b) The repeatability is equal to or less than a second predetermined threshold value. (c) The movement error is equal to or smaller than a third predetermined threshold.
[0098] (D-5.Presentation part) The presentation unit 14 includes a map generation unit 141 , a virtual image generation unit 142 , and a screen generation unit 143 .
[0099] The map generating unit 141 uses the measurement position list 154 and the evaluation results by the evaluating unit 13 to generate a map indicating the correspondence between each of the multiple measurement positions and the evaluation results.
[0100] The virtual image generating unit 142 places the work model in the position and orientation indicated by the model position and orientation data 155 in the virtual space, and places a virtual viewpoint at a specified measurement position. Furthermore, the virtual image generating unit 142 places a virtual reference point at the same position as the reference point in the virtual space. Then, the virtual image generating unit 142 generates a virtual image when the virtual reference point is viewed from the virtual viewpoint.
[0101] The screen generation unit 143 generates a screen including a map (hereinafter referred to as the "performance report screen") and displays the performance report screen on the display 500. The screen generation unit 143 may accept the designation of one measurement position from a plurality of measurement positions on the map and include a virtual image corresponding to the designated measurement position in the performance report screen. Further, the screen generation unit 143 may include an image (hereinafter referred to as the "point cloud state diagram") generated from the three-dimensional point cloud data corresponding to the designated measurement position in the performance report screen. The point cloud state diagram may be, for example, a distance image.
[0102] <E. Flow of Support Processing> FIG. 6 is a flowchart showing the flow of support processing in the support system. FIG. 6 shows the flow of processing performed by the CPU 101 of the image sensor controller 100.
[0103] First, the CPU 101 sets the movement range of the measurement head 200 in response to the input to the input device 600 (step S1).
[0104] Next, the CPU 101 selects one measurement position from among a plurality of measurement positions within the movement range (step S2). The CPU 101 moves the measurement head 200 to the selected measurement position using the robot 300 (step S3). Specifically, the CPU 101 generates a movement command for moving the measurement head 200 to the selected measurement position and outputs the generated movement command to the robot controller 400.
[0105] The CPU 101 measures the position and orientation of the workpiece W using the captured image obtained by capturing the measurement head 200 located at the measurement position (step S4).
[0106] Next, the CPU 101 determines whether there is an unselected measurement position among the plurality of measurement positions (step S5). If there is an unselected measurement position (YES in step S5), the process of the CPU 101 returns to step S2. If there is no unselected measurement position (NO in step S5), the process of the CPU 101 proceeds to step S6. In this way, the CPU 101 sequentially moves the measurement head 200 to the plurality of measurement positions using the robot 300, and measures the position and orientation of the workpiece W using the captured images for each of the plurality of measurement positions.
[0107] In step S6, the CPU 101 evaluates the measurement results of the position and orientation of the workpiece W for each of the plurality of measurement positions. Next, the CPU 101 presents a map associating each of the plurality of measurement positions with the evaluation results on the display 500 (step S7).
[0108] <F. Screen for assisting in setting the movement range> The CPU 101 displays a screen for assisting in setting the movement range (hereinafter referred to as the "setting screen") on the display 500, and registers (sets) information regarding the movement range in response to an input to the setting screen.
[0109] FIG. 7 is a diagram showing an example of a screen for assisting in setting the movement range (setting screen). As shown in FIG. 7, the setting screen 70 includes regions 71, 76, 77 and a button 78. The region 71 includes sub-regions 72 to 75 for acquiring and registering various types of information.
[0110] In the sub-region 72, a button 72a for acquiring calibration data 151 and a button 72b for registering the calibration data 151 are displayed. Further, in the sub-region 72, the value indicated by the acquired calibration data 151 (the parameter value of the coordinate transformation matrix F H C for converting the flange coordinate system to the camera coordinate system) is displayed.
[0111] In response to clicking button 72a, CPU 101 obtains the results of hand-eye calibration performed in advance, and generates calibration data 151 based on the obtained results. Alternatively, CPU 101 may display a screen prompting the user to perform hand-eye calibration, and obtain the results of hand-eye calibration performed in response to an input on the screen. Then, CPU 101 generates calibration data 151 based on the results of the hand-eye calibration.
[0112] In response to clicking the button 72b, the CPU 101 registers the generated calibration data 151.
[0113] The sub-area 73 displays a button 73a for acquiring the current state of the robot 300, and a button 73b for registering the operation start position of the robot 300. Furthermore, the sub-area 73 displays parameter values indicating the position and orientation of the flange plate 303 in the robot base coordinate system as values indicating the acquired current state of the robot 300. Specifically, the sub-area 73 displays a coordinate transformation matrix B H F The parameter values are displayed.
[0114] In response to clicking the button 73a, the CPU 101 acquires information indicating the current state of the robot 300 from the robot controller 400. The information indicating the current state of the robot 300 includes, for example, the amount of rotation of each axis of the robot 300 and parameter values indicating the position and orientation of the flange plate 303. The CPU 101 includes the parameter values indicating the position and orientation of the flange plate 303 in the sub-area 73 based on the acquired information.
[0115] In response to clicking the button 73b, the CPU 101 calculates the current position and orientation of the measuring head 200 based on the information indicating the current state of the robot 300 and the calibration data 151. The position and orientation are calculated based on a coordinate transformation matrix B H C The CPU 101 registers the calculated position and orientation as the position and orientation numbered “0” (the number of the reference position) in the measurement position list 154.
[0116] In the sub-area 74, a button 74a for measuring the position and orientation of the workpiece W and a button 74b for registering the position and orientation of the workpiece model are displayed. Furthermore, in the sub-area 74, parameter values indicating the measured position and orientation of the workpiece W are displayed. Specifically, in the sub-area 74, a coordinate transformation matrix 74b for transforming the camera coordinate system into the workpiece coordinate system is displayed. C H W Alternatively, in the sub-area 74, a coordinate transformation matrix for transforming the robot base coordinate system into the work coordinate system is displayed. B H W The parameter values may be displayed.
[0117] In response to clicking the button 74a, the CPU 101 outputs a projection instruction and an image capture instruction to the measurement head 200, and acquires a captured image from the measurement head 200. The CPU 101 measures the position and orientation of the workpiece W based on the acquired captured image. The measured position and orientation of the workpiece W is calculated based on a coordinate transformation matrix C H W The CPU 101 converts the coordinate transformation matrix C H W The parameter values of are included in the sub-area 74. Note that the CPU 101 calculates the coordinate transformation matrix C H W and the coordinate transformation matrix obtained in response to clicking the button 73a B H F and the coordinate transformation matrix obtained in response to clicking the button 72a. F H Cand the coordinate transformation matrix for transforming the robot base coordinate system into the work coordinate system. B H W Then, the CPU 101 calculates the coordinate transformation matrix B H W may be included in sub-region 74.
[0118] In response to clicking the button 74b, the CPU 101 determines the measured position and orientation of the workpiece W as the position and orientation of the workpiece model. The CPU 101 generates model position and orientation data 155 indicating the determined position and orientation of the workpiece model, and registers the model position and orientation data 155. The model position and orientation data 155 is data based on the robot base coordinate system.
[0119] Furthermore, in response to clicking the button 74b, the CPU 101 determines, as the reference point, a point which is the center of the captured image and has the same height (Z coordinate value) as the center of gravity of the workpiece W. Alternatively, the CPU 101 may determine, as the reference point, a point which is the center of the captured image and has the same height (Z coordinate value) as the origin of the workpiece model when the workpiece model is superimposed on the measured position and orientation.
[0120] In the sub-area 75, input fields 75a to 75c for setting the movement range of the measuring head 200, and a button 75d for registering the movement range are displayed.
[0121] In the input fields 75a and 75b, a longitude range and a latitude range in a spherical surface having a reference point as a center and a radius of the distance between the reference point and a reference position registered in response to clicking of the button 73b are input. The CPU 101 determines the longitude range and the latitude range input in the input fields 75a and 75b as a movement range in the spherical surface.
[0122] In the input field 75c, the division number when dividing the movement range into a plurality of regions is input. The CPU 101 divides the movement range into a plurality of regions according to the division number input in the input field 75c, and sets a measurement position for each of the plurality of regions. For example, the CPU 101 sets the center or apex of each region as the measurement position.
[0123] The CPU 101 includes in the measurement position list 154 a list of each measurement position and the orientation of the measurement head 200 at that measurement position for each of the multiple measurement positions. As described above, the orientation of the measurement head 200 at each measurement position is set so that the orientation of the measurement head 200 when viewed from the reference point is constant. In other words, the orientation of the measurement head 200 at each measurement position is set so that it is the same as the orientation of the measurement head 200 at the reference position when viewed from the reference point. The position and orientation of the measurement head 200 at each measurement position is calculated using a coordinate transformation matrix B H C It is expressed as:
[0124] In the area 76, a simulation image in which models of the robot 300, the measuring head 200, and the workpiece W are arranged in a virtual space is displayed so that the positional relationship between the robot 300, the measuring head 200, and the workpiece W can be easily understood. The CPU 101 arranges a model of the robot 300 (robot model 300M) in the virtual space based on information acquired in response to clicking the button 73a. The CPU 101 arranges a model of the measuring head 200 (measuring head model 200M) in the virtual space based on the calibration data 151. The CPU 101 arranges a workpiece model WM in the virtual space based on the position and orientation measured in response to clicking the button 74a. The CPU 101 generates a simulation image when each model is viewed from a preset viewpoint in the virtual space.
[0125] A captured image obtained in response to clicking the button 74a is displayed in the area 77. In the area 77, for example, a captured image captured under uniform illumination conditions is displayed.
[0126] While checking regions 76 and 77, the user operates the robot controller 400 to adjust the position and orientation of the measurement head 200 or to adjust the position of the workpiece W. After adjusting to the desired state, the user may click buttons 73b, 74b, and 75d.
[0127] In response to the click of button 78, the CPU 101 generates a movement command to sequentially move the measurement head 200 to a plurality of measurement positions according to the measurement position list 154, and outputs the generated movement command to the robot controller 400. The CPU 101 measures the position and orientation of the workpiece W using the captured images obtained from the measurement head 200 at each measurement position.
[0128] <G. Performance Report Screen> FIG. 8 is a diagram showing an example of a performance report screen. As shown in FIG. 8, the performance report screen 80 includes regions 81, 83 to 85.
[0129] In region 81, a map 60 showing the correspondence between each of the plurality of measurement positions and the evaluation results is displayed. Further, in region 81, radio buttons 82 for selecting evaluation items are displayed.
[0130] The CPU 101 generates a map 60 showing the correspondence between each of the plurality of measurement positions and the evaluation results of the evaluation items selected by the radio buttons 82, and causes the generated map 60 to be displayed in region 81.
[0131] Marks 61 indicating evaluation results are arranged at the plurality of measurement positions of map 60. As shown in FIG. 8, when the evaluation item "Comprehensive Evaluation" is selected, the CPU 101 makes the shape of mark 61 at the measurement positions where the comprehensive evaluation results belong to rank "A" be "○", the shape of mark 61 at the measurement positions where the comprehensive evaluation results belong to rank "B" be "△", and the shape of mark 61 at the measurement positions where the comprehensive evaluation results belong to rank "C" be "×". Thereby, the user can easily grasp the rank of the comprehensive evaluation results for each measurement position by checking map 60.
[0132] The multiple measurement positions are located on a sphere with the reference point as the center and the distance between the reference point and the imaging unit 202 of the measurement head 200 as the radius. Therefore, as shown in FIG. 8, the map 60 is hemispherical. In other words, the map 60 is expressed in a polar coordinate system with the center of the sphere as the origin. Each measurement position is expressed by a radius and two deflection angles in the polar coordinate system. The radius is the distance between the reference point and the reference position. The two deflection angles are expressed by latitude and longitude on the sphere. The CPU 101 may include multiple meridians 65 and multiple parallels 66 on the sphere in the map 60 to allow the user to understand that the map 60 is hemispherical. This makes it easier for the user to grasp the positional relationship of the multiple measurement positions in the three-dimensional space.
[0133] In the example shown in FIG. 8, the map 60 is displayed so that the reference position is at the center. However, the CPU 101 may move / rotate the map 60 in response to a user operation. For example, the CPU 101 rotates or moves the map 60 in the drag direction in response to a mouse drag operation. Alternatively, the CPU 101 may rotate the map 60 around a specified rotation axis in response to a user operation. The rotation axis is specified from among three mutually orthogonal axes passing through the reference point. For example, the CPU 101 presents the map 60 as viewed from the side (a direction perpendicular to a line connecting the reference point and the reference position) or from a 45° diagonal direction (a direction in which the angle between the line connecting the reference point and the reference position is 45°). This allows the user to observe the map 60 as viewed from a desired viewpoint. As a result, the user's convenience is improved.
[0134] 8, the CPU 101 may include the workpiece model WM in the position and orientation indicated by the model position and orientation data 155 in the map 60. This allows the user to easily grasp the positional relationship between the workpiece W and each measurement position.
[0135] When one of "repeatability," "linearity," and "correlation value" is selected as the evaluation item, CPU 101 changes the shape of mark 61 according to the value of the selected evaluation item.
[0136] For example, when the evaluation item "correlation value" is selected, the CPU 101 sets the shape of the mark 61 at the measurement position where the correlation value is equal to or greater than the first threshold as "○", sets the shape of the mark 61 at the measurement position where the correlation value is equal to or greater than the fourth threshold and less than the first threshold as "△", and sets the shape of the mark 61 at the measurement position where the correlation value is less than the fourth threshold as "×". The fourth threshold is smaller than the first threshold. Note that the first threshold is adopted as the threshold to be compared with the correlation value, but the rank of the "correlation value" may be evaluated using a threshold different from the first threshold. That is, the threshold for determining the rank of the "correlation value" may be set arbitrarily.
[0137] Threshold values are also set in advance for "repeatability" and "linearity," and the ranks of "repeatability" and "linearity" are evaluated according to the results of comparison with the threshold values.
[0138] The number of ranks into which each of the evaluation items "repeatability", "linearity", "correlation value", and "overall evaluation" is divided is not limited to 3. For example, each evaluation item may be classified into two ranks, or into four or more ranks (e.g., five ranks).
[0139] The CPU 101 accepts the selection of any one of the marks 61 on the map 60. In the example shown in Fig. 8, the mark 61a is selected.
[0140] In region 83, the evaluation results corresponding to the measurement position of the mark 61a selected on the map 60 are displayed. Specifically, the values of the repeatability accuracy, linearity, and correlation value are displayed. Further, in region 83, the determination result as to whether or not the above conditions (a) to (c) are satisfied is also displayed. When the condition (a) that the correlation value is equal to or greater than a predetermined first threshold value is satisfied, as shown in FIG. 8, "correlation value: OK" is displayed. When the condition (c) that the movement error (linearity) is not less than a predetermined third threshold value is not satisfied, as shown in FIG. 8, "linearity: NG" is displayed.
[0141] In region 84, a point cloud state diagram generated from the three-dimensional point cloud data corresponding to the measurement position of the mark 61a selected on the map 60 is displayed.
[0142] In region 85, a virtual image corresponding to the measurement position of the mark 61a selected on the map 60 is displayed. As described above, the virtual image shows the work model when viewed from the measurement position. Therefore, the virtual image corresponds to an ideal image when viewed from the measurement position.
[0143] The user can visually recognize the quality of the measurement result of the position and orientation of the work W by comparing the point cloud state diagram displayed in region 84 with the virtual image displayed in region 85.
[0144] <H. Example of Measurement Condition Setting> The conditions for measuring the position and orientation of the work W include imaging conditions and search conditions. The imaging conditions include, for example, the intensity of the illumination light projected from the projection unit 201 onto the work W, the shutter speed of the imaging unit 202, and the camera gain. The search conditions include the detection conditions of the work detection unit 122 (for example, the threshold value set for the correlation value between the three-dimensional point cloud data and the template data 153).
[0145] The user performs the condition setting for measuring the position and orientation of the work W while checking the performance report screen 80 as shown in FIG. 8.
[0146] For example, the user selects the overall evaluation using radio button 82 and checks map 60. If the overall evaluation result of the measurement positions in a wide range centered on the zenith of hemispherical map 60 is rank "A", the user determines that it is not necessary to change the measurement conditions. If the distribution range of the measurement positions with the overall evaluation result of rank "A" is narrow, or if the distribution range is wide but part of the distribution range includes measurement positions with ranks "B" or "C", the user determines that it is necessary to change the measurement conditions.
[0147] When the distribution range of the measurement positions with the overall evaluation result of rank "A" is narrow, the user selects, for example, "Correlation Value" using radio button 82. This allows the user to understand in what range the correlation value is small. The user specifies the measurement position with the small correlation value, and checks the detailed evaluation result displayed in area 83 and the point cloud state diagram displayed in area 84. Depending on the confirmation results, the user attempts adjustments (A) to (C) described below.
[0148] If there are measurement positions with ranks "B" or "C" within a distribution range of measurement positions with an overall evaluation result of rank "A", the user specifies the measurement positions with an overall evaluation result of rank "B" or "C". Then, the user checks the details of the evaluation result displayed in area 83 and narrows down the cause of the deterioration of the measurement performance. Depending on the narrowed down cause, the user attempts to make the following adjustments (A) to (C).
[0149] Adjustment (A): If the correlation value is small, there may be a lack of 3D point cloud data. Therefore, if there are insufficient points in the point cloud status diagram displayed in area 84, check whether the correlation value can be improved by adjusting the intensity of the illumination light, the shutter speed, the camera gain, etc.
[0150] Adjustment (B): If there is a problem with the repeatability accuracy (i.e., when the value indicating the repeatability accuracy is large), there may be a possibility that some of the three-dimensional point cloud data is misdetected or there is a detection omission. Therefore, in the point cloud state diagram displayed in area 84, if a misdetection or detection omission is confirmed, check whether the repeatability accuracy is improved by adjusting the intensity of the illumination light, the shutter speed, the camera gain, etc.
[0151] Adjustment (C): If there is a problem with the movement error (linearity) (i.e., when the movement error is large), there may be a problem with the matching between the three-dimensional point cloud data and the template data 153. Therefore, the user selects "correlation value" with the radio button 82 and compares the correlation value belonging to rank "A" and the correlation value belonging to rank "B". According to the comparison result, the user determines whether the first threshold value is set correctly. The user examines whether the movement error (linearity) can be improved by adjusting the first threshold value. If the movement error (linearity) is not improved only by adjusting the first threshold value, the user examines whether it can be improved so that the correct candidate can be measured by changing other conditions related to the matching between the three-dimensional point cloud data and the template data 153 (for example, the search range in the captured image, the type and number of the template data 153, etc.).
[0152] In this way, the user can easily set the conditions for measuring the position and orientation of the work W by trying adjustments (A) to (C) while checking the performance report screen 80.
[0153] <I. Modification Example> The CPU 101 may vary the color of the mark 61 displayed at each measurement position in the map 60 according to the evaluation result. In this case, the shape of the mark 61 may be the same regardless of the evaluation result.
[0154] The method of determining the rank of the overall evaluation result by the determination unit 134 is not limited to the above method. For example, the determination unit 134 may determine that the overall evaluation result is rank "A" when the condition (a) is satisfied and one of the conditions (b) and (c) is satisfied. Alternatively, the determination unit 134 may determine that the overall evaluation result is rank "A" when the condition (d) that the correlation value is equal to or greater than a predetermined fifth threshold is satisfied. The fifth threshold is greater than the first threshold.
[0155] Instead of or in addition to map 60, CPU 101 may generate a list associating measurement positions with evaluation results. For example, CPU 101 may create a file that internally represents map 60 in list format, and save the file or output the file to an external device. CPU 101 can present map 60 by reading the saved file. The external device that receives the file can present map 60 by reading the file. The file is data associating measurement positions with evaluation results.
[0156] The CPU 101 may use the stored files to generate a composite map by combining multiple maps 60 corresponding to the multiple files. For example, by combining multiple maps 60 having different movement ranges of the measurement head 200, a wide-range composite map including all the movement ranges can be generated. Even if multiple files exist due to multiple evaluations such as initial evaluation and additional evaluation, the multiple maps 60 are aggregated into one composite map. This improves user convenience.
[0157] §3 Supplementary Note As described above, the present embodiment includes the following disclosure.
[0158] (Configuration 1) An assistance system (1), An imaging device (200) for imaging an object (W); A setting unit (11, 101) for setting a movement range of the imaging device; a robot (300) that sequentially moves the imaging device to a plurality of measurement positions within the movement range; a measurement unit (12, 101) that measures the position and orientation of the object for each of the plurality of measurement positions using an image captured by the imaging device; an evaluation unit (13, 101) that evaluates a measurement result by the measurement unit; a presentation unit (14, 101) that presents a map (60) indicating a correspondence between each of the plurality of measurement positions and an evaluation result by the evaluation unit.
[0159] (Configuration 2) The evaluation unit calculates at least one evaluation value representing the evaluation result; The presentation unit is accepting designation of one measurement position among the plurality of measurement positions on the map; 2. The support system according to configuration 1, wherein, in response to designation of the one measurement position, the at least one evaluation value corresponding to the one measurement position is presented.
[0160] (Configuration 3) the measurement unit generates three-dimensional point cloud data of a field of view of the imaging device based on the captured images corresponding to each of the plurality of measurement positions; The presentation unit is accepting designation of one measurement position among the plurality of measurement positions on the map; 2. The support system according to configuration 1, wherein, in response to designation of the one measurement position, an image generated from the three-dimensional point cloud data corresponding to the one measurement position is presented.
[0161] (Configuration 4) The setting unit is Setting a reference position within the movement range; registering a position and orientation of a model of the object so as to coincide with a position and orientation of the object measured from the captured image corresponding to the reference position; The presentation unit is generating a virtual image of the model as viewed from the one measurement position in response to the designation of the one measurement position; The support system according to configuration 3, which presents the virtual image.
[0162] (Configuration 5) The measurement unit is generating three-dimensional point cloud data of a visual field of the imaging device based on the captured image; measuring the position and orientation based on a comparison between the three-dimensional point cloud data and template data; 3. The support system according to claim 2, wherein the at least one evaluation value includes a correlation value between the three-dimensional point cloud data and the template data.
[0163] (Configuration 6) The measurement unit performs measurements a plurality of times for each of the plurality of measurement positions; 6. The assistance system according to claim 2 or 5, wherein the at least one evaluation value includes a value indicating repeatability of the multiple measurements.
[0164] (Configuration 7) the plurality of measurement positions includes a reference position; The measurement unit measures a position and orientation of the object in a camera coordinate system based on the imaging device; The assistance system according to any one of configurations 2, 5 and 6, wherein the at least one evaluation value includes, for each of the plurality of measurement positions, a value indicating a difference between a first amount of change in the position and orientation of the object in the camera coordinate system estimated based on an amount of movement from the reference position and a second amount of change from the position and orientation measured at the reference position to the position and orientation measured at the measurement position.
[0165] (Configuration 8) the plurality of measurement positions are present on the same spherical surface, 8. The support system according to any one of configurations 1 to 7, wherein the map is represented in a polar coordinate system with the center of the sphere as the origin.
[0166] (Configuration 9) An image processing device (100), A setting unit (11, 101) that sets a movement range of an imaging device that captures an image of an object (W); a measurement unit (12, 101) that measures the position and orientation of the object for each of a plurality of measurement positions within the movement range using a captured image obtained from the imaging device (200) located at the measurement position; an evaluation unit (13, 101) that evaluates a measurement result by the measurement unit; a presentation unit (14, 101) that presents a map (60) indicating a correspondence between each of the plurality of measurement positions and an evaluation result by the evaluation unit.
[0167] (Configuration 10) A method of support comprising: A step of setting a movement range of an imaging device (200) that captures an image of an object (W); using a robot to sequentially move the imaging device to a plurality of measurement positions within the movement range; measuring a position and orientation of the object for each of the plurality of measurement positions using a captured image obtained by capturing an image of the imaging device; evaluating the position and orientation measurement results; and presenting a map showing a correspondence between each of the plurality of measurement positions and an evaluation result.
[0168] (Configuration 11) A program for causing a computer to execute the assistance method according to configuration 10.
[0169] Although the embodiment of the present invention has been described, the embodiment disclosed herein should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, and it is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0170] 1 Support system, 11 Setting unit, 12 Measurement unit, 13 Evaluation unit, 14 Presentation unit, 15 Memory unit, 60 Map, 61, 61a Mark, 65 Meridian, 66 Latitude, 70 Setting screen, 71, 76, 77, 81, 83-85 Area, 72-75 Sub-area, 72a, 72b, 73a, 73b, 74a, 74b, 75d, 78 Button, 75a-75c Input field, 80 Performance report screen, 82 Radio button, 100 Image sensor controller, 101 CPU, 102 Main memory, 103 Hard disk, 104 Measuring head interface, 104a Image buffer, 105 Input interface, 106 Display controller, 107 Communication interface, 108 Data reader / writer, 109 Bus, 111 Movement range determination unit, 112 Registration unit, 113 movement command unit, 121 point cloud data generation unit, 122 work detection unit, 131 correlation value calculation unit, 132 repeatability calculation unit, 133 movement error calculation unit, 134 judgment unit, 141 map generation unit, 142 virtual image generation unit, 143 screen generation unit, 151 calibration data, 152 work shape data, 153 template data, 154 measurement position list, 155 model position and orientation data, 200 measurement head, 200M measurement head model, 201 projection unit, 202 imaging unit, 300 robot, 300M robot model, 301 articulated arm, 302 base, 303 flange plate, 304 end effector, 305 support member, 400 robot controller, 500 display, 600 input device, 700 memory card, W work, WM work model.
Claims
1. 1. An assistance system comprising: An imaging device that captures an image of an object; A setting unit that sets a movement range of the imaging device; a robot that sequentially moves the imaging device to a plurality of measurement positions within the movement range; a measurement unit that measures a position and orientation of the object for each of the plurality of measurement positions using a captured image obtained by imaging with the imaging device; an evaluation unit for evaluating a measurement result by the measurement unit; a presentation unit that presents a map showing a correspondence between each of the plurality of measurement positions and an evaluation result by the evaluation unit.
2. The evaluation unit calculates at least one evaluation value representing the evaluation result; The presentation unit is accepting designation of one measurement position among the plurality of measurement positions on the map; The support system according to claim 1 , wherein the at least one evaluation value corresponding to the one measurement position is presented in response to designation of the one measurement position.
3. the measurement unit generates three-dimensional point cloud data of a field of view of the imaging device based on the captured images corresponding to each of the plurality of measurement positions; The presentation unit is accepting designation of one measurement position among the plurality of measurement positions on the map; The support system according to claim 1 , further comprising: a display unit configured to display, in response to a designation of the one measurement position, an image generated from the three-dimensional point cloud data corresponding to the one measurement position.
4. The setting unit is Setting a reference position within the movement range; registering a position and orientation of a model of the object so as to coincide with a position and orientation of the object measured from the captured image corresponding to the reference position; The presentation unit is generating a virtual image of the model as viewed from the one measurement position in response to the designation of the one measurement position; The assistance system according to claim 3 , which presents the virtual image.
5. The measurement unit is generating three-dimensional point cloud data of a visual field of the imaging device based on the captured image; measuring the position and orientation based on the three-dimensional point cloud data and template data; The assistance system according to claim 2 , wherein the at least one evaluation value includes a correlation value between the three-dimensional point cloud data and the template data.
6. The measurement unit performs measurements a plurality of times for each of the plurality of measurement positions; The support system according to claim 2 or 5, wherein the at least one evaluation value includes a value indicating repeatability of the measurements performed multiple times.
7. the plurality of measurement positions includes a reference position; The measurement unit measures a position and orientation of the object in a camera coordinate system based on the imaging device; 7. The assistance system according to claim 2, wherein the at least one evaluation value includes, for each of the plurality of measurement positions, a value indicating a difference between a first amount of change in the position and orientation of the object in the camera coordinate system estimated based on an amount of movement from the reference position and a second amount of change from the position and orientation measured at the reference position to the position and orientation measured at the measurement position.
8. the plurality of measurement positions are present on the same spherical surface, The support system according to claim 1 , wherein the map is expressed in a polar coordinate system having a center of the sphere as its origin.
9. An image processing device, A setting unit that sets a movement range of an imaging device that captures an image of an object; a measurement unit that measures a position and orientation of the object for each of a plurality of measurement positions within the movement range using an image captured by the imaging device located at the measurement position; an evaluation unit for evaluating a measurement result by the measurement unit; a presentation unit that presents a map indicating a correspondence between each of the plurality of measurement positions and an evaluation result by the evaluation unit.
10. A method of support comprising: A step of setting a movement range of an imaging device that captures an image of an object; using a robot to sequentially move the imaging device to a plurality of measurement positions within the movement range; measuring a position and orientation of the object for each of the plurality of measurement positions using a captured image obtained by capturing an image of the imaging device; evaluating the position and orientation measurement results; presenting a map showing a correspondence between each of the plurality of measurement positions and an evaluation result.
11. A program for causing a computer to execute the support method according to claim 10.
Citation Information
Patent Citations
Appearance inspection apparatus
JP1996313225A
Workpiece picking device and method
JP2019155535A
Object recognition processor and method, and object picking device and method
JP2019185239A
Object detection method, object detection device, and robot system
JP2020163502A
