Table tennis hitting system construction method, hitting control method and table tennis robot

By constructing a nonlinear optimal observer and designing a robust servo controller, the problem of return errors and control accuracy of table tennis robots when dealing with complex ball paths has been solved, and more accurate and stable hitting control has been achieved.

CN118377230BActive Publication Date: 2024-09-13VALLEY OF SCI & TECH OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410813788.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-13
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Existing table tennis robots often make incorrect returns or fail to catch the ball when dealing with complex and changeable ball paths, and their control accuracy is affected by external interference, resulting in loss of stable operation and accuracy.

Method used

By constructing a nonlinear optimal observer for the table tennis trajectory and designing a robust servo controller, the table tennis trajectory information is predicted and system uncertainties are suppressed to achieve more precise batting control.

Benefits of technology

It improves the table tennis robot's ability to respond to complex ball paths, enhances the accuracy and control precision of return shots, and reduces the impact of uncertainty factors on the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377230B
    Figure CN118377230B
Patent Text Reader

Abstract

The present invention discloses a table tennis hitting system construction method, a hitting control method and a table tennis robot, wherein the control system construction method comprises the following steps: S1, simplifying the table tennis model in the flight process and the collision process; S2, performing force analysis on the table tennis after the model simplification, and establishing the flight trajectory model and the collision trajectory model of the table tennis; S3, using an observer to estimate the error signal of the table tennis trajectory, and constructing a nonlinear optimal observer of the table tennis trajectory; S4, establishing the kinematic model and the dynamic model of the table tennis robot according to the robot actuator terminal position determined by the table tennis trajectory information; S5, designing a robust servo controller for the dynamic model of the table tennis robot. The present invention can predict the table tennis trajectory more accurately, and can better cope with various complex ball paths; the robot is robustly controlled by the designed robust servo controller, so that the robot has a higher motion accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of table tennis robots, and in particular to a table tennis hitting system construction method, a hitting control method and a table tennis robot. Background Art

[0002] A table tennis robot is a machine that can simulate a real opponent to perform table tennis training. It can simulate a variety of ball paths, speeds, and rotations, and can automatically adjust according to the player's level. It is a good helper for table tennis training. At present, table tennis robots have made great progress in technology, and can achieve more realistic ball path and speed simulation, as well as more intelligent automatic adjustment functions. For example, the application publication number CN107315349A discloses a robot's batting motion control method, and the authorization announcement number CN103389738B discloses a method and device for a table tennis robot to predict the trajectory of a table tennis ball.

[0003] However, the existing table tennis robots still have some shortcomings. For example, the current table tennis robots' technology for dealing with complex and changeable ball paths is not yet mature, and they often make mistakes in returning the ball or even fail to receive the ball. Secondly, in the actual working environment, the control accuracy of the table tennis robot is often affected by various external interferences, which will seriously undermine the stable operation of the robot and thus affect the accuracy of the return. Summary of the invention

[0004] The purpose of the present invention is to provide a table tennis hitting system construction method, a hitting control method and a table tennis robot to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The table tennis robot control system construction method comprises the following steps:

[0007] S1. Simplify the model of the ping-pong ball during flight and collision: the ping-pong ball performs non-rotational motion; the ping-pong ball is only subject to gravity, buoyancy and air resistance during flight; the collision between the ping-pong ball and the tabletop is an elastic collision;

[0008] S2, performing force analysis on the table tennis ball after the simplified model, and establishing a flight trajectory model and a collision trajectory model of the table tennis ball;

[0009] S3, using the observer to estimate the error signal of the trajectory of the table tennis ball, quantifying the performance of the observer, constructing a nonlinear optimal observer of the trajectory of the table tennis ball, and predicting the trajectory information of the table tennis ball according to the speed of the table tennis ball at time zero output by the nonlinear optimal observer;

[0010] S4, establishing a kinematic model and a dynamic model of the table tennis robot according to the end position of the robot actuator determined by the table tennis trajectory information;

[0011] S5. According to the dynamic model of the table tennis robot, a robust servo controller is designed. The robust servo controller can suppress the influence of various uncertain factors in the whole system and control the batting process of the table tennis robot.

[0012] As a further solution of the present invention, the flight trajectory model of the table tennis ball in step S2 is:

[0013] , ;

[0014] in, is the coordinate information of the table tennis ball in the x-axis direction, is the coordinate information of the ping-pong ball in the y-axis direction, is the coordinate information of the table tennis ball in the z-axis direction, is the flying speed of the ping-pong ball in the x-axis direction, is the flying speed of the ping-pong ball in the y-axis direction, is the flying speed of the ping-pong ball in the z-axis direction, is the mass of the table tennis ball, is the acceleration due to gravity, is the drag coefficient, is the air density, A is the effective area of ​​the table tennis ball, and D is the diameter of the table tennis ball;

[0015] The collision trajectory model of the ping-pong ball is:

[0016] ;

