Robot 3D visual servoing method based on composite learning and homography matrix

Through the robot 3D visual servoing method based on compound learning and homography matrix, the local minimum problem and dynamic change problem in adaptive IBVS are solved, and the precise pose control and online calibration of the robotic arm are realized, which is suitable for complex applications. environment.

CN117733868BActive Publication Date: 2024-09-03SUN YAT SEN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410063853.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2024-09-03
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

Existing adaptive image-based visual servoing methods have local minimum problems when estimating the 3D pose of the end of the robotic arm, and fail to effectively consider the dynamics of the robotic arm and changes in camera extrinsic parameters.

Method used

The robot 3D visual servoing method based on composite learning and homography matrix is ​​used to determine the current and expected pixel coordinates of the feature points through a parameterized camera model, combined with the homography matrix for decomposition, to obtain the rotation error and depth ratio, and use normalization The compound learning camera parameter update law updates the online calibration parameters, calculates the torque and adjusts the manipulator to the desired pose.

Benefits of technology

It solves the local minimum problem and achieves more accurate online calibration, ensuring that the robotic arm can accurately adjust to the desired posture and is suitable for complex and changing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117733868B
    Figure CN117733868B
Patent Text Reader

Abstract

The present application discloses a robot 3D visual servoing method based on composite learning and homography matrix, including: determining the current pixel coordinates of each feature point of the robot arm and the expected pixel coordinates of the expected posture based on a parameterized camera model; performing homography decomposition on the feature points in combination with the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates; updating the online calibration parameters using the normalized composite learning camera parameter update law according to the rotation error and depth ratio; calculating the torque using the controller expression according to the online calibration parameters; adjusting the robot arm to the expected posture according to the torque. The embodiment of the present application can calibrate the online calibration parameters more accurately, thereby making the torque calculated according to the online calibration parameters more accurate, solving the problem of local minima, and accurately adjusting the robot arm to the expected posture to complete the robot 3D servo, which can be widely used in the field of robotics technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to a robot 3D visual servoing method based on composite learning and homography matrix. Background Art

[0002] When a robot is used in a complex and randomly changing environment, it needs to have the ability to observe its own state or environment. Robot visual servoing is a technology that uses the visual feedback signal of the camera to achieve target observation and control the robot to perform tasks. It can be divided into two basic types: position-based visual servoing (PBVS) and image-based visual servoing (IBVS). The former converts the feature information in the image into the position information of the robot end through the camera projection relationship, and then controls the posture of the robot end; the latter directly uses the feature information to achieve robot posture control. PBVS is more dependent on the accuracy of the robot and camera models, while IBVS is more robust to model inaccuracies and system noise, and is more suitable for complex application environments where camera parameters are volatile. Traditional IBVS requires accurate camera parameters, including camera intrinsics and extrinsics. These parameters can be obtained through offline calibration, but the accuracy of offline calibration parameters is overly dependent on the calibration method and the operating experience of the calibrator, and is also affected by the calibration environment. In the case of changes in the environment such as temperature and humidity, aging of the equipment, and tool replacement, recalibration is required to improve the accuracy of the calibration parameters. Adaptive visual servoing can not only realize online parameter estimation and avoid tedious offline calibration operations, but also effectively handle the situation of camera parameter changes, making it very suitable for use in complex and changing environments.

[0003] The existing adaptive visual servoing methods have the following deficiencies: 1) The existing adaptive IBVS has a local minimum problem when realizing the 3D pose estimation of the end of the robotic arm; 2) The existing adaptive HBVS does not consider the dynamics of the robotic arm and the unknown and changing camera extrinsic parameters in the application of the robotic arm. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a robot 3D visual servoing method based on composite learning and homography matrix with accurate calibration.

[0005] To achieve the above objectives, one aspect of an embodiment of the present application proposes a robot 3D visual servoing method based on composite learning and homography matrix, the method comprising:

[0006] Based on the parameterized camera model, determine the current pixel coordinates of each feature point of the robot arm and the expected pixel coordinates of the expected posture;

[0007] Performing homography decomposition on the feature points in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates;

[0008] According to the rotation error and the depth ratio, updating online calibration parameters using a normalized composite learning camera parameter update law;

[0009] Calculating the torque using a controller expression according to the online calibration parameters;

[0010] According to the torque, the robotic arm is adjusted to the desired posture.

[0011] In some embodiments, determining the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture based on the parameterized camera model includes:

[0012] Determine the current world coordinates of each feature point of the robot arm and the expected world coordinates of the expected posture;

[0013] Coordinate transformation is performed by using the parameterized camera model to transform the current world coordinates into current pixel coordinates, and then the expected world coordinates into expected pixel coordinates.

[0014] In some embodiments, the step of performing homography decomposition on the feature point in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates includes:

[0015] Construct projection projection models;

