Control device

The control device facilitates continuous imaging of markers by controlling a robot to navigate around obstacles, simplifying the process and eliminating the need for pre-set reference points.

JP2024154891APending Publication Date: 2024-10-31DAIHEN CORP

Patent Information

Application Number
JP2023069103
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing systems require complex advance preparation with multiple reference points to measure the position of a movable object, complicating the process of continuous imaging of markers.

Method used

A control device that controls a robot with a manipulator and camera to identify and move around obstacles, ensuring continuous imaging of markers by determining the camera's direction to avoid occlusions.

Benefits of technology

Enables continuous imaging of moving markers without the need for pre-set reference points, improving convenience and efficiency in marker tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154891000001_ABST
    Figure 2024154891000001_ABST
Patent Text Reader

Abstract

To provide a control device which can continuously photograph a moving mark.SOLUTION: A control device 3, which controls a robot 1 including a manipulator 10 for moving a camera 20 for photographing images of a marker 5, comprises: a photographed image acquisition part 31 which acquires a photographed image photographed by the camera part 2; an identification part 32 which identifies a shield area of the marker when a part of the marker 5 is shielded by a shield; a determination part 33 which determines a direction of movement of the camera part 2 so that the whole of the marker 5 is photographed on the basis of the identified shield region identified by the identification part 32 when a part of the marker 5 is shielded by the shield; and a control part 34 which controls the robot 1 so that the camera part 2 moves in a direction of movement determined by the determination part 33. Thus, the marker 5 can be continuously photographed.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control device that controls a robot to move a camera that photographs a marker so that photography of the marker can be continued. [Background technology]

[0002] Conventionally, the position of a movable object is acquired by sensing the object, such as by photographing the object. For example, a marker is attached to the object, and the marker's position is acquired by photographing the marker. By acquiring the position in this manner, even if the object to which the marker is attached moves, the change in the marker's position according to the movement can be acquired.

[0003] In addition, if there is an obstruction between a movable object and a device that acquires the position of the object by sensing, such as photographing, it becomes impossible to acquire the position of the object. In order to solve such a problem, a device that measures the object is sometimes moved (for example, see Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication No. 2021-099681 Summary of the Invention [Problem to be solved by the invention]

[0005] The system described in Patent Document 1 is a system in which the position of a first mobile body that can move by itself is measured by a second mobile body that can move by itself, and when the first mobile body moves into an area that cannot be measured by the second mobile body, the second mobile body moves between reference points to measure the position of the first mobile body. In this way, even if the first mobile body enters an area that cannot be measured by the second mobile body, the position of the first mobile body can be measured by moving the second mobile body.

[0006] However, the system described in Patent Document 1 requires that a plurality of reference points, which are positions to which the second moving body will move, be set in advance, and there is a problem in that the advance preparations required for this are cumbersome.

[0007] Generally speaking, there has been a demand for a simpler method for continuously capturing images of markers, for example to obtain the positions of markers that may move.

[0008] The present invention has been made in response to the above-mentioned circumstances, and has an object to provide a control device that enables continuous imaging of a moving marker. [Means for solving the problem]

[0009] In order to achieve the above-mentioned object, a control device according to one aspect of the present invention is a control device that controls a robot having a manipulator for moving a camera unit having a camera for photographing a marker, and includes: an image acquisition unit that acquires an image captured by the camera unit; an identification unit that uses the captured image to identify an obscured area of ​​the marker when part of the marker is obscured by an obstruction; a determination unit that determines the movement direction of the camera unit so that the entire marker is photographed based on the obscured area identified by the identification unit when part of the marker is obscured by an obstruction; and a control unit that controls the robot so that the camera unit moves in the movement direction determined by the determination unit. Effect of the Invention

[0010] According to a control device of one aspect of the present invention, when part of a marker is obstructed, a camera unit having a camera for photographing the marker can be moved so that the entire marker is photographed, thereby making it possible to continuously photograph the moving marker. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a schematic diagram showing a configuration of a robot control system according to an embodiment of the present invention; [Diagram 2] FIG. 13 shows an example of a marker in the embodiment. [Diagram 3] FIG. 13 shows an example of a support for a marker in the embodiment. [Figure 4] FIG. 13 shows an example of a captured image of a partially blocked marker in the embodiment; [Diagram 5] FIG. 13 is a diagram for explaining the determination of the movement direction in the embodiment; [Figure 6] A flowchart showing the operation of the control device according to the embodiment. [Figure 7] FIG. 13 shows another example of the marker in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] The control device according to the present invention will be described below using an embodiment. In the following embodiments, components and steps with the same reference numerals are the same or equivalent, and may not be described again. The control device according to this embodiment controls a robot for moving a camera so that the entire marker is continuously photographed.

[0013] 1 is a block diagram showing the configuration of a robot control system 100 according to this embodiment. The robot control system 100 according to this embodiment includes a robot 1 having a manipulator 10, a camera unit 2 having a camera 20 for photographing a marker 5, and a control device 3 for controlling the robot 1. The camera unit 2 is moved by the manipulator 10. In this embodiment, the case where the robot 1 is the manipulator 10 itself and the camera unit 2 is the camera 20 itself will be mainly described, and other cases will be described later.