[0017] in, is the incident velocity of the ping-pong ball before collision in the x-axis direction, is the incident velocity of the ping-pong ball before collision in the y-axis direction, is the incident velocity of the ping-pong ball before collision in the z-axis direction, is the velocity of the ping-pong ball after the collision in the x-axis direction, is the velocity of the ping-pong ball after the collision in the y-axis direction, is the velocity of the ping-pong ball after the collision in the z-axis direction, is the collision attenuation coefficient in the x-axis direction, is the collision attenuation coefficient in the y-axis direction, is the collision attenuation coefficient in the z-axis direction.

[0018] As a further solution of the present invention, the expression of the nonlinear optimal observer in step S2 is:

[0019] ;

[0020] in, Represents the trajectory signal of the model in the horizontal direction, Represents the trajectory signal of the model in the vertical direction, and It is the trajectory signal coefficient after the measured trajectory is approximated by the nonlinear least squares method.

[0021] As a further solution of the present invention, in step S4, the point where the table tennis ball reaches the edge of the table in the horizontal direction is selected as the hitting point, and the position of the robot actuator end is specifically expressed as:

[0022] ;

[0023] in, It represents the description of the X-axis of the robot's end coordinate system in the reference coordinate system. is the projection of the X-axis of the robot's end coordinate system on the X-axis of the reference coordinate system, is the projection of the X-axis of the robot's end coordinate system on the Y-axis of the reference coordinate system, It is the projection of the X-axis of the robot's end coordinate system on the Z-axis of the reference coordinate system;

[0024] It represents the description of the Y-axis of the robot's end coordinate system in the reference coordinate system. is the projection of the Y-axis of the robot's end coordinate system on the X-axis of the reference coordinate system, is the projection of the Y axis of the robot's end coordinate system on the Y axis of the reference coordinate system, It is the projection of the Y axis of the robot end coordinate system on the Z axis of the reference coordinate system;

[0025] It represents the description of the Z axis of the robot's end coordinate system in the reference coordinate system. is the projection of the Z axis of the robot's end coordinate system on the X axis of the reference coordinate system, is the projection of the Z axis of the robot's end coordinate system on the Y axis of the reference coordinate system, It is the projection of the Z axis of the robot end coordinate system on the Z axis of the reference coordinate system;

[0026] represents the position of the robot end in the reference coordinate system, is the coordinate of the robot end on the X-axis of the reference coordinate system, is the coordinate of the robot end on the Y axis of the reference coordinate system, is the coordinate of the robot end on the Z axis of the reference coordinate system;

[0027] in, , as well as is the corresponding posture description, It is a position description, collectively called a posture description, which is used as the end posture of the robot actuator;

[0028] The table tennis robot specifically uses a six-axis robotic arm. All joint variables in the kinematic model of the table tennis robot are:

[0029] ;

[0030] ;

[0031] ;

[0032] ;

[0033] ;

[0034] ;

[0035] in, ;

[0036] ;

[0037] ;

[0038] ;

[0039] in, Represent the angle vectors of each joint of the robot, represents the torsion angle of each connecting rod, represents the length of each connecting rod, , and is the intrinsic parameter of the connecting rod;

[0040] choose q = [ θ 1 θ 2 θ 3 θ 4 θ 5 θ 6 ] T As a generalized coordinate describing the robot system, the dynamic model of the table tennis robot is expressed in matrix form:

[0041] ;

[0042] in, Indicates time, represents the inertia matrix, represents the centrifugal and Coriolis matrices, is the friction vector, is the gravity vector, is the generalized force vector;

[0043] The conditions set are as follows:

[0044] 1) is a uniformly positive definite matrix, there is always a constant scalar ,satisfy ;but

[0045] , ;

[0046] in, is the identity matrix;

[0047] 2) , ;

[0048] in, , , ;

[0049] The Coulomb-viscous friction model is used to compensate the friction of the system. The mathematical description of the Coulomb-viscous friction model is as follows:

[0050] , ;

[0051] In the formula, is the Coulomb friction coefficient, is the viscous friction coefficient.

[0052] As a further solution of the present invention, the robust servo controller designed in step S5 is as follows:

[0053] ;

[0054] in, ,

[0055] ,

[0056] K p =diag{[ k pi ] 6×6 } ,

[0057] K d =diag{[ k d ] 6×6 } ,

[0058] , , ;

[0059] in, It is an upper bound based on uncertainty The piecewise function of , and is a very small adjustable value, the matrix is a constant or adjustable parameter variable, the matrix is a constant or adjustable parameter variable;

[0060] Among them, the matrix , , as well as The decomposition is:

[0061] ;

[0062] ;

[0063] ;

[0064] ;

[0065] in, , , as well as is the corresponding nominal part, , , as well as is the corresponding uncertain part;

[0066] The uncertainty bound is a scalar function To estimate, it can be expressed as:

[0067] ;

[0068] in,

[0069] ;

[0070] is the upper bound of uncertainty, given the matrix S=diag{[ s i ] n×n }, s i >0 is a constant, ;

[0071] If the uncertainty of the system disappears, then ;

[0072] in, Defined as the desired trajectory of the robot actuator end, the setting conditions are: is continuously second-order differentiable, For any given time is uniformly bounded.

[0073] The batting control method comprises the following steps:

[0074] Record the motion trajectory of the table tennis ball in real time, and send the real-time recorded image information to controller 1;