[0016] Determine a conversion relationship expression between the current pixel coordinates and the expected pixel coordinates according to the relationship expression between the projection model and the pixel coordinates of the world coordinate system;

[0017] Solving the transformation relationship expression according to the camera intrinsic parameters, the current pixel coordinates and the expected pixel coordinates to obtain a homography matrix;

[0018] The homography matrix is ​​decomposed to obtain a rotation error and a depth ratio.

[0019] In some embodiments, updating the online calibration parameters using a normalized composite learning camera parameter update law according to the rotation error and the depth ratio includes:

[0020] Calculating a common prediction error according to the parameterized camera model;

[0021] Calculating an extended prediction error based on the parameterization and model and the interval excitation matrix;

[0022] According to the rotation axis and the rotation angle, the rotation error is transformed into an axis-angle expression to obtain an axis-angle expression;

[0023] determining a translation error vector based on the depth ratio;

[0024] Determine a normalized composite learning camera parameter update law based on a positive definite learning rate matrix, the axis-angle expression, the translation error vector, the normal prediction error, and the extended prediction error;

[0025] The online calibration parameters are updated by the normalized composite learning camera parameter update law.

[0026] In some embodiments, the method further includes a step of performing linear parameterization processing on the initial camera model to obtain a parameterized camera model, specifically including:

[0027] Determine the initial camera model according to the conversion relationship between the camera coordinate system and the world coordinate system;

[0028] Determine the depth of the feature point according to the transformation matrix between the world coordinate system and the camera coordinate system;

[0029] A parameterized camera model is determined according to the feature point depths and the initial camera model.

[0030] In some embodiments, in the step of updating the online calibration parameters using the normalized composite learning camera parameter update law according to the rotation error and the depth ratio, the expression of the normalized composite learning camera parameter update law is:

[0031]

[0032] in, is the parameter to be calibrated; Γ represents the positive definite learning rate matrix; κ1 is the weight factor of the extended prediction error ξ, κ2 is the weight factor of the ordinary prediction error ∈; Y(e v ,e ω ,p,q) are auxiliary variables; e v represents the translation error vector; e ω represents the axis angle expression; p represents the current pixel coordinate; q represents the joint position vector; represents the joint velocity; represents the first normalized matrix; represents the second normalized matrix; Φ represents the regression matrix.

[0033] In some embodiments, in the step of calculating the torque using the controller expression according to the online calibration parameters, the expression for calculating the torque is:

[0034]

[0035] Where, τ represents the control torque vector; p represents the current pixel coordinate; represents the joint velocity; represents the translation Jacobian matrix; represents the interaction matrix; represents the estimated value of d3, d3 represents the value in the camera extrinsic matrix; e v represents the translation error vector; Indicates e v The transpose of K p represents the first control gain matrix of positive definite diagonal; K ω represents the second control gain matrix of positive definite diagonal; K d represents a positive definite diagonal third control gain matrix; represents the rotation Jacobian matrix; express c R b The estimated value of c R b is the rotation matrix from the world coordinate system to the camera coordinate system; The Jacobian matrix between the rotation speed represented by the axis angle and the angular velocity of the end of the robot arm; e ω represents the axis angle expression; represents the joint velocity; g(q) represents the gravity vector.

[0036] To achieve the above purpose, another aspect of the embodiment of the present application proposes a robot 3D visual servo system based on composite learning and homography matrix, the system comprising:

[0037] The first module is used to determine the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture based on the parameterized camera model;

[0038] The second module is used to perform homography decomposition on the feature points in combination with the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates;

[0039] A third module is used to update online calibration parameters using a normalized composite learning camera parameter update law according to the rotation error and the depth ratio;

[0040] A fourth module is used to calculate the torque using a controller expression according to the online calibration parameters;

[0041] The fifth module is used to adjust the robot arm to the desired posture according to the torque.

[0042] It should be noted that, in some embodiments, the system may also include the following modules:

[0043] The sixth module is used to parameterize the initial camera model to obtain a parameterized camera model, which is specifically used for:

[0044] Determine the initial camera model according to the conversion relationship between the camera coordinate system and the world coordinate system;

[0045] Determine the depth of the feature point according to the transformation matrix between the world coordinate system and the camera coordinate system;

[0046] A parameterized camera model is determined according to the feature point depths and the initial camera model.

[0047] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0048] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0049] The embodiments of the present application include at least the following beneficial effects: The present application provides a robot 3D visual servoing method based on composite learning and homography matrix. The scheme performs homography decomposition on feature points in combination with the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates, and then uses the normalized composite learning camera parameter update law to update the online calibration parameters. The online calibration parameters can be calibrated more accurately, so that the torque calculated according to the online calibration parameters can be more accurate, solving the problem of local minimum, and can accurately adjust the robotic arm to the desired posture to complete the robot 3D servo. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0051] Figure 1 is a schematic diagram of a robotic arm position control system based on a fixed monocular camera provided in an embodiment of the present application;

