An imaging device and a control device for acquiring three-dimensional information on the surface of a workpiece and a two-dimensional image of the workpiece

The imaging device synchronizes three-dimensional and two-dimensional data acquisition with conveyor movement, addressing interference issues and improving workpiece handling efficiency by aligning image data in fixed coordinate systems.

JP7568721B2Active Publication Date: 2024-10-16FANUC LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022531816
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-06-18
Filing Date
2021-06-14
Publication Date
2024-10-16
Estimated Expiration
2041-06-14

AI Technical Summary

Technical Problem

Existing imaging systems face challenges in simultaneously acquiring three-dimensional and two-dimensional information of a moving workpiece without interference, leading to decreased efficiency and potential positional shifts due to conveyor stops, which complicates the detection of characteristic parts and increases workpiece handling time.

Method used

An imaging device and control system that utilizes a visual sensor with both three-dimensional and two-dimensional capabilities, synchronized with conveyor movement, adjusts the relative positions of acquired data to align with fixed coordinate systems, allowing simultaneous acquisition and synchronization of three-dimensional and two-dimensional images without conveyor stops.

Benefits of technology

Enables efficient and accurate detection of workpiece position and orientation by synchronizing three-dimensional and two-dimensional images, reducing conveyor stops and maintaining workpiece stability, thereby enhancing handling efficiency and reducing positional shifts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568721000001
    Figure 0007568721000001
  • Figure 0007568721000002
    Figure 0007568721000002
  • Figure 0007568721000003
    Figure 0007568721000003
Patent Text Reader

Abstract

Provided is an imaging device for acquiring three-dimensional information of a workpiece surface and a two-dimensional image. An imaging device 3 comprises a visual sensor 30 for acquiring a two-dimensional image after acquiring three-dimensional information of a workpiece surface. A position detection device 25 is attached to the conveyor drive motor 24 of a conveyor 6 that conveys a workpiece. An image processing part 47 calculates the amount of movement of the workpiece from when the three-dimensional information is acquired to when the two-dimensional image is captured on the basis of an output of the position detection device 25. The image processing part 47 moves the three-dimensional information relative to the two-dimensional image in such a manner as to correspond to the amount of movement of the workpiece in a predetermined coordinate system.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an imaging device for acquiring three-dimensional information about the surface of a workpiece and a two-dimensional image of the workpiece. and control device Regarding. [Background technology]

[0002] In the prior art, there is known a device that captures an image using a visual sensor and detects the shape of the surface of an object or the position of the object based on the image. As a visual sensor, a two-dimensional sensor that captures a two-dimensional image of the surface of a workpiece is known. Also, a three-dimensional sensor that measures the distance from the visual sensor to the surface of the workpiece is known. Based on the distance from the three-dimensional sensor to the surface of the workpiece and the position of the three-dimensional sensor, the three-dimensional position of a specific part of the workpiece can be calculated.

[0003] Conventionally, robotic devices equipped with a robot and a work tool have been known. It is known that a visual sensor is arranged in a robotic device to detect the position of a workpiece. For example, a robotic device grasps a workpiece with a hand and transports the workpiece. In order to grasp the workpiece, the robotic device needs to detect the position and orientation of the workpiece. In the prior art, a control is known that calculates the position and orientation of a workpiece by processing a two-dimensional image captured by a two-dimensional camera and a distance image captured by a three-dimensional sensor (for example, JP 2013-36988 A). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2013-36988 A Summary of the Invention [Problem to be solved by the invention]

[0005] In image processing, three-dimensional information acquired by a three-dimensional sensor and two-dimensional images acquired by a two-dimensional sensor may be used. For example, in a robot device in which a robot grips and transports a workpiece transported by a conveyor, the workpiece transported by the conveyor is imaged by a three-dimensional sensor. A three-dimensional map of measurement points is obtained from the output of the three-dimensional sensor. The position and orientation of the workpiece can be detected based on the three-dimensional map. Then, the position and orientation of the robot when it picks up the workpiece can be calculated based on the position and orientation of the workpiece.

[0006] Here, it is necessary to identify the position of the workpiece in the three-dimensional map. A two-dimensional image can be used to identify the position of the workpiece. However, when a two-dimensional image is captured after a three-dimensional map is acquired by a three-dimensional sensor, the workpiece moves on a conveyor. A deviation occurs between the position of the workpiece when the three-dimensional map is acquired and the position of the workpiece when the two-dimensional image is captured. For this reason, it is preferable to acquire three-dimensional information by the three-dimensional sensor and acquire a two-dimensional image by the two-dimensional sensor while the position of the workpiece is the same. For example, it is preferable to simultaneously capture images by the three-dimensional sensor and the two-dimensional sensor. With this control, the position of the workpiece when the two-dimensional image is captured becomes the same as the position of the workpiece when the three-dimensional information is acquired, so that the position of the workpiece in the three-dimensional information can be easily identified.

[0007] However, when the 3D sensor is a stereo camera including two cameras and a projector, a reference pattern is projected onto the workpiece by the projector. If a 2D image is captured simultaneously with the image capture for acquiring the 3D map, the reference pattern is captured in the 2D image. This causes a problem that it is difficult to detect the characteristic part of the workpiece in the 2D image. Thus, there is a problem that it is difficult to simultaneously acquire 3D information and a 2D image while the workpiece is moving on the conveyor.

[0008] With the conveyor stopped, the 3D sensor can obtain 3D information and the 2D sensor can obtain 2D images. With this control, the conveyor needs to be stopped every time the visual sensor obtains 3D information and 2D images, which reduces work efficiency. In addition, when the conveyor is started and stopped, the position of the workpiece on the conveyor may change. In other words, the position of the workpiece on the conveyor may shift.

[0009] Alternatively, a sensor other than a stereo camera can be used as the 3D sensor. For example, a TOF (Time of Flight) camera that uses the time of flight of light can be used as the 3D sensor. However, when a TOF camera is used, there is a problem that it is necessary to place an additional camera for acquiring a 2D image. [Means for solving the problem]