[0014] The manipulator 10 is for moving the camera unit 2, and may have, for example, a plurality of arms connected by joints driven by a motor. The manipulator 10 may be, for example, a manipulator for a vertical articulated robot, or may be a manipulator for a horizontal articulated robot. From the viewpoint of realizing a higher degree of freedom, the manipulator 10 is preferably a manipulator for a vertical articulated robot. The number of axes of the manipulator 10 does not matter. For example, the camera unit 2 may be attached to the tip of the manipulator 10, or may be attached to a position other than the tip. The base end side of the manipulator 10 may be fixed to, for example, a floor surface, a wall, a ceiling, or the like. The manipulator 10 may also be used for purposes other than moving the camera unit 2. For example, the manipulator 10 may be a manipulator for welding. In this case, the camera unit 2 may be considered to be attached to the manipulator 10 for welding.

[0015] The camera 20 may be, for example, a monocular camera or a stereo camera. In this embodiment, the case where the camera 20 is a monocular camera will be mainly described. The captured image acquired by the camera 20 may be, for example, a grayscale image or a color image. For example, when the marker 5 has a plurality of colors, it is preferable that the captured image is a color image. The camera 20 may capture, for example, a still image or a video. In the latter case, one frame included in the video may be used by the control device 3 as the captured image.

[0016] The control device 3 includes a photographed image acquisition unit 31, an identification unit 32, a determination unit 33, a control unit 34, an accumulation unit 35, a position acquisition unit 36, a memory unit 37, and an output unit 38. The control device 3 is preferably connected to the camera unit 2 and the robot 1 by wire or wirelessly so as to acquire the photographed images taken by the camera unit 2 and to control the operation of the robot 1.

[0017] The photographed image acquisition unit 31 acquires a photographed image photographed by the camera unit 2. It is preferable that the photographed image acquisition unit 31 repeatedly acquires the photographed image. For example, the photographed image acquisition unit 31 may acquire the photographed image periodically. For example, the photographed image acquisition unit 31 may acquire the photographed image by transmitting an instruction to acquire the photographed image to the camera unit 2 and receiving the photographed image transmitted from the camera unit 2 in response to the instruction. In addition, the photographed image acquisition unit 31 may acquire the photographed image by accepting the photographed image from the camera unit 2 periodically or irregularly. The acquired photographed image may be stored in a recording medium such as the storage unit 37. It is preferable that the photographed image includes a marker 5.

[0018] As an example, as shown in FIG. 2(a), the marker 5 may have a plurality of sub-markers 6-1 to 6-4 written on a sheet-like member. When the sub-markers 6-1 to 6-4 are not particularly distinguished from each other, they may be called sub-markers 6. The same applies to the sub-markers 6-5 and the like described below. The plurality of sub-markers 6 may be, for example, figures having different attributes, and may be distinguished from each other in the captured image. The attributes may be, for example, color, shape, size, pattern, and the like. By including sub-markers 6 with different attributes in the marker 5, for example, when a certain sub-marker 6 is hidden by an obstruction and is not included in the captured image, the position of the sub-marker 6 can be estimated based on the positions of other sub-markers 6 with different attributes. FIG. 2(a) shows a marker 5 having four sub-markers 6-1 to 6-4 each having a different shape, and FIG. 2(b) shows a marker 5 having four sub-markers 6-5 to 6-8 each having a different color. In FIG. 2(b), differences in color are indicated by differences in shading. Furthermore, the multiple sub-markers 6 possessed by the marker 5 may each have a different pattern. The pattern may be, for example, a hatched or shading pattern. The number of sub-markers 6 possessed by the marker 5 may be, for example, two or more, three or more, or four or more. In this embodiment, a case in which the marker 5 has four sub-markers 6 will be mainly described.

[0019] The marker 5 may have, for example, three or more feature points. For example, like the marker 5 shown in FIG. 2(a) and FIG. 2(b), the feature points may be indicated by dot-like figures P1 to P8 arranged for each sub-marker 6. That is, as an example, one sub-marker 6 may have one feature point. Also, when the sub-marker 6 included in the marker 5 is polygonal, the vertices of the polygonal sub-marker 6 may be feature points. Also, the planar marker 5 may be, for example, square as shown in FIG. 2, rectangular, or other shapes. As an example, the marker 5 may be one whose orientation can be uniquely specified. For example, when the marker 5 has a plurality of sub-markers 6 each having a different attribute, it is usually considered that the orientation can be uniquely specified.

[0020] As an example, the planar marker 5 may be supported by a support 7 as shown in Figures 3(a) and 3(b). The support 7 may have a plate-like member 7a to which the planar marker 5 is attached, and a rod-like member 7b connected to the plate-like member 7a. The rod-like member 7b may be attached, for example, to the center of gravity of the surface of the plate-like member 7a opposite to the surface to which the marker 5 is attached, so as to be perpendicular to the surface.