[0052] Figure 2 is a flowchart of the steps of a robot 3D visual servoing method based on composite learning and homography matrix provided in an embodiment of the present application;

[0053] Figure 3 is a curve diagram of the depth ratio in the first stage provided by the embodiment of the present application;

[0054] Figure 4 is a graph showing the rotation error norm of the axis angle in the first stage provided by an embodiment of the present application;

[0055] Figure 5 is a curve diagram of absolute value of pixel error on the u-axis on the image plane in the first stage provided by an embodiment of the present application;

[0056] Figure 6 is a curve diagram of the absolute value of pixel error on the v-axis on the image plane in the first stage provided by an embodiment of the present application;

[0057] Figure 7 is a comparison curve of the estimated parameter error norms of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0058] Figure 8 is a comparison curve diagram of the prediction error norms of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0059] Fig. 9 is a comparison curve diagram of the absolute value of the average pixel error of the u-axis on the image plane in the first stage of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0060] Fig.10 is a comparison curve diagram of the absolute value of the v-axis pixel error on the image plane in the second stage of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0061] Fig.11 is a comparison curve diagram of the absolute value of the average pixel error of the u-axis on the image plane in the second stage of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0062] Fig.12 is a comparison curve diagram of the absolute value of the v-axis pixel error on the image plane in the second stage of CL-HBVS and CA-HBVS provided in the embodiment of the present application;

[0063] Fig.13 is a structural schematic diagram of a robot 3D visual servo system based on composite learning and homography matrix provided in an embodiment of the present application;

[0064] Fig.14 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0066] Although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0067] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0068] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0069] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0071] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.

[0072] PBVS: Position-based visual servoing.

[0073] IBVS: Image-based visual servoing.

[0074] HBVS: Homography-based Visual Servoing.

[0075] Homography: A projection transformation matrix between corresponding points on the image plane that can map points on the observed object in the image to points on the phase plane of the observed object (or camera) with another pose.

[0076] Homography decomposition: The process of 3D reconstruction using the homography matrix can be used to obtain the posture and position changes of the camera or the observed object.

[0077] diag(A1,A2,…,A n ): a block diagonal matrix, where A i represents the i-th diagonal block element.

[0078] ln(.): natural logarithm function.

[0079] max{.}: Maximum value operation.

[0080] In the related art, some of the existing adaptive IBVS methods only consider the case where the camera intrinsic parameters are unknown, some only consider the case where the camera extrinsic parameters are unknown, and some consider the case where both the camera intrinsic parameters and extrinsic parameters are unknown. However, the above methods all require continuous excitation (PE) conditions to achieve accurate parameter estimation. When the 3D posture control of the robot end is performed, more than 4 feature points are required. At this time, adaptive IBVS will lead to local minimum problems, and the error convergence of all feature points cannot be achieved. In order to get rid of the above dilemma, the concept of hybrid visual servoing was proposed, and visual servoing (HBVS) based on homography decomposition is one of the methods. HBVS uses the relationship between the pixel coordinates of feature points and their corresponding reference (or expected) feature points on the image plane to calculate the homography matrix. Then, the rotation error and depth ratio between the current posture of the robot end and the expected posture are obtained by decomposing the homography. Finally, the position of the robot end is controlled by the pixel position and depth ratio, and the posture of the robot end is controlled by the decomposed rotation error. Finally, the 3D posture control of the robot end is achieved. HBVS requires at least 4 coplanar feature points or at least 8 non-coplanar feature points. Compared with IBVS, the HBVS method is not troubled by the local minimum problem. The adaptive HBVS method has been applied to many types of robots, such as unmanned vehicles, rotorcraft, and robotic arms. Among the adaptive HBVS methods applied to robotic arms, almost all are based on kinematics and do not need to consider the dynamics of the robotic arm. They have the advantage of being easy to implement, but are not conducive to expansion in complex environments, such as considering collisions or safe interactions. In addition, these methods do not consider the situation where the camera extrinsics are unknown, and all require PE conditions to achieve accurate online estimation.

[0081] In view of this, the embodiment of the present application provides a robot 3D visual servo method based on composite learning and homography matrix, which: 1) uses homography decomposition to obtain rotation information and depth information, solving the local minimum problem in adaptive IBVS; 2) is a dynamics-based visual servo, which realizes unified closed-loop control of the visual system and the robotic arm system, and can be easily extended to an interactive environment that needs to consider the dynamics of the robotic arm; 3) adopts composite learning, collects historical data to perform online calibration of camera parameters, and gets rid of the cumbersome offline calibration process. And accurate calibration can be achieved under interval excitation (IE) conditions.

[0082] Before introducing the method of the embodiment of the present application, please refer to Figure 1 In the system used in the embodiment of the present application, the robot arm and the camera are fixed in the world coordinate system {B}, and the intrinsic parameters of the camera are known, but the extrinsic parameters are unknown. There are at least four feature points on the plane N and fixed in the robot arm end coordinate system {E}.