[0010] A first aspect of the present disclosure is an imaging device that captures an image of a workpiece being transported along a predetermined path by a transport machine driven by a motor. The imaging device is equipped with a visual sensor including a three-dimensional sensor for detecting three-dimensional information of the surface of the workpiece and a two-dimensional sensor for acquiring a two-dimensional image of the surface of the workpiece. The imaging device is equipped with a processing unit that processes the output of the three-dimensional sensor and the output of the two-dimensional sensor. The processing unit includes a three-dimensional information generation unit that generates three-dimensional information based on the output of the three-dimensional sensor, and a two-dimensional image acquisition unit that acquires a two-dimensional image from the two-dimensional sensor. The processing unit: A sensor coordinate system whose origin is fixed to the visual sensor The conveyor includes a movement control unit that changes the relative position of the three-dimensional information with respect to the two-dimensional image. The conveyor includes a position detector for detecting the position of a moving member moved by a motor. The visual sensor is fixed in position. The visual sensor captures an image of the workpiece while the workpiece is placed within the imaging range of the visual sensor and while the workpiece is moving. The time when the three-dimensional information is acquired is different from the time when the two-dimensional image is acquired. To correspond to one path along which the workpiece is conveyed, SensorsThe movement direction of the three-dimensional information in the coordinate system is determined in advance. The movement control unit calculates the position of the workpiece corresponding to the difference between the first position of the moving member when acquiring the three-dimensional information and the second position of the moving member when acquiring the two-dimensional image. Actual The movement control unit calculates the amount of movement. Sensors The positions of the multiple measurement points included in the 3D information are moved parallel to the movement direction so as to correspond to the amount of movement of the workpiece in the coordinate system, Within the area of ​​the workpiece where the 2D image was captured The system controls the movement of the workpiece's 3D information. A second aspect of the present disclosure is a control device that acquires three-dimensional information of a workpiece transported along a predetermined direction by a transport machine driven by a motor. The control device includes at least one memory and at least one processor. The at least one processor acquires output from a visual sensor having a three-dimensional sensor and a two-dimensional sensor that captures an image of the moving workpiece, and generates three-dimensional information based on the output of the three-dimensional sensor. The at least one processor: A sensor coordinate system whose origin is fixed to the visual sensor In 、 The at least one processor changes a relative position of the workpiece relative to the two-dimensional image acquired from the two-dimensional sensor, the at least one processor changing a relative position of the workpiece corresponding to a difference between a first position of the workpiece when the three-dimensional information is acquired and a second position of the workpiece when the two-dimensional image is acquired. Actual At least one processor calculates a movement amount. Sensor Coordinate System In the work Actual The positions of the plurality of measurement points included in the three-dimensional information are moved parallel to a predetermined direction so as to correspond to the amount of movement. Within the area of ​​the workpiece where the 2D image was captured Transfer the 3D information of the workpiece to the Effect of the Invention

[0011] According to an aspect of the present disclosure, an imaging device for acquiring three-dimensional information of a surface of a workpiece and a two-dimensional image of the workpiece and control device can be provided. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a front view of a first robot device according to the embodiment. [Diagram 2] FIG. 2 is a plan view of the first robotic device. [Diagram 3] FIG. 2 is a block diagram of a first robotic device. [Figure 4] 1 is a schematic diagram of a visual sensor according to an embodiment. [Diagram 5] 4 is a flowchart of control of the first robot device. [Figure 6] FIG. 13 is a front view of the workpiece, the visual sensor, and the conveyor when generating a three-dimensional map of the workpiece. [Figure 7] FIG. 2 is a plan view of a workpiece and a conveyor illustrating measurement points on a three-dimensional map acquired by a visual sensor. [Figure 8] FIG. 2 is a front view of a workpiece, a visual sensor, and a conveyor when a two-dimensional image of the workpiece is acquired. [Figure 9] 1 is an example of a two-dimensional image captured by a visual sensor. [Figure 10] FIG. 4 is a plan view of a second robot device in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] An imaging device and a robot device including the imaging device according to an embodiment will be described with reference to Fig. 1 to Fig. 10. The robot device according to the present embodiment includes a robot and a work tool attached to the robot. The robot device further includes an imaging device that captures an image of a workpiece and a transport machine that transports the workpiece.

[0014] Fig. 1 is a schematic front view of a first robot device in this embodiment. Fig. 2 is a schematic plan view of the first robot device in this embodiment. With reference to Figs. 1 and 2, a first robot device 8 includes a hand 2 as a work tool (end effector) and a robot 1 that moves the hand 2. Robot 1 in this embodiment is an articulated robot including a plurality of joints.

[0015] The robot 1 includes a base unit 14 fixed to an installation surface and a swivel base 13 that rotates relative to the base unit 14. The robot 1 includes a lower arm 12 rotatably supported by the swivel base 13, and an upper arm 11 rotatably supported by the lower arm 12. The upper arm 11 rotates around a rotation axis parallel to the direction in which the upper arm 11 extends. The robot 1 includes a wrist 15 rotatably supported at an end of the upper arm 11. A rotatably formed flange 16 is disposed at the tip of the wrist 15. The robot 1 of this embodiment has six drive shafts, but is not limited to this form. Any robot that can move a work tool can be adopted.

[0016] The workpiece 81 in this embodiment is a rectangular box. The hand 2 is a work tool that grips and releases the workpiece 81. The hand 2 in this embodiment has a plurality of suction pads 2a. The hand 2 grips the workpiece 81 by suction. The hand 2 is fixed to the flange 16 of the wrist 15. The work tool attached to the robot 1 is not limited to this form. Any work tool can be adopted depending on the work performed by the robot device. For example, in a robot device that performs arc welding, a welding torch can be arranged as the work tool. Or, in a robot device that applies a sealant to the surface of a workpiece, a dispenser can be arranged as the work tool.