[0075] According to the received image information, the controller 1 calculates the speed of the table tennis ball at time zero through the nonlinear optimal observer configured by itself, predicts the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball and the collision trajectory model, and sends it to the controller 2;

[0076] Based on the received table tennis ball trajectory information, controller 2 calculates the expected trajectory information of the racket;

[0077] According to the expected trajectory information of the racket and the current posture information of the racket, the output torque of the motor at each joint of the six-axis robot arm is robustly controlled through the robust servo controller to execute the hitting action.

[0078] As a further solution of the present invention, the current position information of the racket is detected by a sensor, and the sensor is specifically a motor encoder at each joint of the six-axis robotic arm.

[0079] The table tennis robot comprises a six-axis mechanical arm and a racket mounted at the end of the six-axis mechanical arm, and also comprises: a visual device for recording the motion trajectory of the table tennis ball in real time and sending the real-time recorded image information to a controller 1;

[0080] The controller 1 is configured with a nonlinear optimal observer, and is used to calculate the speed of the table tennis ball at time zero through the nonlinear optimal observer according to the received image information, and predict the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball, and the collision trajectory model, and send the information to the controller 2;

[0081] The controller 2 is configured with a robust servo controller, and is used to calculate the expected trajectory information of the racket according to the received trajectory information of the table tennis ball, and to perform robust control of the output torque of the motor at each joint of the six-axis robot arm through the robust servo controller according to the expected trajectory information of the racket and the current posture information of the racket, so as to execute the hitting action;

[0082] The sensor is used to detect the current position information of the racket.

[0083] Compared with the prior art, the present invention has the following beneficial effects:

[0084] 1. The present invention constructs a nonlinear optimal observer of the trajectory of a table tennis ball, utilizes the speed of the table tennis ball at time zero output by the nonlinear optimal observer, and predicts the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball, and the collision trajectory model. The predicted trajectory information and landing point of the table tennis ball are relatively more accurate than those of the prior art, which is conducive to selecting a suitable hitting point for counterattack, can better cope with various complex ball paths, and the accuracy of the counterattack is also improved;

[0085] 2. The present invention performs robust control on the control output torque of the robot through the designed robust servo controller, so that the robot has relatively high motion accuracy, minimizes the joint trajectory tracking error of the table tennis robot system under the influence of various uncertain factors, and can reach the hitting point smoothly, quickly and accurately, achieving the expected effect of "eye to hand". BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 Schematic diagram of the flow of the method for building a control system for a table tennis robot.

[0087] Figure 2 This is the force analysis diagram of the table tennis ball during flight in the table tennis robot control system construction method.

[0088] Figure 3 This is the control block diagram of the table tennis robot.

[0089] Figure 4 This is the structural diagram of the table tennis robot.

[0090] Figure 5 This is a simulation schematic diagram of the table tennis robot control system of the present invention.

[0091] Figure 6 It is a schematic flow chart of the batting control method of the present invention. DETAILED DESCRIPTION

[0092] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0093] The table tennis robot control system construction method comprises the following steps:

[0094] S1. Simplify the model of the ping-pong ball during flight and collision: (1) The ping-pong ball performs non-rotational motion; (2) The ping-pong ball is only subject to gravity, buoyancy, and air resistance during flight; (3) The collision between the ping-pong ball and the table is an elastic collision;

[0095] S2, performing force analysis on the table tennis ball after the simplified model, and establishing a flight trajectory model and a collision trajectory model of the table tennis ball;

[0096] S3, using the observer to estimate the error signal of the trajectory of the table tennis ball, quantifying the observer performance, and constructing a nonlinear optimal observer of the trajectory of the table tennis ball;

[0097] S4, establishing a kinematic model and a dynamic model of the table tennis robot according to the end position of the robot actuator determined by the trajectory of the table tennis ball;

[0098] S5. According to the dynamic model of the table tennis robot, a robust servo controller is designed. The robust servo controller can suppress the influence of various uncertain factors in the whole system and control the batting process of the table tennis robot.

[0099] In the embodiment of the present invention, the specific process of step S2 is:

[0100] (1) Force analysis of a ping-pong ball during flight:

[0101] , , ;

[0102] in, is the gravity of the ping-pong ball, is the mass of the table tennis ball, is the acceleration due to gravity, take 9.8m / s, is the air resistance, is the drag coefficient, is the air density, A is the effective area of ​​the table tennis ball, is the flying speed of the table tennis ball, is the air buoyancy, and D is the diameter of the ping-pong ball.

[0103] The force on the ping-pong ball in the x-axis direction is , the force in the y-axis direction And the force in the z direction They are respectively expressed as follows:

[0104] ;

[0105] In the formula, is the component of air resistance in the x-axis direction, is the component of air resistance in the y-axis direction, is the component of air resistance in the z-axis direction, .

[0106] The above formula can be obtained according to Newton's second law of motion:

[0107] ;

[0108] It can be obtained that the flight trajectory model of the table tennis ball during the flight is as follows:

[0109] ;