[0083] Based on this, see Figure 2 , Figure 2 is an optional step flow chart of a robot 3D visual servoing method based on composite learning and homography matrix provided in an embodiment of the present application, Figure 2 The method may include but is not limited to steps S100 to S600.

[0084] Step S100, based on the parameterized camera model, determine the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture.

[0085] Step S200: performing homography decomposition on the feature points in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates.

[0086] Step S300: updating online calibration parameters using a normalized composite learning camera parameter update law according to the rotation error and the depth ratio.

[0087] Step S400: Calculate the torque using a controller expression according to the online calibration parameters.

[0088] Step S500: adjusting the robot arm to the desired posture according to the torque.

[0089] In steps S100 to S500 shown in the embodiment of the present application, the feature points are homographically decomposed by combining the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates, and then the normalized composite learning camera parameter update law is used to update the online calibration parameters. The online calibration parameters can be calibrated more accurately, so that the torque calculated according to the online calibration parameters can be more accurate, the problem of local minimum can be solved, and the robotic arm can be accurately adjusted to the desired posture to complete the robot 3D servo.

[0090] In some embodiments, step S100 may include but is not limited to steps S110 to S120 .

[0091] Step S110, determining the current world coordinates of each feature point of the robot arm and the expected world coordinates of the expected posture.

[0092] Step S120: performing coordinate transformation through the parameterized camera model, transforming the current world coordinates into current pixel coordinates, and transforming the expected world coordinates into expected pixel coordinates.

[0093] In step S110 of some embodiments, the robot has at least four feature points on the plane N and fixed in the end coordinate system {E} of the robot. The current world coordinates refer to the coordinates of the feature points in the world coordinate system at present, and the expected world coordinates refer to the coordinates of the feature points in the world coordinate system after the robot is moved.

[0094] In step S120 of some embodiments, the parameterized camera model will be introduced later. Pixel coordinates refer to the coordinate values ​​of feature points expressed in pixels on the image plane.

[0095] By converting the current world coordinates and the expected world coordinates of the expected pose into pixel coordinates, subsequent calculations are facilitated.

[0096] In some embodiments, step S200 may include but is not limited to steps S210 to S240 .

[0097] S210: construct a projection model.

[0098] S220: Determine a conversion relationship expression between the current pixel coordinates and the expected pixel coordinates according to the projection model and the relationship expression between the pixel coordinates of the world coordinate system.

[0099] S230, solving the transformation relationship expression according to the camera intrinsic parameters, the current pixel coordinates and the expected pixel coordinates to obtain a homography matrix.

[0100] S240, decomposing the homography matrix to obtain a rotation error and a depth ratio.

[0101] In some embodiments, step S300 may include but is not limited to steps S310 to S340 .

[0102] S310: Calculate a common prediction error according to the parameterized camera model.

[0103] S320, calculating an extended prediction error based on the parameterization model and the interval excitation matrix.

[0104] S330. According to the rotation axis and the rotation angle, the rotation error is converted into an axis-angle expression to obtain an axis-angle expression.

[0105] S340: Determine a translation error vector based on the depth ratio.

[0106] S350, determining a normalized composite learning camera parameter update law based on a positive definite learning rate matrix, the axis-angle expression, the translation error vector, the normal prediction error, and the extended prediction error.

[0107] S360: Update online calibration parameters using the normalized composite learning camera parameter update law.

[0108] In step S300 of some embodiments, the expression of the normalized composite learning camera parameter update law is:

[0109]

[0110] in, is the parameter to be calibrated; Γ represents the positive definite learning rate matrix; κ1 is the weight factor of the extended prediction error ξ, κ2 is the weight factor of the ordinary prediction error ∈; Y(e v ,e ω ,p,q) are auxiliary variables; e v represents the translation error vector; e ω represents the axis angle expression; p represents the current pixel coordinate; q represents the joint position vector; represents the joint velocity; represents the first normalized matrix; represents the second normalized matrix; Φ represents the regression matrix.

[0111] By determining the normalized composite learning camera parameter update law and updating the online calibration parameters in step S300, the camera's external parameters can be accurately updated, so that the subsequently calculated mechanical arm torque is more accurate.

[0112] In some embodiments, the expression for calculating the torque in step S400 may be:

[0113]

[0114] Among them, τ represents the control torque vector; p represents the current pixel coordinate; q represents the joint velocity; represents the translation Jacobian matrix; represents the interaction matrix; represents the estimated value of d3, d3 represents the value in the camera extrinsic matrix; e v represents the translation error vector; Indicates e v The transpose of K p represents the first control gain matrix of positive definite diagonal; K ω represents the second control gain matrix of positive definite diagonal; K d represents a positive definite diagonal third control gain matrix; represents the rotation Jacobian matrix; Represents cR b The estimated value of c R b is the rotation matrix from the world coordinate system to the camera coordinate system; Indicates; eω represents the axis angle expression; represents the joint velocity; g(q) represents the gravity vector.