[0017] The first robot device 8 includes a conveyor 6 as a conveyor that conveys the workpiece 81 in a predetermined direction. The conveyor 6 in this embodiment rotates a circular belt 6a. The conveyor 6 moves the workpiece 81 in a horizontal direction as indicated by an arrow 86. The conveyor 6 conveys the workpiece 81 to a position where the robot 1 changes its position and posture so that the hand 2 can grasp the workpiece 81. The robot device 8 grasps the workpiece 81 conveyed by the conveyor 6 and then moves to a target position. For example, the robot device 8 performs a task of stacking the workpiece 81 on the upper side of a pallet.

[0018] The robot device 8 includes an imaging device 3 that captures an image of a workpiece 81 transported by a conveyor 6. The imaging device 3 includes a visual sensor 30 as a three-dimensional sensor for detecting three-dimensional information of the surface of the workpiece 81. Position information of three-dimensional measurement points (three-dimensional points) corresponding to the surface of the workpiece 81 as an object is generated by the output of the visual sensor 30. As described later, the visual sensor 30 of this embodiment also functions as a two-dimensional sensor for capturing a two-dimensional image of the surface of the workpiece 81.

[0019] The visual sensor 30 is supported by a support member 37. The position of the visual sensor 30 in this embodiment is fixed. The visual sensor 30 is disposed at a position where it can capture an image of the workpiece 81 being transported by the conveyor 6. The visual sensor 30 is disposed upstream of the robot 1 in the direction in which the workpiece 81 is transported.

[0020] In this embodiment, the position and orientation of the workpiece 81 are detected based on three-dimensional information acquired from the output of the visual sensor 30. Based on the position and orientation of the workpiece 81, the position and orientation of the robot 1 for gripping the workpiece 81 with the hand 2 are calculated. Then, the robot 1 changes its position and orientation, so that the workpiece 81 transported by the conveyor 6 can be gripped and moved by the hand 2.

[0021] In this embodiment, the visual sensor 30 captures an image of the workpiece 81 without stopping the conveyor 6. That is, the visual sensor 30 captures an image of the workpiece 81 while the conveyor 6 moves over the workpiece 81. Also, while the conveyor 6 moves over the workpiece 81, the robot 1 changes its position and posture, and the hand 2 grasps the workpiece 81. The robot 1 picks up the workpiece 81 from the conveyor 6 by changing its position and posture.

[0022] A world coordinate system 76 is set in the robot device 8 as a reference coordinate system. In the example shown in FIG. 1, the origin of the world coordinate system 76 is located on the base unit 14 of the robot 1. Even if the position and posture of the robot 1 change, the position and orientation of the world coordinate system 76 do not change. The world coordinate system 76 has X-axis, Y-axis, and Z-axis that are mutually orthogonal as coordinate axes. In addition, the W-axis is set as a coordinate axis around the X-axis. The P-axis is set as a coordinate axis around the Y-axis. The R-axis is set as a coordinate axis around the Z-axis.

[0023] Also, a tool coordinate system 77 is set, having an origin set at an arbitrary position on the work tool. In this embodiment, the origin of the tool coordinate system 77 is set at the tool tip point of the hand 2. When the position and attitude of the robot 1 changes, the position and attitude of the tool coordinate system 77 change. For example, the position of the robot 1 corresponds to the position of the tool tip point. Also, the attitude of the robot 1 corresponds to the orientation of the tool coordinate system 77 with respect to the world coordinate system 76.

[0024] Furthermore, in the robot device 8, a sensor coordinate system 78 is set in correspondence with the visual sensor 30. The sensor coordinate system 78 is a coordinate system whose origin is fixed to the visual sensor 30. The position of the sensor coordinate system 78 in this embodiment is fixed. For this reason, the coordinate values ​​in the sensor coordinate system 78 can be converted into coordinate values ​​in the world coordinate system 76 based on the position and orientation of the sensor coordinate system 78 relative to the world coordinate system 76.

[0025] Fig. 3 shows a block diagram of a first robot device in this embodiment. With reference to Figs. 1 to 3, robot 1 includes a robot drive device that changes the position and posture of robot 1. The robot drive device includes a robot drive motor 22 that drives components such as an arm and a wrist. Hand 2 is equipped with a hand drive device that drives hand 2. The hand drive device includes a pump 21 that reduces the pressure inside suction pad 2a of hand 2, and a solenoid valve.

[0026] The control device of the robot device 8 includes a robot control device 4 that controls the robot 1 and the hand 2. The robot control device 4 includes an arithmetic processing device (computer) having a CPU (Central Processing Unit) as a processor. The arithmetic processing device has a RAM (Random Access Memory) and a ROM (Read Only Memory) connected to the CPU via a bus. An operation program 41 created in advance for controlling the robot 1, the hand 2, and the conveyor 6 is input to the robot control device 4.

[0027] The robot control device 4 includes a storage unit 42 that stores information related to the control of the robot 1, the hand 2, and the conveyor 6. The storage unit 42 can be configured with a storage medium capable of storing information, such as a volatile memory, a non-volatile memory, or a hard disk. The operation program 41 is stored in the storage unit 42.

[0028] The robot device 8 of this embodiment transports a workpiece 81 based on an operation program 41. The robot device 8 can automatically transport the workpiece 81 to a predetermined target position. The robot control device 4 includes an operation control unit 43 that outputs an operation command. The operation control unit 43 corresponds to a processor that operates according to the operation program 41. The processor reads the operation program 41 and performs the control defined in the operation program 41, thereby functioning as the operation control unit 43.

[0029] The operation control unit 43 sends an operation command to the robot driving unit 45 to drive the robot 1 based on the operation program 41. The robot driving unit 45 includes an electric circuit that drives the robot driving motor 22. The robot driving unit 45 supplies electricity to the robot driving motor 22 based on the operation command. The operation control unit 43 also sends an operation command to the hand driving unit 44 to drive the hand 2 based on the operation program 41. The hand driving unit 44 includes an electric circuit that drives the pump 21 and the solenoid valve. The hand driving unit 44 supplies electricity to the pump 21 and the solenoid valve based on the operation command. Furthermore, the operation control unit 43 sends an instruction to the visual sensor 30 to capture an image based on the operation program 41.

