Robotic system
The vision sensor captures multiple position images of the object in the robot system, combines the calibration data to obtain the position difference, determines and estimates the cause of the abnormality, solves the problem of inaccurate robot movement correction, and improves the accuracy of the robot movement.
Patent Information
- Application Number
- CN202180008788.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-14
- Filing Date
- 2021-01-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-01-08
AI Technical Summary
In the robot system, the movement correction of the vision sensor is not performed correctly due to a setting error, causing the robot to perform unintended movements.
The vision sensor takes images of the object at the specified position and moving position of the robot, and combines the calibration data to obtain the position difference of the object in the robot coordinate system, determines whether it is within the specified range, and estimates the cause of the abnormality in the motion correction to change the settings.
Proper robot movement correction is achieved, improving the accuracy and reliability of robot movements.
Smart Images

Figure CN114945450B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a robot system. Background Art
[0002] Conventionally, robot systems have visual sensors such as cameras, which recognize the position of an object and perform operations such as handling and processing the object. The visual sensor captures the object through a camera installed near the robot's hand or a camera installed around the robot.
[0003] Such a robot system detects an object from a captured image, and controls the operation of the robot with respect to the position of the detected object so that the robot performs a work.
[0004] The robot system uses the calibration data of the camera device to transform the position of the detected object (the position in the image coordinate system or the position in the sensor coordinate system observed by the visual sensor) into the position of the workpiece observed by the robot (the position in the robot coordinate system) (for example, see Patent Document 1). As a result, the robot system can correct the movement of the robot with respect to the position of the detected object so that the robot can perform the operation.
[0005] Prior art literature
[0006] Patent Literature
[0007] Patent Document 1: Japanese Patent Application Laid-Open No. 4-35885 Summary of the invention
[0008] Problem that the invention aims to solve
[0009] In such a robot system, the motion correction of the robot using the visual sensor may not be performed correctly due to various setting errors. In such a case, the robot may perform an unexpected motion, so it is desirable to appropriately perform the motion correction of the robot.
[0010] Solutions for solving problems
[0011] The robot system involved in the present disclosure includes: a visual sensor that captures a first image of an object at a specified position of the robot, and captures a second image of the object at a position reached by moving the robot a specified distance from the specified position; a calibration data storage unit that stores calibration data that associates a robot coordinate system of the robot with an image coordinate system of the visual sensor; a first acquisition unit that acquires a first position of the object in the robot coordinate system based on the first image and the calibration data; a second acquisition unit that acquires a second position of the object in the robot coordinate system based on the first image and the second image; and a determination unit that determines whether a difference between the first position and the second position is within a specified range.
[0012] The robot system involved in the present disclosure includes: a visual sensor, which captures multiple images of an object at multiple positions reached by moving the robot a specified distance; a calibration data storage unit, which stores calibration data that associates a robot coordinate system that serves as a reference for motion control of the robot and an image coordinate system that serves as a reference for measurement processing of the visual sensor; a first acquisition unit, which acquires a first position of the object in the robot coordinate system based on the multiple images and the calibration data; a second acquisition unit, which acquires a second position of the object in the robot coordinate system based on the multiple images; and a determination unit, which determines whether the difference between the first position and the second position is within a specified range.
[0013] The robot control method involved in the present disclosure includes the following steps: setting the robot's motion correction; capturing a first image of an object at a first position of the robot; capturing a second image of the object at a second position reached by moving the robot a specified distance from the first position; acquiring a first position of the object in the robot coordinate system based on the first image and the calibration data; acquiring a second position of the object in the robot coordinate system based on the first image and the second image; determining whether the difference between the first position and the second position is within a specified range; if it is determined that the difference is outside the specified range, estimating the cause of abnormality in the robot's motion correction based on the first position, the second position, the position of the robot corresponding to the first position, and the position of the robot corresponding to the second position; and changing the setting of the robot's motion correction based on the estimated cause of abnormality in the robot's motion correction.
[0014] The robot system involved in the present disclosure includes: a visual sensor that captures a first image of an object at a specified position of the robot, and captures a second image of the object at a position reached by moving the robot a specified distance from the specified position; a calibration data storage unit that stores calibration data that associates a robot coordinate system of the robot with an image coordinate system of the visual sensor; a first acquisition unit that acquires a first position of the object in the robot coordinate system based on the first image and the calibration data; a second acquisition unit that acquires a second position of the object in the robot coordinate system based on the first image and the second image; and a determination unit that determines whether the relationship between the first position and the second position is within a specified range based on the first position and the second position.
[0015] The robot system involved in the present disclosure includes: a visual sensor, which captures a first image of an object at a specified position of the robot, and captures multiple images of the object at multiple positions reached by moving the robot from the specified position; a calibration data storage unit, which stores calibration data that associates a robot coordinate system of the robot with an image coordinate system of the visual sensor; a first acquisition unit, which acquires a first position of the object in the robot coordinate system based on the calibration data and the first image of the object; a second acquisition unit, which acquires a second position of the object in the robot coordinate system based on the first image and the multiple images; and a determination unit, which determines whether the relationship between the first position and the multiple positions is within a specified range based on the first position and the multiple positions.
[0016] Effects of the Invention
[0017] According to the present invention, the motion correction of the robot can be appropriately performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a diagram showing the structure of a robot system.
[0019] Figure 2 It is a diagram showing the configuration of a visual sensor control device and a robot control device.
[0020] Figure 3 is a diagram showing the movement of the visual sensor.
[0021] Figure 4 is a diagram showing the second position Ps.
[0022] Figure 5 is a diagram showing the relationship between the first position Pw and the second position Ps.
[0023] Figure 6is a diagram showing the movement of the visual sensor.
[0024] Figure 7 It is a figure which shows the calibration jig used for calibration.
[0025] Figure 8 It is a figure which shows the calibration using a calibration jig.
[0026] Fig. 9 : is a flowchart showing the processing of the vision sensor control device. DETAILED DESCRIPTION
[0027] Next, an example of an embodiment of the present invention will be described.
[0028] Figure 1 is a diagram showing the configuration of the robot system 1 .
[0029] like Figure 1 As shown, the robot system 1 includes a robot 2 , an arm 3 , a vision sensor 4 , a vision sensor control device 5 , and a robot control device 6 .
[0030] The robot system 1 recognizes the position of the object W based on an image of the object W captured by the vision sensor 4 , for example, and performs work such as handling or processing the object W.
[0031] A hand or a tool is attached to the front end of the arm 3 of the robot 2 . The robot 2 performs operations such as handling or processing of the object W under the control of the robot control device 6 . In addition, a visual sensor 4 is attached to the front end of the arm 3 of the robot 2 .
[0032] The visual sensor 4 is controlled by the visual sensor control device 5 to capture an image of the object W. The visual sensor 4 may be a two-dimensional camera having an imaging element composed of a CCD (Charge Coupled Device) image sensor and an optical system including a lens, or a stereo camera capable of three-dimensional measurement.
[0033] The robot control device 6 executes the operation program of the robot 2 to control the operation of the robot 2. At this time, the robot control device 6 corrects the operation of the robot 2 with respect to the position of the object W detected by the visual sensor control device 5 so that the robot 2 performs a predetermined operation.
[0034] Figure 2 2 is a diagram showing the configuration of the vision sensor control device 5 and the robot control device 6 . The vision sensor control device 5 includes a storage unit 51 and a control unit 52 .
[0035] The storage unit 51 is a storage device such as a ROM (Read Only Memory) or RAM (Random Access Memory) that stores an OS (Operating System) and application programs, or a hard disk drive or SSD (Solid State Drive) that stores other various information.
[0036] The storage unit 51 includes a model pattern storage unit 511 and a calibration data storage unit 512 .
[0037] The model pattern storage unit 511 stores a model pattern obtained by modeling the image of the object W, for example, a model pattern representing the features of the image of the object W.
[0038] The calibration data storage unit 512 stores calibration data in which a robot coordinate system serving as a reference for motion control of the robot 2 and an image coordinate system serving as a reference for measurement processing of the visual sensor 4 are associated with each other. Various methods have been proposed for the format of calibration data and a method for obtaining the format of the calibration data, and any of them can be used.
[0039] The control unit 52 is a processor such as a CPU (Central Processing Unit), and functions as a first acquisition unit 521 , a second acquisition unit 522 , a determination unit 523 , an estimation unit 524 , a calibration unit 525 , and a notification unit 526 by executing programs stored in the storage unit 51 .
[0040] The first acquisition unit 521 acquires a first position Pw of the object W in the robot coordinate system based on the calibration data and a first image of the object W captured by the vision sensor 4 .
[0041] The second acquisition unit 522 acquires a second position Ps of the object W in the robot coordinate system based on the first image and the second image of the object W.
[0042] The determination unit 523 determines whether the difference between the first position Pw and the second position Ps is within a predetermined range.
[0043] When the determination unit 523 determines that the difference is outside the specified range, the estimation unit 524 estimates the abnormal cause of the motion correction of the robot 2 based on the first position Pw, the second position Ps, the position of the robot 2 corresponding to the first position Pw, and the position of the robot 2 corresponding to the second position Ps.
[0044] When the determination unit 523 determines that the difference is outside the predetermined range, the visual sensor 4 captures a plurality of images of the object W at a plurality of positions. Then, the estimation unit 524 estimates the cause of abnormality in the motion correction of the robot 2 based on the plurality of images and the plurality of positions.
[0045] The calibration unit 525 performs calibration of the visual sensor 4. The details of the calibration of the visual sensor 4 will be described later.
[0046] When the determination unit 523 determines that the difference is outside the predetermined range, the notification unit 526 notifies that there is an abnormality in the motion calibration of the robot 2 .
[0047] In addition, the notification unit 526 notifies the abnormality cause estimated by the estimation unit 524. The notification method of the notification unit 526 is, for example, displaying an abnormality message on a display unit (not shown) or the like.
[0048] The robot control device 6 includes a motion control unit 61 . The motion control unit 61 executes a motion program of the robot 2 to control the motion of the robot 2 .
[0049] Next, refer to Figures 3 to 8 The detailed operation of the visual sensor control device 5 will be described.
[0050] First, the calibration unit 525 calibrates the visual sensor 4 in the following manner, for example.
[0051] Figure 7 It is a figure which shows the calibration jig 7 for calibration. Figure 8 It is a diagram showing calibration performed using the calibration jig 7 .
[0052] The calibration fixture 7 has the following features: Figure 7 The dot pattern shown is used as a pattern that can be recognized by the visual sensor 4. The dot pattern is composed of large dots and small dots arranged in a grid shape. The large dots are arranged in an L shape, indicating the coordinate system of the calibration jig 7.
[0053] The calibration unit 525 sets in advance the position of the calibration jig 7 viewed from the robot coordinate system.
[0054] The intervals between points of the calibration jig 7 can be known from the design drawings of the calibration jig, etc. Therefore, the calibration unit 525 assigns known values to the intervals between points and stores the intervals between points in the calibration data storage unit 512 as part of the calibration data.
[0055] The visual sensor 4 captures an image of the calibration jig 7 . In addition, the calibration unit 525 acquires the position of the robot when the image of the calibration jig 7 is captured.
[0056] The motion control unit 61 moves the robot 2 in the vertical direction relative to the calibration jig 7, and the visual sensor 4 captures an image of the calibration jig 7. In addition, the calibration unit acquires the position of the robot when the calibration jig 7 is captured.
[0057] The calibration unit 525 calibrates the vision sensor 4 using information on the positions of a plurality of points in each image of the calibration jig 7 in the image coordinate system and the positions in the robot coordinate system.
[0058] By calibrating the vision sensor 4 , external parameters and internal parameters of the vision sensor 4 are obtained.
[0059] Here, the external parameters are information about the position and posture of the vision sensor, and the internal parameters are information about the conditions of the optical system of the vision sensor, such as the focal length of the lens, lens distortion, and the size of the light receiving element.
[0060] Figure 3 is a diagram showing the movement of the visual sensor 4. First, the motion control unit 61 of the robot control device 6 moves the robot 2 so that the object W enters the imaging range, and the visual sensor 4 captures a first image of the object W. At this time, the first acquisition unit 521 stores the position of the robot 2 at the time of imaging.
[0061] The first acquisition unit 521 detects the object W from a predetermined range of the captured first image using the model pattern stored in the model pattern storage unit 511. Thus, the first acquisition unit 521 acquires the position and posture of the object W in the image coordinate system.
[0062] The first acquisition unit 521 transforms the position of the object W in the image coordinate system into a three-dimensional position Pw in the robot coordinate system (world coordinate system) based on the position of the robot 2 at the time of shooting and the calibration data stored in the calibration data storage unit 512. In this way, the first acquisition unit 521 acquires the first position Pw of the object W in the robot coordinate system.
[0063] Here, when a two-dimensional camera is used to detect the object W, the first acquisition unit 521 acquires the first position Pw as a three-dimensional position, assuming that the detection portion of the object W is located on a certain plane (calibration plane). The calibration plane is typically set by a user using an operation panel (not shown) connected to the visual sensor control device 5.
[0064] Generally, the motion correction of the robot 2 is performed using the first position Pw of the object W. At this time, the motion correction method uses absolute position correction and relative position correction.
[0065] In the absolute position calibration, the motion control unit 61 makes the TCP (Tool Center Point) 8 (see Figure 8 ) moves to the first position Pw.
[0066] In relative position correction, the control unit 52 predetermines the position of the reference object (reference position), calculates the difference between the reference position and the first position Pw as the correction amount, and then the robot control device 6 performs motion correction of the robot 2 by adding the calculated correction amount to the preset motion of the robot 2.
[0067] When the operation correction is set as described above, there are cases where the operation correction is not performed correctly due to various setting errors.
[0068] Therefore, in order to determine an error in the motion correction of the robot 2 , the robot system 1 according to the present embodiment executes the following processing.
[0069] like Figure 3 As shown, the motion control unit 61 of the robot control device 6 moves the robot 2 from the reference position to a predetermined distance D in a direction perpendicular to the optical axis of the vision sensor 4, and the vision sensor 4 captures a second image of the object W at the position to which the robot 2 moves the predetermined distance D.
[0070] Here, the predetermined distance D indicates a distance from the reference position to a position where the object W has moved sufficiently and can be detected by the visual sensor 4 .
[0071] Figure 4 is a diagram showing the second position Ps. Figure 5 is a diagram showing the relationship between the first position Pw and the second position Ps.
[0072] The second acquisition unit 522 detects the object in each of the first image obtained by photographing the object W at the reference position and the second image obtained by photographing the object W at the position reached by moving the robot 2 by a predetermined distance D. Thus, the position of the object in the image coordinate system at the two viewpoints A and B is obtained.
[0073] Then, the second acquisition unit 522 calculates two lines of sight based on the position of the object W in the image coordinate system. The second acquisition unit 522 acquires the intersection of the two lines of sight or the point where the distance between the two lines of sight is the shortest as the second position Ps of the object W.
[0074] exist Figure 4 In the example of , the two lines of sight do not intersect, so the second acquisition unit 522 acquires the point with the shortest distance between the two lines of sight as the second position Ps of the object W.
[0075] In this case, the imaging unit repeatedly performs the following processing: imaging the object W at a position reached by the robot 2 moving a predetermined distance D, and imaging the object W at a position reached by the robot 2 moving a predetermined distance D from the imaging position.
[0076] In addition, when the camera captures a plurality of images (for example, three or more images) as the second image, the second acquisition unit 522 calculates three or more viewpoints based on the position of the object W in the image coordinate system. In this case, the second acquisition unit 522 acquires the intersection of the three or more viewpoints as the second position Ps of the object W, or acquires the position with the shortest distance between the three or more sight lines as the second position Ps of the object W using the least squares method.
[0077] Here, since the object W does not move, although the position of the object W in the image changes, the positional offset (difference) between the first position Pw and the second position Ps should be within an error range.
[0078] Therefore, the determination unit 523 determines whether the difference between the first position Pw and the second position Ps is within a predetermined range.
[0079] When the determination unit 523 determines that the difference is within the predetermined range, the estimation unit 524 determines that the motion correction of the robot 2 is normal.
[0080] In addition, when the determination unit 523 determines that the difference is outside the specified range, the estimation unit 524 determines that the motion correction of the robot 2 is abnormal, and estimates the abnormal cause of the motion correction of the robot 2 based on the first position Pw, the second position Ps, the position of the robot 2 corresponding to the first position Pw, and the position of the robot 2 corresponding to the second position Ps.
[0081] Specifically, when the determination unit 523 determines that the difference is outside the predetermined range, the two sight lines do not intersect (for example, Figure 4 In such a case), the estimation unit 524 estimates that the calibration data stored in the calibration data storage unit 512 is wrong.
[0082] In addition, when the determination unit 523 determines that the difference is outside the prescribed range, if the two sight lines intersect, the estimation unit 524 estimates that Figure 5 The calibration plane is incorrect as shown.
[0083] When it is estimated that the calibration data is erroneous, it is possible to estimate where the error in the calibration data is by performing calibration using another calibration method. Figure 6 4 is a diagram showing the movement of the visual sensor 4. Figure 6As shown, the motion control unit 61 moves the robot 2 in a grid pattern from the reference position toward a direction orthogonal to the optical axis of the vision sensor 4. The vision sensor 4 captures images of the object W at multiple positions to which the robot 2 moves.
[0084] The calibration unit 525 detects the object W from the plurality of captured images, and acquires the position Pci of the object W in the image coordinate system.
[0085] Furthermore, the calibration unit 525 obtains the position Psi of the object W viewed from the position of the flange of the robot 2 when the image is captured.
[0086] In this way, the motion control unit 61 moves the robot 2 n times (i=1, 2, 3, . . . , n), and the visual sensor 4 captures n images of the object W. The calibration unit 525 calibrates the visual sensor 4 using the thus obtained n sets (Pci, Psi).
[0087] The estimation unit 524 compares the external parameters and internal parameters of the visual sensor 4 obtained in this way with the external parameters and internal parameters obtained in advance by the calibration unit 525 as described above (see Figure 7 and Figure 8 ) can be used for comparison to determine abnormalities in external and internal parameters.
[0088] For example, when the external parameters are incorrect, the estimation unit 524 estimates that the internal parameters obtained by calibration are incorrect or the position of the calibration jig 7 is incorrect.
[0089] In addition, when the internal parameter is incorrect, the estimation unit 524 estimates that the interval between the designated points is incorrect or that inappropriate points are used for calibration.
[0090] Fig. 9 : is a flowchart showing the processing of the visual sensor control device 5 .
[0091] In step S1 , the motion control unit 61 moves the robot 2 so that the object W enters the imaging range, and the visual sensor 4 captures a first image of the object W. At this time, the first acquisition unit 521 stores the position of the robot 2 at the time of imaging.
[0092] In step S2 , the first acquisition unit 521 detects the object W from a predetermined range of the captured first image using the model pattern stored in the model pattern storage unit 511 .
[0093] The first acquisition unit 521 converts the position of the object W in the image coordinate system into a first position Pw in the robot coordinate system based on the calibration data stored in the calibration data storage unit 512 and the position of the robot 2 at the time of imaging.
[0094] In step S3 , the motion control unit 61 of the robot control device 6 moves the robot 2 from the reference position by a predetermined distance D in a direction perpendicular to the optical axis of the vision sensor 4 , and the vision sensor 4 captures a second image of the object W at the position to which the robot 2 moves by the predetermined distance D.
[0095] In step S4 , the second acquisition unit 522 detects the object in each of the first image and the second image, wherein the first image is an image of the object W at the reference position and the second image is an image of the object W at the position reached by moving the robot 2 a predetermined distance D.
[0096] The second acquisition unit 522 calculates two lines of sight based on the position of the object W in the image coordinate system. The second acquisition unit 522 acquires the intersection of the two lines of sight or the point where the distance between the two lines of sight is shortest as the second position Ps of the object W.
[0097] In step S5, it is determined whether the difference between the first position Pw and the second position Ps is within a predetermined range. If the difference is within the predetermined range ("YES"), the process moves to step S6, and if the difference is outside the predetermined range ("NO"), the process moves to step S7.
[0098] In step S6 , the estimation unit 524 determines that the motion correction of the robot 2 is normal, and then ends the processing.
[0099] In step S7, it is determined that the motion correction of the robot 2 is abnormal, and the cause of the abnormality in the motion correction of the robot 2 is estimated based on the first position Pw, the second position Ps, the position of the robot 2 corresponding to the first position Pw, and the position of the robot 2 corresponding to the second position Ps.
[0100] In step S8 , the notification unit 526 notifies that there is an abnormality in the motion calibration of the robot. In addition, the notification unit 526 notifies the cause of the abnormality estimated by the estimation unit 524 .
[0101] In step S9, the motion control unit 61 moves the robot 2 in a grid pattern from the reference position toward a direction orthogonal to the optical axis of the vision sensor 4. The vision sensor 4 captures images of the object W at multiple positions to which the robot 2 moves.
[0102] In step S10 , the calibration unit 525 detects the object W from the plurality of captured images, and acquires the position Pci of the object W in the image coordinate system.
[0103] Furthermore, the calibration unit 525 obtains the position Psi of the object W viewed from the position of the flange of the robot 2 when the image is captured. The calibration unit 525 calibrates the vision sensor 4 using the thus obtained n sets (Pci, Psi).
[0104] According to the present embodiment, the robot system 1 includes: a visual sensor 4 that captures a first image of the object W at the reference position of the robot 2 and captures a second image of the object W at the position where the robot 2 is moved a predetermined distance D from the reference position; a calibration data storage unit 512 that stores calibration data in which a robot coordinate system that is a reference for motion control of the robot 2 and an image coordinate system that is a reference for measurement processing of the visual sensor 4 are associated with each other; a first acquisition unit 521 that acquires a first position Pw of the object W in the robot coordinate system based on the first image and the calibration data; a second acquisition unit 522 that acquires a second position Ps of the object W in the robot coordinate system based on the first image and the second image; and a determination unit 523 that determines whether the difference between the first position Pw and the second position Ps is within a predetermined range. Thus, the robot system 1 can determine abnormality in motion calibration of the robot 2 based on the difference between the first position Pw and the second position Ps.
[0105] In addition, the robot system 1 further includes an estimation unit 524, which estimates the cause of abnormality in the motion correction of the robot 2 based on the first position, the second position, the position of the robot 2 corresponding to the first position, and the position of the robot 2 corresponding to the second position, when the determination unit 523 determines that the difference is outside the prescribed range. Thus, when there is an abnormality in the motion correction of the robot 2, the robot system 1 can estimate the cause of the abnormality. Therefore, the robot system 1 can appropriately perform motion correction of the robot 2 based on the estimated cause of motion correction of the robot 2.
[0106] In addition, regarding the robot system 1, when the determination unit 523 determines that the difference is outside the predetermined range, the visual sensor 4 captures a plurality of images of the object W at a plurality of positions, and the estimation unit 524 estimates the cause of abnormality in the motion correction of the robot 2 based on the plurality of images and the plurality of positions. Thus, the robot system 1 can appropriately perform the motion correction of the robot 2.
[0107] Alternatively, the visual sensor 4 may capture a plurality of second images of the object W, and the second acquisition unit 522 may acquire a plurality of second positions of the object W in the robot coordinate system based on the first image and the plurality of second images.
[0108] Thus, the robot system 1 can determine abnormality in the motion correction of the robot 2 using the plurality of second images and the plurality of second positions.
[0109] The robot system 1 may further include a setting change unit that changes the robot motion correction setting based on the abnormal cause of the robot motion correction estimated by the estimation unit 524. Thus, the robot system 1 can appropriately change the robot motion correction setting.
[0110] Furthermore, in the above-described embodiment, the robot system 1 uses the first image and the second image, but for example, only an image corresponding to the second image may be used.
[0111] For example, the robot system 1 may also include: a first acquisition unit 521, which acquires the first position of the object W in the robot coordinate system based on calibration data and multiple second images; and a second acquisition unit 522, which acquires the second position of the object W in the robot coordinate system based on multiple second images.
[0112] In addition, instead of the above-mentioned embodiment, the determination unit 523 of the robot system 1 may use a method of confirming each element of the difference between the three-dimensional positions of the first position Pw and the second position, a method of confirming the distance, etc. That is, the determination unit 523 may determine whether the relationship between the first position Pw and the second position Ps is within a predetermined range based on the first position Pw and the second position Ps.
[0113] In addition, instead of the above-mentioned embodiment, the determination unit 523 of the robot system 1 may use a method of measuring variance or standard deviation of three or more positions. That is, the determination unit 523 may determine whether the relationship between the first position and the plurality of positions is within a predetermined range based on the first position and the plurality of positions.
[0114] The embodiments of the present invention are described above, but the present invention is not limited to the above embodiments. In addition, the effects described in the embodiments are only the best effects produced by the present invention, and the effects of the present invention are not limited to the effects described in the embodiments.
[0115] Description of Reference Numerals
[0116] 1: robot system; 2: robot; 3: arm; 4: visual sensor; 5: visual sensor control device; 6: robot control device; 61: motion control unit; 511: model pattern storage unit; 512: calibration data storage unit; 521: first acquisition unit; 522: second acquisition unit; 523: determination unit; 524: estimation unit; 525: calibration unit; 526: notification unit.
Claims
1. A robot system comprising: a visual sensor that captures a first image of an object at a predetermined position of the robot and captures a second image of the object at a position reached by moving the robot a predetermined distance from the predetermined position; a calibration data storage unit storing calibration data correlating a robot coordinate system of the robot and an image coordinate system of the vision sensor with each other; a first acquisition unit, which acquires a first position of the object in a robot coordinate system based on the first image and the calibration data; a second acquisition unit that detects the object in each of the first image and the second image obtained by photographing the object at a position reached by moving the robot from the predetermined position by the predetermined distance, obtains a position of the object in an image coordinate system at two viewpoints, calculates two lines of sight based on the position of the object in the image coordinate system, and acquires a second position of the object in the robot coordinate system based on an intersection of the two lines of sight or a point where the two lines of sight are closest; as well as A determination unit determines whether a difference between the first position and the second position is within a predetermined range.
2. The robot system according to claim 1, wherein: It also includes an estimation unit, which estimates the abnormal cause of the robot's motion correction based on the first position, the second position, the position of the robot corresponding to the first position, and the position of the robot corresponding to the second position when the judgment unit determines that the difference is outside the specified range.
3. The robot system according to claim 2, wherein: When the determination unit determines that the difference is outside the predetermined range, the visual sensor captures a plurality of images of the object at a plurality of positions; The estimation unit estimates the abnormality cause of the motion correction of the robot based on the plurality of images and the plurality of positions.
4. The robot system according to claim 2, wherein: The present invention further includes a notification unit configured to notify that an abnormality has occurred in the motion calibration of the robot when the determination unit determines that the difference is outside the predetermined range.
5. The robot system according to claim 4, wherein: The notification unit notifies the abnormality cause estimated by the estimation unit.
6. The robot system according to any one of claims 1 to 5, wherein: The visual sensor captures a plurality of the second images of the object, The second acquisition unit acquires a plurality of second positions of the object in the robot coordinate system based on the first image and the plurality of second images.
7. The robot system according to claim 2 or 3, wherein: The method further includes a setting change unit configured to change a setting of the motion correction of the robot based on the abnormal cause of the motion correction of the robot estimated by the estimation unit.
8. A robot system comprising: a visual sensor that captures a plurality of images of an object at a plurality of positions reached by the robot when it moves a predetermined distance; a calibration data storage unit storing calibration data in which a robot coordinate system serving as a reference for motion control of the robot and an image coordinate system serving as a reference for measurement processing of the vision sensor are associated with each other; a first acquisition unit configured to acquire a first position of the object in a robot coordinate system based on the plurality of images and the calibration data; a second acquisition unit, which calculates a plurality of sight lines according to the position of the object in each of the plurality of images in the image coordinate system, and acquires an intersection point of the plurality of sight lines or a position where the distance between the plurality of sight lines is the shortest as a second position of the object in the robot coordinate system; as well as A determination unit determines whether a difference between the first position and the second position is within a predetermined range.
9. A robot control method comprising the following steps: capturing a first image of the object at a first position of the robot; capturing a second image of the object at a second position reached by moving the robot a predetermined distance from the first position; Acquire a first position of the object in a robot coordinate system based on the first image and calibration data; detecting the object in each of the first image obtained by photographing the object at the first position and the second image obtained by photographing the object at the second position reached by moving the robot from the first position by the predetermined distance, finding the position of the object in the image coordinate system at two viewpoints, calculating two lines of sight based on the position of the object in the image coordinate system, and acquiring a second position of the object in the robot coordinate system based on an intersection of the two lines of sight or a point where the two lines of sight are closest; as well as It is determined whether the difference between the first position and the second position is within a specified range.
10. The robot control method according to claim 9, wherein: The following steps are also included: Set the robot's motion correction; If it is determined that the difference is outside the predetermined range, estimating a cause of abnormality in motion correction of the robot based on the first position, the second position, the position of the robot corresponding to the first position, and the position of the robot corresponding to the second position; as well as The setting of the motion correction of the robot is changed based on the estimated abnormal cause of the motion correction of the robot.
11. A robot system comprising: a visual sensor that captures a first image of an object at a predetermined position of the robot and captures a second image of the object at a position reached by moving the robot a predetermined distance from the predetermined position; a calibration data storage unit storing calibration data correlating a robot coordinate system of the robot and an image coordinate system of the vision sensor with each other; a first acquisition unit, which acquires a first position of the object in a robot coordinate system based on the first image and the calibration data; a second acquisition unit that detects the object in each of the first image and the second image obtained by photographing the object at a position reached by moving the robot from the predetermined position by the predetermined distance, obtains a position of the object in an image coordinate system at two viewpoints, calculates two lines of sight based on the position of the object in the image coordinate system, and acquires a second position of the object in the robot coordinate system based on an intersection of the two lines of sight or a point where the two lines of sight are closest; as well as A determination unit determines whether a relationship between the first position and the second position is within a predetermined range based on the first position and the second position.
12. A robot system comprising: a visual sensor that captures a first image of an object at a predetermined position of a robot, and captures a plurality of images of the object at a plurality of positions to which the robot is moved from the predetermined position; a calibration data storage unit storing calibration data correlating a robot coordinate system of the robot and an image coordinate system of the vision sensor with each other; a first acquisition unit, which acquires a first position of the object in a robot coordinate system based on the calibration data and a first image of the object; a second acquisition unit, which calculates a plurality of sight lines according to the position of the object in each of the plurality of images in the image coordinate system, and acquires intersection points of the plurality of sight lines or positions where the distances between the plurality of sight lines are the shortest as a plurality of second positions of the object in the robot coordinate system; as well as A determination unit determines whether a relationship between the first position and the plurality of second positions is within a predetermined range based on the first position and the plurality of second positions.