[0021] The identification unit 32 uses the captured image acquired by the captured image acquisition unit 31 to identify the covered area of ​​the marker 5 when a part of the marker 5 is covered by a shielding object. The covered area of ​​the marker 5 may be, for example, the entire area of ​​the marker 5 that is covered by the shielding object, or a part of the area that is covered by the shielding object. The identification unit 32 may, for example, identify the area of ​​the marker 5 in the captured image, compare a comparison image that is an image of the identified area with a reference image that is an image of the marker 5 stored in a recording medium in advance, and identify an area that is missing in the comparison image compared to the reference image as the covered area. The identification of the area of ​​the marker 5 in the captured image may be performed, for example, by pattern matching using the reference image as a pattern, or, when the marker 5 has a characteristic color, by identifying an area of ​​that color in the captured image, or by other methods. The identification unit 32 may also identify the covered area by, for example, identifying an area of ​​the sub-marker 6 that is at least partially not included in the captured image. For example, when the attributes of the sub-markers 6 included in the marker 5 are different from each other, the identification unit 32 may identify the region of the sub-marker 6 having a specific attribute (for example, the circular sub-marker 6-1 in FIG. 2(a)) as the occluded region when the comparison target image does not include the entire sub-marker 6 having the specific attribute. Furthermore, the identification unit 32 may identify a part of the sub-marker 6 as the occluded region when the comparison target image does not include a part of the sub-marker 6 having the specific attribute. In this case, for example, when the marker 5 is partly occluded by an obstruction 50 as in the photographed image shown in FIG. 4, the identification unit 32 may identify the left half of the sub-marker 6-1 as the occluded region. When the attributes of the sub-markers 6 included in the marker 5 are different from each other, the identification unit 32 may identify the region of the sub-marker 6 not included in the photographed image by using, for example, the attribute of the sub-marker 6 included in the photographed image and the positional relationship of the sub-markers 6 in the marker 5.In addition, for example, when the comparison image does not include at least a portion of a specific sub-marker 6, the identification unit 32 may perform contour extraction in the comparison image, and determine as an occlusion area an area that is included within the same contour as at least a portion of the specific sub-marker 6 that is not included in the comparison image.

[0022] When a part of the marker 5 is covered by a shielding object, the determination unit 33 determines the movement direction of the camera unit 2 so that the entire marker 5 is captured, based on the covered area identified by the identification unit 32. The determined movement direction may be, for example, the direction of movement, or the position of the camera unit 2 after the movement. Even in the latter case, the direction of movement of the camera unit 2 is determined as a result. The determination of the movement direction based on the identified covered area may be performed, for example, by determining the movement direction from the covered area toward the area of ​​the marker 5 that is not covered. This is because it is considered that the camera unit 2 can capture a larger area of ​​the marker 5 by moving in the direction from the covered area toward the area of ​​the marker 5 that is not covered. The movement direction and the position after the movement may be indicated, for example, by the coordinate system of the robot 1. The movement direction may be determined, for example, as follows. Here, we will explain the process of determining the direction of movement when a part of the sub-marker 6-1, for example the left half of the sub-marker 6, is obstructed by an obstruction 50, as in the captured image shown in Figure 4, with the left half of the sub-marker 6-1 being treated as the obstructed area and the right half being treated as the unobstructed area.

[0023] First, pixels in the occluded area are regarded as invisible pixels, and pixels in the unoccluded area are regarded as visible pixels, as shown by sub-marker 6-1 on the left side of Fig. 5. The right side of Fig. 5 shows the estimation results of the state of each pixel after the camera 20 is moved by one pixel in each of the four directions, up, down, left, and right. Pixels that are changed from visible pixels to invisible pixels in response to the movement are regarded as invisible-changed pixels. Furthermore, pixels that are changed from invisible pixels to visible pixels in response to the movement are regarded as visible-changed pixels. Furthermore, pixels whose visibility or invisible status is unknown in response to the movement are regarded as unknown pixels.

[0024] For example, when the camera 20 is moved one pixel downward, each pixel below the sub-marker 6-1 becomes an unknown pixel. When the camera 20 is moved one pixel to the left, each pixel on the left side becomes an unknown pixel and some of the visible pixels become invisible changed pixels. When the camera 20 is moved one pixel upward, each pixel on the top side becomes an unknown pixel. When the camera 20 is moved one pixel to the right, each pixel on the right side becomes an unknown pixel and some of the invisible pixels become visible changed pixels.

[0025] Then, the determination unit 33 may determine the direction in which the number of visibly changed pixels is greatest in the state of each pixel of the sub-marker 6-1 after the camera 20 has been moved by one pixel as the movement direction of the camera unit 2. In the example of Fig. 5, the number of visibly changed pixels is greatest when the camera 20 has moved to the right, so the determination unit 33 may determine the movement direction of the camera unit 2 to be the rightward direction. Note that, for example, when the camera 20 is moved not only up, down, left, and right but also diagonally, the determination unit 33 may identify changes in visible pixels and invisible pixels before and after the movement and determine the direction in which the number of visibly changed pixels is greatest as the movement direction of the camera unit 2.

[0026] The movement direction thus determined is the movement direction in the captured image, i.e., the movement direction in the coordinate system of the camera 20. Therefore, the determination unit 33 may convert this movement direction in the coordinate system of the camera 20 into a movement direction in the coordinate system of the robot 1. Since the relationship between the coordinate system of the camera 20 and the coordinate system of the robot 1 (for example, a homogeneous transformation matrix indicating the transformation between both coordinate systems) is usually known, the determination unit 33 may convert the movement direction in the coordinate system of the camera 20 into a movement direction in the coordinate system of the robot 1 using the relationship between the two coordinate systems.