[0030] The robot control device 4 includes a display 46 that displays information related to the control of the hand 2, the robot 1, and the conveyor 6. The display 46 is configured with any display panel such as a liquid crystal display panel.

[0031] The robot 1 includes a state detector for detecting the position and posture of the robot 1. The state detector in this embodiment includes a position detector 23 attached to a robot drive motor 22 corresponding to the drive shaft of the component members of the robot 1. The position detector 23 in this embodiment is composed of an encoder attached to the output shaft of the robot drive motor 22. The position and posture of the robot 1 are detected based on the output of the position detector 23.

[0032] The robot control device 4 includes an image processing unit 47 as a processing unit that processes the output of the three-dimensional sensor and the output of the two-dimensional sensor. That is, the robot control device 4 also functions as a device that processes images. The image processing unit 47 includes a three-dimensional information generating unit 61 that generates three-dimensional information based on the output of the three-dimensional sensor. The image processing unit 47 includes a two-dimensional image acquiring unit 62 that acquires a two-dimensional image from the two-dimensional sensor. The image processing unit 47 also includes a movement control unit 63 that changes the relative position of the three-dimensional information with respect to the two-dimensional image in a predetermined coordinate system.

[0033] The image processing unit 47 includes a characteristic portion detection unit 64 that detects a predetermined characteristic portion of the workpiece 81 based on a reference image created in advance and a two-dimensional image acquired from the two-dimensional sensor. The image processing unit 47 includes a calculation unit 65 that calculates the position and orientation of the workpiece 81 based on three-dimensional information on the characteristic portion of the workpiece 81. In addition, the calculation unit 65 calculates the position and orientation of the robot 1 based on the position and orientation of the workpiece 81.

[0034] The position and posture of the robot 1 calculated by the calculation unit 65 are sent to the operation control unit 43. The operation control unit 43 controls the robot 1 and the hand 2 based on the operation command received from the calculation unit 65.

[0035] Each of the above image processing unit 47, three-dimensional information generating unit 61, two-dimensional image acquiring unit 62, movement control unit 63, characteristic part detecting unit 64, and calculation unit 65 corresponds to a processor that operates according to the operation program 41. The processor performs the control defined in the operation program 41, thereby functioning as each unit.

[0036] The control device of the robot device 8 includes a conveyor control device 5 that controls the conveyor 6. The conveyor control device 5 includes an arithmetic processing device (computer) including a CPU as a processor, a ROM, and a RAM. The conveyor control device 5 is configured to be able to communicate with the robot control device 4. The conveyor control device 5 receives commands from the robot control device 4 and drives the conveyor 6.

[0037] The conveyor 6 includes a conveyor drive device 26 that drives the conveyor 6. The conveyor drive device 26 includes a conveyor drive motor 24 as a motor that drives the conveyor 6 and a reducer that reduces the rotation speed of the conveyor drive motor 24. The workpiece 81 is placed on the surface of the belt 6a as a moving member that is moved by the conveyor drive motor 24. The conveyor drive motor 24 rotates the belt 6a. The conveyor 6 includes a position detector 25 for detecting the position of the belt 6a. The position of the belt 6a corresponds to the rotation position of the output shaft of the conveyor drive motor 24. The position detector 25 in this embodiment is attached to the output shaft of the conveyor drive motor 24. The position detector 25 is composed of an encoder that detects the rotation position of the output shaft. The output of the position detector 25 is input to the conveyor control device 5. The position detector of the conveyor can be placed at any position so that the position of the moving member of the conveyor can be detected. For example, an encoder may be attached to a shaft that supports the belt of the conveyor. Alternatively, a disk may be attached to the encoder and pressed against the belt so that the disk rotates with the movement of the conveyor belt. With this configuration, the disk rotates when the belt moves, and the position of the belt can be detected by the output of the encoder.

[0038] The conveyor control device 5 includes a memory unit 52 that stores information related to the control of the conveyor 6. The memory unit 52 can be configured with a storage medium capable of storing information, such as a volatile memory, a non-volatile memory, or a hard disk. The conveyor control device 5 includes an operation control unit 53 that sends an operation command for the conveyor 6. The processor of the arithmetic processing device functions as the operation control unit 53. The conveyor control device 5 includes a conveyor drive unit 54 having an electric circuit that supplies electricity to the conveyor drive motor 24 based on the operation command.

[0039] The control device of the robot device 8 in this embodiment includes a robot control device 4 that controls the robot 1 and the hand 2, and a conveyor control device 5 that controls the conveyor 6, but is not limited to this embodiment. The robot device 8 may be configured so that the robot 1, the hand 2, and the conveyor 6 are controlled by one control device.

[0040] FIG. 4 shows a schematic diagram of the visual sensor in this embodiment. The visual sensor 30 in this embodiment is a stereo camera including a first camera 31 and a second camera 32. Each of the cameras 31 and 32 is a two-dimensional camera capable of capturing a two-dimensional image. As the cameras 31 and 32, any camera equipped with an imaging element such as a CCD (Charge-Coupled Device) sensor or a CMOS (Complementary Metal-Oxide Semiconductor) sensor can be adopted. The two cameras 31 and 32 are disposed apart from each other. The relative positions of the two cameras 31 and 32 are determined in advance.

[0041] The visual sensor 30 of this embodiment includes a projector 33 that projects a pattern light such as a striped pattern toward the workpiece 81. The cameras 31 and 32 and the projector 33 are disposed inside a housing 34. When acquiring three-dimensional information based on the output of the visual sensor 30, the projector 33 projects the pattern light, and the cameras 31 and 32 capture two-dimensional images.

[0042] 3, the three-dimensional information generating unit 61 of the image processing unit 47 processes the image acquired by the visual sensor 30 to generate three-dimensional information of the surface of the object in the form of a three-dimensional map. The three-dimensional information includes information on the positions of a plurality of measurement points set on the surface of the object. The three-dimensional map represents the position of the surface of the object as a set of coordinate values ​​(x, y, z) of the measurement points set on the surface of the object.

