Calibration method of coordinate conversion parameters and coordinate conversion method
By obtaining the coordinates of the photographic coding point measured by the binocular camera when the manipulator is in the reference state and performing fitting, the first coordinate conversion parameter is determined, which solves the problem of slow calibration speed after the position and attitude of the binocular camera are moved during use. It achieves fast and concise coordinate conversion and efficient dual-camera orientation, improving the fault tolerance of the system.
Patent Information
- Application Number
- CN202310411413.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-04-17
AI Technical Summary
After the position and attitude of the binocular camera move during use, the calibration speed is slow, the system has poor fault tolerance, and the reference ruler needs to be oriented every time, which is inefficient and cannot achieve rapid calibration.
When the manipulator is in the reference state, the measurement coordinates of a preset number of photographic coding points measured by the binocular camera are obtained, and the first coordinate conversion parameter is determined based on the measurement coordinates and the calibration coordinates of the predetermined photographic coding points, using It is used to quickly realize dual camera orientation and measurement and reduce the number of recalibrations.
The speed and efficiency of binocular camera calibration are improved. Only the coordinates of the photographic coding points need to be measured to achieve fast and concise coordinate conversion, with better fault tolerance. After the camera position changes, only one reference state calibration is needed to obtain the first coordinates. Conversion parameters.
Smart Images