[0027] The determination unit 33 may determine the movement direction by another method. For example, when visible pixels and invisible pixels are identified as shown by the sub-marker 6-1 on the left side of Fig. 5, the determination unit 33 may identify the position of the center of gravity of the visible pixel area and the position of the center of gravity of the invisible pixel area, and determine the direction from the position of the center of gravity of the invisible pixel area to the position of the center of gravity of the visible pixel area as the movement direction of the camera unit 2.

[0028] Here, the case where the movement direction is determined using visible pixels and invisible pixels included in one sub-marker 6-1 has been described, but the determination unit 33 may determine the movement direction in a similar manner using visible pixels and invisible pixels included in one marker 5. The amount of movement in the determined movement direction may be, for example, predetermined, or may be determined by the determination unit 33. In the former case, for example, the entire marker 5 may be included in the captured image by repeating the movement of the camera unit 2 according to the predetermined amount of movement. In the latter case, the amount of movement determined by the determination unit 33 may be determined according to, for example, the proportion of the marker 5 that is blocked by an obstruction. As an example, the greater the proportion of the marker 5 that is blocked by an obstruction, the greater the amount of movement determined.

[0029] The determination unit 33 may also determine, for example, the orientation of the camera unit 2. The orientation of the camera unit 2 may be, for example, the orientation of the optical axis of the camera 20. As an example, the determination unit 33 may determine the orientation of the camera unit 2 so that the marker 5 is located at the center of the captured image. The orientation of the camera unit 2 may be determined, for example, by determining the posture of the camera unit 2 in the coordinate system of the robot 1. Even if the entire marker 5 is included in the captured image, the determination unit 33 may determine, for example, the movement direction of the camera unit 2 according to the movement of the marker 5. In this case, as an example, the movement direction of the camera unit 2 may be determined so that the relative positional relationship between the marker 5 and the camera unit 2 is constant. The relative positional relationship between the marker 5 and the camera unit 2 may be specified, for example, using a homogeneous transformation matrix indicating a transformation between the coordinate system of the marker 5 and the coordinate system of the camera unit 2, which is acquired by the position acquisition unit 36 ​​and will be described later.

[0030] The control unit 34 controls the robot 1 so that the camera unit 2 moves in the movement direction determined by the determination unit 33. The control unit 34 may control the robot 1 so that the camera unit 2 moves according to a predetermined movement amount or a movement amount determined by the determination unit 33, for example. The control of the robot 1 may be, for example, control of the angle of each joint of the manipulator 10. For example, when the movement direction and movement amount in the coordinate system of the robot 1 are determined, the control unit 34 may calculate the angle of each joint of the manipulator 10 according to the position of the camera unit 2 after movement by inverse kinematics, and control the motor of each joint of the manipulator 10 so that the angle of each joint becomes the calculated value.

[0031] The accumulation unit 35 accumulates the history of the position of the camera unit 2 in the storage unit 37. The accumulation unit 35 may repeatedly accumulate the latest position of the camera unit 2, so that the history of the position of the camera unit 2 is stored in the storage unit 37. The position of the camera unit 2 may be, for example, a position in the coordinate system of the robot 1. The accumulation unit 35 may receive the position of the camera unit 2 from the control unit 34. The accumulation unit 35 may accumulate the position of the camera unit 2 in the storage unit 37 every time the position of the camera unit 2 moves a predetermined distance, for example, or may periodically accumulate the position of the camera unit 2 in the storage unit 37. The history of the position of the camera unit 2 accumulated by the accumulation unit 35 may be used by, for example, the determination unit 33. When the marker 5 is entirely blocked, the determination unit 33 may determine the movement direction of the camera unit 2 so that the latest movement indicated by the history of the position of the camera unit 2 accumulated by the accumulation unit 35 is continued. The case where the marker 5 is entirely blocked may be, for example, a case where the identification unit 32 cannot detect the marker 5 in the captured image. Furthermore, the position of the camera unit 2 may be, for example, the position of the camera unit 2 in the coordinate system of the robot 1. More specifically, the determination unit 33 may determine the moving direction of the camera unit 2 by extrapolating the history of the position of the camera unit 2 for a latest predetermined time period or the history of the latest predetermined distance from among the accumulated history of the position of the camera unit 2.

[0032] The position acquisition unit 36 ​​acquires a position corresponding to the marker 5 by using the photographed image of the marker 5 acquired by the photographed image acquisition unit 31. In addition to the position corresponding to the marker 5, the posture corresponding to the marker 5 may also be acquired. This position and posture are usually the position and posture in the real space. The position and posture in the real space may be the position and posture in the coordinate system of the robot 1, for example. In this embodiment, this case will be mainly described. The position and posture corresponding to the marker 5 may be, for example, the position and posture of the marker 5, or the position and posture of a location having a predetermined positional relationship with the marker 5. In the former case, for example, the position P0 of the center of gravity of the marker 5 and the posture (angle) of the marker 5 in the normal direction may be acquired. In the latter case, for example, the position of the tip 7c of the rod-shaped member 7b of the support 7 and the posture of the rod-shaped member 7b in the longitudinal direction may be acquired according to the marker 5 supported by the support 7 as shown in FIG. 3.