[0043] The image processing unit 47 in this embodiment is included in the robot control device 4 that controls the robot 1, but is not limited to this. A processing device that processes the image acquired by the visual sensor 30 may be arranged separately from the robot control device.

[0044] 3 and 4, the three-dimensional information generating unit 61 in this embodiment sets a plurality of measurement points on the surface of an object placed within the imaging range 35 of the visual sensor 30. For example, the measurement points can be set for each pixel of the two-dimensional image captured by the camera 31 or the camera 32. The three-dimensional information generating unit 61 calculates the distance from the visual sensor 30 to the measurement points based on the parallax of the two-dimensional images captured by the two cameras 31 and 32.

[0045] The three-dimensional information generator 61 can calculate the coordinate values ​​of the measurement points in the sensor coordinate system 78 based on the distance from the visual sensor 30 to the measurement points. Alternatively, the coordinate values ​​in the sensor coordinate system 78 may be converted into coordinate values ​​in the world coordinate system 76 based on the position and orientation of the visual sensor 30. In this way, the three-dimensional information generator 61 can form a three-dimensional map including the coordinate values ​​of a plurality of measurement points.

[0046] The visual sensor 30 of this embodiment functions as a two-dimensional sensor. Since the first camera 31 and the second camera 32 are two-dimensional cameras, a two-dimensional image can be captured by either one of the cameras 31 and 32. In this embodiment, the first camera 31 captures the two-dimensional image.

[0047] The three-dimensional sensor of this embodiment is a stereo camera capable of capturing two-dimensional images. By adopting this configuration, a two-dimensional image can be acquired by one two-dimensional camera included in the stereo camera. Both the position information of the three-dimensional measurement point and the two-dimensional image can be acquired by one sensor. This allows the configuration of the imaging device to be simplified.

[0048] In the imaging device 3 of this embodiment, the visual sensor 30 acquires a three-dimensional map including information on measurement points on the surface of the workpiece 81. After this, the first camera 31 of the visual sensor 30 captures a two-dimensional image including the same workpiece 81. The time when the visual sensor 30 captures the image to acquire the three-dimensional map is different from the time when the two-dimensional image is captured. Therefore, the position of the workpiece when the three-dimensional map is acquired is different from the position of the workpiece 81 when the two-dimensional image is captured.

[0049] The movement control unit 63 of this embodiment acquires the output of the position detector 25 of the conveyor 6. The actual movement amount of the workpiece 81 from when the 3D map was acquired to when the 2D image was captured is calculated. Then, control is performed to move the 3D information so as to correspond to the 2D image in a predetermined coordinate system in accordance with the movement amount of the workpiece 81. This control makes it possible to superimpose at least a part of the 3D information of the workpiece and the 2D image of the workpiece in the above coordinate system. In other words, it is possible to generate 3D information and 2D images equivalent to the 3D information and 2D images acquired at the same time.

[0050] FIG. 5 shows a flow chart of the control of the robot device in this embodiment. FIG. 6 shows a schematic front view of the visual sensor, the work, and the conveyor when acquiring a three-dimensional map. With reference to FIG. 5 and FIG. 6, in step 91, the conveyor control device 5 drives the conveyor 6 to move the work 81 as indicated by the arrow 86. The conveyor control device 5 moves the work 81 to the inside of the imaging range 35 of the visual sensor 30. In the robot device 8 of this embodiment, a sensor for detecting the arrival of the work 81 is disposed. The position detector 25 detects the position at the time when the sensor reacts. The operation control unit 53 calculates the rotation position when the work 81 is placed inside the imaging range 35 based on the position. The position detector 25 detects the rotation position, and it is found that the work 81 is placed inside the imaging range 35.

[0051] In step 92, the visual sensor 30 captures an image of the workpiece 81. The three-dimensional information generating unit 61 generates three-dimensional information. In this embodiment, the three-dimensional information generating unit 61 generates a three-dimensional map using two-dimensional images captured by the cameras 31 and 32. The conveyor control device 5 acquires a first rotational position from the position detector 25 attached to the conveyor drive motor 24. The conveyor control device 5 acquires the first rotational position at the same time as the visual sensor 30 captures an image of the workpiece 81. The first rotational position corresponds to the first position of the belt 6a when the three-dimensional information is acquired. The memory unit 52 of the conveyor control device 5 stores the first rotational position.

[0052] FIG. 7 shows an explanatory diagram of a three-dimensional map generated by the three-dimensional information generating unit. FIG. 7 shows a plan view of the conveyor 6 and the workpiece 81. A measurement area 71 in which measurement points are set is determined by the imaging range 35 of the visual sensor 30. The three-dimensional map includes coordinate values ​​of the positions of a plurality of measurement points PX. The measurement points PX are set on the surface of an object imaged inside the measurement area 71. The measurement area 71 corresponds to an image captured by the first camera 31, for example. Inside the measurement area 71, measurement points PX are set on the surface of the workpiece 81, the surface of the conveyor 6, and the floor surface. For each measurement point PX, the coordinate value of the position of the measurement point PX in a predetermined coordinate system is calculated. In this embodiment, the coordinate value of the position of each measurement point PX is calculated in the sensor coordinate system 78.

[0053] In this example, the multiple measurement points PX set on the surface of the workpiece 81 are referred to as a group 71a of measurement points PX. The multiple measurement points PX set on the surface of the frame of the conveyor 6 are referred to as a group 71b of measurement points PX. The multiple measurement points PX set on the surface of the belt 6a are referred to as a group 71c of measurement points PX. Additionally, the multiple measurement points PX set on the floor surface are referred to as a group 71d of measurement points PX.

