Method for moving tip of linear object, control device, and three-dimensional camera
阅读说明:本技术 线状物的前端移动方法、控制装置以及三维照相机 (Method for moving tip of linear object, control device, and three-dimensional camera ) 是由 北井基善 于 2019-02-15 设计创作,主要内容包括:一种线状物的前端移动方法,所述线状物的前端移动方法是使由机械手(22)握持的线状物(W1)的前端(W1s)移动至目标位置(TG1)时的线状物的前端移动方法,包括:对由机械手(22)握持的线状物(W1)的前端(W1s)的位置进行测量的步骤;以及基于测量到的前端(W1s)的位置,使前端(W1s)移动至目标位置(TG1)的步骤。(A method for moving a wire tip, which is used when moving a wire tip (W1s) of a wire (W1) held by a robot (22) to a target position (TG1), comprising: a step of measuring the position of the tip (W1s) of a wire (W1) held by a robot (22); and a step of moving the leading end (W1s) to the target position (TG1) based on the measured position of the leading end (W1 s).)
1. A method for moving the tip of a linear object when the tip of the linear object held by a robot is moved to a target position, comprising:
a step of measuring a position of the tip of the linear object held by the manipulator; and
moving the front end to the target position, the front end being moved to the target position based on the measured position of the front end.
2. The method of moving the leading end of a wire according to claim 1,
the step of measuring the position of the front end further comprises: a step of measuring the direction of the front end.
3. The method of moving the leading end of a wire according to claim 2,
the step of moving the front end to the target position comprises: and a step of aligning the direction of the tip with a predetermined direction.
4. The method of moving the leading end of a wire according to claim 2 or 3,
the direction of the tip is determined based on the shape of the linear object from the tip to a predetermined distance position.
5. The leading end moving method of a wire according to any one of claims 1 to 4,
the step of moving the front end to the target position, the target position being a hole.
6. The leading end moving method of a wire according to any one of claims 1 to 5,
in the step of moving the tip to the target position, the tip is moved by passing the tip through a predetermined near-front position and aligning a direction of the tip at the near-front position with a predetermined direction.
7. A control device for controlling the movement of a linear object by a manipulator provided in a robot,
acquiring the three-dimensional shape of the thread from a three-dimensional camera that acquires the three-dimensional shape of the thread,
acquiring the position of the leading end of the wire from the three-dimensional shape,
notifying the robot having the manipulator of information for moving the tip to a target position based on the position of the tip of the wire.
8. The control device according to claim 7,
the control device measures a direction of the leading end of the wire from the three-dimensional shape of the wire,
and notifying the robot having the manipulator of information for moving the wire to the target position so that the direction of the tip of the wire coincides with a predetermined direction.
9. A three-dimensional camera used when controlling movement of a linear object by a robot hand provided to a robot, the three-dimensional camera acquiring a three-dimensional shape of the linear object, wherein,
the three-dimensional camera includes a control device, and
the control device
Acquiring a three-dimensional shape of the thread from the three-dimensional camera,
acquiring the position of the leading end of the wire from the three-dimensional shape,
notifying the robot having the manipulator of information for moving the tip to a target position based on the position of the tip of the wire.
Technical Field
The present invention relates to a method for moving a tip of a linear object when the linear object is held by a robot, a control device, and a three-dimensional camera.
Background
Robots that recognize an object and hold the object by themselves using a three-dimensional camera or the like are becoming popular. As for the grip thread, for example, japanese patent laying-open No. 2014-176917 (patent document 1) describes the following: the robot device performs an assembly operation of a linear body, and moves a grip portion to the other end by sliding the grip portion along a predetermined trajectory after gripping the vicinity of a fixed end of the linear body having one end fixed. This makes it possible to quickly grasp the other end, which is difficult to accurately estimate due to a defect or the like of the wire as an example of the wire.
Japanese patent laying-open No. 2016-192138 (patent document 2) discloses an invention relating to a method for manufacturing a wire harness (wire harness) and an image processing method, wherein a processing position specifying process for specifying a processing position by measuring a three-dimensional shape of an electric wire assembly is performed in the process of manufacturing the wire harness.
Disclosure of Invention
Problems to be solved by the invention
The following can be considered: the robot holds, for example, a wire or the like as a linear object, and controls to move the tip of the wire to a predetermined target position. For example, assume control of inserting the wire tip into a through hole provided in an object. On the manipulator side, it is recognized that the linear object extends straight from the region gripped by the manipulator toward the distal end side.
However, in practice, a case is assumed in which the linear object is bent from the region gripped by the manipulator toward the distal end side. In this case, after the position of the distal end of the wire is recognized, the robot needs to move the distal end of the wire to the through hole provided in the object.
The present invention is directed to a method of moving a leading end of a linear object when the linear object is held by a robot, a control device, and a three-dimensional camera.
Means for solving the problems
The method for moving the tip of a linear object, which is used when the tip of the linear object held by a manipulator is moved to a target position, includes: measuring a position of the tip of the wire held by the manipulator; and moving the front end to the target position based on the measured position of the front end.
In another embodiment, the step of measuring the position of the front end further comprises the step of measuring the direction of the front end.
In another embodiment, the step of moving the tip to the target position includes a step of aligning a direction of the tip with a prescribed direction.
In another embodiment, the direction of the tip is determined based on the shape of the wire from the tip to a predetermined distance position.
In another embodiment, the step of moving the front end to the target position, the target position is a hole.
In another embodiment, the step of moving the tip to the target position moves the tip by passing the tip through a predetermined near-front position and aligning a direction of the tip at the near-front position with a predetermined direction.
The control device is a control device that controls movement of a wire by a manipulator provided in a robot, acquires a three-dimensional shape of the wire from a three-dimensional camera that acquires the three-dimensional shape of the wire, acquires a position of a tip of the wire from the three-dimensional shape, and notifies the robot having the manipulator of information for moving the tip to a target position based on the position of the tip of the wire.
In another embodiment, the control device measures a direction of the tip of the wire from the three-dimensional shape of the wire, and notifies the robot having the robot hand of information for moving the tip of the wire to the target position so that the direction coincides with a predetermined direction.
The three-dimensional camera is a three-dimensional camera used when the movement of a linear object is controlled by a robot provided in a robot, the three-dimensional camera acquires a three-dimensional shape of the linear object, the three-dimensional camera includes a control device that acquires the three-dimensional shape of the linear object from the three-dimensional camera, acquires a position of a tip of the linear object from the three-dimensional shape, and notifies the robot having the robot of information for moving the tip to a target position based on the position of the tip of the linear object.
ADVANTAGEOUS EFFECTS OF INVENTION
According to the method for moving the distal end of the wire, the control device, and the three-dimensional camera, even when the region of the wire gripped by the manipulator is bent toward the distal end side, the manipulator side can be moved after the distal end position of the wire is recognized, and the distal end of the wire can be moved into the through hole provided in the object.
Drawings
Fig. 1 is a diagram showing an overall system for executing a wire holding method in the related art.
Fig. 2 is a flowchart of steps of a wire holding method in the related art.
Fig. 3 is a flowchart of the steps of the determination step of the thread holding method in the related art.
Fig. 4 is a diagram showing a first interference region and a first extended interference region in the related art.
Fig. 5 is a diagram showing a second interference region and a second expansion interference region in the related art.
Fig. 6 is a diagram for explaining the size of the first interference region in the related art.
Fig. 7 is a diagram for explaining a first determination step in the related art.
Fig. 8 is a diagram for explaining a first pre-determination step in the related art.
Fig. 9 is a schematic view for explaining a method of moving the tip of the linear object according to the embodiment.
Fig. 10 is a schematic view illustrating another method for moving the distal end of the string according to the embodiment.
Detailed Description
Hereinafter, a method for measuring a tip bending amount according to an embodiment of the present invention will be described with reference to the drawings. In the embodiments described below, when reference is made to a number, an amount, or the like, the scope of the present invention is not necessarily limited to the number, the amount, or the like unless otherwise specified. The same reference numerals are given to the same parts and corresponding parts, and the description may not be repeated. It is originally intended to appropriately combine and use the structures of the embodiments. In the drawings, actual dimensional ratios are not shown, and some ratios are shown differently in order to facilitate understanding of the structure.
In the following description, a case of using an electric wire as an example of the wire is described, but the present invention is not limited to the electric wire. The thread in this description may be any thread as long as it is an object having a long and thin shape. Examples of the thread include an electric wire, a wire harness, a solder, a rope, a thread, a fiber, a glass fiber, an optical fiber, a tube, and a dry surface. The present invention is not limited to the electric wire in which a bundle of thin wires is used, and includes an electric wire made of a single wire. In particular, the effect of the present embodiment is more remarkable when a linear object having a shape changed such as a curve or a linear object having no straight line is generated.
(correlation technique: thread holding method and control device)
An example of a thread holding method and a control device will be described below as related art with reference to fig. 1 to 8.
In fig. 1, an
As the
The three-
The stereo camera includes two cameras, obtains a point corresponding to a point to be measured on two images taken from different viewpoints, and calculates a three-dimensional position of the measured point by a principle of triangulation from a positional relationship of the two cameras. As for three-dimensional measurement of a linear object by a stereo system, for example, japanese patent laid-open No. 2-309202 discloses that a plurality of linear objects are captured by two cameras, and a corresponding point is determined by comparing the slope of the bright lines in two images with the distance between the bright lines as a feature, thereby reducing the processing time required for determining the corresponding point.
In the stereoscopic system, a line obtained by projecting a line connecting a viewpoint of one image and a measurement point on the other image (see japanese patent application No. 2017-221045) is referred to as an epipolar line (epipolar line), and a corresponding point on the other image corresponding to a point on the one image is projected on the epipolar line on the other image without fail.
By using the above principle, when a point corresponding to a certain point on a linear object is obtained, the intersection point of the linear object and the epipolar line can be obtained on another image, and the three-dimensional shape of the linear object can be measured quickly. When the linear objects are distinguished into different colors, the three-dimensional shape of each linear object can be obtained more quickly by extracting a corresponding color from the image using a color camera and obtaining a corresponding point.
The
The control device notifies the
The method for holding a thread according to the related art will be described below with reference to fig. 2. The related art thread holding method includes: a step (S1) of measuring the three-dimensional shapes of the plurality of wires W1, W2, W3; a determination step (S2) for determining whether or not other linear objects interfere with each other when the
The step S1 of measuring the three-dimensional shapes of the plurality of wires W1, W2, W3 is performed by the three-
The
Step S3 of gripping the target linear object is performed by the
The determination step S2 will be described in detail below.
Referring to fig. 3, in the determination step S2 of the related art, acquisition of a three-dimensional shape of a linear object (S21), selection of a linear object of interest (S22), determination of a gripping position of the linear object of interest (S23), acquisition of a manipulator standby position (S24), setting of various interference regions (S51 to S54), and various interference determinations (S61 to S64) are performed.
First, the
Then, the
For example, in the case of placing the electric wires W1, W2, and W3 on the stage, the wire located at the highest position, that is, the wire located at the uppermost position may be selected as the wire of interest, in accordance with the acquired three-dimensional shape. The reason for this is that: even when the linear objects are placed in a superposed manner, the probability that another linear object interferes with the linear object located above the linear object is lower.
Then, the
Then, the
The
Then, the
The interference determination for each linear object can be performed by determining whether or not a point or a line segment on the linear object is located within the interference region or whether or not the line segment intersects the interference region while moving the point or the line segment in the longitudinal direction. In fig. 3, the second pre-determination for the second extended interference region, the second determination for the second interference region, the first pre-determination for the first extended interference region, and the first determination for the first interference region are performed in this order. Hereinafter, although the procedure is different from that of fig. 3, the interference determination for each interference region and the region will be described.
Referring to fig. 4, the first determination step S61 for the
The
The reason for this is that: the later-described first expansion interference region can be further reduced and the efficiency of the first pre-determination can be improved. In the case where the first interference region is not polygonal, a circle is preferable. The reason for this is also that: the calculation load becomes light, and rapid determination can be performed.
If the size of the
On the other hand, if the first interference region is too small, the probability that the interference occurs during implementation but the erroneous determination that the interference does not occur increases. Referring to fig. 6, if a circle C2 is defined as a smallest circle circumscribing a maximum cross section of the
The
Referring to fig. 7, the first determination step S61 may be performed by intersection determination of the segment L on the other electric wire W2 as the object and the
Referring to fig. 4, the first preliminary determination step S62 for the first
The first
Specifically, referring to fig. 8, when coordinates of 8 vertices a to H of the first expanded
Since the first
Referring to fig. 5, the second determination step (S63) for the second interference region 53 determines whether or not the
The second interference region 53 is a planar region including a line segment PQ connecting the holding position P of the wire W1 and the standby position Q of the
If the width of the second interference region 53 is too wide, the probability that interference will occur will be erroneously determined to be actually not occurring. The width of the second interference region is preferably below the diameter of circle C1 of fig. 6. On the other hand, if the width of the second interference region is too narrow, the probability that the interference is generated during implementation but the erroneous judgment that the interference is not generated is increased (see japanese patent application No. 2017-221045). The width of the second interference region is preferably greater than the diameter of circle C2 of fig. 6.
The second interference region 53 is preferably set so that the angle with the electric wire W1 becomes maximum. The reason for this is that: when the
Similarly to the first determination step S61, the second determination step S63 may be performed by determining the intersection of the segment L on the other electric wire W2 as the target and the second interference region 53.
The second pre-determination step (S64) for the second expansion interference region 54 is performed before the second determination, and is performed in order to find out that the
The second extended interference region 54 is a spatial region that encompasses the second interference region 53. The shape and size of the second interference expansion region are not particularly limited, but it is preferable to set the smallest of hexahedrons, which include the second interference region and all sides of which are parallel to any one axis of the coordinate system, as the second interference expansion region. In the case where the coordinate system is an orthogonal coordinate system, the hexahedron is a rectangular parallelepiped. Thus, the second pre-determination can be performed only by comparing the magnitude of the coordinates.
Since the second interference region 53 is included in the second extended interference region 54, the second determination can be omitted when the result that the hand does not interfere with another linear object is obtained by the second pre-determination.
The determination steps S61 to S64 are repeated while the line segment L to be determined is moved in the longitudinal direction of the wire W2, and when the determination of interference with another wire W2 is completed, the same processing is performed on the next other wire W3.
When it is determined that all of the other wires W2, W3 are not included in the
When it is determined in either the first determination or the second determination that the line segment L is included in the first interference region or the second interference region, the
When it is determined that there is "interference" with any of the threads regardless of which thread is focused, the steps may be performed again after the entire thread is rotated to change the direction or the thread is swung or vibrated to change the positional relationship between the threads. The distance from the gripping position of each of the attention threads to the nearest other thread may be calculated as an interference distance, and the gripping may be performed from a thread having a long interference distance. This can instruct the robot to execute the gripping operation in the order in which the gripping is easy to succeed. The interference distance can be easily calculated by using the distance from the intersection of the first interference region or the second interference region in the interference determination and the other linear object to the grip position.
As described above, according to the wire holding method of the related art, since the holding operation is performed based on the determination result of whether or not the wire interferes with another wire, one wire can be selected from among a plurality of wires (see japanese patent application No. 2017-221045) and held by the
The presence or absence of interference between the
In the related art, since whether or not a linear object other than the target linear object exists in the first interference region can be determined by determining the intersection between the planar first interference region and the linear object, the amount of calculation is small, and the presence or absence of interference can be determined quickly. When there is no line other than the line of interest in the first interference region, the
The order of performing each determination step is not particularly limited, except that the first pre-determination is performed before the first determination and the second pre-determination is performed before the second determination. In the embodiment, the second determination step is performed first, and then the first determination step is performed, but the order may be reversed. In the related art, all the determination steps are performed for each line segment while moving the line segment L in the longitudinal direction of the linear object, but after one determination step (for example, the second pre-determination step) is finished for a certain linear object, another determination step (for example, the second determination step) may be performed again for the same linear object.
In the related art, the attention thread is selected (S22) before the standby position of the
The posture (gripping posture) when the
According to the present invention, the
(embodiment: method for moving tip of linear object, control device and three-dimensional camera)
Next, a case where the
The
As described above, the posture (gripping posture) when the
In this case, when the linear object is conveyed in a state where the
Therefore, it is preferable that the
In the following embodiments, a method of measuring the amount of bending of the tip of the linear object when the linear object is conveyed to a predetermined position by the
Here, the diameter of the thread may be in a range that can be recognized by the three-dimensional camera, and is preferably 0.01mm to 10 cm. The hole TGH provided in the target TG may be of a size that allows insertion of a thread, and is preferably 0.01mm to 15cm in diameter, and the hole depth is preferably 2 times or more the diameter of the thread.
Referring to fig. 9, a state in which the wire W1 is held by the
The position of the leading end W1s of the electric wire W1 held by the
Further, the shape of the wire W1 from the tip W1s to a predetermined distance position (distance D1 in fig. 9) is measured, and the direction in which the tip of the wire W1 extends can be determined by obtaining an average vector. Further, a vector connecting the tip W1s of the wire W1 and a position from the tip W1s to the insertion length of the hole may be taken as the direction of the tip.
This makes it possible to determine the direction of the appropriate posture when the tip W1s is inserted into the hole TGH provided in the target TG. The distance from the tip W1s of the wire W1 to the predetermined distance position (distance D1 in fig. 9) is preferably 0.3 to 10 times, and more preferably 0.5 to 5 times, the hole depth of the hole TGH provided in the target TG. The amount of curvature from the tip may be measured and the amount of curvature up to the sharp change point may be D1. Then, when the position or the amount of the bending of the tip W1s of the electric wire W1 is measured, the position or the amount of the bending of the tip is fed back to the movement control of the
As shown in fig. 9, by providing a feedback amount from the position of the leading end W1s and the amount of leading end bending, the leading end W1s can be moved to the hole TGH provided on the target TG. In this case, the problem is less likely to occur when the hole depth of the hole TGH is shallow. However, when the hole TGH has a deep hole depth or when the diameter of the hole TGH is small and does not change much from the diameter of the electric wire W1, the direction of the tip W1s must be moved in accordance with a predetermined direction in which the electric wire can be inserted into the hole. Specifically, the tip W1s needs to be moved along the extending direction of the central axis TG-a of the hole TGH.
Therefore, as shown in fig. 10, the near position P11 on the extension of the center axis TG-a of the hole TGH is determined in advance, the tip W1s is moved to the near position P11, and the movement is performed so that the tip direction of the wire W1 coincides with the direction of the center axis TG-a of the hole TGH.
As for the moving method, the direction may be made uniform while the tip W1s is moved to the near position P11, or the wire W1 may be rotated so that the direction is made uniform at the near position after the tip W1s is moved in parallel to the near position. The proximal position is preferably in the vicinity of a target position, and when the target position is a hole, it is preferably on a line extending from the central axis of the hole. When the target position is a groove, it is preferably directly above the groove. When the target position is the terminal block, it is preferably on a line extending from the position of the connection terminal in the direction of the connection terminal.
Thereafter, the tip W1s is moved along the line extending along the center axis TG-a, and even when the hole TGH has a deep hole depth or a small diameter, the tip W1s can be inserted into the hole TGH.
Further, when it is judged by a sensor or the like whether or not the wire W1 can be inserted into the hole TGH and the insertion fails, the wire W1 may be returned to the near front position P11, the position and the direction of the tip W1s of the wire W1 may be measured again, the direction of the tip of the wire W1 may be made to coincide with the extending direction of the central axis TG-a of the hole TGH, and the tip W1s may be moved to the hole TGH.
A specific method of measuring the wire distal end bending amount of the wire W1 will be described below. For example, assume a state where the wire W1 having a length of 100mm is extended from the
[ teaching of target position ]
Coordinates of the target position in the robot coordinate system are registered in advance. The
Next, the relative coordinates of the front end of the stick B can be calculated from the
The front end of the lever is moved to a position of a hole into which the electric wire W1 is to be inserted. The front end position of the moved rod becomes the target position. The target position may be set in the hole or in the vicinity of the entrance of the hole. The coordinates of the moved tip of the rod in the robot coordinate system are registered as target positions. Which can be calculated by adding P1 to the coordinates of the manipulator. The location is registered as P0. This concludes the teaching of the target position.
[ movement of electric wire ]
The
The relative coordinates of the leading end W1s from the
Thus, the position of the leading end W1s and the hole TGH coincide.
[ movement of electric wire + Direction Change ]
Here, P2 is the tip coordinate, and therefore, if the tip directions (Rx, Ry, Rz) are calculated simultaneously, the extending direction of the central axis TG-a of the hole TGH can be made to coincide with the extending direction of the tip of the wire W1 as described above. As for the moving method of the leading end W1s, the leading end W1s is moved in parallel to the predetermined near position P11 as described above, the leading end W1s is moved on the line extending along the center axis TG-a after the leading end W s is rotated so that the direction of the leading end of the wire W1 coincides with the direction of the center axis TG-a of the hole TGH at the near position P11. Further, the near position P11 may not be set, and the wire W1 may be moved from the initial position to the hole TGH while being rotated so that the extending direction of the tip end thereof coincides with the extending direction of the central axis TG-a of the hole TGH. The movement method may be any movement method as long as the distal end W1s of the wire W1 is moved to the predetermined position so that the direction of the distal end W1s coincides with the predetermined direction when the distal end W1s reaches the target position P0.
As an example of carrying the wire to the predetermined position, a case where the tip W1s of the wire W1 as the wire is inserted into the hole TGH provided in the target TG has been described, but the wire and the target position are not limited thereto. Specific examples of the target position as the hole include predetermined positions of an inspection device for inspecting a tip of an electric wire, a wire stripper (wirestripper) for stripping a coating of the electric wire, a processing machine for connecting the electric wire and a connector (connector), a processing device for crimping a crimp terminal to the tip of the electric wire, and the like.
As another example, when a wiring is soldered to a substrate, it is necessary to control the direction of the solder in accordance with the direction of the wiring or the position of another component. In this case, the present invention can be used with the wire as the solder and the target position as a predetermined portion of the substrate to be soldered or in the vicinity of a position directly above the predetermined portion of the substrate.
In addition, when the electric wire with the terminal is moved to the terminal block, since there is a restriction in the direction in which the terminal is connected to the terminal block, the electric wire with the terminal must be moved so that the direction of the electric wire with the terminal coincides with a predetermined direction in which the electric wire with the terminal is connected to the terminal block. In this case, the present embodiment can be used when the wire is a terminal-equipped wire and the target position is a predetermined portion of the terminal block or a vicinity of the predetermined portion. In this way, the target position is not limited to the hole, and may be a predetermined inspection position, a processing operation position, a surface, a groove, or a predetermined portion in the vicinity directly above these.
The embodiments disclosed herein are illustrative in all respects and should not be construed as being limiting. The scope of the present invention is indicated by the claims rather than the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are intended to be embraced therein.
Description of the symbols
10: integrated system for holding a thread
20: robot
21: mechanical arm
22: mechanical arm
31: three-dimensional camera (stereo camera)
32: control device
51: first interference region
52: first expanded interference zone
53: second interference region
54: second expanded interference zone
- 上一篇:一种医用注射器针头装配设备
- 下一篇:限位装置、机械臂及机器人