[0033] The position acquisition unit 36 ​​may acquire the position and orientation of the marker 5 by using, for example, three or more feature points of the marker 5 included in the captured image. In this case, for example, the distance between the three or more feature points of the marker 5 may be known. More specifically, the position acquisition unit 36 ​​may acquire a homogeneous transformation matrix indicating the transformation between the coordinate system of the camera 20 and the coordinate system of the marker 5 by using three or more feature points included in the captured image. Note that since the acquisition of the homogeneous transformation matrix using the feature points is publicly known, a detailed description thereof will be omitted. Also, as described above, since the homogeneous transformation matrix indicating the transformation between the coordinate system of the camera 20 and the coordinate system of the robot 1 is known, the position acquisition unit 36 ​​can acquire the homogeneous transformation matrix indicating the transformation between the coordinate system of the marker 5 and the coordinate system of the robot 1. By using this homogeneous transformation matrix, the position acquisition unit 36 ​​can acquire, for example, the position and orientation of the marker 5, or the position and orientation of a portion (for example, the tip 7c of the support 7) that has a predetermined positional relationship with the marker 5. The position and orientation corresponding to the marker 5 acquired by the position acquisition unit 36 ​​may be stored in the memory unit 37.

[0034] In the storage unit 37, for example, the position history of the camera unit 2 and the position and posture according to the marker 5 acquired by the position acquisition unit 36 ​​may be stored. In addition, the captured image acquired by the captured image acquisition unit 31 and information used in each process, for example, information indicating the relationship between the coordinate system of the camera 20 and the coordinate system of the robot 1, may be stored in the storage unit 37. The process by which information is stored in the storage unit 37 is not important. For example, information may be accumulated in the storage unit 37 by the accumulation unit 35 or the position acquisition unit 36, information may be stored in the storage unit 37 via a recording medium, information transmitted via a communication line or the like may be stored in the storage unit 37, or information inputted via an input device may be stored in the storage unit 37. The storage unit 37 is preferably realized by a non-volatile recording medium, but may be realized by a volatile recording medium. The recording medium may be, for example, a semiconductor memory or a magnetic disk.

[0035] The output unit 38 may output, for example, a position or a posture according to the marker 5 acquired by the position acquisition unit 36. The output unit 38 may also output other information, for example, a photographed image acquired by the photographed image acquisition unit 31. The output unit 38 may output the instructed information when an output instruction is received by the control device 3. Here, this output may be, for example, a display on a display device (for example, a liquid crystal display or an organic EL display), a transmission to a predetermined device via a communication line, storage in a recording medium, or a transfer to another component. The output unit 38 may or may not include a device that performs output (for example, a display device or a communication device). The output unit 38 may be realized by hardware, or may be realized by software such as a driver that drives those devices.

[0036] In addition, the identification unit 32 may identify the occluded area by, for example, converting a reference image (such as an image such as that shown in Figure 2(a)) which is an image of the marker 5 using information indicating the relationship between the coordinate system of the marker 5 acquired by the position acquisition unit 36 ​​and the coordinate system of the camera 20 to reproduce the image of the marker 5 contained in the captured image, and comparing the reproduced image of the marker 5 with the marker 5 contained in the captured image.

[0037] Furthermore, the determination unit 33 may determine the movement direction in, for example, the coordinate system of the marker 5. For example, when a part of the marker 5 is hidden by an obstruction 50 as shown in Fig. 4, the determination unit 33 may determine the movement direction of the marker in Fig. 4 from the left to the right. In this case, the determination unit 33 may convert the movement direction in the coordinate system of the marker 5 into the movement direction in the coordinate system of the robot 1 by using, for example, information indicating the relationship between the coordinate system of the marker 5 acquired by the position acquisition unit 36 ​​and the coordinate system of the camera 20, and information indicating the known relationship between the coordinate system of the camera 20 and the coordinate system of the robot 1.

[0038] Next, the operation of the robot control system 100 will be described with reference to the flowchart of FIG.

[0039] (Step S101) The photographed image acquisition unit 31 judges whether or not to acquire a photographed image. If the photographed image is to be acquired, the process proceeds to step S102. If not, the process of step S101 is repeated until it is determined that the photographed image is to be acquired. Note that the photographed image acquisition unit 31 may, for example, periodically judge that the photographed image is to be acquired.

[0040] (Step S102) The photographed image acquisition unit 31 acquires a photographed image from the camera 20.

[0041] (Step S103) The position acquisition unit 36 ​​identifies the marker 5 included in the acquired photographed image, and acquires the position and orientation corresponding to the marker 5 using the feature points of the identified marker 5. The acquired position and orientation may be stored in, for example, the storage unit 37. Note that if the marker 5 is not included in the photographed image, this process may be skipped.

[0042] (Step S104) The identification unit 32 identifies the marker 5 included in the acquired photographed image, and identifies the masked area of ​​the marker 5. Note that this step may be skipped if the entire marker 5 is included in the photographed image. Also, if the marker 5 is not included in the photographed image, the entire marker 5 may be considered to be masked.