[0115] In some embodiments, before step S100, the following step S600 may be included.

[0116] Step S600: perform linear parameterization processing on the initial camera model to obtain a parameterized camera model.

[0117] In some embodiments, step S600 may include but is not limited to steps S610 to S630 .

[0118] S610: Determine an initial camera model according to a conversion relationship between a camera coordinate system and a world coordinate system.

[0119] S620: Determine the depth of the feature point according to a transformation matrix between the world coordinate system and the camera coordinate system.

[0120] S630: Determine a parameterized camera model according to the feature point depths and the initial camera model.

[0121] Below, in conjunction with a specific robot 3D servo scenario, the solution of the embodiment of the present application is described in detail and explained:

[0122] In an embodiment of the present application, a robot 3D visual servoing method based on composite learning and homography matrix is ​​provided. The method can be applied to the field of robotics technology. Some embodiments of the method may include the following general steps (1) to (6).

[0123] (1) First, the initial camera model is linearly parameterized to obtain a parameterized camera model.

[0124] The initial camera model can be established by using a pinhole camera or other cameras. The initial camera model is expressed as:

[0125]

[0126] Where p: = [u, v, 1] ∈ R 3 is the feature point Q e Homogeneous representation of pixel coordinates on the image plane, u,v∈R + are the coordinates on the u-axis and v-axis respectively, x∈R 4 is the feature point Q e Homogeneous coordinates in the world coordinate system, D∈R is the camera's external parameter matrix, that is, the transformation matrix between the world coordinate system and the camera coordinate system, K∈R 3×3 is the camera’s intrinsic parameter matrix, z∈R +Indicates the depth of the feature point, that is, the coordinate of the feature point on the z-axis of the camera coordinate system. Camera external parameter matrix D: = [ c R b , c t b ] consists of two parts, c R b ∈R 3×3 is the rotation transformation matrix from the world coordinate system to the camera coordinate system, c t b ∈R 3 Represents the translation transformation from the origin of the world coordinate system to the camera coordinate system.

[0127] The depth z of the feature point can be expressed as:

[0128]

[0129] in, Represents the third row of D. Therefore, substituting the feature point depth z into the above initial camera model yields:

[0130]

[0131] Use d ij ∈R represents the element in the i∈Zth row and j∈Zth column of D, and d is assumed to be 34 If is known, but other elements are unknown, the above formula can be used to obtain the following linear parameterized camera model:

[0132] y(p,x)=Φ T (p,x)θ

[0133] Where θ: = [d 11 , d 12 , …, d 33 ] T ∈R 11 Represents the unknown parameter vector. In this linear parameterized camera model, (p, x)∈R 3 and Φ(p,x)∈R 11×3 Has the following form:

[0134]

[0135]

[0136] Among them, x [1∶3] ∈R 3 represents the subvector consisting of the 1st to 3rd elements of x.

[0137] (2) Based on the parameterized camera model, determine the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture.

[0138] Reference Figure 1 There are at least four plane feature points at the end of the robot arm, and their pixel coordinates are represented by p i :=[u i , v i , 1] T ∈R 3 , i = 1, ..., 4 means, including the above Q e The pixel coordinates p = [u, v, 1] T The expected pixel coordinates of each feature point planned in advance are expressed as p di :=[u di , v di , 1] T ∈R 3 , i = 1, ..., 4 means, where Q e The corresponding expected pixel coordinates (i.e., the pixel coordinates of these feature points on the image plane when the end of the robot is in the expected posture) are expressed as p d :=[u d , v d , 1] T ∈R 3 And, with x i , x di ∈R 3 It represents the coordinates of the i-th feature point in the world coordinate system {B} when it is at the current position and the expected position. These coordinates have the following coordinate relationship formula with the pixel coordinates in the image:

[0139]

[0140] (3) performing homography decomposition on the feature points in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates;

[0141] Constructing a projection model can get x i The expression is:

[0142]

[0143] Among them, H∈R 3×3 is the homography matrix, is the rotation error matrix between the current and desired poses of the plane, is the scaled value of the translation vector between the current and desired poses of the plane, n∈R 3 is the normal vector of the plane at the desired position. i Substituting the expression into the coordinate relationship formula, we can get p i With p di The conversion relationship between:

[0144]

[0145] Among them, α i ∈R + is the depth ratio, G∈R 3×3 It is the projection homography matrix. When the camera intrinsic parameter K is known, the pixel coordinates p of the four feature points in the plane on the image are used i and the corresponding pixel coordinates p in the desired pose di , we can find the H matrix, and by decomposing it, we can get the final specific depth ratio α i And rotation error