[0054] FIG. 8 shows a schematic front view of the visual sensor, the workpiece, and the conveyor when capturing a two-dimensional image. In FIG. 8, the position of the workpiece 81 when the three-dimensional map is acquired is shown by a broken line. After the three-dimensional map is acquired, the workpiece 81 moves as shown by an arrow 86. Referring to FIG. 5, in step 93, the first camera 31 of the visual sensor 30 captures a two-dimensional image. The first camera 31 captures an image of the workpiece 81 when the workpiece 81 is placed inside the imaging range 35. For example, the visual sensor 30 can capture a two-dimensional image immediately after capturing an image for acquiring a three-dimensional map. Or, the visual sensor 30 can capture a two-dimensional image after a predetermined time has elapsed after capturing an image for acquiring a three-dimensional map.

[0055] 3, the two-dimensional image acquisition unit 62 acquires a two-dimensional image from the first camera 31 of the visual sensor 30. The two-dimensional image may be acquired by the second camera 32 instead of the first camera 31. The conveyor control device 5 acquires a second rotation position from the position detector 25 of the conveyor drive motor 24. The conveyor control device 5 acquires the second rotation position at the same time as capturing the two-dimensional image of the workpiece 81. The second rotation position corresponds to the second position of the belt 6a when the two-dimensional image is acquired. The memory unit 52 stores the second rotation position.

[0056] 9 shows an example of a two-dimensional image captured by the first camera of the visual sensor. Image 72 is a two-dimensional image. In the present embodiment, an image coordinate system 79 is set in image 72. Image coordinate system 79 is a coordinate system that has a predetermined point of image 72 as its origin. In this example, image coordinate system 79 is composed of an X axis and a Y axis. Image 72 includes image 72a corresponding to the top surface of workpiece 81.

[0057] The image 72 includes an image 72b corresponding to the frame of the conveyor 6 and an image 72c corresponding to the belt 6a. In Fig. 9, when the measurement area 71 is superimposed on the image 72, a group 71a of measurement points corresponding to the upper surface of the workpiece 81 is indicated by a dashed line. In this embodiment, the 3D map and the 2D image are acquired while the workpiece 81 is moving on the conveyor 6. For this reason, the position of the workpiece 81 when the 2D image is captured is different from the position of the workpiece 81 when the image is captured to obtain the 3D map.

[0058] The position of the image 72a of the workpiece 81 in the image 72 is shifted from the position of the group 71a of measurement points on the top surface of the workpiece 81. Therefore, the movement control unit 63 of the image processing unit 47 performs control to move the positions of all measurement points on the 3D map as indicated by arrow 87. The positions of the measurement points are corrected based on the direction in which the workpiece 81 has moved and the amount of movement of the workpiece 81. The movement control unit 63 performs control to align the position of the group 71a of measurement points set on the top surface of the workpiece 81 with the position of the image 72a.

[0059] 3 and 5, in step 94, the movement control unit 63 calculates the movement distance of the workpiece 81 on the conveyor 6 as the movement amount of the workpiece 81. The movement distance of the workpiece 81 corresponds to the length moved by the belt 6a. The movement control unit 63 acquires the first rotation position and the second rotation position of the conveyor drive motor 24 from the memory unit 52 of the conveyor control device 5. The movement control unit 63 calculates the movement distance of the workpiece 81 based on the difference between the first rotation position and the second rotation position.

[0060] For example, the position detector 25 is formed so that a signal is output for each predetermined rotation angle. For this reason, the signal output from the position detector 25 corresponds to the rotation position. The position detector 25 detects a first count CT1 as the first rotation position. The position detector 25 detects a second count CT2 as the second rotation position. The movement amount of the belt 6a (movement amount of the workpiece) relative to the difference in counts is predetermined. Here, the coefficient SC [counts / mm] of the number of counts relative to the movement amount of 1 mm of the belt 6a is predetermined. The movement distance X of the workpiece 81 at this time can be expressed by the following formula (1).

[0061] X [mm] = (CT2 - CT1) / SC … (1)

[0062] In this way, the movement control unit 63 calculates the movement distance of the workpiece 81 on the conveyor 6 based on the output of the position detector 25.

[0063] 5, in step 95, the movement control unit 63 corrects the three-dimensional map according to the movement direction and the movement amount of the workpiece 81. The movement control unit 63 moves the positions of the measurement points included in the three-dimensional map in the movement direction of the workpiece 81. The movement direction of the workpiece 81 in the sensor coordinate system 78 is determined in advance. In this example, the workpiece 81 moves in the direction of the X-axis of the sensor coordinate system 78.

[0064] In the three-dimensional map of this embodiment, the positions of the measurement points in the measurement area 71 are detected by coordinate values ​​of the sensor coordinate system 78. The movement control unit 63 moves the positions of the measurement points included in the three-dimensional map by the movement amount of the workpiece 81. In addition, the movement control unit 63 translates the positions of the measurement points included in the three-dimensional map in the direction in which the workpiece 81 moves.

[0065] With reference to FIG. 8, the movement control unit 63 moves the position of each measurement point. For example, the three-dimensional map includes the coordinate value of the measurement point P1A arranged on the surface of the workpiece 81. The movement control unit 63 moves the measurement point P1A in the direction in which the workpiece 81 moves by the amount of movement of the workpiece 81. The measurement point P1A moves to the measurement point P1B. In this example, the coordinate value of the X-axis of the measurement point P1A in the sensor coordinate system 78 is corrected by the amount of movement of the workpiece 81. The three-dimensional information also includes the coordinate value of the measurement point P2A set on the surface of the workpiece 81. The movement control unit 63 moves the measurement point P2A to the measurement point P2B by a similar method. The coordinate value of the X-axis of the measurement point P2A in the sensor coordinate system 78 is corrected by the amount of movement of the workpiece 81. In this way, the coordinate value of the measurement point can be changed so as to correspond to the movement of the workpiece 81. Here, all measurement points included in the measurement area 71 are moved.