[0043] (Step S105) The determination unit 33 judges whether or not a blocked area has been identified in step S104. If a blocked area has been identified, the process proceeds to step S106, and if not, that is, if the entire marker 5 is included in the captured image, the process returns to step S101. Note that if the entire marker 5 is blocked, the process proceeds to step S106, assuming that a blocked area has been identified.

[0044] (Step S106) The determination unit 33 determines whether or not the entire marker 5 is occluded. If the entire marker 5 is occluded, that is, if the marker 5 is not included in the captured image, the process proceeds to step S108, and if not, the process proceeds to step S107.

[0045] (Step S107) The determination unit 33 determines the movement direction of the camera unit 2 so that the entire marker 5 is captured, based on the identified blocked area.

[0046] (Step S108) The determination unit 33 determines the movement direction of the camera unit 2 so that the latest movement indicated by the history of the positions of the camera unit 2 stored by the storage unit 35 is continued.

[0047] (Step S109) The control unit 34 controls the robot 1 so that the camera unit 2 moves in the movement direction determined by the determination unit 33. The robot 1 moves the camera unit 2 in response to the control.

[0048] (Step S110) The accumulation unit 35 accumulates the position of the camera unit 2 after the movement in the storage unit 37. Then, the process returns to step S101.

[0049] In the flowchart of FIG. 6, when there is no occluded area, the robot 1 is not controlled and the acquisition of the captured image is repeated, but this is not necessarily the case. Even when there is no occluded area, the robot 1 may be controlled so that the position and direction of the camera 20 are changed so that the position of the marker 5 is near the center in the captured image. Although not included in the flowchart of FIG. 6, the output unit 38 may output the position and orientation in response to, for example, an instruction to output the position and orientation stored in the storage unit 37 being received by the control device 3. The order of the processing in the flowchart of FIG. 6 is an example, and the order of each step may be changed as long as the same result can be obtained. In the flowchart of FIG. 6, the processing ends due to an interruption such as power off or processing end.

[0050] Next, the operation of the robot control system 100 according to this embodiment will be described using a specific example. In this specific example, a case will be described in which a welding path is taught using the support 7 shown in FIG. 3. In this case, the worker performing the teaching operation may hold the support 7 by hand and move the support 7 so that the tip 7c of the support 7 is the position of the welding path and the attitude of the rod-shaped member 7b is the attitude of the tip of the welding torch. When the robot control system 100 is used, the orientation of the camera 20 may be adjusted so that it can photograph the marker 5.

[0051] The captured image captured by the camera 20 is periodically acquired by the captured image acquisition unit 31 of the control device 3, and is passed to the identification unit 32 and the position acquisition unit 36 ​​(steps S101 and S102). When the captured image is received, the position acquisition unit 36 ​​identifies the marker 5 included in the captured image, and stores a set of the position of the tip 7c of the support 7 and the posture of the rod-shaped member 7b of the support 7 in the storage unit 37 using the feature points of the marker 5 (step S103). The identification unit 32 also identifies the marker 5 included in the captured image, and identifies the blocked area of ​​the marker 5 (step S104). In this case, it is assumed that there is no blocked area of ​​the marker 5. Then, the robot 1 is not controlled, and the process of acquiring the captured image and acquiring the position and posture is repeated (steps S101 to S105). In this case, the robot 1 may be controlled so that the position of the marker 5 is near the center of the captured image, as described above.

[0052] Suppose that a part of the marker 5 is covered by a shield while the worker is moving the support 7. Then, the covered area of ​​the marker 5 is identified in the captured image (steps S101 to S104), and the moving direction of the camera unit 2 is determined accordingly (steps S105 to S107). This moving direction may be determined, for example, as described with reference to FIG. 5. Then, the control unit 34 controls the robot 1 so that the camera unit 2 moves in the determined moving direction (step S109). The accumulation unit 35 accumulates the position of the camera unit 2 after the movement in the storage unit 37 (step S110). If the covered area of ​​the marker 5 disappears in response to this movement of the camera unit 2, the process of acquiring the captured image and the like is repeated (steps S101 to S105). On the other hand, if the marker 5 is still partially blocked at the position of the camera unit 2 after the movement, the process of moving the camera unit 2 and the like is repeated (steps S101 to S107, S109, S110).

[0053] Furthermore, if the marker 5 is entirely covered by an obstruction while the worker is moving the support 7, the determination unit 33 estimates the future movement direction of the camera unit 2 using the position history of the camera unit 2 stored in the storage unit 37. Then, the control unit 34 controls the robot 1 so that the camera unit 2 moves in the estimated movement direction, and the position after the movement is accumulated (steps S101 to S106, S108 to S110). For example, if the marker 5 is gradually covered by an obstruction and finally the entire marker 5 is covered, such processing is performed, making it possible to photograph the marker 5 again.

[0054] In this manner, the positions and postures of the markers 5 are sequentially recorded to accumulate teaching data regarding the welding path. The output unit 38 may output the teaching data, which may then be used in an external device, or, if the manipulator 10 is for welding, the control unit 34 may control the robot 1 according to the teaching data to perform welding. In the latter case, for example, the robot control system 100 may include a configuration required for welding, such as a welding power source.