[0110] (2) Assuming that the ping-pong ball does not rotate, the ping-pong ball is incident on the tabletop at an angle without rotation. The motion of the ping-pong ball can be decomposed into vertical motion and horizontal motion. If the change in collision force caused by the deformation in the horizontal direction is considered, angular velocity will be generated, which will increase the difficulty of model analysis. Therefore, the model is simplified here, and the horizontal direction adopts the same modeling and analysis method as the vertical direction.

[0111] In the vertical direction, the collision attenuation coefficient Z in the z direction can be calculated based on the tabletop elasticity of the table.

[0112] ;

[0113] Where: is the initial height of the falling ping-pong ball in the elasticity test; is the height of the ping-pong ball in the elasticity test; the ping-pong ball falls and collides with the table, and then bounces upward, changing its direction of motion. Therefore, the collision attenuation coefficient Z is a negative number, and its expression is:

[0114] ;

[0115] According to the law of conservation of energy, the velocity relationship of the table tennis ball before and after the collision in the z direction can be obtained as follows:

[0116] ;

[0117] In the formula, is the incident velocity of the ping-pong ball before the collision in the z direction, is the exit velocity of the ping-pong ball after the collision in the z direction.

[0118] In the horizontal direction, that is, in the x- and y-axis directions, the velocity relationship of the ping-pong ball before and after the collision is similar to that in the z-direction, and the collision attenuation coefficient takes a positive value. The collision attenuation coefficient in the x-axis direction is represented by X, and the collision attenuation coefficient in the y-axis direction is represented by Y.

[0119] Therefore, the collision trajectory model of the table tennis ball is as follows:

[0120] ;

[0121] The above formula is a linear function. By repeating offline experiments, the height in the z direction, the speed in the x-axis direction, and the speed in the y-axis direction before and after the collision are measured respectively, and the collision attenuation coefficient in each direction is calculated. The least squares method is used for fitting to obtain the final fitting result, which is used as the value of the collision attenuation coefficient X, the collision attenuation coefficient Y, and the collision attenuation coefficient Z.

[0122] In the embodiment of the present invention, the specific process of step S3 is:

[0123] Since the mathematical model expressions of the x-axis and y-axis directions of the ping-pong ball during flight are consistent, they can be collectively referred to as the horizontal direction. The model can be simplified into movements in the horizontal and vertical directions. The trajectory signal of the model in the horizontal direction is defined as B, and the trajectory signal of the model in the vertical direction is defined as W.

[0124] Since the serve path is relatively complex, the server's initial serve position and the initial speed of the table tennis ball cannot be accurately measured. In order to use the above model to predict the trajectory of the table tennis ball, the prior art usually calculates the table tennis ball speed at time zero based on the image information taken by a high-speed camera through a position-based differential algorithm, and then uses the table tennis ball speed calculated by the differential algorithm to predict the trajectory; since the position detected in the image information itself has a measurement error, the table tennis ball speed calculated by the differential algorithm will further amplify the error, resulting in the final predicted trajectory having an error of multiples, and the prediction result is not accurate enough.

[0125] In order to quantify the performance of the observer, the embodiment of the present invention defines a measurable error signal of the observer estimating the trajectory of the table tennis ball: , defined as follows:

[0126] ;

[0127] in, is the error signal of the ping-pong ball trajectory in the horizontal direction, is the error signal of the ping-pong ball trajectory in the vertical direction, is the measurable signal obtained by the high-speed camera in the horizontal direction, is the measurable signal obtained by the high-speed camera in the vertical direction, is the horizontal component of the observer signal obtained by the trajectory model, is the vertical component of the observer signal obtained by the trajectory model.

[0128] p 1 ≜[ B ̂ W ̂ ] T ∈ R 2 Represents the observer signal obtained by the trajectory model. From the above trajectory model, we can get , ;

[0129] p 2 ≜[ B d W d ] T ∈ R 2 It represents the measurable signal obtained by the high-speed camera. The actual trajectory of the table tennis ball during flight and after the collision can be approximately regarded as a parabola. The measurable signal (measured trajectory) captured by the high-speed camera is approximately expressed by the nonlinear least squares method as follows:

[0130] ;

[0131] in, , , , as well as The signal coefficients of each trajectory after the measured trajectory is approximated by the nonlinear least squares method.

[0132] In order to facilitate subsequent development, the filtered observation error signal is defined as:

[0133] r(t)≜[ r B r W ] T =[ e ̇ B + e B e ̇ W + e W ] T ;

[0134] From the above expression, we can see that , and A linear relationship exists if tends to the minimum value, and Also tends to the minimum value, so the optimal objective function Defined as:

[0135] f(t)≜min[ r B 2 r W 2 ] T ;

[0136] right Taking the time derivative, we can get The error dynamics are as follows:

[0137] e ̇ (t)=[ e ̇ B e ̇ W ] T =[ B ̇ d - B ̂ ̇ W ̇ d - W ̂ ̇ ] T ;

[0138] right Taking the time derivative, we can get The error dynamics are as follows:

[0139] ;

[0140] right Taking the time derivative, we can get The error dynamics are as follows:

[0141] r ̇ (t)=[ e ̈ B + e ̇ B e ̈ W + e ̇ W ] T ;

[0142] Substituting the above formula into the equation, we can get:

[0143] ;