[0066] 9, when the measurement area 71 is superimposed on the image 72, the movement direction of the groups 71a to 71d of the measurement points in the image 72 is preset. In this example, the movement control unit 63 moves the groups 71a to 71d of the measurement points in the positive direction of the Y axis of the image coordinate system 79. The position of the visual sensor 30 is fixed. The ratio of the movement distance of the measurement points in the image coordinate system 79 to the actual movement distance of the workpiece 81 is preset. The movement control unit 63 calculates the movement distance of the groups 71a to 71d of the measurement points in the image coordinate system 79 based on the movement distance of the workpiece 81. The movement control unit 63 moves the three-dimensional map as shown by the arrow 87. At least some of the measurement points of the group 71a move within the area of ​​the image 72a, which is a two-dimensional image of the workpiece 81. As a result, at least some of the measurement points of the group 71a are included within the area of ​​the image 72a.

[0067] 3 and 5, in step 96, the characteristic part detection unit 64 of the image processing unit 47 detects the characteristic part of the workpiece 81 in the image 72, which is a two-dimensional image. In this embodiment, the upper surface of the workpiece 81 is set as the characteristic part. A reference image of the upper surface of the workpiece 81 is stored in advance in the storage unit 42. The reference image is a two-dimensional image. The reference image may be an image of the upper surface of the workpiece 81 actually captured by a two-dimensional camera. Alternatively, a CAD (Computer Aided Design) device may be used to generate the reference image of the workpiece 81 based on three-dimensional data of the workpiece 81. The characteristic part detection unit 64 detects the image 72a of the upper surface of the workpiece 81 in the image 72 by a template matching method using the reference image.

[0068] Next, in step 97, the calculation unit 65 calculates the position and orientation of the workpiece 81. For example, the position of the center of gravity of the rectangle on the upper surface of the workpiece 81 can be used as the position of the workpiece 81. Furthermore, the normal direction of the upper surface of the workpiece 81 can be used as the orientation of the workpiece. The calculation unit 65 extracts measurement points arranged in an area overlapping the image 72a. In this example, since the group 71a of measurement points overlaps the image 72a, the calculation unit 65 extracts multiple measurement points included in the group 71a. The calculation unit 65 can calculate the position and orientation of the workpiece 81 based on the coordinate values ​​of the multiple measurement points.

[0069] In this manner, in this embodiment, the characteristic portion of the workpiece 81 is detected in a two-dimensional image, and the position and posture of the workpiece 81 can be detected based on the three-dimensional information of the characteristic portion of the workpiece 81.

[0070] Next, in step 98, the calculation unit 65 calculates the position and orientation of the robot 1 based on the position and orientation of the workpiece 81. The calculation unit 65 calculates the position and orientation of the workpiece 81 when the workpiece 81 has moved on the conveyor 6 to a position where it is grasped by the hand 2. The calculation unit 65 calculates the position and orientation of the robot 1 based on the position and orientation of the workpiece 81 at that time.

[0071] In step 99, the calculation unit 65 sends a command to the operation control unit 43 to drive the robot 1 and the hand 2. The operation control unit 43 drives the robot 1 and the hand 2 based on the command from the calculation unit 65. The workpiece 81 is gripped by the hand 2 and transported to the target position.

[0072] In this way, the imaging device 3 of this embodiment can synchronize the three-dimensional information with the two-dimensional image. That is, the three-dimensional information can be corrected so that the three-dimensional information is acquired at the same time as the two-dimensional image. For this reason, the image of the workpiece 81 and the grip of the workpiece 81 by the hand 2 can be performed while moving the workpiece 81 on the conveyor 6. In the robot device 8 of this embodiment, there is no need to stop the conveyor 6 when acquiring the three-dimensional information and the two-dimensional image, and the operation time can be shortened. Alternatively, the position of the workpiece on the conveyor 6 can be prevented from shifting when the conveyor 6 stops and starts.

[0073] The imaging device 3 described above captures a two-dimensional image after acquiring three-dimensional information, but is not limited to this form. The imaging device may capture a two-dimensional image and then acquire the three-dimensional information. Even in this case, the movement control unit can perform control to move the position of the measurement point in the three-dimensional information to match the position of the two-dimensional image.

[0074] The transport device of the first robot device 8 is a conveyor 6, but is not limited to this form. As the transport device, any device that transports the workpiece 81 in a predetermined direction can be adopted.

[0075] FIG. 10 shows a schematic plan view of the second robot device in this embodiment. In the second robot device 9, a carrier vehicle 7 is provided as a carrier, instead of the conveyor 6 of the first robot device 8. The carrier vehicle 7 in this embodiment is an unmanned traveling carriage that automatically moves along a tape 39. Also, a carrier vehicle control device is provided instead of the conveyor control device 5 of the first robot device 8. The carrier vehicle control device controls the carrier vehicle 7, for example, by wireless communication.

[0076] The transport vehicle 7 transports the workpiece 81. The transport vehicle 7 includes a mounting table 7a on which the workpiece 81 is placed. The transport vehicle 7 includes a sensor that detects the tape 39 attached to the floor surface. The transport vehicle 7 is configured to move along the tape 39 while detecting the tape 39 with the sensor. In other words, the movement direction of the transport vehicle 7 is predetermined. The transport vehicle 7 moves the workpiece 81 in a horizontal direction. A visual sensor 30 fixed to a support member 37 is disposed above the path along which the transport vehicle 7 moves. The visual sensor 30 is disposed in a position where it can capture an image of the workpiece 81 transported by the transport vehicle 7.

[0077] The transport vehicle 7 includes a drive motor for driving wheels. A position detector is attached to the output shaft of the drive motor. The mounting table 7a corresponds to a moving member moved by the drive motor. The position of the mounting table 7a can be determined, for example, by the position of a set point set at an arbitrary position of the transport vehicle 7. The position of the mounting table 7a corresponds to the rotational position of the output shaft of the drive motor. The position detector may be attached to the shaft of the wheels of the transport vehicle.

[0078] In the second robot device 9, the visual sensor 30 also captures images while the carrier 7 is moving. The image processor 47 acquires a three-dimensional map and a two-dimensional image at different times. The image processor 47 also acquires a first rotational position detected by the position detector when the three-dimensional map is acquired, and a second rotational position detected by the position detector when the two-dimensional image is acquired.