[0055] As described above, according to the robot control system 100 of the present embodiment, it is possible to continuously capture the moving marker 5, and as a result, it is possible to continuously record the position and posture of the marker 5. Even if it becomes impossible to capture the marker 5, it is considered that the entire marker 5 will not be instantly captured, but a part of the marker 5 will gradually become hidden. Therefore, when a part of the marker 5 begins to be hidden, the robot 1 is controlled to expand the area of ​​the marker 5 that can be captured by the camera 20, so that it is possible to continue capturing the marker 5 and acquiring its position and posture. Furthermore, even if the entire marker 5 is blocked, it is also possible to move the camera unit 2 so that the marker 5 can be captured again by using the position history of the camera unit 2. In addition, since it is possible to continuously capture the marker 5 without preparing a reference point in advance as in the above-mentioned Patent Document 1, the convenience of the user is improved.

[0056] In the present embodiment, the camera unit 2 has only the camera 20 for capturing a captured image. However, the camera unit 2 may further have a depth camera for acquiring a depth image. It is preferable that the camera 20 and the depth camera capture captured images and depth images of the same area. That is, it is preferable that the distance (depth) can be specified by the depth image at each position in the captured image. The type of the depth camera is not important, but it may be, for example, a stereo camera that measures the distance, a ToF (Time of Flight) that measures the distance, or another method that measures the distance. For example, when the camera 20 and the depth camera are stereo cameras, the camera 20 that captures the captured image and the depth camera may be configured as one body.

[0057] When the camera unit 2 has a depth camera, the position acquisition unit 36 ​​may, for example, acquire the position and orientation of the marker 5 using the captured image, and may also acquire the position and orientation of the marker 5 using the depth image acquired by the depth camera. The representative value of both positions and orientations may be used as the final position and orientation, or the final position and orientation may be a result of weighting and adding the two according to their respective reliability. The representative value may be, for example, an average value. The reliability may be acquired so that the reliability is lower as the difference between the marker 5 reproduced using the acquired position and orientation and the marker 5 included in the captured image or depth image is larger.

[0058] In the case where the camera unit 2 has a depth camera, the determination unit 33 may also determine the amount of movement of the camera unit 2 such that the longer the distance of the marker 5 shown by the depth image to the obstruction, the greater the amount of movement of the camera unit 2. The distance to the obstruction may be the distance to the obstruction corresponding to the obstructed area identified by the identification unit 32. In this case, for example, even if the area of ​​the marker 5 obstructed by the obstruction is the same, the amount of movement of the camera unit 2 may be determined such that the longer the distance from the camera unit 2 to the obstruction, the greater the amount of movement of the camera unit 2, and the shorter the distance from the camera unit 2 to the obstruction, the shorter the amount of movement of the camera unit 2. This is because it is considered that an obstruction that is closer to the camera unit 2 can be avoided by a shorter amount of movement, and an obstruction that is farther away can be avoided by a longer amount of movement.

[0059] In addition, in the present embodiment, the case where the robot 1 has only the manipulator 10 has been mainly described, but this is not necessarily the case. The robot 1 may further have an XY stage capable of moving the end portion on the base end side of the manipulator 10 in the horizontal direction, an XYZ stage capable of moving the end portion on the base end side of the manipulator 10 in the horizontal direction and a XYZ stage capable of moving the end portion on the base end side of the manipulator 10 in the horizontal direction and the vertical direction, and the like. The control unit 34 may also control the XY stage and the XYZ stage. In this case, by using the XY stage and the XYZ stage, the camera unit 2 attached to the manipulator 10 can be moved in a wider range.

[0060] In addition, in this embodiment, the planar marker 5 has been mainly described, but a three-dimensional marker 5 may be used. FIG. 7(a) to FIG. 7(c) are a plan view, a front view, and a perspective view showing an example of a three-dimensional marker 5, respectively. The three-dimensional marker 5 may have, for example, spherical sub-markers 6-9 to 6-12 and a support 8 supporting the sub-markers 6-9 to 6-12. The support 8 may include a support portion 8a extending radially and supporting each of the sub-markers 6 at its tip end, and a rod-shaped member 8b connected to the center of the support portion 8a. In addition, the three-dimensional sub-markers 6 of the three-dimensional marker 5 may also have different attributes. The attributes may be, for example, color, shape, size, pattern, etc. In FIG. 7, for example, the colors and patterns of the sub-markers 6 may be different. Even when such a three-dimensional marker 5 is used, the position and posture according to the marker 5 can be obtained by using a captured image of the marker 5. The position and posture according to the marker 5 may be, for example, the position of the tip 8c of the rod-shaped member 8b or the posture in the longitudinal direction of the rod-shaped member 8b. When a three-dimensional marker 5 is used, the robot 1 can be controlled and its position and posture can be acquired in the same manner as when a planar marker 5 is used. For example, when the three-dimensional marker 5 shown in FIG. 7 is used, the center position of a circle or ellipse corresponding to a spherical sub-marker 6 in a captured image may be used as a feature point. In this case, it is preferable that three or more feature points can be specified using the three-dimensional marker 5. In addition, the number of sub-markers 6 possessed by the three-dimensional marker 5 may be a number other than four, for example, two or three, or five or more. In addition, a three-dimensional marker 5 having a shape different from that of the three-dimensional marker 5 shown in FIG. 7 may be used.

