Multi-sensor data fusion method for robot visual servo trajectory tracking
Through the joint measurement system of the robot joint encoder and the visual sensor, the error state dynamics and the retrospective correction of the visual measurement delay are used to solve the problem of low measurement frequency and delay of the visual sensor, and realize the position of the end effector in the robot visual servo trajectory tracking. Fast dynamic estimation of pose improves trajectory tracking performance and robustness.
Patent Information
- Application Number
- CN202410642262.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In robot visual servo trajectory tracking, the low measurement frequency and delay of the visual sensor limit the rapid dynamic estimation of the end effector's pose. Existing technologies are difficult to effectively solve this problem, especially in the face of complex motion trajectories and environmental disturbances.
Using a multi-sensor data fusion method, the error state dynamics is defined through a joint measurement system of robot joint encoders and visual sensors, and the error state transmission driven by the encoder and the retroactive correction of visual measurement delays are used to achieve rapid end-effector posture estimate.
It achieves fast dynamic estimation of the end-effector pose, improves trajectory tracking performance, has good robustness and anti-interference capabilities, and avoids the need for additional sensors to be installed.
Smart Images

Figure CN118219281B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of sensor data fusion, and in particular to a multi-sensor data fusion method for robot visual servo trajectory tracking. Background Art
[0002] In recent years, industrial robot technology has been widely developed, and its application scenarios have gradually expanded to high-end manufacturing tasks, especially tasks that require accurate tracking of certain trajectories, such as milling, grinding, and 3D printing. In order to solve the contradiction between the low precision of the robot itself and the high precision requirements of high-end manufacturing tasks, robot visual servo trajectory tracking is an effective solution. In robot visual servo trajectory tracking, the posture of the robot end effector is measured in real time by a visual sensor, and then the controller corrects the end effector motion by the deviation between the real-time posture of the end effector and the expected posture. The dynamic posture feedback of the end effector is one of the key technologies. However, the slow measurement frequency and delay of the visual sensor greatly limit its feedback frequency of the end effector posture, which indirectly affects the performance of visual servo trajectory tracking. How to achieve fast dynamic estimation of the end effector posture in robot visual servo is a key problem that needs to be solved urgently.
[0003] The Chinese invention patent with announcement number CN114131595B discloses a robot 6D pose estimation system and method, which uses a laser tracker to measure a T-shaped device composed of three target balls to obtain the position and posture information of the end effector. Among them, the laser tracker is responsible for measuring the position information of target ball 1, while the position information of target balls 2 and 3 is calculated by measuring the robot joint angle and combining the corrected kinematic solution. By combining the laser tracker measurement and joint measurement, the position information of all three target balls can be obtained, and then the posture of the end effector is further calculated. In this method, the robot's kinematic solution is corrected by an offline trained positioning error neural network model. When the application object robot changes, since the specific link parameters of each robot are different, the positioning error model needs to re-collect a large amount of offline data for neural network training, and the implementation process is complicated. In addition, even for the same robot, due to uncertain factors such as wear, thermal effects, and environmental disturbances during the use of the robot, the accuracy of the offline trained positioning error model will decrease as the robot's running time increases, and it may be necessary to retrain and correct the positioning error model at regular intervals. The above factors limit the large-scale promotion and application of this method.
[0004] The Chinese invention patent with announcement number CN113763434B discloses a target trajectory prediction method based on Kalman filter multi-motion model switching, which uses multiple kinematic models to fit the robot's motion state, and can adaptively switch to a suitable kinematic model based on the measurement results of the robot's posture. The method provides at least a constant velocity model CV, a constant acceleration model CA, and a uniform circular motion model formed by converting a constant rotation rate and velocity model CTRV. However, the above three models still cannot fully cover the robot's complex motion trajectory, such as a sinusoidal curve trajectory, an acceleration curve trajectory, or other irregular curve trajectories. In addition, the method does not consider the impact of the low frequency and delay of visual measurement on the robot's posture estimation performance when the posture measurement sensor is a visual sensor.
[0005] The Chinese invention patent with announcement number CN111121767B discloses a robot vision-inertial navigation combined positioning method integrated with GPS. By integrating three sensors, namely, inertial measurement unit (IMU), visual sensor and GPS, a fast dynamic estimation of the robot's posture is obtained. However, the acceleration and angular velocity measured by the IMU must be integrated into the robot's posture through integration operations, which will accumulate errors. In addition, the installation of multiple sensors puts additional demands on the design of the mechanical structure and may lead to the accumulation of additional calibration errors. Summary of the invention
[0006] Purpose of the invention: To propose a multi-sensor data fusion method for robot visual servo trajectory tracking, aiming to solve the limitations of low measurement frequency and delay of visual sensors on trajectory tracking performance.
[0007] To achieve the above object, the present invention proposes a multi-sensor data fusion method for robot visual servo trajectory tracking, comprising the following steps:
[0008] S1. Establish a joint measurement system based on robot joint encoders and visual sensors, and calibrate each coordinate system, including the visual sensor coordinate system , robot base coordinate system and the end effector coordinate system ;
[0009] S2, obtaining the robot end effector pose measurement data from the joint encoder and the visual sensor respectively;
[0010] S3, define the variables required for data fusion and perform initialization operations on them;
[0011] S4. The fast robot joint encoder measurements and the slow vision sensor measurements are fused through encoder-driven robot error state dynamics to obtain an estimate of the end effector pose.
[0012] In a further embodiment, the robot base coordinate system in step S1 The origin is the center of the robot base; the end effector coordinate system The origin is the tool center point; the visual sensor coordinate system The origin is located at the center of the binocular vision sensor.
[0013] Optical target point groups are respectively arranged on the robot base and the surface of the end effector, and each group of optical target point groups includes more than three non-collinear optical target points; the optical target point group on the robot base is aligned with the robot base coordinate system. Binding, the optical target point group on the end effector and the end effector coordinate system Binding.
[0014] In a further embodiment, in step S2: for the visual sensor, the coordinate information of the optical target point group on the robot base and the end effector is obtained to obtain the robot base pose and the end effector pose bound to the optical target point group, and converted into the pose of the end effector relative to the robot base, which is recorded as the visual measurement value of the end effector pose; for the joint encoder, the robot joint encoder measurement value is obtained, and converted into the end effector pose through the robot kinematics forward solution, which is recorded as the encoder measurement value of the end effector pose.
[0015] In a further embodiment, the mathematical expression of the robot end effector pose measurement data from the visual sensor is as follows:
[0016] ;
[0017] In the formula, is the pose of the end effector relative to the robot base; is the position and posture of the robot base in the visual sensor coordinate system; is the position and posture of the end effector in the visual sensor coordinate system.
[0018] The mathematical expression of the robot end effector pose measurement data from the joint encoder is as follows:
[0019] ;
[0020] In the formula, is the encoder measurement of the robot pose; are the measured values of the robot’s six joint angles; It is the positive solution of the robot kinematics, established using theoretical link parameters.
[0021] In a further embodiment, in step S4: if there is no new visual measurement value of the end effector posture at the current moment, the nominal state is recursively calculated as follows:
[0022] ;
[0023] ;
[0024] In the formula, k represents the number of cycles of visual measurement; Represents the number of cycles measured by the encoder; is the multiple of the visual measurement cycle relative to the encoder measurement cycle, that is, ,in is the visual measurement cycle, is the encoder measurement period; is the nominal state of the end effector pose ( is the estimated value of the required end effector pose). is the encoder measurement of the end effector pose, is the nominal state of the kinematics correct solution error;
[0025] The error state is deduced as follows:
[0026] ;
[0027] ;
[0028] In the formula, represents a priori estimate; δρ=[δp δ p e ] T yes and The combined form of is the error state of the end effector pose, is the error state of the kinematics correct solution error; W is The corresponding covariance matrix; is the delay time step of the visual measurement; F is the error state transfer matrix; represents the transpose of F; is the error state process transfer noise covariance matrix.
[0029] The error state transfer matrix F and the error state process transfer noise covariance matrix Calculated as follows:
[0030] ;
[0031] In the formula, is the encoder measurement noise covariance matrix, obtained by calibration; is the error state process transfer noise covariance matrix, which is an adjustable parameter; represents a 6×6 zero matrix, Represents the 6×6 identity matrix.
[0032] In a further embodiment, in step S4: if there is a new visual measurement value of the end effector posture at the current moment, the error state is corrected as follows:
[0033] ;
[0034] ;
[0035] ;
[0036] ;
[0037] In the formula, represents the posterior estimate; K is the gain coefficient, H is the visual relative to the error state The Jacobian matrix of represents the transpose of H, is the visual measurement of the end effector pose, represents the visual measurement noise covariance matrix, represents the 12×12 identity matrix, Indicates the real state, Represents the visual state relative to the real state The Jacobian matrix of ρ = [p p e ] T yes and The rest of the parameters have the same meanings as above.
[0038] After the error state is corrected, the nominal state at the past moment is retroactively corrected:
[0039] ;
[0040] ;
[0041] According to the error similarity principle, when the number of steps of visual measurement delay When it is less than the preset value, let:
[0042] ;
[0043] The nominal state of the end effector posture at the current moment is obtained:
[0044] ;
[0045] Complete the correction of the estimated value of the end effector's position and posture;
[0046] Finally reset the error state to 0:
[0047] ;
[0048] ;
[0049] Wherein, the parameters have the same meaning as above.
[0050] Compared with the prior art, the present invention has the following significant advantages: a method for fast dynamic pose estimation of the end effector that integrates the robot's own joint encoder and external visual sensor is proposed, without the need for additional sensors (such as inertial measurement unit IMU); the transmission of nominal state and error state is achieved through the error state dynamics driven by the robot's joint encoder, which is independent of the specific motion trajectory of the end effector, thereby making the present invention have good robustness to different motion trajectories of the end effector; a method for backtracking correction of visual measurement delay is proposed, which realizes compensation for visual sensor delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a joint measurement system of robot joint encoders and external binocular vision sensors.
[0052] Figure 2 It is a schematic flow chart of step S4 of the present invention.
[0053] Figure 3 This is a schematic diagram of the running trajectory of the end effector used in the experiment.
[0054] Figure 4 It is the experimental result of the present invention on the pose estimation error of the straight line trajectory.
[0055] Figure 5 It is the experimental result of the present invention on the pose estimation error of circular trajectory.
[0056] Figure 6 It is the experimental result of the present invention on the pose estimation error of rectangular trajectory. DETAILED DESCRIPTION
[0057] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features known in the art are not described.
[0058] This embodiment discloses a specific process of a multi-sensor data fusion method for robot visual servo trajectory tracking, and the steps are as follows:
[0059] Step S1, for example Figure 1 The joint measurement system of the robot joint encoder and the external binocular vision sensor shown in the figure calibrates each coordinate system, including the vision sensor coordinate system , robot base coordinate system and the end effector coordinate system Among them, the robot base coordinate system The origin is the center of the robot base, and the end effector coordinate system The origin is the tool center point (TCP). Optical target point groups are set on the robot base and the end effector surface respectively. Each group of optical target point groups contains more than 3 non-collinear optical target points. The optical target point group on the robot base is consistent with the robot base coordinate system. Binding, the optical target point group on the end effector and the end effector coordinate system Binding. The visual sensor is binocular stereo vision, and the visual sensor coordinate system The origin is located at the center of the binocular vision sensor.
[0060] Step S2: For the visual sensor, by acquiring the coordinate information of the target point group on the robot base and the end effector, the robot base pose and the end effector pose bound to the target point group can be obtained, and converted into the pose of the end effector relative to the robot base:
[0061]
[0062] In the formula, is the pose of the end effector relative to the robot base, is the position of the robot base in the visual sensor coordinate system, is the position and posture of the end effector in the visual sensor coordinate system.
[0063] It can be written in the form of position and attitude, recorded as the visual measurement value of the end effector pose:
[0064]
[0065] For joint encoders, obtain the robot joint encoder measurement values and convert them into the end effector pose through the robot kinematics forward solution:
[0066]
[0067] In the formula, is the encoder measurement of the robot's pose, is the measured value of the robot's six joint angles, It is the positive solution of the robot kinematics, established using theoretical link parameters.
[0068] It can be written in the form of position and attitude, recorded as the encoder measurement value of the end effector posture:
[0069]
[0070] Step S3, define the variables (parameters) required for data fusion and initialize them. The definition and assignment of each parameter are shown in Table 1:
[0071] Table 1 Definition and assignment of parameters
[0072]
[0073] The definition and initialization of each variable are shown in Table 2:
[0074] Table 2 Definition and initialization of variables
[0075]
[0076] Step S4: If there is no new visual measurement value of the end effector posture at the current moment, the nominal state is recursively calculated as follows:
[0077]
[0078]
[0079] The variables (parameters) in the formula have been defined and initialized in step S3. This is the estimated value of the required end-effector pose.
[0080] At the same time, the error state is recursively deduced as follows:
[0081]
[0082]
[0083] In the formula, represents a priori estimate. It can be calculated as follows:
[0084]
[0085] Furthermore, in step S4, if there is a new visual measurement value of the end effector posture at the current moment, the error state is corrected as follows:
[0086]
[0087]
[0088]
[0089] In the formula, represents the posterior estimate, and K is the gain coefficient.
[0090] After the error state is corrected, the nominal state at the past moment is retroactively corrected:
[0091]
[0092]
[0093] According to the error similarity principle, when the number of steps of visual measurement delay When it is smaller, you can make:
[0094]
[0095] So the nominal state of the end effector posture at the current moment can be obtained:
[0096]
[0097] That is, the correction of the estimated value of the end effector's posture is completed.
[0098] Finally, the error state is reset to 0:
[0099]
[0100]
[0101] The flow chart of step S4 is as follows: Figure 2 shown.
[0102] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
[0103] The beneficial effects of the present invention have been verified through testing experiments. Figure 3-6 Description is as follows.
[0104] End effector pose estimation error test verification:
[0105] A joint measurement system of robot joint encoders and external binocular vision sensors was built. The system consists of an industrial robot carrying an end effector and an external vision sensor. The industrial robot is StaubliTX60, and target point groups that can be recognized by the vision sensor are attached to the end effector and the robot base respectively. The vision sensor is C-track 780 produced by Creaform. The available measurement frequency of C-track 780 is 30-80Hz. In this experiment, the visual measurement frequency is set to 50Hz (that is, the visual measurement cycle is 20ms). Through calibration, the delay of the visual sensor is obtained to be 14ms. On the other hand, the cycle of the robot motion control is set to 2ms, and the robot joint measurement values are obtained through the robot joint encoders during this cycle. The system communicates with the connected industrial computer via Ethernet, and the trajectory planning, pose estimation algorithm and control algorithm are implemented in the industrial computer. The experiment used the following Figure 3 The straight line shown (see Figure 3 a), circle (see Figure 3 b) and rectangle (see Figure 3 c) three different types of trajectories to verify the robustness of the estimation performance of the present invention for different motion trajectories of the end effector. The estimation error of the present invention is defined as the difference between the estimated value and the actual value of the end effector pose, where the estimated value of the end effector pose is calculated online by the present invention, while the actual value of the end effector pose is obtained by offline Butterworth filtering of the visual measurement.
[0106] Analysis of the end effector’s pose estimation error test results:
[0107] The experimental results of the end effector pose estimation error for straight trajectory, circular trajectory and rectangular trajectory are shown in Figure 2. Figure 4 , Figure 5 and Figure 6 For simplicity, only Direction and direction, representing the position estimation result and attitude estimation result respectively. Figure 4 It can be seen from the straight line trajectory test results that the estimation error of the present invention smoothly converges to a stable value in the initial stage and remains robust in the subsequent process. The estimation error of the present invention is significantly lower than the position and posture measurement error of the visual sensor. Figure 5 The circular trajectory test results and Figure 6 The experimental results of rectangular trajectories show similar rules as those of straight-line trajectories. In addition, Figure 5 The visual measurement result of the circular trajectory has an obvious outlier at the 27th second, which causes a dramatic change in the measurement error. However, the pose estimation error of the present invention is not affected and still maintains a robust estimation performance.
[0108] In addition, the statistical results of the pose estimation errors of different trajectories are shown in Table 3, Table 4 and Table 5 respectively. For a straight trajectory, the present invention can The maximum absolute estimation error of the direction is reduced by 65.64%. The maximum absolute estimation error of the direction is reduced by 78.56%; for circular trajectories, the present invention can The maximum absolute estimation error of the direction is reduced by 83.44%. The maximum absolute estimation error in the x direction is reduced by 76.68%. For a rectangular trajectory, the present invention can reduce the maximum absolute estimation error in the x direction by 62.07%. The maximum absolute estimation error of the direction is reduced by 73.26%.
[0109] Table 3 Statistics of the maximum absolute estimation error of straight line trajectories
[0110]
[0111] Table 4 Statistics of the maximum absolute estimation error of circular trajectories
[0112]
[0113] Table 5 Statistics of the maximum absolute estimation error of rectangular trajectories
[0114]
[0115] In summary, the experimental results show that the pose estimation performance of the end effector of the present invention is significantly improved compared with the measurement performance of the visual sensor, and the pose estimation performance of the present invention has good robustness to different types of trajectories or abnormal visual measurement values.
[0116] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A multi-sensor data fusion method for robot visual servo trajectory tracking, characterized in that: The steps include: S1. Establish a joint measurement system based on robot joint encoders and visual sensors, and calibrate each coordinate system, including the visual sensor coordinate system , robot base coordinate system and the end effector coordinate system ; The robot base coordinate system The origin is the center of the robot base; the end effector coordinate system The origin is the tool center point; the visual sensor coordinate system The origin is located at the center of the binocular vision sensor; optical target point groups are respectively arranged on the robot base and the surface of the end effector, and each group of optical target point groups contains more than three non-collinear optical target points; The optical target point group on the robot base and the robot base coordinate system Binding, the optical target point group on the end effector and the end effector coordinate system Binding; S2, obtaining the robot end effector pose measurement data from the joint encoder and the visual sensor respectively; For the visual sensor, by acquiring the coordinate information of the optical target point group on the robot base and the end effector, the robot base pose and the end effector pose bound to the optical target point group are obtained, and then converted into the pose of the end effector relative to the robot base, which is recorded as the visual measurement value of the end effector pose; For the joint encoder, obtain the robot joint encoder measurement value, and convert it into the end effector posture through the robot kinematics forward solution, which is recorded as the encoder measurement value of the end effector posture; The mathematical expression of the robot end effector pose measurement data from the visual sensor is as follows: ; In the formula, is the pose of the end effector relative to the robot base; is the position and posture of the robot base in the visual sensor coordinate system; is the position and posture of the end effector in the visual sensor coordinate system; The mathematical expression of the robot end effector pose measurement data from the joint encoder is as follows: ; In the formula, is the encoder measurement of the robot pose; are the measured values of the robot’s six joint angles; It is the positive solution of robot kinematics, established using theoretical link parameters; S3, define the variables required for data fusion and perform initialization operations on them; S4, fusing fast robot joint encoder measurements and slow vision sensor measurements through encoder-driven robot error state dynamics to obtain an estimate of the end effector pose; If there is no new visual measurement value of the end effector pose at the current moment, the nominal state is recursively calculated as follows: ; ; In the formula, k represents the number of cycles of visual measurement; Represents the number of cycles measured by the encoder; is the multiple of the visual measurement cycle relative to the encoder measurement cycle, that is, ,in is the visual measurement cycle, is the encoder measurement period; is the nominal state of the end effector pose, That is the estimated value of the required end effector pose; is the encoder measurement of the end effector pose, is the nominal state of the kinematics correct solution error; The error state is deduced as follows: ; ; In the formula, represents a priori estimate; yes and The combined form of is the error state of the end effector pose, is the error state of the kinematics correct solution error; W is The corresponding covariance matrix; is the number of delay time steps of the visual measurement; F is the error state transfer matrix; represents the transpose of F; yes The corresponding process transfer noise covariance matrix; The error state transfer matrix F and the error state process transfer noise covariance matrix Calculated as follows: ; In the formula, is the encoder measurement noise covariance matrix, obtained by calibration; yes The corresponding process transfer noise covariance matrix is an adjustable parameter; represents a 6×6 zero matrix, Represents a 6×6 identity matrix; If there is a new visual measurement value of the end effector posture at the current moment, the error state is corrected as follows: ; ; ; ; In the formula, represents the posterior estimate; K is the gain coefficient, H is the visual relative to the error state The Jacobian matrix of represents the transpose of H, is the visual measurement of the end effector pose, represents the visual measurement noise covariance matrix, represents the 12×12 identity matrix, Indicates the real state, Represents the visual state relative to the real state The Jacobian matrix of yes and The combined form of After the error state is corrected, the nominal state at the past moment is retroactively corrected: ; ; According to the error similarity principle, when the number of steps of visual measurement delay When it is less than the preset value, let: ; The nominal state of the end effector posture at the current moment is obtained: ; Complete the correction of the estimated value of the end effector's position and posture; Finally reset the error state to 0: ; 。