[0079] The movement control unit 63 of the image processing unit 47 calculates the movement distance of the workpiece 81 based on the first rotation position and the second rotation position. The movement control unit 63 corrects the position of the measurement point of the three-dimensional map based on the movement amount of the workpiece 81. The movement control unit 63 changes the relative position of the three-dimensional information of the workpiece with respect to the two-dimensional image of the workpiece in the image coordinate system. The movement control unit 63 performs control to move the three-dimensional information of the workpiece within the area of ​​the two-dimensional image of the workpiece. After this, the image processing unit 47 can detect the position and posture of the workpiece 81 based on the three-dimensional map and the two-dimensional image.

[0080] The rest of the configuration, operation, and effects of the second robotic device are similar to those of the first robotic device, so the description will not be repeated here.

[0081] In the above embodiment, a reference image is used to detect the characteristic portion of the workpiece, but the present invention is not limited to this embodiment. It is not necessary to use a reference image when the robot grasps the workpiece. For example, three-dimensional information such as a three-dimensional map is moved according to the amount of movement of the workpiece. Then, the position of the center of gravity of the workpiece is detected based on the three-dimensional information. The position and orientation of the hand relative to the position of the center of gravity are determined in advance. The position and orientation of the hand can be calculated based on the position of the center of gravity of the workpiece.

[0082] The conveyor of the present embodiment conveys the workpiece along a linear path, but is not limited to this form. As long as the direction in which the workpiece is moved is determined, the conveyor may convey the workpiece along a curved path.

[0083] The imaging device of this embodiment acquires three-dimensional information and two-dimensional images to detect the position and posture of the workpiece, but is not limited to this embodiment. The imaging device can acquire three-dimensional information and two-dimensional images to perform arbitrary control. The imaging device can synchronize the two-dimensional images and the three-dimensional information by moving the three-dimensional information in a predetermined coordinate system.

[0084] In each of the above-described controls, the order of steps can be changed as appropriate within the scope that does not change the functions and actions.

[0085] The above-mentioned embodiments can be combined as appropriate. In each of the above-mentioned drawings, the same or equivalent parts are given the same reference numerals. Note that the above-mentioned embodiments are examples and do not limit the invention. In addition, the embodiments include modifications of the embodiments shown in the claims. [Explanation of symbols]

[0086] 1. Robot 2 Hands 3. Imaging device 4 Robot control device 5 Conveyor control device 6 Conveyor 7 Transport vehicle 8,9 Robotic Devices 24 Conveyor drive motor 25 Position detector 26 Conveyor drive unit 30 Visual Sensor 31 First Camera 32 Second Camera 47 Image Processing Section 61 3D information generation section 62 2D image acquisition section 63 Movement control section 64 Feature Part Detection Unit 65 Calculation section 71 Measurement area Groups 71a, 71b, 71c, and 71d 72 images 72a,72b Images 78 Sensor Coordinate System 79 Image Coordinate System 81 Work P1A,P1B,P2A,P2B measurement points

Claims

1. An imaging device that images a workpiece being transported along a predetermined path by a transport machine driven by a motor, a visual sensor including a three-dimensional sensor for detecting three-dimensional information of a surface of a workpiece and a two-dimensional sensor for acquiring a two-dimensional image of the surface of the workpiece; a processing unit that processes an output of the three-dimensional sensor and an output of the two-dimensional sensor, the processing unit includes a three-dimensional information generating unit that generates three-dimensional information based on an output of the three-dimensional sensor, a two-dimensional image acquiring unit that acquires a two-dimensional image from the two-dimensional sensor, and a movement control unit that changes a relative position of the three-dimensional information with respect to the two-dimensional image in a sensor coordinate system whose origin is fixed to the visual sensor; the conveyor includes a position detector for detecting a position of a moving member moved by the motor, The visual sensor is fixed in position, The visual sensor captures an image of a workpiece while the workpiece is placed within an imaging range of the visual sensor and while the workpiece is moving; The time when the 3D information is acquired is different from the time when the 2D image is acquired, A moving direction of the three-dimensional information in the sensor coordinate system is determined in advance so as to correspond to one path along which the workpiece is transported, The movement control unit calculates an actual movement amount of the workpiece corresponding to the difference between a first position of the moving member when acquiring three-dimensional information and a second position of the moving member when acquiring a two-dimensional image, and moves the positions of a plurality of measurement points included in the three-dimensional information parallel to the movement direction so as to correspond to the actual movement amount of the workpiece in the sensor coordinate system, thereby performing control to move the three-dimensional information of the workpiece within the area of ​​the workpiece in which the two-dimensional image was captured, the imaging device.

2. The imaging device according to claim 1 , wherein the three-dimensional sensor captures a two-dimensional image.

3. The transport device is a conveyor for moving a workpiece, 3. The imaging device according to claim 1, wherein the motor is a conveyor drive motor that drives a conveyor.

4. A control device that acquires three-dimensional information of a workpiece transported along a predetermined direction by a transport device driven by a motor, At least one memory; At least one processor; The at least one processor Acquiring an output from a visual sensor having a three-dimensional sensor and a two-dimensional sensor for capturing an image of a moving workpiece; generating three-dimensional information based on an output of the three-dimensional sensor; In a sensor coordinate system whose origin is fixed to the visual sensor, a relative position of three-dimensional information with respect to the two-dimensional image acquired from the two-dimensional sensor is changed; Calculating an actual movement amount of the workpiece corresponding to a difference between a first position of the workpiece when the three-dimensional information is acquired and a second position of the workpiece when the two-dimensional image is acquired; A control device that moves the positions of multiple measurement points included in the three-dimensional information parallel to a predetermined direction so as to correspond to the actual movement amount of the workpiece in the sensor coordinate system, thereby moving the three-dimensional information of the workpiece within the area of ​​the workpiece in which the two-dimensional image is captured.

Citation Information

Patent Citations

  • Information processing apparatus and information processing method

    JP2013036988A

  • Object recognition device

    JP2018185219A