[0146] Subsequent algorithms need to use the feature point Q e The pixel coordinates and expected pixel coordinates of the feature point Q are represented by symbols with omitted subscripts, while other feature points are only used for homography decomposition. e Related variables include the depth ratio α, the current pixel coordinate p = [u, v, 1] T and the desired pixel coordinate p d :=[u d , v d , 1] T .

[0147] The rotation error obtained above is It can be converted into the following axis-angle expression:

[0148] e ω :=u(t)φ(t)

[0149] Among them u(t):=[u1(t), u2(t), u3(t)]∈R 3 , indicating that the rotation axis is a unit vector, φ(t)∈R represents the angle of rotation around u. Assume that the range of the rotation angle is -π<φ(t)<π. The following calculation can be used to obtain the rotation error Calculate u(t) and φ(t):

[0150]

[0151]

[0152] where tr(.) represents the trace of the matrix, [u(t)] × To perform an antisymmetric operation on u, that is:

[0153]

[0154] For ω Taking the derivative we get:

[0155]

[0156] where ω∈R 3 represents the rotation speed of the end of the robot arm, c R b ∈R 3×3 is the rotation matrix from the world coordinate system to the camera coordinate system, L ω (t)∈R 3×3 Calculated by the following formula:

[0157]

[0158] In the above formula And sinc(0)=0

[0159] Then define the extended translation error vector:

[0160]

[0161] in α is the depth ratio obtained by homography decomposition. v The derivative is:

[0162]

[0163] in is the translation speed of the feature point Qe (i.e. the end of the robotic arm), A e (p)∈R 3×4 is an interaction matrix calculated by the following formula:

[0164]

[0165] Where p0: = [u, v, 0] T ∈R 3 .

[0166] (4) Based on the rotation error and the depth ratio, a normalized composite learning camera parameter update law is used to update online calibration parameters.

[0167] Define auxiliary variable Φ yi and φ ri :

[0168]

[0169]

[0170] Among them J vi ∈R 4 , J ωi ∈R 3 Respectively represent J v , Jω Then define Y(e v , e ω , p, q):

[0171]

[0172] You can get:

[0173]

[0174] Then calculate the normal prediction error ∈∈R 3 and the expanded prediction error ξ∈R 11 as follows:

[0175]

[0176]

[0177] where Φ(t) represents the definition of the regression matrix in the above overall step (1), y(t) represents the definition of the output vector in the above overall step (1), and Ψ e (t)∈R 11×11 Defined as:

[0178]

[0179] Ψ o (t) is an interval excitation matrix, obtained by interval integration, Ψ e (t) is a positive semidefinite matrix, so Ψ can be obtained by eigenvalue decomposition e (t)=U∑U T , where U∈R 11×11 is an orthogonal matrix satisfying U- 1 =U T ,∑:=diag(λ1,λ2,…,λ 11 )∈R 11×11 It is a e Eigenvalue λ i Then define Ψ e The normalized matrix of is:

[0180]

[0181] in Since Φ(ζ)Φw(ζ) is semi-positive definite, the normalized matrix of Φ(ζ)Φw(ζ) can be defined by the same operation: Finally, in order to achieve online calibration, the following normalized composite learning camera parameter update law is adopted:

[0182]

[0183] where Γ∈R 11×11 is a positive definite learning rate matrix, κ1,κ2∈R + is the weight factor of the prediction errors ξ and ∈.

[0184] The above normalized composite learning update law is used to calibrate the online calibration parameters.

[0185] (5) Based on the online calibration parameters, the torque is calculated using a controller expression.

[0186] The dynamic expression of a robot with n∈Z degrees of freedom can be expressed as:

[0187]

[0188] where q(t)∈R n is the joint position vector, M(q)∈R n×n is the inertia matrix, is the centripetal-Coriolis force matrix, g(q)∈R n is the gravity vector, τ∈R n is the control torque vector.

[0189] The controller in the embodiment of the present application is:

[0190]

[0191] Where K p ∈R 3×3 , K ω ∈R 3×3 , K d ∈R n×n is a positive definite diagonal control gain matrix, J v (q)∈R 4×n , J ω (q)∈R 3×n are the translation and rotation Jacobian matrices respectively so that and as well as Indicates A e (p) and d3 and c R b The estimated value of uses the online calibration parameters Calculated.

[0192] (6) According to the torque, adjust the robotic arm to the desired posture.

[0193] The embodiments of the present application have at least the following beneficial effects:

[0194] 1. The 3D posture adjustment of the end of the robotic arm can be achieved through the image feedback of the monocular fixed camera.

[0195] 2. Accurate camera extrinsic calibration can be achieved.

[0196] 3. The performance of 3D visual servoing can be improved through accurate parameter estimation.

[0197] The following is an introduction to the beneficial effects of the embodiments of the present application in combination with experimental data:

[0198] In order to illustrate the effect of the embodiment of the present application, the method in the embodiment of the present application is verified using Matlab simulation software. In the simulation, four feature points are fixed at the end of the robotic arm, one of which is Q e Used to adjust the position of the end of the robot arm. The entire simulation task is divided into two stages. In the first stage, the desired position of the end of the robot arm is switched to O1, O2, and O3 at 0s, 15s, and 30s respectively. In the second stage, the desired position of the end of the robot arm is switched to O4 and O5 at 75s and 90s. Figures 4 to 12 The effect of the proposed method is demonstrated in simulation, where It is the average error of the four feature points on the u and v axes of the image, which can also reflect the control effect.

[0199] Reference Figure 3 , Figure 4 , Figure 5 and Figure 6 It can be seen that in the first stage task, each time the desired posture is switched, the depth ratio α=1 and the rotation error ||e ω ||=0, pixel error α = 1 means that the feature point Q e The depth Z reaches the desired depth Z d Therefore, according to the above camera model expression, we know that α=1, means Q e The position x in the world coordinate system reaches the planned expected position x d . ||e ω ||=0 means that the posture of the end of the robot arm reaches the expected posture of the plan. Therefore, the results show that CL-HBVS realizes the 3D posture control of the end of the robot arm.

[0200] In order to significantly demonstrate the beneficial effects of the method proposed in this application, a conventional adaptive algorithm CA-HBVS (visual servoing based on composite adaptation and homography decomposition) was also compared in the simulation. In order to better compare the impact of parameter convergence on control performance, the controller of CA-HBVS is made consistent with the new controller proposed in this application, but it uses a common composite adaptive algorithm to achieve κ2=0 in the adaptive update law, which makes it impossible to achieve parameter convergence under weak excitation. 3D posture control uses the average pixel error of 4 feature points To reflect. Figure 7 The comparison results show that the method CL-HBVS (visual servoing based on composite learning and homography decomposition) can achieve parameter error Converging to 0 means that accurate online calibration of camera extrinsics is achieved, which cannot be achieved by the comparative CA-HBVS method. Figure 8 The model prediction error results show that the method of the present application can quickly learn the model, and compared with CA-HBVS, the CL-HBVS method in the present application can still maintain a very small model prediction error after the learning process is completed, which also reflects the accuracy of parameter learning of the method of the present application. Fig. 9 and Fig.10 The results show that as the parameters converge, the CL-HBVS method in this application has a faster response speed than CA-HBVS. Fig.11 and Fig.12 This shows that the advantage of CL-HBVS is more obvious after the parameters converge.

[0201] See also Fig.13 The embodiment of the present application also provides a robot 3D visual servo system based on composite learning and homography matrix, which can implement the above-mentioned robot 3D visual servo method based on composite learning and homography matrix, and the system includes:

[0202] The first module is used to determine the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture based on the parameterized camera model;

[0203] The second module is used to perform homography decomposition on the feature points in combination with the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates;

[0204] A third module is used to update online calibration parameters using a normalized composite learning camera parameter update law according to the rotation error and the depth ratio;

[0205] A fourth module is used to calculate the torque using a controller expression according to the online calibration parameters;

[0206] The fifth module is used to adjust the robot arm to the desired posture according to the torque.

[0207] It should be noted that, in some embodiments, the system may also include the following modules:

[0208] The sixth module is used to parameterize the initial camera model to obtain a parameterized camera model, which is specifically used for:

[0209] Determine the initial camera model according to the conversion relationship between the camera coordinate system and the world coordinate system;

[0210] Determine the depth of the feature point according to the transformation matrix between the world coordinate system and the camera coordinate system;

[0211] A parameterized camera model is determined according to the feature point depths and the initial camera model.

[0212] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0213] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned robot 3D visual servo method based on composite learning and homography matrix when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0214] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0215] See also Fig.14 , Fig.14 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0216] The processor 1401 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0217] The memory 1402 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1402 can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1402, and the processor 1401 calls and executes the robot 3D visual servoing method based on composite learning and homography matrix in the embodiments of this application;

[0218] Input / output interface 1403, used to implement information input and output;

[0219] The communication interface 1404 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0220] A bus 1405 that transmits information between the various components of the device (e.g., the processor 1401, the memory 1402, the input / output interface 1403, and the communication interface 1404);

[0221] The processor 1401 , the memory 1402 , the input / output interface 1403 and the communication interface 1404 are connected to each other in communication within the device via a bus 1405 .

[0222] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned robot 3D visual servoing method based on composite learning and homography matrix.

