This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2020-31239, filed on Feb. 27, 2020, the entire contents of which are incorporated herein by reference.
Embodiments of the present invention relates to a system and a method.
Robots have been introduced to production sites to automate production. For example, to assemble an object with robot arms, the position of the object needs to be accurately detected. For this purpose, a robotic vision system that receives reflected light of the light emitted to the object and identifies the position of the object has been proposed.
The robotic vision has been designed to receive the reflected light in response to direct light emitted to the object. However, if an obstacle such as a robot arm exists in an optical path along which the direct light propagates, the direct light is not able to reach the object, and the position of the object cannot be accurately specified.
In order to eliminate such blind spots, a number of sensors that detect the distance to the object in a non-contact manner may be disposed to locate the object by considering the detection information of each sensor comprehensively, but this would require a large number of sensors and thus increase the equipment cost. Another possibility is to place a sensor at the tip end of the robot arm that can change the direction of light, but this sensor would take a long time to scan the light and reduce the work efficiency of the robot.
According to one embodiment of a system, including:
a distance measurement apparatus configured to emit a first light in a first direction toward an object or a second light in a second direction different from the first direction toward a reflection member, and to measure a distance to the object in accordance with a first reflected light provided by a reflection of the first light on the object or a second reflected light provided by reflections of the second light on both the reflection member and the object;
a position detector configured to detect a position of the object in accordance with the distance; and
a light direction controller configured to:
Embodiments of a system will be described below with reference to the accompanying drawings. Although the following description will focus on the major constituent components of the system, there may be constituent components and functions in the system that are not illustrated or described. The following description does not exclude any constituent components or functions not illustrated or described herein.
The system 1 of
The distance measurement device 2 measures the distance to the object 6 in accordance with reflected light of the light emitted to the object 6. That is, the distance measurement device 2 emits a first light in a first direction toward an object or a second light in a second direction different from the first direction toward a reflection member, and measures a distance to the object in accordance with a first reflected light provided by a reflection of the first light on the object or a second reflected light provided by reflections of the second light on both the reflection member and the object. A typical example of the distance measurement device 2 is a device using a time of flight (ToF) method or a pattern projection method. An example of a device that uses the ToF method is a light detection and ranging (LiDAR) device. A device using the pattern projection method is referred to as a pattern projection device in the present specification. The outline of the LiDAR device and the pattern projection device will be described later. The distance measurement device 2 may perform distance measurement using light according to an operation principle other than the LiDAR device or the pattern projection device.
The position detecting unit 3 detects the position of the object 6 in accordance with the distance measured by the distance measurement device 2. For example, the position detecting unit 3 detects a three-dimensional coordinate position of the object 6. A specific method for detecting the position of the object 6 will be described later. The position detecting unit 3 may include a virtual image determining unit and a real image conversion unit. The virtual image determining unit determines whether the position of the object 6 detected by the position detecting unit 3 is a virtual image position in accordance with the distance measured by the distance measurement device 2 and the position of the reflecting member 7. When it is determined that the position of the object 6 is the virtual image position, the real image conversion unit converts the virtual image position of the object 6 into the real image position.
A light direction controller corresponding to the light direction changing unit 5 determines whether an obstacle exists on an optical path of the first direction, controls the distance measurement apparatus to emit the first light in the first direction, when the obstacle does not exist on the optical path, and controls the distance measurement apparatus to emit the second light in the second direction, when the obstacle exists on the optical path.
The light direction changing unit 5 determines the presence or absence of an obstacle on an optical path on which the first light L1 emitted in a first direction toward the object 6 reaches the object 6 and, if the presence of the obstacle is determined, emits the second light L2 in a second direction different from the first direction to perform processing of reflecting the second light L2 by the reflecting member 7 and irradiating the object 6. The type of the obstacle is not particularly limited, but any object that reflects, refracts, or absorbs light can be used as the obstacle. Note that an object that transmits light is not included in the obstacle in the present specification. The reflecting member 7 has a reflecting surface 7a. The reflecting surface 7a preferably has a reflectance of 80% or more for the first light L1. The reflecting surface 7a may be any surface such as a wall surface of a building that reflects light. When detecting the position of the object 6, the position detecting unit 3 needs to accurately grasp the position and angle of the reflecting surface 7a of the reflecting member 7. The position and angle of the reflecting surface 7a may be determined in constructing the system 1 of
It is assumed that the emitted first light L1 is emitted to the object 6 and the distance measurement device 2 in
First, the distance measurement device 2 emits first light L1 to the object and receives reflected light of the first light L1 reflected by the object 6 (step S1). In the present specification, the processing of step S1 is also referred to as direct sensing. Next, a distance to the object 6 is measured in accordance with the first light L1 and the received reflected light (step S2). The processing of step S2 is performed by the distance measurement device 2.
Next, in accordance with the distance measured in step S2, it is determined whether an obstacle exists on the optical path of the first light L1 from the distance measurement device 2 to the object 6 (step S3). The processing of step S3 is performed by the light direction changing unit 5. It is assumed that the light direction changing unit 5 comprehends an approximate distance to the object 6 in advance. The light direction changing unit 5 determines the presence of the obstacle when the distance measured by the distance measurement device 2 is largely different from a previously assumed distance or when the distance measurement device 2 cannot receive the second light L2. For example, if the ToF sensor determines the presence of the obstacle between the distance measurement device 2 and the object 6, the light reflected by the obstacle is received by the distance measurement device 2, and thus the light is received at the timing earlier than the expected reception timing. As a result, the light direction changing unit 5 determines the presence of the obstacle between the distance measurement device 2 and the object 6, because the measured distance is shorter than the assumed distance.
If the absence of the obstacle is determined in step S3, the position of the object 6 is detected in accordance with the distance measured by the distance measurement device 2 by direct sensing in step S2 (step S4). The position detecting unit 3 performs the processing of step S4.
When the presence of the obstacle is determined in step S3, the direction of the first light L1 emitted from the distance measurement device 2 is switched by the light direction changing unit 5, and the first light L1 is emitted to the reflecting member 7 (step S5). The first light L1 is reflected by the reflecting member 7 to become the second light L2. Since the second light L2 travels in a direction different from that of the first light L1, there is a high possibility that the second light L2 is emitted to the object 6 without being emitted to the obstacle. The reflected light reflected by the object 6 travels in the opposite direction of the second light L2 and is reflected by the reflecting member 7, and travels in the opposite direction of the first light L1 and is received by the distance measurement device 2 (step S6). In the present specification, the processing of step S6 is referred to as indirect sensing. The distance measurement device 2 measures the distance to the object 6 in accordance with the received reflected light and the original first light L1 (step S7).
Even if indirect sensing is performed, there is a possibility that the obstacle may be present on the optical path of the second light L2 reflected by the reflecting member 7. Therefore, the light direction changing unit 5 determines the presence or absence of the obstacle on the optical path of the second light L2 (step S8).
For example, if the distance measured by the distance measurement device 2 is shorter than the initially assumed distance, it is determined that the obstacle exists between the distance measurement device 2 and the object 6. If the presence of the obstacle is determined, the reflecting angle of the reflecting member 7 is changed or the irradiation position of the first light L1 on the reflecting member 7 is changed in step S5, for example, and then the processing of steps S5 to S8 is repeated. If the presence of the obstacle is determined even after the processing of steps S5 to S8 is repeated n times (n is an integer of 2 or more), the processing of
If it is determined in step S8 that there is no obstacle, the position of the object 6 is detected in accordance with the distance measured by indirect sensing (step S9).
When the first optical scanning unit 9 scans the direction of the first light L1 within the first angular range, the optimum direction of the first light L1 is the direction in which the object 6 can be directly irradiated.
The first optical scanning unit 9 scans the first light L1 within a first angular range having the angle represented by the equation (1) as a central angle.
The second optical scanning unit 10 scans the direction of the second light L2 reflected by the reflecting member 7 within a predetermined second angular range. The second optical scanning unit 10 can switch the direction of the second light L2 within the second angular range, and can project the second light L2 in the optimum direction within the second angular range.
The system 1 of
On the other hand, the indirect sensing is performed if it is determined that the obstacle exists even when the direction of the first light L1 is switched within the first angular range. In this case, the second optical scanning unit 10 switches the direction of the second light L2 within the second angular range, and performs the indirect sensing by using the second light L2 in the direction in which it is determined that no obstacle exists in accordance with the distance measured by the distance measurement device 2 to detect the position of the object 6.
Next, the processing operation of the position detecting unit 3 when the indirect sensing is performed is described in detail. When detecting the position of the object 6 by the indirect sensing, a virtual image position such as illustrated in
As illustrated in
Therefore, the position detecting unit 3 needs to perform processing of converting the virtual image position to the real image position when the indirect sensing is performed. When the reflecting member 7 is disposed on the yz-plane, the coordinates Av of the virtual image and a reflection conversion matrix Hflip for converting the virtual image into the real image are represented by Equation (3). Equation (3) is expanded to four dimensions so that the translation transformation can be expressed.
The conversion of the real image into the coordinates Ar is represented by the inner product of the reflection conversion matrix and the virtual image coordinates, as illustrated in Equation (4):
As illustrated in Equation (4), when the reflecting member 7 is disposed in the yz-plane, the coordinates of the virtual image can be converted into the coordinates of the real image only by inverting the sign of the x-axis component of the coordinates Av of the virtual image.
In practice, the reflecting member 7 can be disposed at any coordinate position. That is, the reflecting member 7 can be non-parallel to either the yz-plane, the xz-plane, or the xy-plane. In this case, after moving the coordinates of the reflecting member 7 to the yz-plane according to the transformation matrix Hmirror, the coordinates of the virtual image are converted to the coordinates of the real image in accordance with Equation (4) and then restored to the original coordinate system with the transformation matrix H−1mirror. When the series of processes is expressed by a determinant, the coordinates Ar of the real image are expressed by the following Equation (5).
A
r
=H
mirror
H
flip
H
mirror
−1
A
v (5)
If the transformation matrix Hmirror is derived at the time of starting up the system 1 of
As will be described later, when the reflecting member 7 has a plurality of reflecting surfaces 7a, it is necessary to calculate the transformation matrix Hmirror for each reflecting surface 7a and calculate the Equation (5).
In
Thus, in the first embodiment, when it is determined that the first light L1 emitted from the distance measurement device 2 has been emitted to the obstacle, the first light L1 is emitted to the reflecting member 7 and the second light L2 reflected by the reflecting member 7 is emitted to the object 6. This can reduce the range of the blind spot of the object 6 when detecting the position of the object 6 using light, and the position of the object 6 can be accurately detected even when there is an obstacle in the vicinity of the object 6. According to the present embodiment, it is not necessary to increase the number of sensors that project light, so that the equipment cost of the system 1 can be reduced.
A second embodiment is for detecting the position of the object 6 by combining direct sensing and reflection sensing in the absence of the obstacle.
The block configuration of the system 1 according to the second embodiment is the same as that of
Next, in steps S15 to S18, the distance to the object 6 is measured by indirect sensing, and the presence or absence of the obstacle is determined in accordance with the distance measured by the distance measurement device 2, as in steps S5 to S8 in
Next, the position of the object 6 is detected in accordance with the distance information saved in steps S14 and S19.
If the presence of the obstacle is determined in step S13 by both direct and indirect sensing, it is desirable to repeat the processing of steps S15 to S18 such as by changing the direction of the second light L2 reflected by the reflecting member 7.
As described above, in the second embodiment, even when the absence of the obstacle is determined by the direct sensing, the result of distance measurement by indirect sensing as well as the result of distance measurement by direct sensing are taken into account to detect the position of the object 6, so that the position of the object 6 can be accurately detected.
In a third embodiment, the reflecting member 7 has a plurality of reflecting surfaces 7a.
The distance measurement device 2 can switch the direction of the first light L1 in the first angular range by the first optical scanning unit 9, and can project the first light L1 to the reflecting surface 7a selected from the plurality of reflecting surfaces 7a. As can be seen from
An example in which the reflecting member 7 has a first reflecting surface 7b, a second reflecting surface 7c, and a third reflecting surface 7d is described below. When performing the indirect sensing, the distance measurement device 2 first emits the first light L1 toward the first reflecting surface 7b. The first light L1 is reflected by the first reflecting surface 7b and becomes the second light L2 and proceeds toward the object 6. If the obstacle is irradiated with the second light L2, the light does not reach the distance measurement device 2, and the light direction changing unit 5 determines the presence of the obstacle.
Next, the distance measurement device 2 emits the first light L1 toward the second reflecting surface 7c. The second light L2 reflected by the second reflecting surface 7c travels toward the object 6. If the second light L2 is also emitted to the obstacle, the distance measurement device 2 emits the first light L1 toward the third reflecting surface 7d. If the second light L2, reflected by the third reflecting surface 7d, reaches the object 6 without being emitted to the obstacle, the distance measurement device 2 can use the third reflecting surface 7d to perform indirect sensing.
Thus, the third embodiment provides the plurality of reflecting surfaces 7a on the reflecting member 7, so that the distance measurement device 2 can switch the direction of the second light L2 reflected from the reflecting member 7 in the plurality of directions by selecting any one of the plurality of reflecting surfaces 7a to emit the first light L1. In the case of the third embodiment, it is not necessary for the light direction changing unit 5 to rotate the reflecting member 7, so that the configuration of the reflecting member 7 can be simplified.
In a fourth embodiment, a range where the object 6 may exist is used as a sensing object space and its coordinates are registered in advance.
The reflecting member 7 has a plurality of reflecting surfaces 7a as in the third embodiment. For simplification,
The distance measurement device 2 first performs distance measurement by direct sensing using the first light L1. The example of
Next, the distance measurement device 2 performs distance measurement by indirect sensing using the second light L2. More specifically, the distance measurement device 2 irradiates the first reflecting surface 7b with the first light L1 and the reflected light is emitted as the second light L2 to the object 6. In the example of
Next, the distance measurement device 2 irradiates the second reflecting surface 7c with the first light L1 and the reflected light is emitted as the second light L2 to the object 6. In the example of
As described above, in the fourth embodiment, the region in which the object 6 is present is set as the sensing object space 13, and its coordinate information is known in advance, thus facilitating identification as to whether the light received by the distance measurement device 2 is the reflected light from the sensing target space 13 or the reflected light from the obstacle 14.
The fifth embodiment illustrates a specific configuration of the distance measurement device 2 according to the first to fourth embodiments.
The light emitting unit 21 emits the first light L1 in a predetermined direction. The light emitting unit 21 intermittently transmits the pulsed first light L1 at predetermined intervals. Similarly to
The light receiving unit 22 receives the light from the object 6. More specifically, the light receiving unit 22 includes a photodetector, an amplifier, a light receiving sensor, an analog-to-digital (A/D) converter, and the like, which are not illustrated. The photodetector receives part of emitted laser light and converts it into an electric signal. The amplifier amplifies the electric signal output from the photodetector. The light receiving sensor converts the received laser light into an electric signal. The A/D converter converts the electric signal output from the light receiving sensor into a digital signal.
The distance measurement unit 23 measures the distance from the distance measurement unit 23 to the object 6 in accordance with a time difference between a light emitting timing of the first light L1 emitted by the light emitting unit 21 and a light receiving timing of the light received by the light receiving unit 22. When using laser light as the electromagnetic wave, the distance measurement unit 23 measures the distance in accordance with the following equation (6).
Distance=speed of light×(received timing of reflected light-transmitted timing)/2 (6)
The distance measurement device 2 may measure the distance by a method other than the ToF method illustrated in
Since the light receiving pattern changes depending on the surface shape of the object 6 and the distance to the object 6, the distance measurement unit 26 can accurately detect the distance to the object 6.
The distance measurement device 2 in the system 1 according to the first to fourth embodiments described above can measure the distance by the ToF method of
Number | Date | Country | Kind |
---|---|---|---|
2020-031239 | Feb 2020 | JP | national |