[0144] For the optimal objective function By calculating the inverse of time, we can get the target signal as follows:

[0145] ;

[0146] Substituting the relevant parameters into the equation, we get the nonlinear optimal observer, which is expressed as:

[0147] ;

[0148] The table tennis ball speed at time zero output by the nonlinear optimal observer of the present invention is more accurate than that of the prior art, thereby ensuring that the final predicted table tennis ball trajectory has a smaller error.

[0149] In the embodiment of the present invention, the specific process of step S4 is:

[0150] like Figure 4 As shown, in this embodiment, the table tennis robot specifically adopts a six-axis mechanical arm. Considering the large amount of calculation and high precision requirements, an algebraic method is used to solve the kinematic inverse model. According to the established trajectory model and the measurement data obtained by the visual device (i.e., high-speed camera) of the table tennis robot, the motion trajectory of the table tennis ball is predicted, and the point where the table tennis ball reaches the edge of the table in the horizontal direction is selected as the hitting point. It is assumed that the position of the hitting point is converted from the Euler angle or quaternion to:

[0151] ;

[0152] in, It represents the description of the X-axis of the robot's end coordinate system in the reference coordinate system. is the projection of the X-axis of the robot's end coordinate system on the X-axis of the reference coordinate system, is the projection of the X-axis of the robot's end coordinate system on the Y-axis of the reference coordinate system, It is the projection of the X-axis of the robot's end coordinate system on the Z-axis of the reference coordinate system;

[0153] It represents the description of the Y-axis of the robot's end coordinate system in the reference coordinate system. is the projection of the Y-axis of the robot's end coordinate system on the X-axis of the reference coordinate system, is the projection of the Y axis of the robot's end coordinate system on the Y axis of the reference coordinate system, It is the projection of the Y axis of the robot end coordinate system on the Z axis of the reference coordinate system;

[0154] It represents the description of the Z axis of the robot's end coordinate system in the reference coordinate system. is the projection of the Z axis of the robot's end coordinate system on the X axis of the reference coordinate system, is the projection of the Z axis of the robot's end coordinate system on the Y axis of the reference coordinate system, It is the projection of the Z axis of the robot end coordinate system on the Z axis of the reference coordinate system;

[0155] represents the position of the robot end in the reference coordinate system, is the coordinate of the robot end on the X-axis of the reference coordinate system, is the coordinate of the robot end on the Y axis of the reference coordinate system, is the coordinate of the robot end on the Z axis of the reference coordinate system;

[0156] in, , as well as is the corresponding posture description, It is a position description, collectively called a posture description, which is used as the posture of the end of the robot actuator (i.e. the racket).

[0157] Since the six-axis table tennis robot has six joints, all of which are rotational joints, the inverse kinematics solution is used to calculate all the joint variables of the robot's corresponding positions:

[0158] ;

[0159] ;

[0160] ;

[0161] ;

[0162] ;

[0163] ;

[0164] in, ;

[0165] ;

[0166] ;

[0167] ;

[0168] in, Represent the angle vectors of each joint of the robot, represents the torsion angle of each connecting rod, represents the length of each connecting rod, , and are the intrinsic parameters of the connecting rod.

[0169] At this point, the kinematic model of the table tennis robot has been established.

[0170] According to the characteristics of the six-axis table tennis robot, select q = [ θ 1 θ 2 θ 3 θ 4 θ 5 θ 6 ] T As a generalized coordinate describing the robot system, the Lagrangian equation is established by analyzing the robot's kinetic energy and gravitational potential energy, thus completing the robot's dynamic model. The Lagrangian dynamics formula is:

[0171] ;

[0172] Where L = K–V, K is kinetic energy, V is potential energy, For external force.

[0173] Therefore, the Lagrange equation can be expressed in matrix form as:

[0174] ;

[0175] in, Indicates time, represents the inertia matrix, represents the centrifugal and Coriolis matrices, is the friction vector, is the gravity vector, is the generalized force vector.

[0176] According to the structural characteristics of the system, some assumptions are made on the parameters of the dynamic model:

[0177] Assumption 1: is a uniformly positive definite matrix, there is always a constant scalar ,satisfy .so

[0178] , ;

[0179] in, is the identity matrix.

[0180] Assumption 2: Assume that the general mechanical system satisfies the following conditions:

[0181] , ;

[0182] in, , , .

[0183] The nonlinear friction force generated at the robot joints will cause steady-state errors in the robot system. This embodiment uses the Coulomb-viscous friction model to compensate for the friction of the system. The model can fully reflect the friction characteristics of the system. For the Coulomb-viscous friction model, the mathematical description of the formula is as follows:

[0184] , ;

[0185] In the formula, is the Coulomb friction coefficient, is the viscous friction coefficient.

[0186] The specific process of step 5 is as follows:

[0187] The desired trajectory of the robot's end effector (i.e., the racket) is defined as , assuming is continuously second-order differentiable, For any given time is uniformly bounded;

[0188] make ;

[0189] So there is , ;

[0190] Substituting it into the above matrix form of Lagrange equation, we can get:

[0191]

[0192] In order to reduce the influence of system uncertainty factors, the parameters of the mechanical system are divided into a nominal matrix part and an uncertain matrix part. , , , It can be broken down as follows: ;