[0223] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0224] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0225] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0226] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0227] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0228] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0229] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0230] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0231] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0232] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0233] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0234] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0235] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A robot 3D visual servoing method based on composite learning and homography matrix, characterized in that: include: Based on the parameterized camera model, determine the current pixel coordinates of each feature point of the robot arm and the expected pixel coordinates of the expected posture; Performing homography decomposition on the feature points in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates; According to the rotation error and the depth ratio, updating online calibration parameters using a normalized composite learning camera parameter update law; Calculating the torque using a controller expression according to the online calibration parameters; According to the torque, adjusting the robotic arm to the desired posture; The step of performing homography decomposition on the feature points in combination with the homography matrix to obtain a rotation error and a depth ratio between the current pixel coordinates and the expected pixel coordinates includes: Construct projection model; Determine a conversion relationship expression between the current pixel coordinates and the expected pixel coordinates according to the relationship expression between the projection model and the pixel coordinates of the world coordinate system; Solving the transformation relationship expression according to the camera intrinsic parameters, the current pixel coordinates and the expected pixel coordinates to obtain a homography matrix; Decomposing the homography matrix to obtain a rotation error and a depth ratio; Wherein, updating the online calibration parameters according to the rotation error and the depth ratio by using the normalized composite learning camera parameter update law includes: Calculating a common prediction error according to the parameterized camera model; An extended prediction error is calculated based on the parameterized camera model and the interval excitation matrix; According to the rotation axis and the rotation angle, the rotation error is transformed into an axis-angle expression to obtain an axis-angle expression; determining a translation error vector based on the depth ratio; Determine a normalized composite learning camera parameter update law based on a positive definite learning rate matrix, the axis-angle expression, the translation error vector, the normal prediction error, and the extended prediction error; The online calibration parameters are updated by the normalized composite learning camera parameter update law.

2. The method according to claim 1, characterized in that The method of determining the current pixel coordinates of each feature point of the robotic arm and the expected pixel coordinates of the expected posture based on the parameterized camera model includes: Determine the current world coordinates of each feature point of the robot arm and the expected world coordinates of the expected posture; Coordinate transformation is performed by using the parameterized camera model to transform the current world coordinates into current pixel coordinates, and then the expected world coordinates into expected pixel coordinates.

3. The method according to claim 1, characterized in that The method further includes a step of performing linear parameterization processing on the initial camera model to obtain a parameterized camera model, specifically comprising: Determine the initial camera model according to the conversion relationship between the camera coordinate system and the world coordinate system; Determine the depth of the feature point according to the transformation matrix between the world coordinate system and the camera coordinate system; A parameterized camera model is determined according to the feature point depths and the initial camera model.

4. The method according to claim 1, characterized in that: In the step of updating the online calibration parameters using the normalized composite learning camera parameter update law according to the rotation error and the depth ratio, the expression of the normalized composite learning camera parameter update law is: in, is the parameter to be calibrated; Γ represents the positive definite learning rate matrix; κ1 is the weight factor of the extended prediction error ξ, κ2 is the weight factor of the ordinary prediction error ∈; Y(e v ,e ω ,p,q) are auxiliary variables; e v represents the translation error vector; e ω represents the rotation error expressed by the axis angle; p represents the current pixel coordinate; q represents the joint position vector; represents the joint velocity; represents the first normalized matrix; represents the second normalized matrix; Φ represents the regression matrix.

5. The method according to claim 1, characterized in that In the step of calculating the torque using the controller expression according to the online calibration parameters, the expression for calculating the torque is: Where, τ represents the control torque vector; p represents the current pixel coordinate; represents the joint velocity; represents the translation Jacobian matrix; represents the interaction matrix; represents the estimated value of d3, d3 represents the value in the camera extrinsic matrix; e v represents the translation error vector; Indicates e v The transpose of K p represents the first control gain matrix of positive definite diagonal; K ω represents the second control gain matrix of positive definite diagonal; K d represents a positive definite diagonal third control gain matrix; represents the rotation Jacobian matrix; express c R b The estimated value of c R b The rotation matrix from the world coordinate system to the camera coordinate system; The Jacobian matrix between the rotation speed represented by the axis angle and the angular velocity of the end of the robot arm; e ω represents the axis angle expression; represents the joint velocity; g(q) represents the gravity vector.

6. A robot 3D visual servo system based on composite learning and homography matrix, the system being used to execute the method as claimed in any one of claims 1 to 5, characterized in that: include: The first module is used to determine the current pixel coordinates of each feature point of the robot arm and the expected pixel coordinates of the expected posture based on the parameterized camera model; The second module is used to perform homography decomposition on the feature points in combination with the homography matrix to obtain the rotation error and depth ratio between the current pixel coordinates and the expected pixel coordinates; A third module is used to update online calibration parameters using a normalized composite learning camera parameter update law according to the rotation error and the depth ratio; A fourth module is used to calculate the torque using a controller expression according to the online calibration parameters; The fifth module is used to adjust the robot arm to the desired posture according to the torque.

7. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 5.

8. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 5 when executed by the processor.

Citation Information

Patent Citations

  • Mobile robot visual servo tracking control method based on adaptive dynamic programming

    CN114434441A

  • Uncalibrated visual servo control method based on homography and Q learning

    CN114609976A

  • Machine learning models for direct homography regression for image rectification

    US11481683B1