[0061] In addition, in this embodiment, the case where the marker 5 has a plurality of sub-markers 6 has been mainly described, but this is not necessarily the case. The marker 5 does not have to have a plurality of sub-markers. For example, the planar marker 5 may have one figure (e.g., a polygonal figure, etc.), and the vertices of the figure may be used as feature points. Furthermore, the movement direction may be determined using the one figure in the same manner as described in FIG. 5.

[0062] Also, in the present embodiment, a case has been described in which the position history of the camera unit 2 is accumulated, and when the marker 5 is entirely occluded, the movement direction is determined using the accumulated position history of the camera unit 2, but this is not necessarily the case. For example, when the marker 5 is entirely occluded, the control unit 34 may randomly change the position of the camera unit 2 so that the marker 5 is photographed. In this way, when the position history of the camera unit 2 is not used, the control device 3 does not need to be provided with the accumulation unit 35.

[0063] Furthermore, when the marker 5 is entirely blocked, the determination unit 33 may determine the movement direction of the camera unit 2 by using, for example, other than the accumulated history of the position of the camera unit 2. For example, the determination unit 33 may determine the movement direction of the camera unit 2 by estimating the movement direction of the marker 5. In this case, the determination unit 33 may estimate the current position of the marker 5 by using, for example, the history of the position of the marker 5 stored in the storage unit 37, and determine the direction from the estimated current position toward the latest position of the marker 5 stored in the storage unit 37 as the movement direction of the camera unit 2. The position of the marker 5 stored in the storage unit 37 may be, for example, a position acquired by the position acquisition unit 36.

[0064] In addition, in the present embodiment, the case where the position and attitude according to the marker 5 are acquired has been mainly described, but this is not necessarily the case. When the position and the like according to the marker 5 is not acquired, the control device 3 does not need to include the position acquisition unit 36. In this case, the control device 3 may be used to continuously capture images of the marker 5.

[0065] In addition, in the present embodiment, the case where the control device 3 includes the output unit 38 that outputs the position and the like acquired by the position acquisition unit 36 ​​has been mainly described, but this is not necessarily the case. When no information is output, the control device 3 does not need to include the output unit 38.

[0066] In addition, in the above embodiments, each process or function may be realized by centralized processing in a single device or a single system, or may be realized by distributed processing in multiple devices or multiple systems.

[0067] In the above embodiment, each component may be configured by dedicated hardware, or a component that can be realized by software may be realized by executing a program. For example, each component may be realized by a program execution unit such as a CPU reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. During execution, the program execution unit may execute the program while accessing a storage unit or a recording medium. The program may be executed by being downloaded from a server or the like, or may be executed by reading a program recorded on a predetermined recording medium (for example, an optical disk, a magnetic disk, a semiconductor memory, etc.). The program may be used as a program constituting a program product. The computer that executes the program may be single or multiple. That is, centralized processing may be performed, or distributed processing may be performed.

[0068] The above-mentioned embodiments are merely examples for specifically implementing the present invention, and are not intended to limit the technical scope of the present invention. The technical scope of the present invention is indicated by the claims, not by the description of the embodiments, and is intended to include modifications within the literal scope of the claims and the scope of equivalent meanings. [Explanation of symbols]

[0069] REFERENCE SIGNS LIST 1 robot, 2 camera unit, 3 control device, 5 marker, 6 sub-marker, 10 manipulator, 20 camera, 31 captured image acquisition unit, 32 identification unit, 33 determination unit, 34 control unit, 35 storage unit, 36 position acquisition unit

Claims

1. A control device for controlling a robot having a manipulator for moving a camera unit having a camera for photographing a marker, a captured image acquisition unit that acquires a captured image captured by the camera unit; a determining unit that determines an obstructed area of ​​the marker when a part of the marker is obstructed by an obstructing object by using the captured image; a determination unit that determines a moving direction of the camera unit so that the entire marker is captured based on the obstructed area identified by the identification unit when a portion of the marker is obstructed by an obstructing object; and a control unit that controls the robot so that the camera unit moves in the movement direction determined by the determination unit.

2. The control device according to claim 1 , further comprising a position acquisition unit that acquires a position corresponding to the marker by using the photographed image of the marker acquired by the photographed image acquisition unit.

3. The marker has a plurality of sub-markers, The control device according to claim 1 , wherein the identifying unit identifies the occluded area by identifying an area of ​​a sub-marker that is at least partially not included in the captured image.

4. A storage unit that stores a history of the position of the camera unit, 4. The control device according to claim 1, wherein the determination unit determines the movement direction of the camera unit so that, when the marker is entirely blocked, the most recent movement indicated by the history of the position of the camera unit stored by the storage unit is continued.

5. The camera unit also has a depth camera that acquires a depth image, The determination unit also determines a movement amount of the camera unit such that the movement amount of the camera unit increases as the distance to the obstruction indicated by the depth image increases, The control device according to claim 1 , wherein the control unit controls the robot so that the camera unit moves according to the amount of movement determined by the determination unit.

Citation Information

Patent Citations

  • Position measurement system and position measurement method

    JP2021099681A

Cited By

  • Teaching device and robot system

    WO2026159782A1