Figure CN118809663A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mechanical arms, and in particular to a coordinate conversion parameter calibration method and a coordinate conversion method. Background Art
[0002] At present, the main method for converting the dual-camera system coordinate system to the manipulator system coordinate system is to first orient the reference ruler, then use the dual cameras to calibrate the manipulator TCP point, and finally convert the dual-camera coordinate system to the manipulator coordinate system. The main steps of this method are as follows: first set up a dual-camera measurement system. During the calibration and use process, the relative position and posture of the two cameras remain unchanged. If there is a change, the calibration needs to be restarted. Measure the different postures of the reference ruler at different positions within the field of view of the two cameras. In order to improve the measurement accuracy, the entire calibration process needs to cover the entire measurement space. After the calibration is completed, keep the position and posture of the camera unchanged. Paste a target ball seat on the end of the manipulator and place a photographic target ball. Use the calibrated binocular camera to monitor the photographic target ball and record the initial position. The end of the manipulator approaches the initial position with 4 different postures, and the binocular camera is used to determine whether the end approach is successful to complete the TCP point calibration. The manipulator that has completed the TCP calibration moves 4 positions, records the coordinate values in the manipulator coordinate system, and measures these 4 positions with the calibrated binocular camera. Through the conversion of these four common points, the dual camera coordinate system is converted to the robotic arm coordinate system.
[0003] However, the binocular camera cannot undergo relative changes in position and posture during use. If changes occur, calibration needs to be restarted, which is cumbersome and has poor system fault tolerance. In addition, this method requires reference ruler orientation each time, which is slow and inefficient, making it impossible to achieve fast calibration. Summary of the invention
[0004] The present invention provides a coordinate conversion parameter calibration method and a coordinate conversion method to solve the problem of slow binocular camera calibration speed.
[0005] According to one aspect of the present invention, a method for calibrating coordinate transformation parameters is provided, comprising:
[0006] When the robot arm is in a reference state, the measurement coordinates of the photographic coding points measured by the binocular camera are obtained;
[0007] Determine a first coordinate conversion parameter based on fitting the measured coordinates with the predetermined calibrated coordinates of the photographic coding point, wherein the calibrated coordinates of the photographic coding point are the coordinates of the photographic coding point in the robot arm coordinate system;
[0008] The mechanical coordinates of the photographic encoding point are determined according to the measured coordinates and the first coordinate conversion parameter.
[0009] According to one aspect of the present invention, there is provided a coordinate conversion method, comprising:
[0010] Get the current coordinates of the marker points to be measured by the binocular camera;
[0011] The mechanical coordinates of the mark point to be measured are determined according to the current coordinates and a predetermined first coordinate conversion parameter, wherein the first coordinate conversion parameter is calibrated using a method as described in any embodiment of the present invention.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any embodiment of the present invention when executed.
[0017] The technical solution of the embodiment of the present invention is to obtain the measurement coordinates of a preset number of photographic coding points measured by the binocular camera when the mechanical arm is in the reference state; and to determine the first coordinate conversion parameter based on the measurement coordinates and the calibration coordinates of the predetermined photographic coding points, wherein the calibration coordinates of the photographic coding points are the coordinates of the photographic coding points in the mechanical arm coordinate system, which solves the problem of slow calibration speed of the binocular camera after the position and posture are moved during use. The calibration coordinates of the coded photographic points are determined during the calibration process. When the position of the binocular camera is changed and recalibrated during the application process, the binocular camera only needs to measure the coordinates of the photographic coding points, and the first coordinate conversion parameter is obtained by fitting the measured coordinate values with the predetermined calibration coordinates. The calibration method provided by the embodiment of the present invention is fast and efficient in calibrating the coordinate conversion parameters, and only needs to measure the coordinates of the photographic coding points to realize the dual-camera orientation and measurement, which is fast and concise; when recalibrating after the camera position changes, the first coordinate conversion parameter can be obtained by controlling the mechanical arm in the reference state and calibrating once, which has better fault tolerance.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a flow chart of a method for calibrating coordinate transformation parameters provided according to the first embodiment of the present invention;
[0021] Figure 2 is a schematic diagram of a system architecture for implementing calibration provided according to Embodiment 1 of the present invention;
[0022] Figure 3 is a flow chart of a method for calibrating coordinate transformation parameters provided according to the second embodiment of the present invention;
[0023] Figure 4 is an implementation example diagram of a robot arm TCP calibration provided according to the second embodiment of the present invention;
[0024] Figure 5 is an example diagram of an implementation of determining a conversion relationship provided according to Embodiment 2 of the present invention;
[0025] Figure 6 is an example diagram of an implementation of determining the coordinates of a laser target sphere according to the second embodiment of the present invention;
[0026] Figure 7 is an example diagram of an implementation of determining calibration coordinates provided according to Embodiment 2 of the present invention;
[0027] Figure 8 is an example diagram of an implementation of determining a first coordinate transformation parameter provided according to Embodiment 2 of the present invention;
[0028] Fig. 9 is a flow chart of a coordinate conversion method provided according to Embodiment 3 of the present invention;
[0029] Fig.10 is a schematic structural diagram of a coordinate conversion parameter calibration device provided according to a fourth embodiment of the present invention;
[0030] Fig.11 is a structural schematic diagram of a coordinate conversion device provided according to Embodiment 5 of the present invention;
[0031] Fig.12 It is a schematic diagram of the structure of an electronic device provided by Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] Embodiment 1
[0035] Figure 1 A flowchart of a coordinate conversion parameter calibration method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where a binocular camera is quickly calibrated after the position is changed. The method can be executed by a coordinate conversion parameter calibration device. The coordinate conversion parameter calibration device can be implemented in the form of hardware and / or software. The coordinate conversion parameter calibration device can be configured in an electronic device.
[0036] Figure 2 A schematic diagram of a system architecture for achieving calibration is provided. The calibration of coordinate conversion parameters achieved by the present invention is mainly completed by the cooperation of a transfer robot system 11, a binocular camera measurement system 12, and a laser tracker measurement system 13. The transfer robot system 11: defines the reference state (Home state) position of the robot, and pastes marking points and coding points on the robot, and pastes a laser tracker target ball seat 111 on the end of the robot. RThe laser tracker measurement system 13 mainly tracks the laser tracker target ball at the end of the robot arm, which is used to calibrate the tool center point (TCP point) of the robot arm using the 4-point method, realizes the rapid calibration of the TCP point, and moves the robot arm to 4 different postures to realize the laser tracker and robot arm coordinate system unity, and assigns the robot arm coordinate system to the robot arm Home state axis, O T The binocular camera measurement system 12 is mainly used to measure the photographic target ball and the photographic coding point 112 on the mechanical arm rotation axis, and convert the binocular camera coordinate system to the mechanical arm coordinate system, that is, to convert the binocular camera measurement value into the measurement value (for example, coordinate) in the mechanical arm coordinate system. C The figure only shows one laser tracker target sphere seat 111 and a photographic coding point 112 for example, and the other similar circles are all laser tracker target sphere seats 111, and the other similar rectangles are all photographic coding points 112.
[0037] like Figure 1 As shown, the method includes:
[0038] S101. When the robot arm is in a reference state, obtain measurement coordinates of a preset number of photographic coding points measured by a binocular camera.
[0039] In this embodiment, the reference state is the Home state of the robot arm, and the reference state can be preset; the photographic coding point can be specifically understood as the coding mark point set on the surface of the measured object in photogrammetry. The number of photographic coding points in the embodiment of the present application can be one or more, and the number of photographic coding points can be set according to the size of the robot arm. The photographic coding points are evenly set on one side of the robot arm. For example, the number of photographic coding points of the six-axis robot arm can be set to 6, that is, the preset number is 6. The measurement coordinates can be specifically understood as the coordinates of the photographic coding points measured by the binocular camera, and the measurement coordinates are the coordinates under the binocular camera coordinates.
[0040] Specifically, a binocular camera measurement system is built in front of the robot arm. Usually, the measurement range of the binocular camera includes the entire working area. Determine whether the robot arm is in the reference state. If so, directly measure the coordinates of the photographic coding points through the binocular camera; if not, control the robot arm to be in the reference state, for example, send a control instruction to the robot arm, the control instruction only instructs the robot arm to adjust to the reference state, and the robot arm adjusts according to the current posture after receiving the control instruction, and adjusts its own posture to the reference state, or determines the adjustment angle, height and other adjustment information according to the current posture of the robot arm, generates a control instruction carrying the adjustment information and sends it to the robot arm, and the robot arm directly adjusts according to the adjustment information, and adjusts its own posture to the reference state. When the robot arm is in the reference state, control the binocular camera to measure the photographic coding points on the robot arm to obtain the measurement coordinates. The execution device can communicate with the binocular camera to obtain the measurement coordinates of the photographic coding points measured by it. The photographic coding points are pasted on one side of the robot arm, and the number can be multiple.
[0041] S102, determining a first coordinate conversion parameter based on fitting the measured coordinates with the predetermined calibrated coordinates of the photographic coding point, wherein the calibrated coordinates of the photographic coding point are the coordinates of the photographic coding point in the robot arm coordinate system.
[0042] In this embodiment, the calibration coordinates can be specifically understood as the coordinates of the photographic coding points determined during the calibration process. The first coordinate conversion parameters can be specifically understood as the parameters used to convert the coordinates in the binocular camera coordinate system to the robot coordinate system; the first coordinate conversion parameters include rotation parameters, translation parameters, and scaling parameters, wherein the number of rotation parameters is usually 3, the number of translation parameters is usually 3, and the number of scaling parameters is 1. The mechanical coordinates can be specifically understood as the coordinates of the mark point to be measured in the robot coordinate system.
[0043] Specifically, the calibration coordinates of each photographic coding point are determined in advance. After the calibration coordinates are determined, if the binocular camera changes its position, the binocular camera can be quickly calibrated through the calibration coordinates to determine the first coordinate conversion parameters used for coordinate conversion. The calibration method of coordinate conversion parameters provided in the embodiment of the present application is applied to the calibration of coordinate conversion parameters after the binocular camera changes its position. The measured coordinates and the calibration coordinates of the photographic coding points are fitted, and the fitting method can be the best fit to obtain the first coordinate conversion parameters. In the embodiment of the present application, the number of measured coordinates and calibration coordinates is the same, that is, one photographic coding point corresponds to one measured coordinate and one calibration coordinate. The first coordinate conversion parameters are obtained through the above-mentioned n sets of coordinate fitting, where n is a preset number.
[0044] The first coordinate conversion parameter in the embodiment of the present application can convert any coordinate in the binocular camera coordinate system into the mechanical coordinate system to achieve coordinate conversion.
[0045] The embodiment of the present invention provides a calibration method for coordinate conversion parameters, which solves the problem of slow calibration speed of a binocular camera after the position and posture move during use. During the calibration process, the calibration coordinates of the coded photographic points are determined. When the position of the binocular camera changes during application and it is recalibrated, the binocular camera only needs to measure the coordinates of the photographic coding points, and the measured coordinate values are fitted with the predetermined calibration coordinates to obtain the first coordinate conversion parameters. The calibration method provided by the embodiment of the present invention is fast and efficient when calibrating the coordinate conversion parameters, and only needs to measure the coordinates of the photographic coding points to achieve dual-camera orientation and measurement, which is fast and simple; when recalibrating after the camera position changes, it is only necessary to control the robotic arm to calibrate once in the reference state to obtain the first coordinate conversion parameters, which has better fault tolerance.
[0046] Embodiment 2
[0047] Figure 3 This is a flow chart of a method for calibrating coordinate transformation parameters provided in the second embodiment of the present invention. This embodiment is refined on the basis of the above embodiment. Figure 3 As shown, the method includes:
[0048] S201, calibrating the tool center point of the robot arm to determine the first coordinate of the tool center point in the robot arm coordinate system.
[0049] In this embodiment, the tool center point is the TCP point; the first coordinate can be specifically understood as the coordinate of the tool center point in the robot arm coordinate system. The tool center point calibration of the robot arm can be calibrated by the four-point method, and the first coordinate is determined by calibration. The first coordinate is the coordinate of the tool center point in the robot arm coordinate system. The robot arm coordinate system can pre-select a point in the robot arm as the coordinate origin. The first coordinate is the coordinate relative to this origin. The first coordinate can represent the positional relationship between the TCP point and the origin. The origin is taken as the position of the robot arm. The positional relationship between the TCP point and the origin is the positional relationship between the TCP point and the robot arm.
[0050] S202: Determine the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system according to the first coordinate.
[0051] In this embodiment, the conversion relationship can be expressed in the form of a matrix, a parameter, etc. The TCP point of the robot is a determined point, and the position of the TCP point in the robot coordinate system is determined according to the first coordinate. The TCP point is measured by a laser tracker to obtain the coordinates of the TCP point in the laser tracker coordinate system. Since the spatial position of the TCP point is fixed, the conversion relationship between the laser tracker coordinate system and the robot coordinate system can be calculated according to the first coordinate of the TCP point in the robot coordinate system and the coordinate of the laser tracker coordinate system, thereby achieving the effect of converting the laser tracker coordinate system to the robot coordinate system.
[0052] As an optional embodiment of this embodiment, this optional embodiment further optimizes the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system determined according to the first coordinate as follows:
[0053] A1. Control the robot arm to move to at least four positions, and determine the second coordinate of the tool center point in the robot arm coordinate system when the robot arm is in each position based on the first coordinate.
[0054] In this embodiment, the second coordinate can be specifically understood as the coordinate of the TCP point in the robot arm coordinate system. The robot arm posture is adjusted to control the robot arm to move at least 4 positions. The positions moved by the robot arm are different, and the TCP points at each position after the robot arm moves can be measured by the laser tracker. For each position, the position of the robot arm at this time is determined. Since the relative position relationship represented by the first coordinate is determined, the second coordinate can be determined according to the first coordinate and the position of the robot arm, that is, when the robot arm is in this position, the second coordinate of the TCP point in the robot arm coordinate system.
[0055] A2. Control the laser tracker to measure the laser measurement coordinates of the tool center point when the robot arm is in various positions.
[0056] In this embodiment, the laser measurement coordinates can be specifically understood as the coordinates of the tool center point in the laser tracker coordinate system. During the movement of the robotic arm, for each position, after the robotic arm moves to this position, the laser tracker is controlled to measure the coordinates of the TCP point of the robotic arm to obtain the laser measurement coordinates.
[0057] A3. Perform common point conversion based on each second coordinate and each laser measurement coordinate to determine the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system.
[0058] For each position, it corresponds to a second coordinate and a laser measurement coordinate, and the common point is transformed by the best fitting method to obtain the transformation relationship between the laser tracker coordinate system and the robot arm coordinate system. The embodiment of the present application fits the coordinates of the same point in two different coordinate systems to obtain the transformation relationship between the two coordinate systems.
[0059] In the embodiment of the present application, three positions can determine the conversion relationship between the two coordinate systems. However, if only three positions are used to determine the conversion relationship, if one set of data corresponding to the three positions has an error, the accuracy of the conversion relationship will be affected. By determining the conversion relationship through at least four positions, the conversion relationship can be determined with a certain degree of redundancy, so the accuracy of the determined conversion relationship can be guaranteed.
[0060] S203, when the robotic arm is in a reference state, controlling the laser tracker to measure the laser tracker target ball on the robotic arm, and determining the coordinates of the laser target ball measured by the laser tracker based on a conversion relationship, the laser target ball coordinates being the coordinates in the robotic arm coordinate system.
[0061] In this embodiment, the laser target ball coordinates can be specifically understood as the coordinates of the laser target ball in the mechanical coordinate system. Before measuring the laser tracker target ball, it is determined whether the mechanical arm is in the reference state. If not, the mechanical arm is controlled to adjust to the reference state. When it is determined that the mechanical arm is in the reference state, the laser tracker is controlled to measure the laser tracker target ball on the mechanical arm, the position of the laser tracker target ball is determined, and the position of the laser tracker target ball is converted based on the conversion relationship to obtain the laser target ball coordinates.
[0062] As an optional embodiment of this embodiment, this optional embodiment further converts the laser target sphere coordinates measured by the laser tracker determined based on the conversion relationship into:
[0063] B1. Determine the target ball coordinates of the laser tracking target ball measured by the laser tracker. The target ball coordinates are the coordinates in the laser tracker coordinate system.
[0064] In this embodiment, the target ball coordinates can be understood as the coordinates of the laser tracking target ball in the laser tracker coordinate system. The laser tracker measures the laser tracker target ball and can directly obtain the target ball coordinates in the laser tracker coordinate system.
[0065] B2. Based on the conversion relationship, the target sphere coordinates are converted to obtain the laser target sphere coordinates.
[0066] The target ball coordinates are transformed through the conversion relationship, and the coordinates in the laser tracker coordinate system are mapped to the robot arm coordinate system. For example, when the conversion relationship is a matrix, the target ball coordinates can be directly multiplied with the matrix to obtain the laser target ball coordinates.
[0067] This execution device can obtain the target ball coordinates of the laser tracking target ball measured by the laser tracker and convert them into laser target ball coordinates; or, after the laser tracker measures the target ball coordinates, it directly converts them into laser target ball coordinates, and this execution device can directly obtain the converted laser target ball coordinates.
[0068] S204, controlling the binocular camera to measure the photographic target sphere and the photographic coding points on the robotic arm to obtain the coordinates of the photographic target sphere and the coordinates of the photographic coding points.
[0069] In this embodiment, the coordinates of the photographic target ball can be specifically understood as the coordinates of the photographic target ball in the binocular camera coordinate system; the coordinates of the photographic coding point can be specifically understood as the coordinates of the photographic coding point in the binocular camera coordinate system.
[0070] A photographic target ball and photographic coding points are set on the manipulator. The position of the photographic target ball on the manipulator is the same as that of the laser tracker target ball, that is, the laser tracker target ball in the laser tracker target ball seat is replaced with the photographic target ball. The binocular camera is controlled to measure the photographic target ball on the manipulator. After measuring the photographic target ball, the binocular camera obtains the photographic target ball coordinates in its own coordinate system; the binocular camera simultaneously measures the photographic coding points on the manipulator. After measuring the photographic coding points, the binocular camera obtains the photographic coding point coordinates in its own coordinate system.
[0071] As an optional embodiment of the present embodiment, the further optimization of the present optional embodiment includes: before controlling the binocular camera to measure the photographic target ball and the photographic coding point on the robotic arm, controlling the connecting line of the binocular camera to be parallel to the plane where the robotic arm is in the reference state; wherein the angle of the binocular camera is within a preset angle range.
[0072] In this embodiment, the preset angle range can be set according to the engineering requirements in the actual application, for example, the preset angle range is 60-120 degrees. When the binocular camera measurement system is built in front of the robot arm, the measurement range of the binocular camera includes the entire working area. The connection line of the binocular camera is controlled to be parallel to the plane where the robot arm is in the Home state, and at the same time, the binocular camera is controlled to be within the preset angle range.
[0073] S205, determining the calibration coordinates of the photographic coding point according to the photographic target sphere coordinates, the photographic coding coordinates and the laser target sphere coordinates.
[0074] Among them, the number of laser tracker target balls, photography target balls and photography coding points is a preset number.
[0075] Specifically, since the photography target sphere and the laser tracker target sphere have the same position in space, the coordinate system conversion relationship between the binocular camera coordinate system and the laser tracker coordinate system can be obtained by fitting all the photography target sphere coordinates and the laser target sphere coordinates. According to the coordinate system conversion relationship, the photography coding coordinates are converted from the binocular camera coordinate system to the robotic arm coordinate system, and the obtained coordinates are the calibration coordinates of the photography coding points.
[0076] As an optional embodiment of this embodiment, this optional embodiment further optimizes the calibration coordinates of the photographic coding point determined according to the photographic target sphere coordinates, the photographic coding coordinates and the laser target sphere coordinates as follows:
[0077] C1. Perform the best fit on the photographic target sphere coordinates and the laser target sphere coordinates to determine the second coordinate conversion parameters.
[0078] In this embodiment, the second coordinate transformation parameters can be specifically understood as the parameters used when converting the binocular camera coordinate system to the robotic arm coordinate system. The second coordinate transformation parameters include rotation parameters, translation parameters, and scaling parameters, wherein the number of rotation parameters is usually 3, the number of translation parameters is usually 3, and the number of scaling parameters is 1.
[0079] The number of the photographic target balls and the laser tracker target balls of this embodiment is a preset number, so the number of the photographic target ball coordinates and the number of the laser target ball coordinates are both preset numbers and correspond one to one. When fitting, the best fit is performed according to each photographic target ball coordinate and its corresponding photographic laser target ball coordinate to determine the second coordinate conversion parameter.
[0080] C2. Determine the calibration coordinates of the photographic coding point according to the photographic coding coordinates and the second coordinate conversion parameter.
[0081] The photographic coding coordinates are transformed by the second coordinate transformation parameter, for example, the photographic coding coordinates are multiplied by the second coordinate transformation parameter to obtain the calibrated coordinates of the photographic coding point.
[0082] As an optional embodiment of the present embodiment, the further optimization of the present optional embodiment includes: the reference state is that the axes of the robot arm are in the same plane, and the plane is perpendicular to the horizontal plane.
[0083] Taking a six-axis robotic arm as an example, the reference state of the six-axis robotic arm is that the six axes of the robotic arm are in a plane, and this plane is perpendicular to the horizontal plane.
[0084] Exemplarily, an embodiment of the present application provides an implementation method for determining calibration coordinates, comprising the following steps:
[0085] The first step is to calibrate the robot arm TCP and determine the first coordinate of the TCP point.
[0086] For example, Figure 4 This is an example diagram of implementing TCP calibration of a robot arm provided in an embodiment of the present application. TCP calibration is implemented through the following calibration steps:
[0087] (1) A laser tracker target ball mount is attached to the end of the robot arm, a laser tracker target ball 113 is placed thereon, a laser tracker is placed in the middle of the binocular camera, and the laser tracker is used to monitor the laser tracker target ball 113 on the target ball mount.
[0088] (2) Move the robotic arm so that the target ball is in a position that is easier to measure. The laser tracker records this position as the initial position. The robotic arm uses the four-point method to calibrate the TCP point 114. That is, the robotic arm uses four different postures to make the target ball position coincide with the initial position. The robotic arm records these four postures to complete the TCP calibration. At this time, the first coordinate of the TCP point 114 in the robotic arm coordinate system can be obtained. The first coordinate can also be converted into the positional relationship between the TCP point 114 and the robotic arm coordinate system.
[0089] The second step is to determine the conversion relationship between the laser tracker coordinate system and the robotic arm coordinate system.
[0090] For example, Figure 5 An implementation example diagram for determining a conversion relationship is provided in an embodiment of the present application. Taking the movement of a robotic arm to four positions as an example, the robotic arm moves four positions, and the TCP points 114 at the four positions can be measured by a laser tracker. The robotic arm and the laser tracker respectively measure the TCP points 114 in the four postures, and the coordinates of the TCP point 114 in the laser tracker coordinate system and the robotic arm coordinate system are converted to a common point to determine the conversion relationship between the two coordinate systems, and the laser tracker coordinate system is converted to the robotic arm coordinate system.
[0091] The third step is to determine the coordinates of the laser target sphere.
[0092] For example, Figure 6 An implementation example diagram of determining the coordinates of a laser target sphere provided in an embodiment of the present application, taking the preset number of 6 as an example, the determination of the coordinates of the laser target sphere is achieved through the following calibration steps:
[0093] (1) Six laser tracker target sphere seats and six photographic coding points 112 are attached to one side of the robot arm, and the target sphere seats and photographic coding points are evenly distributed.
[0094] (2) Place the laser tracker target ball 113 on the laser tracker target ball holder attached to the robot arm, adjust the robot arm to the Home state, measure the laser tracker target ball 113 with the laser tracker, and record the coordinates of the laser target ball, that is, assign the robot arm coordinate system to the laser tracker target ball holder in the Home state of the robot arm.
[0095] Step 4: Determine the calibration coordinates.
[0096] What you need to know is, Figure 6 Only one laser tracker target ball 113 and one photographic coding point 112 are exemplarily marked, and other similar circles are laser tracker target balls 113, and similar rectangles are photographic coding points 112.
[0097] For example, Figure 7An implementation example diagram of determining calibration coordinates provided in an embodiment of the present application is provided, and the calibration coordinates are determined by the following calibration steps:
[0098] (1) Build a binocular camera measurement system in front of the robot arm so that the measurement range of the binocular camera covers the entire working area, and the dual-camera connection line is parallel to the robot arm's Home state plane. The preset angle range of the binocular camera angle is set to 60-120 degrees. Figure 7 Take the example of a binocular camera with an angle of 80 degrees.
[0099] (2) The robot arm is adjusted to the Home state, and the laser tracker target sphere 113 is replaced by the photographic target sphere 115 .
[0100] (3) Use a binocular camera to measure the photographic target sphere 115 and the photographic coding point 112 to obtain the coordinates of the photographic target sphere and the photographic coding point. By performing optimal fitting with the laser target sphere coordinates measured by the laser tracker, the rotation, translation and scaling parameters of the binocular camera unified to the robot arm coordinate system, i.e., the second coordinate transformation parameters, are obtained.
[0101] (4) According to the second coordinate conversion parameter, the photographic coding coordinates of the binocular camera coordinate system are converted into the calibration coordinates of the robot arm coordinate system, so that the robot arm coordinate system is assigned to the photographic coding point of the robot arm Home state.
[0102] What you need to know is, Figure 7 Only one photographic target sphere 115 and one photographic coding point 112 are marked as examples, and other similar circles are all photographic target spheres 115, and similar rectangles are all photographic coding points 112.
[0103] The calibration coordinates obtained in the embodiment of the present application can be used for calibration after the position of the binocular camera changes. After the position of the binocular camera changes, calibration can be performed through steps S206-S207, and the first coordinate conversion parameters can be obtained by adjusting the robot arm to the Home state and calibrating once. The first coordinate conversion parameters can realize the conversion of the binocular camera coordinate system to the robot arm coordinate system in the current state.
[0104] S206. When the robot arm is in a reference state, obtain measurement coordinates of a preset number of photographic coding points measured by the binocular camera.
[0105] S207 . Determine a first coordinate conversion parameter based on fitting the measured coordinates with the pre-determined calibrated coordinates of the photographic coding point, wherein the calibrated coordinates of the photographic coding point are the coordinates of the photographic coding point in the robot arm coordinate system.
[0106] After determining the calibration coordinates, remove the laser tracker target ball seat and the photography target ball, and only keep the photography coding points. When the position of the binocular camera changes, the calibration method is as follows: control the robot arm to be in the Home state, set up the binocular camera, measure the photography coding points, obtain the measured coordinates, and perform the best fit with the calibration coordinates of the photography coding points in the above-mentioned determined robot arm coordinate system to obtain the first coordinate conversion parameters, which can realize the rapid conversion of the camera coordinate system to the robot arm coordinate system. Exemplary, Figure 8 An implementation example diagram of determining the first coordinate transformation parameter is provided in an embodiment of the present application. In the figure, the angle of the binocular camera is 80 degrees as an example. In the figure, only one photographic coding point 112 is marked as an example, and other similar rectangles are all photographic coding points 112.
[0107] The embodiment of the present invention provides a calibration method for coordinate conversion parameters, which solves the problem of slow calibration speed of a binocular camera after the position and posture are moved during use. The calibration coordinates of the coded photographic points are determined during the calibration process. When recalibrating after the position of the binocular camera changes during application, it is only necessary to adjust the mechanical arm to a reference state, measure the coordinates of the photographic coding points through the binocular camera, and fit the measured coordinate values with the predetermined calibration coordinates to obtain the first coordinate conversion parameters. The calibration method provided by the embodiment of the present invention is fast and efficient when calibrating the coordinate conversion parameters, and only needs to measure the coordinates of the photographic coding points to achieve dual-camera orientation and measurement, which is fast and simple; when recalibrating after the camera position changes, it is only necessary to control the mechanical arm to be calibrated once in the reference state to obtain the first coordinate conversion parameters, which has better fault tolerance.
[0108] Embodiment 3
[0109] Fig. 9 This is a flowchart of a coordinate conversion method provided in the third embodiment of the present invention. This embodiment is applicable to the case where the coordinates collected by the binocular camera are converted. The method can be executed by a coordinate conversion device. The coordinate conversion device can be implemented in the form of hardware and / or software. The coordinate conversion device can be configured in an electronic device. Fig. 9 As shown, the method includes:
[0110] S301, obtaining the current coordinates of the mark point to be measured measured by the binocular camera.
[0111] In this embodiment, the mark point to be measured can be specifically understood as the mark point set on the surface of the object to be measured in the photogrammetry. The position of the mark point to be measured can be set according to the demand, for example, it is set at the end of the robot arm to mark the position of the object taken by the robot arm. The current coordinate can be specifically understood as the coordinate of the photographic mark point measured by the binocular camera at the current moment, and the current coordinate is the coordinate under the binocular camera coordinate.
[0112] Specifically, a binocular camera measurement system is built in front of the robot arm. Usually, the measurement range of the binocular camera includes the entire working area. The binocular camera is controlled to measure the mark points to be measured on the robot arm to obtain the current coordinates. The execution device can communicate with the binocular camera to obtain the current coordinates of the mark points to be measured.
[0113] S302 , determining the mechanical coordinates of the mark point to be measured according to the current coordinates and a predetermined first coordinate conversion parameter, wherein the first coordinate conversion parameter is calibrated using the method described in any embodiment.
[0114] In this embodiment, the mechanical coordinates can be specifically understood as the coordinates of the mark point to be measured in the robot arm coordinate system.
[0115] Specifically, the first coordinate conversion parameters are determined in advance by calibration. After the position of the binocular camera is determined, the binocular camera coordinate system and the robot coordinate system are quickly and uniformly calibrated to determine the first coordinate conversion parameters. After the first coordinate conversion parameters are determined, the robot can move to any position to work. After the binocular camera measures the mark point to be measured on the robot, the current coordinates of the mark point to be measured are converted according to the first coordinate conversion parameters to obtain its mechanical coordinates in the robot coordinate system. After the position of the binocular camera changes, recalibration is performed to determine the new first coordinate conversion parameters.
[0116] It should be noted that the binocular camera can measure any point and transform the coordinates of the measured point through the first coordinate transformation parameter. The number of the marker points to be measured in the embodiment of the present application can be one or more, and can be set according to the requirements.
[0117] The embodiment of the present invention provides a coordinate conversion method, which solves the problem of slow calibration speed of a binocular camera after the position and posture are moved during use. The first coordinate conversion parameter can be used to realize fast conversion of coordinates. The calibration process of the first coordinate conversion parameter is fast and efficient, and only the coordinates of the photographic coding points need to be measured to realize dual-camera orientation and measurement, which is fast and concise. When recalibrating after the camera position changes, it is only necessary to control the robotic arm in a reference state and calibrate it once to obtain the first coordinate conversion parameter, which has better fault tolerance.
[0118] Embodiment 4
[0119] Fig.10 This is a schematic diagram of the structure of a coordinate conversion parameter calibration device provided by the fourth embodiment of the present invention. Fig.10 As shown, the device includes: a measurement module 41 and a conversion parameter module 42.
[0120] Wherein, the measurement module 41 is used to obtain the measurement coordinates of a preset number of photographic coding points measured by the binocular camera when the robot arm is in the reference state;
[0121] The conversion parameter module 42 is used to determine the first coordinate conversion parameter based on fitting the measured coordinates with the calibrated coordinates of the predetermined photographic coding point, wherein the calibrated coordinates of the photographic coding point are the coordinates of the photographic coding point in the robot arm coordinate system.
[0122] The embodiment of the present invention provides a calibration device for coordinate conversion parameters, which solves the problem of slow calibration speed of binocular cameras after the position and posture are moved during use. The calibration coordinates of the coded photographic points are determined during the calibration process. When recalibrating after the position of the binocular camera changes during application, it is only necessary to adjust the mechanical arm to the reference state, measure the coordinates of the photographic coding points through the binocular camera, and fit the measured coordinate values with the predetermined calibration coordinates to obtain the first coordinate conversion parameters. The calibration method provided by the embodiment of the present invention is fast and efficient when calibrating the coordinate conversion parameters, and only needs to measure the coordinates of the photographic coding points to achieve dual-camera orientation and measurement, which is fast and simple; when recalibrating after the camera position changes, it is only necessary to control the mechanical arm to be calibrated in the reference state once to obtain the first coordinate conversion parameters, which has better fault tolerance.
[0123] Optionally, the device further comprises:
[0124] A first coordinate determination module, used to calibrate the tool center point of the robot arm and determine the first coordinate of the tool center point in the robot arm coordinate system;
[0125] A conversion relationship determination module, used to determine the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system according to the first coordinate;
[0126] A laser target ball coordinate determination module, used for controlling a laser tracker to measure a laser tracker target ball on the robotic arm when the robotic arm is in a reference state, and determining the laser target ball coordinates measured by the laser tracker based on the conversion relationship, wherein the laser target ball coordinates are coordinates in a robotic arm coordinate system;
[0127] A photographic coordinate determination module is used to control a binocular camera to measure a photographic target ball and photographic coding points on the robotic arm to obtain the coordinates of the photographic target ball and the coordinates of the photographic coding points;
[0128] A calibration coordinate determination module, used to determine the calibration coordinates of the photographic coding point according to the photographic target sphere coordinates, the photographic coding coordinates and the laser target sphere coordinates;
[0129] Wherein, the number of the laser tracker target ball, the photography target ball and the photography coding points is a preset number.
[0130] Optionally, the conversion relationship determination module includes:
[0131] a second coordinate determining unit, used for controlling the robot arm to move to at least four positions, and determining, based on the first coordinate, a second coordinate of the tool center point in the robot arm coordinate system when the robot arm is at each of the positions;
[0132] A laser measurement coordinate determination unit, used for controlling a laser tracker to measure the laser measurement coordinates of the tool center point when the robot arm is at each of the positions;
[0133] The conversion relationship determining unit is used to perform common point conversion according to each of the second coordinates and each of the laser measurement coordinates to determine the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system.
[0134] Optionally, a laser target sphere coordinate determination module includes:
[0135] A target ball coordinate determination unit, used to determine the target ball coordinates of the laser tracking target ball measured by the laser tracker, wherein the target ball coordinates are coordinates in the laser tracker coordinate system;
[0136] The target sphere coordinate conversion unit is used to convert the target sphere coordinates based on the conversion relationship to obtain laser target sphere coordinates.
[0137] Optionally, the device further comprises:
[0138] A parallel control module, used for controlling the line connecting the binocular cameras to be parallel to the plane where the robotic arm is in a reference state before controlling the binocular cameras to measure the photographic target ball and the photographic coding points on the robotic arm;
[0139] Wherein, the included angle of the binocular camera is within a preset angle range.
[0140] Optionally, a calibration coordinate determination module includes:
[0141] A fitting unit, used for performing optimal fitting on the photographic target sphere coordinates and the laser target sphere coordinates to determine a second coordinate conversion parameter;
[0142] The calibration coordinate determining unit is used to determine the calibration coordinates of the photographic coding point according to the photographic coding coordinates and the second coordinate conversion parameter.
[0143] Optionally, the reference state is that the axes of the robot arms are in the same plane, and the plane is perpendicular to the horizontal plane.
[0144] The coordinate conversion parameter calibration device provided in the embodiment of the present invention can execute the coordinate conversion parameter calibration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0145] Embodiment 5
[0146] Fig.11 This is a schematic diagram of the structure of a coordinate conversion device provided in Embodiment 5 of the present invention. Fig.11 As shown, the device includes: a current coordinate determination module 51 and a mechanical coordinate determination module 52.
[0147] The current coordinate determination module 51 is used to obtain the current coordinates of the mark point to be measured measured by the binocular camera;
[0148] The mechanical coordinate determination module 52 is used to determine the mechanical coordinates of the mark point to be measured according to the current coordinates and a predetermined first coordinate conversion parameter, wherein the first coordinate conversion parameter is calibrated using a method as provided in any embodiment.
[0149] The embodiment of the present invention provides a coordinate conversion device, which solves the problem of slow calibration speed of a binocular camera after the position and posture are moved during use. The first coordinate conversion parameter can be used to realize fast conversion of coordinates. The calibration process of the first coordinate conversion parameter is fast and efficient, and only the coordinates of the photographic coding points need to be measured to realize dual-camera orientation and measurement, which is fast and concise. When recalibrating after the camera position changes, it is only necessary to control the robotic arm in a reference state and calibrate it once to obtain the first coordinate conversion parameter, which has better fault tolerance.
[0150] The coordinate conversion device provided in the embodiment of the present invention can execute the coordinate conversion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0151] Embodiment 6
[0152] Fig.12 A schematic diagram of the structure of an electronic device 60 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0153] like Fig.12As shown, the electronic device 60 includes at least one processor 61, and a memory connected to the at least one processor 61, such as a read-only memory (ROM) 62, a random access memory (RAM) 63, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 61 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 62 or the computer program loaded from the storage unit 68 to the random access memory (RAM) 63. In the RAM 63, various programs and data required for the operation of the electronic device 60 can also be stored. The processor 61, the ROM 62, and the RAM 63 are connected to each other via a bus 64. An input / output (I / O) interface 65 is also connected to the bus 64.
[0154] A number of components in the electronic device 60 are connected to the I / O interface 65, including: an input unit 66, such as a keyboard, a mouse, etc.; an output unit 67, such as various types of displays, speakers, etc.; a storage unit 68, such as a disk, an optical disk, etc.; and a communication unit 69, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 69 allows the electronic device 60 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0155] The processor 61 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 61 executes the various methods and processes described above, such as a calibration method for coordinate conversion parameters or a coordinate conversion method.
[0156] In some embodiments, the calibration method of coordinate conversion parameters or the coordinate conversion method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 68. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 60 via the ROM 62 and / or the communication unit 69. When the computer program is loaded into the RAM 63 and executed by the processor 61, one or more steps of the calibration method of coordinate conversion parameters or the coordinate conversion method described above may be performed. Alternatively, in other embodiments, the processor 61 may be configured to execute the calibration method of coordinate conversion parameters or the coordinate conversion method by any other appropriate means (e.g., by means of firmware).
[0157] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0159] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0160] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0161] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0162] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for calibrating coordinate transformation parameters, characterized in that: include: When the robot arm is in a reference state, obtaining measurement coordinates of a preset number of photographic coding points measured by the binocular camera; Based on fitting the measured coordinates with the calibrated coordinates of the predetermined photographic coding point, a first coordinate conversion parameter is determined, wherein the calibrated coordinates of the photographic coding point are the coordinates of the photographic coding point in the robot arm coordinate system.
2. The method according to claim 1, characterized in that The step of determining the calibration coordinates of the photographic coding point comprises: Calibrate the tool center point of the robot arm to determine the first coordinate of the tool center point in the robot arm coordinate system; Determine the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system according to the first coordinate; When the robotic arm is in a reference state, controlling the laser tracker to measure the laser tracker target ball on the robotic arm, and determining the coordinates of the laser target ball measured by the laser tracker based on the conversion relationship, wherein the coordinates of the laser target ball are coordinates in the robotic arm coordinate system; Controlling the binocular camera to measure the photographic target sphere and the photographic coding points on the robotic arm to obtain the coordinates of the photographic target sphere and the coordinates of the photographic coding points; Determine the calibration coordinates of the photographic coding point according to the photographic target sphere coordinates, the photographic coding coordinates and the laser target sphere coordinates; Wherein, the number of the laser tracker target ball, the photography target ball and the photography coding points is a preset number.
3. The method according to claim 2, characterized in that The step of determining the conversion relationship between the laser tracker coordinate system and the robot arm coordinate system according to the first coordinate comprises: Control the robot arm to move to at least four positions, and determine, based on the first coordinate, a second coordinate of the tool center point in the robot arm coordinate system when the robot arm is at each of the positions; Controlling a laser tracker to measure the laser measurement coordinates of the tool center point when the robotic arm is at each of the positions; A common point conversion is performed according to each of the second coordinates and each of the laser measurement coordinates to determine a conversion relationship between the laser tracker coordinate system and the robot arm coordinate system.
4. The method according to claim 2, characterized in that: The step of determining the coordinates of the laser target sphere measured by the laser tracker based on the conversion relationship includes: Determine the target ball coordinates of the laser tracking target ball measured by the laser tracker, wherein the target ball coordinates are coordinates in the laser tracker coordinate system; The target sphere coordinates are transformed based on the transformation relationship to obtain laser target sphere coordinates.
5. The method according to claim 2, characterized in that: Before controlling the binocular camera to measure the photographic target sphere and the photographic coding point on the robotic arm, the method further includes: Control the connection line of the binocular camera to be parallel to the plane where the robotic arm is in the reference state; Wherein, the included angle of the binocular camera is within a preset angle range.
6. The method according to claim 2, characterized in that The step of determining the calibration coordinates of the photographic coding point according to the photographic target sphere coordinates, the photographic coding coordinates and the laser target sphere coordinates comprises: Performing optimal fitting on the photographic target sphere coordinates and the laser target sphere coordinates to determine the second coordinate conversion parameters; The calibration coordinates of the photographic coding point are determined according to the photographic coding coordinates and the second coordinate conversion parameter.
7. The method according to any one of claims 1 to 6, characterized in that: The reference state is that the axes of the robot arms are in the same plane, and the plane is perpendicular to the horizontal plane.
8. A coordinate conversion method, characterized in that: include: Get the current coordinates of the marker points to be measured by the binocular camera; The mechanical coordinates of the mark point to be measured are determined according to the current coordinates and a predetermined first coordinate conversion parameter, wherein the first coordinate conversion parameter is calibrated using the method described in any one of claims 1-7.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 8 when executed.
Citation Information
Patent Citations
Transformation calibration method and system for mechanical arm coordinate system
CN107738254A
Global calibration method based on binocular visual system and laser tracker measurement system
CN107883870A
Binocular stereoscopic vision sensor integrated calibration method based on precise two-axis turntable
CN108648232A
Double-arm robot performance measuring method based on multiple laser trackers
CN110370314A
Binocular camera and mechanical arm coordinate system registration method
CN112815848A