[0193] ;

[0194] ;

[0195] ;

[0196] in, , , as well as is the corresponding nominal part, , , as well as is the corresponding uncertain part.

[0197] The uncertainty bound is a scalar function To estimate, it can be expressed as:

[0198] ;

[0199] in,

[0200] ;

[0201] is the upper bound of uncertainty, given the matrix S=diag{[ s i ] n×n }, s i >0 is a constant, .

[0202] If the uncertainty of the system disappears, then .

[0203] The expression of the designed robust servo controller is:

[0204] ;

[0205] in, ,

[0206] ,

[0207] K p =diag{[ k pi ] 6×6 } ,

[0208] K d =diag{[ k d ] 6×6 } ;

[0209] Robust Feedback Term in Robust Servo Controller It is an upper bound based on uncertainty The piecewise function is used to reduce the impact of model uncertainty on the system; in addition, , and is a very small adjustable value used to determine the size of the final boundary; the matrix is a constant or adjustable parameter variable, the matrix is a constant or an adjustable parameter variable.

[0210] like Figure 3 As shown, when uncertainty is not considered (i.e., the robust feedback term is not considered ), the control method of the present invention is MPD control. To distinguish it from MPD control, when uncertainty is considered, the control method of the present invention is MPDP control. Figure 5 As shown in the figure, the horizontal axis is time, the vertical axis is the joint angle, and a sinusoidal signal is used in the simulation. In the figure, Ref is a given desired angular displacement curve y=30sint, PID Control is an angular displacement curve obtained by conventional PID control, and MPD is an angular displacement curve obtained by using the robust servo controller proposed in the present invention without considering uncertainty (i.e., without considering the robust feedback term). ), and MPDP is the angular displacement curve obtained by using the robust servo controller proposed in the present invention when considering uncertainty. By using three control algorithms and comparing the joint conditions of the table tennis robot tracking the reference step signal, it can be seen that the robust servo controller proposed in the present invention can better track the given angular displacement compared to conventional PID control, and can further reduce the steady-state error when considering uncertainty, showing good steady-state tracking performance.

[0211] A table tennis robot comprises a six-axis mechanical arm and a racket mounted at the end of the six-axis mechanical arm, and further comprises: a visual device for recording the motion trajectory of a table tennis ball in real time and sending the real-time recorded image information to a controller 1, wherein the visual device can be specifically a high-speed camera;

[0212] The controller 1 is configured with a nonlinear optimal observer, and is used to calculate the speed of the table tennis ball at time zero through the nonlinear optimal observer according to the received image information, and predict the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball, and the collision trajectory model, and send the information to the controller 2;

[0213] The controller 2 is configured with a robust servo controller, which is used to calculate the expected trajectory information of the racket according to the received final trajectory information of the table tennis ball, and to perform robust control of the output torque of the motor at each joint of the six-axis robot arm through the robust servo controller according to the expected trajectory information of the racket and the current posture information of the racket, so as to execute the hitting action;

[0214] The sensor is used to detect the current position information of the racket.

[0215] A ball hitting control method records the motion trajectory of a table tennis ball in real time through a visual device, and sends the real-time recorded image information to a controller;

[0216] According to the received image information, the controller 1 calculates the speed of the table tennis ball at time zero through the nonlinear optimal observer configured by itself, predicts the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball and the collision trajectory model, and sends it to the controller 2;

[0217] Based on the received table tennis ball trajectory information, controller 2 calculates the expected trajectory information of the racket;

[0218] According to the expected trajectory information of the racket and the current posture information of the racket, the output torque of the motor at each joint of the six-axis robot arm is robustly controlled through the robust servo controller to execute the hitting action.

