Robot system and coordinate conversion method
By using the sensor system in the robot system and creating a transformation matrix, the position coordinates of the sensor system are converted into the robot coordinate system, which solves the sensor system and robot calibration problem and achieves an efficient calibration process.
Patent Information
- Application Number
- CN201911134827.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-25
- Filing Date
- 2019-11-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-11-19
AI Technical Summary
It is difficult to calibrate a sensor system made from an inspection device or a high-precision measuring instrument with a robot using existing technology. The sensors and control devices of the sensor system are not suitable for robot control and cannot provide calibration information and data suitable for robots.
By introducing a sensor system into the robot system, and using the robot control device to create a transformation matrix based on the position coordinates of multiple objects or points detected by the sensor system, it is used to convert the position coordinates of the sensor system into coordinates on the robot coordinate system, Implement in-plane transformation of coordinates.
It achieves reliable calibration of the robot and sensor system, simplifies the calibration process, avoids the introduction of complex processing of the vision system, and improves the efficiency and accuracy of calibration.
Smart Images

Figure CN111216099B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a robot system and a coordinate conversion method. Background Art
[0002] The following robot system is currently known, which includes: a robot that performs work on an object being moved by a transport device; a robot control device that controls the robot; a visual system that is controlled by the robot control device; and a measuring unit that measures the amount of movement of the object moved by the transport device, detects the position of the object in an image obtained by the visual system, and controls the robot based on the detected position and the amount of movement measured by the measuring unit (for example, refer to Patent Document 1).
[0003] Prior art literature
[0004] Patent Literature
[0005] Patent Document 1: Japanese Patent No. 4022843 Summary of the invention
[0006] Problem that the invention aims to solve
[0007] The visual system is a system designed by a robot manufacturing company for robot control, and is a system specifically used for robot control. Usually, the robot control device and the visual system are made to match each other, and the information and data obtained by the visual system are suitable for use in the robot control device. In addition, the robot control device and the visual system store a program for calibration, and calibration is performed semi-automatically or automatically using a calibration fixture having a dot pattern or similar thereto.
[0008] The spacing size of the dot pattern is known. Therefore, in the calibration, for example, the position of the camera relative to the calibration fixture is determined by the control unit of the visual system based on the image of the dot pattern obtained by the fixed camera of the visual system. In addition, a predetermined tool provided at the front end of the robot is brought into contact with multiple parts of the dot pattern by the robot control device, thereby determining the position of the calibration fixture in the robot coordinate system. In addition, various processing such as the derivation of internal parameters such as lens distortion is also performed. This processing is performed semi-automatically or automatically, and the robot control unit identifies the coordinate system of the visual system, and the robot control unit can correctly identify the position data of each object O in the robot coordinate system based on the data from the visual system.
[0009] In addition, the case where the camera is fixed is described here, and the same also applies to the case where the camera is fixed to the robot arm. In this case, the position of the robot during the image capture is also used to identify the position of the camera.
[0010] On the other hand, sensor systems manufactured by companies that manufacture high-precision measuring instruments that exceed the motion performance of inspection equipment or robots, for example, sometimes have functions that are superior to those of the visual system. Therefore, there is a demand for tracking control of robots using sensor systems. However, the sensors of the sensor system and the sensor control device are not used for the control of the robot. The same is true for the case where the sensor system is used for purposes other than inspection. Such a sensor system has specifications and interfaces suitable for its use, and the processing performed in the sensors of the sensor system and the sensor control device is also processing specifically for the said purpose. Therefore, the sensor system cannot provide information, data, etc. suitable for the control of the robot, and the sensor system cannot use the calibration fixture used for the control of the robot to determine the position of the sensor (external parameters). Since it is not possible to use a complex calibration program as described above, it is usually considered to introduce a visual system for the control of the robot.
[0011] In view of the above circumstances, it is desirable to provide a robot system and a coordinate conversion method that can calibrate a sensor system manufactured by a manufacturer of inspection equipment or high-precision measuring instruments and the robot for work performed by the robot.
[0012] Solutions for solving problems
[0013] The robot system of the first scheme comprises: a sensor system; a robot; and a robot control device, which controls the robot, the robot control device recognizes the robot coordinate system as the coordinate system of the robot, but does not recognize the coordinate system of the sensor system, and the robot control device performs matrix creation processing to create a transformation matrix based on the position coordinates of multiple objects or points obtained by the sensor system and the position coordinates in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the multiple objects or the multiple points. The transformation matrix is used to perform coordinate transformation on the position coordinates obtained by the sensor system within a plane containing the X-axis and the Y-axis.
[0014] The coordinate conversion method of the second scheme is a coordinate conversion method for converting the position coordinates detected by the sensor system into the position coordinates on the robot coordinate system recognized by the robot control device, comprising the following steps: based on the position coordinates of multiple objects or points obtained by the sensor system, and the position coordinates in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the multiple objects or the multiple points, creating a transformation matrix, the transformation matrix being used to perform coordinate conversion on the position coordinates obtained by the sensor system within a plane containing the X-axis and the Y-axis; using the transformation matrix to convert the position coordinates detected by the sensor system.
[0015] Effects of the Invention
[0016] According to this aspect, it is possible to calibrate the robot with a sensor system manufactured by a manufacturer of inspection equipment or high-precision measuring instruments for work performed by the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a diagram showing the configuration of a robot system using the detection system according to the first embodiment.
[0018] Figure 2 It is a block diagram of a control unit of the detection system according to the first embodiment.
[0019] Figure 3 This is a diagram for explaining the behavior of an object detected by the detection system according to the first embodiment.
[0020] Figure 4 This is a flowchart showing an example of calibration using the detection system of the first embodiment.
[0021] Figure 5 This is a flowchart showing a modified example of calibration using the detection system of the first embodiment.
[0022] Figure 6 This is a diagram for explaining the movement of an object detected by the detection system according to the second embodiment.
[0023] Figure 7 This is a flowchart showing an example of calibration using the detection system according to the second embodiment.
[0024] Figure 8 This is a flowchart showing an example of calibration using the detection system according to the second embodiment.
[0025] Fig. 9 This is a flowchart showing a modified example of calibration using the detection system of the second embodiment.
[0026] Fig.10 This is a diagram for explaining the operation of still another object detected by the detection system according to the second embodiment.
[0027] Fig.11 It is a diagram showing the configuration of a modified example of a robot system using the detection system of the first and second embodiments.
[0028] Description of Reference Numerals
[0029] 10: Transport device (mobile mechanism)
[0030] 10a: Measurement Department
[0031] 10b: Motor
[0032] 20: Sensor system
[0033] 21: Sensor
[0034] 22: Processing Department
[0035] 23: Judgment Department
[0036] 24: Sensor control device
[0037] 30: Robot
[0038] 30a: Arm
[0039] 31: Servo motor
[0040] 40: Robot control device
[0041] 41: Processor
[0042] 42: Display device
[0043] 43: Storage
[0044] 43a: System Programs
[0045] 43b: Action Program
[0046] 43c: Tracking Control Procedure
[0047] 43d: Calibration Procedure
[0048] 44: Servo controller
[0049] 45: Input
[0050] 50: Sensor
[0051] 201: Robot coordinate system
[0052] 202: Sensor coordinate system
[0053] W: Workpiece
[0054] O: Object DETAILED DESCRIPTION
[0055] Hereinafter, a robot system according to a first embodiment of the present invention will be described with reference to the drawings.
[0056] like Figure 1 and Figure 2As shown, the robot system of this embodiment includes: a transport device (moving mechanism) 10, which is a moving mechanism for moving an article (object) O; a sensor system 20; a robot 30; and a robot control device 40, which controls the robot 30. The transport direction of the transport device 10 coincides with the X-axis direction of a robot coordinate system 201, which is a coordinate system of the robot 30, the direction perpendicular to the transport surface of the transport device 10 coincides with the Z-axis direction of the robot coordinate system 201, and the Y-axis direction of the robot coordinate system 201 coincides with the width direction of the transport device 10. In this embodiment, the Z-axis direction is the vertical direction.
[0057] When each object O is a workpiece, the robot 30 performs operations such as taking out and processing each object O. Each object O may also be a hole formed in a single workpiece. In this case, the robot 30 performs operations such as processing and component installation on each object O.
[0058] The transport device 10 has a measuring unit 10a such as an encoder, which can detect the movement amount of the transported object O. The measuring unit 10a is, for example, provided in a motor 10b that drives the transport device 10. Alternatively, a roller may be installed at the front end of the encoder and the roller may be pressed against the conveyor belt surface. The measuring unit 10a is connected to the robot control device 40 and always sends the detection result of the measuring unit 10a to the control device 40.
[0059] The sensor system 20 is, for example, a system for inspecting the object O conveyed by the conveying device 10. The sensor system 20 includes: a sensor 21; a processing unit 22 that processes data obtained by the sensor 21; and a determination unit 23 that makes a determination using the processed data obtained by the processing unit 22. The processing unit 22 and the determination unit 23 are provided in a sensor control device 24, for example.
[0060] In addition, the processing unit 22 and the determination unit 23 may be built in the sensor 21 .
[0061] The sensor 21 may be any sensor as long as it can obtain data for detecting the position of the object O, for example, a two-dimensional camera, a three-dimensional camera, a three-dimensional distance sensor, etc. In the present embodiment, the sensor 21 is arranged above the conveying device 10, and the optical axis of the sensor 21 is parallel to the Z axis. That is, the sensor 21 is arranged so that its optical axis is substantially perpendicular to the conveying surface of the conveying device 10.
[0062] The sensor control device 24 includes a processor such as a CPU, a storage unit such as a nonvolatile memory, a ROM, and a RAM, an input unit such as a keyboard, and a display, and is connected to the robot control device 40. The processing unit 22 and the determination unit 23 are implemented by the processor operating based on a program stored in the storage unit.
[0063] The inspection may be any inspection, and the processing unit 22 creates processed data by performing known image processing, and the judgment unit 23 judges whether each object O is qualified or not based on the processed data, for example, as part of component inspection or product inspection.
[0064] Furthermore, the processing unit 22 or the determination unit 23 detects at least the position of each object O using the processed or pre-processed data. Alternatively, the processing unit 22 or the determination unit 23 may detect the position and posture of each object O.
[0065] In addition, the detected position of each object O may be the position of each object O on the data obtained by the sensor 21 or the position of each object O on the processed data.
[0066] The robot 30 is not limited to a specific type of robot. The robot 30 of the present embodiment is provided with a plurality of servo motors 31 (see Figure 3 ) is a vertical multi-joint robot. In addition, the arm 30a of the robot 30 is composed of a plurality of movable parts. Each servo motor 31 has a working position detection device for detecting its working position, and the working position detection device is an encoder as an example. The detection value of the working position detection device is sent to the robot control device 40. The robot 30 can also be a horizontal multi-joint robot, a multi-link robot, etc.
[0067] like Figure 3 As shown, in one example, the robot control device 40 includes: a processor 41 such as a CPU; a display device 42; a non-volatile memory; a storage unit 43 having a ROM, RAM, etc.; a plurality of servo controllers 44, which respectively correspond to the servo motors 31 of the robot 30; and an input unit 45 such as an operating panel.
[0068] The storage unit 43 stores a system program 43a, which assumes the basic functions of the robot control device 40. In addition, the storage unit 43 also stores an action program 43b and a tracking control program 43c. The processor 41 controls the servomotors 31 of the robot 30 and the tool T at the front end of the robot 30 based on the programs, so that the robot 30 operates the object O being transported by the transport device 10. In addition, the storage unit 43 stores a calibration program 43d.
[0069] In the present embodiment, the detection range AR1 of the sensor 21 is arranged on the upstream side of the conveying direction of the conveying device 10 relative to the working range AR2 of the robot 30, and the detection range AR1 and the working range AR2 do not overlap. The working range AR2 is not the range within which the robot 30 can move but the range within which the robot 30 performs the above-mentioned operation. In addition, the detection range AR1 and the working range AR2 may also partially overlap.
[0070] The robot control device 40 is made for controlling the robot 30, and therefore the robot control device 40 recognizes the robot coordinate system 201 which is the coordinate system of the robot 30. The robot control device 40 grasps the positions and postures of the movable parts of the arm 30a of the robot 30 and the tool T on the robot coordinate system 201, and controls the servomotors 31 and the tool T at the front end of the robot 30.
[0071] However, in order to use the position data of each object O detected by the sensor system 20 for controlling the robot 30, it is necessary to perform calibration for associating the sensor coordinate system 202 of the sensor system 20 with the robot coordinate system 201, but the sensor system 20 does not have such a function.
[0072] As a comparative example, a vision system used for controlling the robot 30 will be described. The vision system is manufactured by a robot manufacturing company that manufactures the robot 30 and the robot control device 40, and is a system specifically used for controlling the robot 30. Generally, the robot control device 40 and the vision system are manufactured to match each other, and the information and data obtained by the vision system are suitable for use in the robot control device 40. In addition, the robot control device 40 and the vision system store programs for calibration, and calibration is performed semi-automatically or automatically using a calibration jig having a dot pattern.
[0073] The spacing size of the dot pattern is known. Therefore, in the calibration, for example, the position of the camera relative to the calibration fixture is determined by the control unit of the visual system based on the image of the dot pattern obtained by the camera of the visual system. The robot control device 40 makes a predetermined tool provided at the front end of the robot 30 contact multiple parts of the dot pattern, thereby determining the position of the calibration fixture in the robot coordinate system 201. In addition, various processing such as the correspondence between the proportions of the two and the elimination of lens distortion is also performed. This processing is performed semi-automatically or automatically, and the robot control device 40 identifies the coordinate system of the visual system. The robot control device 40 identifies the position data of each object O on the robot coordinate system 201 based on the data from the visual system.
[0074] On the other hand, the sensor system 20 is manufactured by a company that specializes in manufacturing it, and the sensor 21 and the sensor control device 24 are used for inspection, not for controlling the robot 30. The same is true for the case where the sensor system 20 is used for purposes other than inspection. Such a sensor system 20 has specifications and interfaces suitable for its use, and the processing performed on the sensor 21 and the sensor control device 24 of the sensor system 20 is also specialized for the said purpose. Therefore, the sensor system 20 cannot provide information, data, etc. suitable for controlling the robot 30. In addition, the sensor system 20 cannot determine the position of the sensor 21 using a calibration fixture used for controlling the robot 30. In the case where a complicated calibration procedure as described above cannot be used, it is generally considered to introduce a visual system for controlling the robot.
[0075] The sensor system 20 and the sensor 21 used for a specific purpose such as inspection may have better functions than the visual system used for controlling the robot 30. For example, when the sensor 21 is high-speed and high-precision, the processing in the processing unit 22 may be high-speed and high-precision. In this embodiment, calibration is performed to use the output of the sensor system 20 for controlling the robot 30.
[0076] There is also a sensor system 20 that can derive internal parameters such as lens distortion or a positional relationship with the robot 30. However, the coordinate system is not aligned using the measurement values measured by the measuring unit 10a, but the working range of the robot 30 is basically within the field of view.
[0077] In addition, in the present embodiment, the internal parameters and external parameters of the sensor system 20 may be obtained using a tool specially prepared by a company that specializes in manufacturing the sensor system 20. In the present embodiment, the relationship between the detection result of the sensor system 20 and the robot coordinate system 201 is obtained, so the present embodiment is established. In addition, when the detection result is converted into millimeters in the sensor system 20, the ratio obtained in the present embodiment is ideally a value close to 1.
[0078] (Calibration Example 1)
[0079] Reference Figure 4The calibration is explained in the flowchart. First, two objects O are arranged within the detection range AR1 on the stopped conveying device 10 (step S1-1). In the case where each object O is a workpiece, the two objects O are placed on the conveying device 10 within the detection range AR1. In addition, the two objects O may be two threaded holes provided on a workpiece, or two marks provided on a plate. In addition, the object O used for calibration may be different from the object on which the robot 30 operates. In this case, it is preferred that the position of the object O used for calibration in the Z-axis direction corresponds to the position of the working object of the robot 30 in the Z-axis direction. In addition, it is not necessary to set the feature on one workpiece. Two workpieces may also be used. At this time, it is further preferred to fix the two workpieces to a conveyor belt with tape, etc., so that the relative relationship between the two workpieces does not change.
[0080] Next, an object O is placed in a state where the position cannot be detected by the sensor system 20 (step S1-2). In this state, a command for detecting the position of the object O is sent from the robot controller 40 to the sensor system 20 (step S1-3). The robot control device 40 receives the detection result P of the first position from the sensor system 20. 0 (Step S1-4).
[0081] Next, another object O is placed in a state where the position cannot be detected by the sensor system 20 (step S1-5). In this state, a command for detecting the position of the object O is sent from the robot controller 40 to the sensor system 20 (step S1-6). The robot control device 40 receives the detection result P of the second position from the sensor system 20. 1 (Step S1-7).
[0082] In step S1 - 2 and step S1 - 5 , the object O is placed in a state where the position of the object O cannot be detected, for example, by covering the object O with a cloth.
[0083] Next, the two objects O are moved to the working range AR2 by the transport device 10, and the transport device 10 is stopped (step S1-8). Furthermore, the tip (contact part) of the tool mounted on the robot 30 is brought into contact with a predetermined position of the other object O (step S1-9), and the storage unit 43 of the robot control device 40 stores the position of the tip of the tool at that time (position coordinate Q on the robot coordinate system 201). 0 ) (Step S1 - 10 ). In addition, the contact portion may be the front end portion of the robot 30 .
[0084] Furthermore, the tip (contact part) of the tool of the robot 30 is brought into contact with a predetermined position of an object O (step S1-11), and the storage unit 43 of the robot control device 40 stores the position of the tip of the tool at that time (position coordinate Q on the robot coordinate system 201). 1 ) (Step S1 - 12 ). The predetermined position is preferably a position corresponding to the position detected by the sensor system 20 .
[0085] Next, a transformation matrix for obtaining the position (Xa, Ya) of the arbitrary point Pa detected by the sensor system 20 as viewed from the robot coordinate system 201 is created (step S1 - 13 ).
[0086] The conversion matrix is created by the robot controller 40 based on the calibration program 43 d through, for example, the following processing.
[0087] First, according to the P detected by the sensor system 20 0 and P 1 The position of P on the sensor coordinate system 202 0 The detected position coordinates and P 1 The relationship between the detected position coordinates is created, and a unit vector is set, and the sensor XY coordinate system corresponding to the unit vector is set. For example, the sensor XY coordinate system is set in a plane parallel to the X axis and the Y axis of the sensor coordinate system 202.
[0088] As an example, according to P on the sensor coordinate system 202 0 The detected position coordinates and P 1 The relationship between the detected position coordinates, with P 0 As the origin, a unit vector of the X axis and a unit vector of the Y axis are created, and a sensor XY coordinate system corresponding to the unit vectors is defined. An arbitrary point Pa of the sensor system 20 is converted into coordinates in the sensor XY coordinate system.
[0089] In addition, according to the Q on the robot coordinate system 201 0 The position coordinates and Q 1 The relationship between the position coordinates of the sensor and the robot XY coordinate system is set in the robot coordinate system 201, and the position coordinates of the point Qa observed from the robot coordinate system 201 are obtained in a manner corresponding to the point Pa. The position coordinates of Qa take into account the position coordinates of the sensor according to P. 0 With P 1 The positional relationship between 0 With Q 1For example, the robot XY coordinate system is set in a plane parallel to the X-axis and Y-axis of the robot coordinate system 201. The movement amount measured by the measuring unit 10a is also used for association.
[0090] For example, according to Q on the robot coordinate system 201 0 The position coordinates and Q 1 The relationship between the position coordinates and Q 0 The robot XY coordinate system corresponding to the sensor XY coordinate system is defined as the origin. By summarizing the points Pa represented in the robot XY coordinate system and the sensor XY coordinate system, the coordinate value position (Xa, Ya) of any point Pa on the image in the robot XY coordinate system can be obtained. The ratio s of each pixel is calculated based on P 0 With P 1 The positional relationship between 0 With Q 1 In addition, the movement amount measured by the measuring unit 10a is also used.
[0091] Next, the correspondence between the position coordinates of point Pa and the obtained position coordinates of point Qa can be used to obtain a conversion matrix for converting the position coordinates of point Pa observed from the sensor coordinate system 202 to the position coordinates of point Qa observed from the robot coordinate system 201 .
[0092] In addition, when the above-mentioned method is not used, that is, the method of reducing the contact points to two points by using the configuration relationship of the object O and the constraint of the moving direction, the following formula (1) can also be used to analytically calculate the conversion matrix by touching three points. In addition, the conversion matrix can also be numerically calculated by touching more than three points using the least square method or other methods.
[0093] (Equation 1)
[0094]
[0095] Among them, H represents the mathematical element used for rotation, and T represents the mathematical element used for translation.
[0096] (Calibration Example 2)
[0097] Reference Figure 5 The calibration will be described with reference to the flowchart of FIG. First, similarly to the calibration example 1, two objects O are placed within the detection range AR1 on the stopped transport device 10 (step S2 - 1 ).
[0098] Next, the operator observes the image obtained by the sensor 21 or its processed data on the display of the sensor system 20 or other display devices, determines the first and second positions on the sensor coordinate system 202 for the tool of the robot 30 to contact (step S2-2), and uses the sensor system 20 to obtain the first point P 0 And the second point P 1 For example, when the position of a pointer that appears on the display device of the sensor system 20 is displayed on the display device, by making the pointer and point P 0 and point P 1 Aim to get point P 0 and point P 1 The first point P 0 and the second point P 1 It is preferable to correspond to the working height of the robot 30 .
[0099] Next, the operator uses the input unit 45 to set the first point P 0 and the second point P 1 The position coordinates of the first point P determined in step S2-2 may also be input to the robot control device 40 (step S2-3). 0 and the second point P 1 The position coordinates are sent to the robot controller 40.
[0100] Next, steps S2-4 to S2-9 similar to steps S1-8 to S1-13 of calibration example 1 are executed to create a transformation matrix for obtaining the position (Xa, Ya) of the position of an arbitrary point Pa detected by the sensor system 20 as viewed from the robot coordinate system 201.
[0101] By using the created conversion matrix, the position coordinates detected by the sensor system 20 can be converted into the position coordinates on the robot coordinate system. That is, the calibration for associating the sensor coordinate system 202 with the robot coordinate system 201 is completed.
[0102] In addition, as an example, the transformation matrix performs a coordinate transformation including a rotation around a Z axis perpendicular to the X axis and the Y axis. In addition, the transformation matrix of the present embodiment performs a coordinate transformation not including a rotation around the X axis and the Y axis. Therefore, it is possible to easily and reliably calibrate a plurality of objects O whose positions in the Z axis direction are not much different from each other.
[0103] After calibration as described above, the robot control device 40 uses at least the position data of each object O obtained by the sensor system 20 and the movement amount of each object O by the conveying device obtained by the measuring unit 10a to control the robot 30 and the tool T to perform a predetermined operation on each object O.
[0104] In the present embodiment, since the robot control device 40 recognizes the position of the contact part provided at the front end of the robot 30, the position of each object O on the robot coordinate system 201 can be obtained by making the contact part contact with a plurality of objects O. In addition, based on the position coordinates of each object O detected or obtained by the sensor system 20 and the position coordinates of each object O in the X-axis direction and the Y-axis direction in the robot coordinate system 201 obtained by the contact of the contact part, a conversion matrix for performing coordinate conversion in a plane including the X-axis and the Y-axis can be created. In this way, since the conversion matrix can be created without complicated processing, the sensor system 20 manufactured by a manufacturer of an inspection device or a manufacturer of a high-precision measuring instrument and the robot 30 can be easily and reliably calibrated.
[0105] In addition, in the present embodiment, the conversion matrix performs coordinate conversion including rotation around the Z axis which is perpendicular to the X axis and the Y axis.
[0106] More specifically, the transformation matrix performs coordinate transformation including rotation around the Z axis and performs coordinate transformation excluding rotation around the X axis and the Y axis. In this case, calibration can be easily and reliably performed on the basis of the robot 30 operating on a plurality of objects O whose positions in the Z direction are not much different from each other.
[0107] In addition, in this embodiment, a transformation matrix is created using the position coordinates of multiple objects O detected or obtained by the sensor system 20, the position coordinates obtained by making the contact part contact with the multiple objects O moved by the conveying device 10 after the position coordinates are obtained by the sensor system 20, and the movement amount measured by the measuring part 10a.
[0108] The detection range of the sensor system 20 manufactured by a manufacturer of an inspection device or a manufacturer of a high-precision measuring instrument is often different from the operating range of the robot 30. In this scheme, even when the detection range is different from the operating range, a conversion matrix for converting the position coordinates detected by the sensor system 20 into the position coordinates on the robot coordinate system 201 can be created using the movement amount measured by the measuring unit 10a.
[0109] In addition, in this embodiment, there are two objects O used for calibration.
[0110] Even if there are two objects O, the robot system can perform practically accurate calibration based on the robot 30 operating on a plurality of objects O whose positions in the Z-axis direction are not much different from each other. Since there are two objects for calibration, the time required for calibration can be shortened. This enables accurate calibration corresponding to the type, size, etc., when the type, size, etc. of the objects O operated by the robot 30 frequently changes.
[0111] In the robot system of the present embodiment, the robot control device 40 can recognize whether the sensor coordinate system 202 of the sensor system 20 is a right-hand coordinate system or a left-hand coordinate system based on the input to the input unit 45 .
[0112] In this configuration, regardless of whether the sensor system 20 adopts the right-handed coordinate system or the left-handed coordinate system, the robot controller 40 can be easily and reliably adapted to position detection of the sensor system 20 .
[0113] Furthermore, in the present embodiment, it is preferred that the deviation of the sizes of the plurality of objects O in the Z-axis direction is small. Since the robot system creates a transformation matrix for performing coordinate transformation in a plane including the X-axis and the Y-axis, when the deviation of the sizes of the plurality of objects O in the Z-axis direction is small, the robot control device 40 can be more reliably adapted to the position detection of the sensor system 20.
[0114] In addition, in the above-described embodiment, as a moving mechanism for moving the object O, a robot for moving the object O, a moving dolly for moving the mounted object O by its own movement, etc. may be used instead of the transport device 10. When a robot is used, the detection value of the working position detection device of each servo motor of the robot is used as the measurement value of the movement amount of the object O, instead of the measurement value of the measuring unit 10a. When a moving dolly is used, the detection value of the encoder of the motor driving the mounting dolly is used as the measurement value of the movement amount of the object O, instead of the measurement value of the measuring unit 10a.
[0115] In addition, instead of the measuring unit 10a, a sensor such as a two-dimensional camera may be used to detect the movement amount of the mark on the conveying device 10, the object O, etc. In this case, the sensor such as the two-dimensional camera functions as the measuring unit.
[0116] In addition, in the above embodiment, the sensor 21 may be supported by the robot 30 or other robots. In this case, the conversion matrix can be created by the same process as above. In this case, it is also preferred that the optical axis of the sensor 21 is parallel to the Z axis. The position of the sensor 21 can be obtained based on the motion information of the robot 30 or other robots.
[0117] Hereinafter, a robot system according to a second embodiment will be described with reference to the drawings.
[0118] The second embodiment shows another example of using the output of the sensor system 20 of the first embodiment for calibration of the control of the robot 30, and the other structures are the same as those of the first embodiment. In the second embodiment, the same conveying device (moving mechanism) 10, sensor system 20, robot 30, and robot control device 40 as those of the first embodiment are also used. The same reference numerals are given to the same components as those of the first embodiment, and their description is omitted.
[0119] like Figure 6 As shown in the second embodiment, for example, a workpiece W is placed on the transport device 10, and contours, through holes, marks, etc. provided on one end side and the other end side of the workpiece W in the Y-axis direction are detected as objects O. The processing unit 22 or the determination unit 23 of the sensor control device 24 detects at least the position of each object O. In addition, the processing unit 22 or the determination unit 23 may also detect the position and posture of each object O.
[0120] In the second embodiment, calibration is performed according to the following process for using the output of the sensor system 20 for controlling the robot 30. Matters not particularly described are processed in the same manner as in the first embodiment, and can also be applied to the same modified examples as in the first embodiment.
[0121] (Calibration Example 1)
[0122] Reference Figure 7 and Figure 8 The calibration is described in the flowchart of FIG. First, two objects O separated in the Y-axis direction are arranged within the detection range AR1 on the stopped conveying device 10 (step S3-1). Fig.10 The workpiece W shown. In this case, there are two objects O arranged side by side in the X-axis direction at one end side in the Y-axis direction, and one of them and the object O arranged at the other end side in the Y-axis direction may be arranged within the detection range AR1.
[0123] Next, one of the two objects O separated in the Y-axis direction is placed in a state where the position cannot be detected by the sensor system 20 (step S3-2), and in this state, a command instructing the sensor system 20 to detect the position of the object O is sent from the robot control device 40 to the sensor system 20 (step S3-3). The robot control device 40 receives the detection result P of the first position from the sensor system 20. 0 (Step S3-4).
[0124] Next, the other object O is placed in a state where the position cannot be detected by the sensor system 20 (step S3-5), and in this state, a command for detecting the position of the object O is sent from the robot control device 40 to the sensor system 20 (step S3-6). The robot control device 40 receives the detection result P of the second position from the sensor system 20. 1 (Step S3-7).
[0125] Next, the object O is moved within the detection range AR1 by the transport device 10 (step S3-8). In this state, for example, one object O is made to be in a state where the position cannot be detected by the sensor system 20 (step S3-9), and in this state, a command to detect the position of the object O is sent from the robot control device 40 to the sensor system 20 (step S3-10), and the robot control device 40 receives the detection result P of the third position from the sensor system 20. 2 (Step S3-11).
[0126] Next, the object O is moved to the working range AR2 by the transport device 10, and the transport device 10 is stopped (step S3-12). Then, the tip (contact part) of the tool mounted on the robot 30 is brought into contact with a predetermined position of another object O (step S3-13), and the storage unit 43 of the robot control device 40 stores the position of the tip of the tool at that time (position coordinate Q on the robot coordinate system 201). 0 )(Step S3-14).
[0127] Furthermore, the tip (contact part) of the tool of the robot 30 is brought into contact with a predetermined position of an object O (step S3-15), and the storage unit 43 of the robot control device 40 stores the position of the tip of the tool at that time (position coordinate Q on the robot coordinate system 201). 1 )(Step S3-16).
[0128] Next, a transformation matrix is created for obtaining the position (Xa, Ya) of the arbitrary point Pa detected by the sensor system 20 as viewed from the robot coordinate system 201 (step S3-17). 0 , P 1 The position coordinates of are also converted into the position coordinates Q in the robot coordinate system 201 0 , Q 1 .
[0129] In addition, the robot control device 40 uses the transformation matrix to calculate the detection result P 2 Position coordinate Q in robot coordinate system 201 2 , and determine the Q in the X-axis direction of the robot coordinate system 201 as the conveying direction 0 With Q2 Whether the position difference is within a predetermined reference range (step S3-18). For example, it is determined whether the determination coefficient A of the following formula (2) is within the reference range.
[0130] (Equation 2)
[0131] A=X 2 -X 0 …(2)
[0132] Among them, X 0 It's Q 0 The position in the X-axis direction, X 2 It's Q 2 The position in the X-axis direction. For example, the reference range is a range exceeding 0. The reference range can be set appropriately.
[0133] Through step S3-18, the robot control device 40 can associate the X-axis direction of the sensor coordinate system 202 with the X-axis direction of the robot coordinate system 201. That is, the robot control device 40 can determine whether it is a left-handed coordinate system or a right-handed coordinate system without input from an operator or the like.
[0134] In addition, in steps S3-8 to S3-11, when the object O is not moved by the transport device 10, the robot control device 40 may receive information such as the following from the sensor system 20: Fig.10 The detection result P of the position of another object O is shown 2 .exist Fig.10 In this case, the position of the other object O is different from the first position in the conveying direction of the conveying device 10, that is, the X-axis direction.
[0135] (Calibration Example 2)
[0136] Reference Fig. 9 The calibration will be described with reference to the flowchart of FIG. First, similarly to the calibration example 1, the workpiece W is placed within the detection range AR1 on the stopped transport device 10 (step S4 - 1 ).
[0137] Next, the operator observes the image obtained by the sensor 21 or the processed data thereof on the display of the sensor system 20 or other display device, determines the positions of the first object O, the second object O, and the third object O on the workpiece W to be contacted by the tool of the robot 30 on the sensor coordinate system 202 (step S4-2), and obtains the first point P using the sensor system 20. 0 , the second point P 1 , and the third point P 2 The position coordinates of P 2 Relative to point P 0The positions are different in the conveying direction of the conveying device 10. In addition, a third point P may be obtained after the object O is moved by the conveying device 10. 2 The location coordinates of .
[0138] Next, steps S4-4 to S4-9 similar to steps S3-12 to S3-17 of calibration example 1 are executed to create a transformation matrix for obtaining the position (Xa, Ya) of the position of an arbitrary point Pa detected by the sensor system 20 as viewed from the robot coordinate system 201.
[0139] In addition, similarly to step S3-18 of calibration example 1, point P of the third object O is calculated. 2 Position coordinate Q in robot coordinate system 201 2 , and determine the Q in the X-axis direction of the robot coordinate system 201 as the conveying direction 0 With Q 2 Whether the difference in position is within a predetermined reference range (step S4-10).
[0140] In the second embodiment, for example, if the X-axis direction of the sensor coordinate system 202 corresponds to the conveying direction of the conveying device 10, then the X-axis direction of the sensor coordinate system 202 corresponds to the conveying direction of the conveying device 10. 2 The value of X of the position coordinate (the position coordinate corresponding to the second position coordinate) minus the value of point Q 0 Therefore, the robot control device 40 calculates the value of the X coordinate of the position coordinate according to Q 0 With Q 2 By calculating the position difference, it is recognized that the X-axis direction of the sensor coordinate system 202 is consistent with the X-axis direction of the robot coordinate system 201.
[0141] In addition, in the present embodiment, the conveying direction of the conveying device 10 corresponds to the X-axis direction of the robot coordinate system 201 and the sensor coordinate system 202, but depending on the different device structures, when the conveying direction corresponds to the X-axis direction of the robot coordinate system 201 and the Y-axis direction of the sensor coordinate system 202, the conveying direction sometimes also corresponds to the Y-axis direction of the robot coordinate system 201 and the sensor coordinate system 202.
[0142] In the second embodiment, the direction in which the transport device 10 moves the object O is the X-axis direction of the robot coordinate system 201. With this configuration, the transport device 10 moves the object O, and thus the second position coordinates that differ only in the transport direction can be easily and reliably obtained.
[0143] The following schemes are derived from the above-mentioned embodiments.
[0144] The robot system of the first scheme comprises: a sensor system; a robot; and a robot control device, which controls the robot, the robot control device identifies the coordinate system of the robot, namely the robot coordinate system, but does not identify the coordinate system of the sensor system, and the robot control device performs matrix creation processing to create a transformation matrix based on the position coordinates of multiple objects or points obtained by the sensor system, and the position coordinates in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the multiple objects or the multiple points. The transformation matrix is used to perform coordinate transformation on the position coordinates obtained by the sensor system within a plane containing the X-axis and the Y-axis.
[0145] In this scheme, a conversion matrix for performing coordinate conversion in a plane including the X-axis and the Y-axis can be created based on the position coordinates of each object detected by the sensor system and the position coordinates of each object in the X-axis direction and the Y-axis direction of the robot coordinate system. In this way, since the conversion matrix can be created without complicated processing, the sensor system and the robot manufactured by a manufacturer of an inspection device or a manufacturer of a high-precision measuring instrument can be easily and reliably calibrated.
[0146] In the above scheme, preferably, the robot control device creates the transformation matrix based on the position coordinates of the multiple objects or the multiple points, and the position coordinates of the multiple objects or the multiple points in the robot coordinate system obtained by the contact part arranged at the front end of the robot with the positions corresponding to the multiple objects or the multiple points.
[0147] In this scheme, since the robot control device recognizes the position of the contact part provided at the front end of the robot, the position of each object on the robot coordinate system can be obtained by making the contact part contact with multiple objects. Therefore, the conversion matrix can be created without complicated processing or operation.
[0148] In the above scheme, preferably, the robot control device creates the transformation matrix based on the position coordinates of the multiple objects or the multiple points, and the position coordinates of the multiple objects or the multiple points in the robot coordinate system obtained according to the detection data of the sensor associated with the coordinate system and the robot.
[0149] In this scheme, the position coordinates of multiple objects or multiple points in the robot coordinate system can be easily obtained based on the detection data of the sensor associated with the coordinate system. Therefore, the conversion matrix can be created without complicated processing or operation.
[0150] In the above solution, preferably, the transformation matrix performs the coordinate transformation including a rotation around a Z axis perpendicular to the X axis and the Y axis.
[0151] As an example, the transformation matrix performs a coordinate transformation including a rotation around the Z axis. When a coordinate transformation is performed without including a rotation around the X axis and the Y axis, calibration can be easily and reliably performed based on the robot 30 operating on multiple objects whose positions in the Z axis direction are not much different from each other.
[0152] Preferably, the above-mentioned robot system comprises: a moving mechanism, which is used to move the object; and a measuring unit, which measures the movement amount of the object moved by the moving mechanism. In the matrix creation process, the robot control device uses the position coordinates of the multiple objects or the multiple points obtained by the sensor system, the position coordinates obtained by making the contact part contact with the positions corresponding to the multiple objects or the multiple points after the moving mechanism moves the position coordinates after the sensor system obtains the position coordinates, and the movement amount measured by the measuring unit to create the transformation matrix.
[0153] In most cases, the detection range of a sensor system manufactured by a manufacturer of an inspection device or a manufacturer of a high-precision measuring instrument is different from the operating range of a robot. In this scheme, even when the detection range is different from the operating range, a conversion matrix for converting position coordinates detected by the sensor system into position coordinates on the robot coordinate system can be created using the movement amount detected by the measuring unit.
[0154] In the above solution, preferably, the number of the objects or the points is two.
[0155] Even if there are two objects, the robot system can perform practically correct calibration based on the robot 30 operating on a plurality of objects whose positions in the Z-axis direction are not much different from each other. Since there are two objects for calibration, the time required for calibration can be shortened. This enables accurate calibration corresponding to the type, size, etc. when the type, size, etc. of the objects operated by the robot frequently changes.
[0156] In the above scheme, preferably, the above-mentioned robot system has a moving mechanism for moving the object, the robot control device receives a second position coordinate obtained by the sensor system, which is different in position from the multiple position coordinates obtained by the sensor system in the moving direction of the moving mechanism, uses the transformation matrix to perform coordinate transformation on at least one of the multiple position coordinates and the second position coordinate, and performs a judgment process, wherein the judgment process determines whether the difference between the position coordinate after the coordinate transformation and the second position coordinate in the X-axis direction is within a reference value.
[0157] For example, when the value obtained by subtracting the X value of the position coordinate of the second position coordinate converted by the conversion matrix from the X value of the position coordinate of one selected from the plurality of position coordinates converted by the conversion matrix exceeds a reference value such as 0, the X-axis direction of the sensor system coordinate system coincides with the X-axis direction of the robot coordinate system of the right-hand system, for example. Figure 6 When the right direction in the X-axis direction is the negative moving direction of the X-axis direction, the value obtained after the subtraction is less than 0. Therefore, regardless of whether the sensor system adopts a right-handed coordinate system or a left-handed coordinate system, the robot control device can be easily and reliably adapted to the position detection of the sensor system.
[0158] In the above scheme, preferably, the X-axis direction is the direction in which the object is moved by the moving mechanism.
[0159] In this case, by moving the object or point by the transport device and detecting the position of the moved object or point by the sensor system, a second position coordinate that is different from the selected position coordinate only in the moving direction of the moving mechanism can be easily and reliably obtained.
[0160] Preferably, the robot system includes an input unit for inputting input to the robot control device, and the robot control device recognizes whether the coordinate system of the sensor system is a right-hand coordinate system or a left-hand coordinate system based on the input to the input unit.
[0161] In this configuration, regardless of whether the sensor system adopts the right-hand coordinate system or the left-hand coordinate system, the robot control device can be easily and reliably adapted to position detection by the sensor system.
[0162] Preferably, the robot system includes a moving mechanism for moving the object, the robot performs a predetermined operation on the object, and the object has a small deviation in size in a Z-axis direction perpendicular to the X-axis and the Y-axis.
[0163] Since the robot system creates a transformation matrix for coordinate transformation within a plane including the X-axis and the Y-axis, the robot control device can be more reliably adapted to position detection by the sensor system when the size deviations of multiple objects in the Z-axis direction are small.
[0164] The coordinate conversion method of the second scheme is a coordinate conversion method for converting position coordinates detected by a sensor system into position coordinates on a robot coordinate system recognized by a robot control device, comprising the following steps: creating a transformation matrix based on the position coordinates of multiple objects or points obtained by the sensor system, and the position coordinates of the multiple objects or the multiple points in the X-axis direction and the Y-axis direction of the robot coordinate system obtained by making a contact part arranged at the front end of the robot controlled by the robot control device contact with the positions corresponding to the multiple objects or the multiple points, wherein the transformation matrix is used to perform coordinate conversion on the position coordinates obtained by the sensor system within a plane containing the X-axis and the Y-axis; and using the transformation matrix to convert the position coordinates detected by the sensor system.
[0165] In addition, in the first embodiment and the second embodiment, the position of the object O in the robot coordinate system 201 is obtained by bringing the tip of the tool as the contact part into contact with the object O, but other methods for obtaining the position of the object O in the robot coordinate system 201 may also be used. For example, detection data capable of detecting the position of the object O may be obtained using a sensor whose coordinate system is associated with the robot coordinate system 201, and the position coordinates of the object O may be obtained based on the detection data.
[0166] Specifically, if Fig.11 As shown, a sensor 50 as a camera is installed at, for example, the front end of the arm 30a of the robot 30, and the robot control device 40 obtains the position coordinates of the object O based on the image data obtained by the sensor 50. The sensor 50 may be a two-dimensional camera, a three-dimensional camera, a three-dimensional distance sensor, or the like.
[0167] For example, in steps S1-9 and S1-11, the sensor 50 may obtain an image including the object O, that is, detection data, and the robot control device 40 may obtain the position coordinates of the object O based on the detection data of the sensor 50. In this case, in steps S1-10 and S1-12, the position coordinates of the object O obtained based on the detection data of the sensor 50 are stored in the storage unit 43. The same applies to steps S2-5 to S2-8, S3-13 to S3-16, and S4-5 to S4-8.
[0168] In addition, the sensor 50 may be fixed to a frame, etc. instead of being fixed to the robot 30. In this case, as long as the coordinate system of the sensor 50 is associated with the robot coordinate system 201, the same effect as described above can be obtained.
Claims
1. A robot system, characterized in that: have: Sensor systems; Robots; and a robot control device, which controls the robot, In a state where a plurality of detection objects are arranged within the detection range of the sensor system, the sensor system is capable of detecting the position coordinates of the first detection object while hiding detection objects other than a first detection object among the plurality of detection objects by a predetermined method. The sensor system is capable of detecting the position coordinates of the second detection object in a state where the detection objects other than the second detection object among the plurality of detection objects within the detection range are hidden by the predetermined method, The robot control device performs matrix creation processing to create a transformation matrix based on the position coordinates of the first detection object and the second detection object obtained by the sensor system, and the position coordinates in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the first detection object and the second detection object respectively. The transformation matrix is used to perform coordinate transformation of the position obtained by the sensor system within a plane containing the X-axis and the Y-axis.
2. The robot system according to claim 1, characterized in that: The robot control device creates the transformation matrix based on the position coordinates of the first detection object and the position coordinates of the second detection object, as well as the position coordinates of the first detection object and the second detection object in the robot coordinate system obtained by making the contact part provided at the front end of the robot contact with the positions corresponding to the first detection object and the second detection object.
3. The robot system according to claim 1, characterized in that: The robot control device creates the transformation matrix based on the position coordinates of the first detection object and the second detection object, and the position coordinates of the first detection object and the second detection object in the robot coordinate system obtained based on the detection data of the sensor associated with the robot.
4. The robot system according to any one of claims 1 to 3, characterized in that: The transformation matrix performs the coordinate transformation including a rotation about a Z axis that is perpendicular to the X axis and the Y axis.
5. The robot system according to claim 2, characterized in that: The robot system comprises: a moving mechanism for moving the object; and a measuring unit that measures a movement amount of the object moved by the moving mechanism, In the matrix creation process, the robot control device creates the transformation matrix using the position coordinates of the first detection object and the position coordinates of the second detection object obtained by the sensor system, the position coordinates obtained by making the contact part contact with the positions corresponding to the first detection object and the second detection object after being moved by the moving mechanism after the position coordinates are obtained by the sensor system, and the movement amount measured by the measuring part.
6. The robot system according to claim 3, characterized in that: The robot system comprises: a moving mechanism for moving the object; and a measuring unit that measures a movement amount of the object moved by the moving mechanism, In the matrix creation process, the robot control device creates the transformation matrix using the position coordinates of the first detection object and the position coordinates of the second detection object obtained by the sensor system, the position coordinates of the first detection object and the second detection object obtained based on the detection data after the position coordinates are obtained by the sensor system and moved by the moving mechanism, and the movement amount measured by the measuring unit.
7. The robot system according to any one of claims 1 to 3, characterized in that: The number of the multiple detection objects is two.
8. The robot system according to claim 5, characterized in that: The X-axis direction is the direction in which the object is moved by the moving mechanism.
9. The robot system according to any one of claims 1 to 3, characterized in that: The robot system includes an input unit for inputting input to the robot control device. The robot control device recognizes whether the coordinate system of the sensor system is a right-hand coordinate system or a left-hand coordinate system based on an input to the input unit.
10. The robot system according to any one of claims 1 to 3, characterized in that: The robot system includes a moving mechanism for moving the object. The robot performs a predetermined operation on the object. The object has a small deviation in size in a Z-axis direction perpendicular to the X-axis and the Y-axis.
11. A robot system, characterized in that: have: Sensor systems; robot; a robot control device that controls the robot; and A moving mechanism, which is used to move a plurality of detection objects, wherein the plurality of detection objects are a plurality of objects or a plurality of points, the robot control device recognizes the robot coordinate system as the coordinate system of the robot but does not recognize the coordinate system of the sensor system, The robot control device performs matrix creation processing of creating a transformation matrix based on a plurality of position coordinates corresponding to the plurality of detection objects and including the first position coordinates of the detection object of interest as one of the plurality of detection objects obtained by the first detection of the sensor system, and the position coordinates in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the plurality of detection objects, wherein the transformation matrix is used to perform coordinate transformation on the position coordinates obtained by the sensor system within a plane including the X-axis and the Y-axis. After detecting the first position coordinate, and at least moving the detection object of interest along its moving direction by the moving mechanism, the robot control device receives the second position coordinate of the detection object of interest obtained by the sensor system, uses the transformation matrix to perform coordinate transformation on the first position coordinate and the second position coordinate, and performs a judgment process, wherein the judgment process determines whether the difference between the positions of the first position coordinate and the second position coordinate in the X-axis direction after the coordinate transformation is within a reference value.
12. A coordinate conversion method, characterized in that: The coordinate conversion method is a coordinate conversion method for converting a detection position detected by a sensor system into a position coordinate on a robot coordinate system recognized by a robot control device, comprising the following steps: In a state where a plurality of detection objects are arranged within a detection range of the sensor system, the sensor system detects the position coordinates of the first detection object while hiding detection objects other than a first detection object among the plurality of detection objects using a predetermined method; In a state where detection objects other than a second detection object among the plurality of detection objects within the detection range are hidden by using the predetermined method, detecting the position coordinates of the second detection object; Creating a transformation matrix based on the position coordinates of the first detection object and the second detection object obtained by the sensor system, and the position coordinates of the first detection object and the second detection object in the X-axis direction and the Y-axis direction of the robot coordinate system corresponding to the first detection object and the second detection object, respectively, wherein the transformation matrix is used to perform coordinate transformation on the position obtained by the sensor system within a plane including the X-axis and the Y-axis; The detected positions detected by the sensor system are transformed using the transformation matrix.