[0219] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A table tennis robot control system construction method, characterized in that: The steps include: S1. Simplify the model of the ping-pong ball during flight and collision: the ping-pong ball performs non-rotational motion; the ping-pong ball is only subject to gravity, buoyancy and air resistance during flight; the collision between the ping-pong ball and the tabletop is an elastic collision; S2, performing force analysis on the table tennis ball after the simplified model, and establishing a flight trajectory model and a collision trajectory model of the table tennis ball; S3, using the observer to estimate the error signal of the trajectory of the table tennis ball, quantifying the performance of the observer, constructing a nonlinear optimal observer of the trajectory of the table tennis ball, and predicting the trajectory information of the table tennis ball according to the speed of the table tennis ball at time zero output by the nonlinear optimal observer; S4, establishing a kinematic model and a dynamic model of the table tennis robot according to the end position of the robot actuator determined by the table tennis trajectory information; S5. Design a robust servo controller based on the dynamic model of the table tennis robot. The robust servo controller can suppress the influence of various uncertain factors in the whole system and control the hitting process of the table tennis robot. The flight trajectory model of the table tennis ball in step S2 is: Among them, x is the coordinate information of the table tennis ball in the x-axis direction, y is the coordinate information of the table tennis ball in the y-axis direction, z is the coordinate information of the table tennis ball in the z-axis direction, and v x is the flying speed of the ping-pong ball in the x-axis direction, v y is the flying speed of the ping-pong ball in the y-axis direction, v z is the flying speed of the table tennis ball in the z-axis direction, m is the mass of the table tennis ball, g is the acceleration of gravity, C d is the drag coefficient, ρ is the air density, A is the effective area of ​​the table tennis ball, and D is the diameter of the table tennis ball; The collision trajectory model of the ping-pong ball is: in, is the incident velocity of the ping-pong ball before collision in the x-axis direction, is the incident velocity of the ping-pong ball before collision in the y-axis direction, is the incident velocity of the ping-pong ball before collision in the z-axis direction, is the velocity of the ping-pong ball after the collision in the x-axis direction, is the velocity of the ping-pong ball after the collision in the y-axis direction, is the exit speed of the ping-pong ball after the collision in the z-axis direction, X is the collision attenuation coefficient in the x-axis direction, Y is the collision attenuation coefficient in the y-axis direction, and Z is the collision attenuation coefficient in the z-axis direction; The method for constructing the nonlinear optimal observer in step S3 is: defining a measurable observer to estimate the error signal of the trajectory of the table tennis ball The definition is as follows: Among them, e B is the error signal of the ping-pong ball trajectory in the horizontal direction, e W is the error signal of the ping-pong ball trajectory in the vertical direction, B d is the measurable signal obtained by the high-speed camera in the horizontal direction, W d is the measurable signal obtained by the high-speed camera in the vertical direction, is the horizontal component of the observer signal obtained by the trajectory model, is the component of the observer signal in the vertical direction obtained by the trajectory model; Represents the observer signal obtained by the trajectory model. From the above trajectory model, we can get It represents the measurable signal obtained by the high-speed camera. The actual trajectory of the table tennis ball during flight and after the collision can be approximately regarded as a parabola. The measurable signal captured by the high-speed camera is taken as the measured trajectory and is approximately expressed by the nonlinear least squares method as follows: Among them, a1, b1, a2, b2 and c2 are the coefficients of each trajectory signal after the measured trajectory is approximated by the nonlinear least squares method; In order to facilitate subsequent development, the filtered observation error signal is defined as: From the above expression, we can see that r, e and There is a linear relationship, if r 2 tends to the minimum value, e 2 and Also tends to the minimum value, so the optimal objective function Defined as: By taking the time derivative of e(t), we can get the error dynamics of e(t) as follows: right Taking the time derivative, we get The error dynamics are as follows: By taking the time derivative of r(t), we can get the error dynamics of r(t) as follows: Substituting the above formula into the equation, we can get: By calculating the time inverse of the optimal objective function f(t), we can get the target signal as follows: Substituting the relevant parameters into the equation, we get the nonlinear optimal observer, which is expressed as: Wherein, B represents the trajectory signal of the model in the horizontal direction, W represents the trajectory signal of the model in the vertical direction, and a1 and b2 are the trajectory signal coefficients after the measured trajectory is approximated by the nonlinear least squares method.

2. The table tennis robot control system construction method according to claim 1, characterized in that: In step S4, the point where the table tennis ball reaches the edge of the table in the horizontal direction is selected as the hitting point, and the position of the robot actuator end is specifically expressed as: Where n = [n x n y n z 0] T Represents the description of the X-axis of the robot's end coordinate system in the reference coordinate system, n x is the projection of the X-axis of the robot's end coordinate system on the X-axis of the reference coordinate system, n y is the projection of the X-axis of the robot's end coordinate system on the Y-axis of the reference coordinate system, n z It is the projection of the X-axis of the robot's end coordinate system on the Z-axis of the reference coordinate system; o=[o x o y o z 0] T Represents the description of the Y axis of the robot's end coordinate system in the reference coordinate system, o x is the projection of the Y axis of the robot end coordinate system on the X axis of the reference coordinate system, o y is the projection of the Y axis of the robot end coordinate system on the Y axis of the reference coordinate system, o z It is the projection of the Y axis of the robot end coordinate system on the Z axis of the reference coordinate system; j=[j x j y j z 0] T Represents the description of the Z axis of the robot's end coordinate system in the reference coordinate system, j x is the projection of the Z axis of the robot end coordinate system on the X axis of the reference coordinate system, j y is the projection of the Z axis of the robot end coordinate system on the Y axis of the reference coordinate system, j z It is the projection of the Z axis of the robot end coordinate system on the Z axis of the reference coordinate system; p=[p x p y p z 1] T represents the position of the robot end in the reference coordinate system, p x is the coordinate of the robot end on the X-axis of the reference coordinate system, p y is the coordinate of the robot end on the Y axis of the reference coordinate system, p z is the coordinate of the robot end on the Z axis of the reference coordinate system; Among them, n, o and j are the corresponding posture descriptions, p is the position description, collectively referred to as the posture description, which is used as the end posture of the robot actuator; The table tennis robot specifically uses a six-axis robotic arm. All joint variables in the kinematic model of the table tennis robot are: θ2=θ 23 -θ3; θ4=arctan2(-j x sinθ1+j y cosθ1,-j x cosθ1cos(θ2+θ3)-j y sinθ1cos(θ2+θ3)+j z sin(θ2+θ3)); θ5=arctan2(sinθ5,cosθ5); θ6=arctan2(sinθ6,cosθ6); Where, d2 = -sinθ1p x +cosθ1p y ; d4=-cosθ1sin(θ2+θ3)p x -sinθ1sin(θ2+θ3)p y -cos(θ2+θ3)p z +β2sinθ3; i 23 =θ2+θ3=arctan2[(-α3-α2cosθ3)p z +(cosθ1p x +sinθ1p y )(β2sinθ3-d4),(-d4+β2cosθ3)p z -(cosθ1p x +sinθ1p y (-β2cosθ3-β3)]; μ=β3cosθ3-d4sinθ3; Among them, θ i Represents the angle vector of each joint of the robot, α i represents the torsion angle of each connecting rod, β i represents the length of each connecting rod, i = 1, 2, 3, 4, 5, 6, α and β are the inherent parameters of the connecting rod; Select q=[θ1 θ2 θ3 θ4 θ5 θ6] T As a generalized coordinate describing the robot system, the dynamic model of the table tennis robot is expressed in matrix form: Where t∈R n represents time, M(q, t) represents the inertia matrix, represents the centrifugal and Coriolis matrices, is the friction vector, G(q, t) is the gravity vector, τ(t) is the generalized force vector; The conditions set are as follows: 1) M(q, t) is a uniformly positive definite matrix, and there is always a constant scalar σ, satisfying σ>0; then Where I is the identity matrix; 2)、 Among them, η0>0, η1≥0, η2≥0; The Coulomb-viscous friction model is used to compensate the friction of the system. The mathematical description of the Coulomb-viscous friction model is as follows: In the formula, f ci is the Coulomb friction coefficient, f vi is the viscous friction coefficient.

3. The table tennis robot control system construction method according to claim 2, characterized in that: The robust servo controller designed in step S5 is as follows: in, K p =diag{[k pi ] 6×6 }, K d =diag{[k di ] 6×6 , ε(t)=q(t)-q d (t), in, It is an upper bound based on uncertainty A piecewise function, λ>0, and a very small adjustable value, the matrix K p is a constant or adjustable parameter variable, the matrix K d is a constant or an adjustable parameter variable; Among them, the matrix M(q, t), And the decomposition of G(q, t) is: M(q,t)=M nom (q,t)+ΔM(q,t); G(q,t)=G nom (q,t)+ΔG(q,t); Among them, M nom (q, t), and G nom (q, t) is the corresponding nominal part, ΔM(q, t), and ΔG(q, t) is the corresponding uncertainty part; The uncertainty bound is expressed as a scalar function Ψ: R n ×R n ×R→R+, which can be expressed as: in, is the upper bound of uncertainty, given the matrix S = diag{[s i ] n×n },s i >0 is a constant, i=1, 2, 3, 4, 5, 6; If the uncertainty of the system disappears, then Φ t =0; Among them, q d (t), t∈[t0, t1] is defined as the desired trajectory of the end of the robot actuator, and the setting conditions are: q d :[t0,∞)→R n is continuously second-order differentiable, and For any given time t∈[t0,∞) it is uniformly bounded.

4. A method for controlling a ball, characterized in that: The table tennis robot control system established based on any table tennis robot control system construction method of claims 1-3 comprises the following steps: Record the motion trajectory of the table tennis ball in real time, and send the real-time recorded image information to controller 1; According to the received image information, the controller 1 calculates the speed of the table tennis ball at time zero through the nonlinear optimal observer configured by itself, predicts the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball and the collision trajectory model, and sends it to the controller 2; Based on the received table tennis ball trajectory information, controller 2 calculates the expected trajectory information of the racket; According to the expected trajectory information of the racket and the current posture information of the racket, the output torque of the motor at each joint of the six-axis robot arm is robustly controlled through the robust servo controller to execute the hitting action.

5. The ball hitting control method according to claim 4, characterized in that: The current racket posture information is detected by a sensor, which is specifically a motor encoder at each joint of the six-axis robotic arm.

6. A table tennis robot, comprising a six-axis robotic arm and a racket mounted at the end of the six-axis robotic arm, characterized in that: The table tennis robot control system established based on any table tennis robot control system construction method of claims 1-3 further comprises: a visual device for recording the motion trajectory of the table tennis ball in real time and sending the real-time recorded image information to controller 1; The controller 1 is configured with a nonlinear optimal observer, and is used to calculate the speed of the table tennis ball at time zero through the nonlinear optimal observer according to the received image information, and predict the trajectory information of the table tennis ball based on the speed of the table tennis ball at time zero, the flight trajectory model of the table tennis ball, and the collision trajectory model, and send the information to the controller 2; A second controller is configured with a robust servo controller, which is used to calculate the expected trajectory information of the racket according to the received trajectory information of the table tennis ball, and to perform robust control of the output torque of the motor at each joint of the six-axis robot arm through the robust servo controller according to the expected trajectory information of the racket and the current posture information of the racket, so as to perform the hitting action; and The sensor is used to detect the current position information of the racket.

Citation Information

Cited By

  • Planning and learning collaborative humanoid robot table tennis skill control method and system

    CN122851647A