Fuzzy variable impedance control method based on the fusion of attitude measurement and one-dimensional force sensor information
By integrating attitude measurement and one-dimensional force sensor information, the fuzzy variable impedance control method solves the expensive problem of existing interactive force control methods and achieves low-cost, high-precision interactive force control, which is suitable for shock wave physiotherapy and massage robots. Security and stability are ensured.
Patent Information
- Application Number
- CN202310524636.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-05-09
AI Technical Summary
Existing interactive force control methods are expensive and difficult to achieve low-cost, high-precision and safe interactive force control, especially in the fields of shock wave physiotherapy and massage robots.
Using a fuzzy variable impedance control method that combines attitude measurement and one-dimensional force sensor information, the TOF laser distance sensor detects the distance from the end of the robot to the target surface, builds a target surface surface model, adjusts the measurement direction of the one-dimensional force sensor to coincide with the normal vector of the surface, and combines Forward kinematics and inverse kinematics loops control robot motion to achieve low-cost, high-precision interactive force control.
It achieves vertical contact between the robot and the target surface, ensuring safe interaction force control and reducing costs. At the same time, the stability and compliance of the system are improved through fuzzy variable impedance parameter adjustment and sliding mode controller.
Smart Images

Figure CN116533237B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of robot motion control, and more specifically to a fuzzy variable impedance control method integrating posture measurement and one-dimensional force sensor information. Background Art
[0002] In recent years, shock wave therapy robots and massage robots in the field of health care and physiotherapy have developed rapidly. When working, the robots mainly perform physiotherapy and massage on the human body in a vertical manner from the normal direction. Physiotherapy and massage robots need to have physical contact with the human body. Therefore, in order to achieve the safety of physiotherapy and massage, interactive force control of the physiotherapy and massage direction is required.
[0003] In order to achieve safe interactive force control, there are two commonly used force / torque sensors: one is to use joint torque sensors, that is, each joint is equipped with a torque sensor; the other is to use the end six-dimensional force / torque sensor. Although both methods have their own advantages and disadvantages, they have a common disadvantage that they are expensive. Therefore, the development of low-cost force control is a problem that the present invention needs to solve. Summary of the invention
[0004] In view of the high cost of existing interactive force control methods, the main purpose of the present invention is to provide a fuzzy variable impedance method that integrates posture measurement and one-dimensional force sensor information to provide a low-cost, high-precision interactive force control solution and provide a safe interactive force control method for shock wave therapy robots and massage robots.
[0005] To achieve the above object, the present invention provides the following technical solution: a fuzzy variable impedance control method integrating posture measurement and one-dimensional force sensor information, comprising step S1: detecting the distance from the robot end to the target surface by a first sensor to obtain the target surface position information;
[0006] Step S2: constructing a target surface curved model according to the target surface position information;
[0007] Step S3: Obtain the surface normal vector at the trajectory point based on the surface model
[0008] Step S4: Using the surface normal vector Adjust the measurement direction of the one-dimensional force sensor and the normal vector of the surface coincide;
[0009] Step S5: measuring the contact force F information of the target surface normal direction by a one-dimensional force sensor;
[0010] Step S6: The controller receives the signals from the first sensor and the one-dimensional force sensor and controls the robot motion trajectory in the X and Y directions and the contact force F in the Z direction.
[0011] As a further improvement of the present invention, the first sensor in step S1 is composed of a plurality of TOF laser distance sensors.
[0012] As a further improvement of the present invention, in step S2, the target surface position information uses a least square method or a surface fitting method to construct a target surface model.
[0013] As a further improvement of the present invention, the surface normal vector in step S3 The calculation of includes the following steps:
[0014] Step S31, calculating partial derivatives of variables of the surface model equation;
[0015] Step S32, substituting the data at the ΔH trajectory point into the data at the ΔH trajectory point to obtain the surface tangent vector along the X and Y directions at the ΔH trajectory point;
[0016] Step S33, obtaining the surface normal vector at the ΔH trajectory point according to the surface tangent vector.
[0017] As a further improvement of the present invention, the controller in step S6 includes a forward kinematics loop and an inverse kinematics loop, the one-dimensional force sensor is arranged in the forward kinematics loop, an algorithm module is provided in the inverse kinematics loop and is connected to the one-dimensional force sensor, and the algorithm module is used to receive the one-dimensional force sensor signal and give the execution end demand variable.
[0018] As a further improvement of the present invention, the algorithm module defines the target impedance as
[0019]
[0020] where f ext The corresponding external force is generated at the end of the robot arm. m, b, and k are the mass, damping coefficient, and stiffness coefficient of the position control, respectively. x , They are respectively the motion position deviation, velocity deviation and acceleration deviation of the end of the robot arm under impedance control.
[0021] As a further improvement of the present invention, a fuzzy variable impedance parameter adjustment module is provided in the inverse kinematics loop, and the fuzzy variable impedance parameter adjustment module is connected to the algorithm module and is used to adjust the damping coefficient b.
[0022] As a further improvement of the present invention, the damping coefficient is designed based on fuzzy rules.
[0023] As a further improvement of the present invention, a sliding mode controller is further provided in the inverse kinematics loop, the sliding mode controller is respectively connected to the algorithm module and the one-dimensional force sensor, and the sliding mode controller is used for sliding mode control of the algorithm module.
[0024] As a further improvement of the present invention, the reaching law corresponding to the sliding mode controller is a hyperbolic tangent function.
[0025] Beneficial effects of the present invention:
[0026] 1. Obtain target surface data through the sensor, and use the data to build the target surface model, so as to achieve that the measurement direction of the one-dimensional force sensor is always consistent with the surface normal vector Overlap to ensure the robot is perpendicular to the target surface.
[0027] 2. The robot position is adjusted by setting a one-dimensional force sensor and a first sensor in cooperation with a controller, and the motion deviation value is corrected by setting a forward kinematics loop and an inverse kinematics loop;
[0028] 3. The detection and sensing effect is completed only by one-dimensional force sensor and TOF laser ranging sensor, which is simple, feasible and low-cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is the overall flow chart of the present invention;
[0030] Figure 2 A schematic diagram of the arrangement of multiple TOF laser distance sensors of the present invention;
[0031] Figure 3 This is a control flow chart of the controller of the present invention;
[0032] Figure 4 is an equivalent model diagram of the robot dynamics of the present invention;
[0033] Figure 5 This is the damping parameter output diagram of the present invention. DETAILED DESCRIPTION
[0034] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments, wherein the same components are represented by the same reference numerals.
[0035] Reference Figure 1 , a fuzzy variable impedance control method integrating posture measurement and one-dimensional force sensor information, comprising step S1: detecting the distance from the robot end to the target surface by a first sensor to obtain the target surface position information;
[0036] Preferably, in step S1, the first sensor is composed of a plurality of TOF laser distance sensors. Further preferably, in order to reduce or eliminate the measurement blind area, refer to Figure 2 , multiple TOF laser distance sensors are arranged in a circular distribution.
[0037] Step S2: constructing a target surface curved model according to the target surface position information;
[0038] Preferably, the target surface position information in step S2 uses the least squares method or the surface fitting method to construct a target surface model. In this embodiment, the measured position information is obtained by the TOF laser distance sensor, each TOF sensor measures a surface, and the surface model of the actual object in the field of view is calculated based on the position information and the current field of view of the TOF sensor.
[0039] When step S2 is used, according to the distribution position of the TOF sensor, the acquired position information is calculated to form a position data set (x1, y1, z1), (x2, y2, z2)…(x n ,y n ,z n ), convert the data set (x1,y1,z1) to (x n ,y n ,z n ) are fitted by the least square method, and the surfaces are spliced to achieve the construction of a complete surface model f(x, y, z) = 0 in the entire measurement area.
[0040] Step S3: Obtain the surface normal vector at the trajectory point based on the surface model
[0041] Preferably, the surface normal vector in step S3 The calculation of includes the following steps:
[0042] Step S31, calculating partial derivatives of the variables of the surface model equation f(x, y, z)=0;
[0043] Step S32, substituting the data at the ΔH trajectory point into the data at the ΔH trajectory point to obtain the surface tangent vector along the X and Y directions at the ΔH trajectory point;
[0044] Step S33: Obtain the surface normal vector at the trajectory point ΔH according to the surface tangent vector
[0045] Among them, when the robot acts on the target surface and reaches the set maximum contact force threshold, it is also considered that this is the point where the target has the maximum deformation. The robot position f0(x0, y0, z0) at this point can be calculated through robot kinematics. At this time, the maximum deformation ΔH=|f n (x n ,y n ,z n )-f0(x0,y0,z0)|(f0(x0,y0,z0) is the position of the robot when it just touches the target surface and the contact force is zero), and calculate the normal vector at the maximum deformation ΔH
[0046] Step S4: Using the surface normal vector Use robot inverse kinematics to adjust the robot arm posture so that the one-dimensional force sensor measures the direction and the normal vector of the surface Overlap, so that the robot contacts the target from the normal direction;
[0047] Step S5: measuring the contact force F information of the target surface normal direction by a one-dimensional force sensor;
[0048] Step S6: The controller receives signals from the first sensor and the one-dimensional force sensor and controls the robot's motion trajectory in the X and Y directions and the contact force F in the Z direction, wherein the Z direction is perpendicular to the target surface, and the X and Y directions are perpendicular to the Z direction, thereby enabling the robot to perform different actions in different constraint directions.
[0049] Reference Figure 1 and Figure 3 The controller in step S6 includes a forward kinematics loop and an inverse kinematics loop. The one-dimensional force sensor is arranged in the forward kinematics loop. The inverse kinematics loop is provided with an algorithm module and connected to the one-dimensional force sensor. The algorithm module is used to receive the one-dimensional force sensor signal and give the execution end demand variable.
[0050] Preferably, the algorithm module defines the target impedance as
[0051]
[0052] f ext The corresponding external force is generated at the end of the robot arm. m, b, and k are the mass, damping coefficient, and stiffness coefficient of the position control, respectively. x , They are respectively the motion position deviation, velocity deviation and acceleration deviation of the end of the robot arm under impedance control.
[0053] Reference Figure 3 In order to control the contact force F in the Z direction of the robot and thus achieve the purpose of terminal compliance control, a fuzzy variable impedance parameter adjustment module is provided in the inverse kinematics loop. The fuzzy variable impedance parameter adjustment module is connected to the algorithm module and is used to adjust the damping coefficient b of the algorithm module.
[0054] Reference Figure 4 , when the end position x of the robot and the ideal trajectory x c Generate deviation x =x c -x, the end of the robot arm generates a corresponding external force f ext , at this time, convert formula (1) into transfer function form and compare it with the second-order system transfer function, we can get:
[0055]
[0056] Then the stiffness coefficient k is:
[0057]
[0058] ξ is the damping ratio of the system. In formula (2), s is the transfer function, which is the expression of the original function after Laplace transformation. Considering the stability and reliability of the system, the movement of the end of the manipulator should remain stable without overshoot when the manipulator contacts the outside world. Therefore, the second-order system exhibits the characteristics of overdamping, that is, ξ ≥ 1, and the damping ratio ξ can be set to 1.2. It can be seen from formula (2) that for the selection of system impedance parameters, under the premise of ensuring the stability of the system without overshoot, by adjusting the damping parameter b in real time, the stiffness matrix k can be obtained by formula (3), thereby achieving the purpose of end compliance control.
[0059] Reference Figure 5 In order to make the robot arm perform more smoothly during contact with the outside world, the damping coefficient b of the present invention is designed based on fuzzy rules. On the basis of judging the acceleration or deceleration trend during the interaction between the robot arm and the outside world, the movement speed V of the end of the robot arm at the previous moment and the contact force F of the person are used as input variables of the fuzzy controller, and their ranges are (-0.15, 0.15) m / s and (-6, 6) N, respectively. The output is the impedance parameter b, and the range is defined as (10, 20) N / (m / s). According to the fuzzy inference system (FIS), the language values of the input and output variables are defined as: {NB, NS, Z, PS, PB}, {S, SM, M, BM, B}. Therefore, the input and output variables can be represented by the member membership functions of the five triangles, and the final damping parameter output result is as follows: Figure 5 shown.
[0060] Preferably, a sliding mode controller is further provided in the inverse kinematics loop, the sliding mode controller is respectively connected to the algorithm module and the one-dimensional force sensor, and the sliding mode controller is used for sliding mode control of the algorithm module.
[0061] The sliding mode control strategy of the present invention is as follows: According to formula (1), when the contact force f ext When it is zero, the end position error e x should also be zero. Therefore, equation (1) can be expanded as:
[0062]
[0063] where x d , are the expected position, expected velocity and expected acceleration of the end of the robot arm respectively; x c , They are the ideal position, ideal velocity and ideal acceleration of the end of the robotic arm.
[0064] When the end trajectory of the robot arm does not achieve the desired trajectory tracking, it means that a small position deviation may generate a large force / torque. Combined with the dynamic equation in the Cartesian coordinate system under the action of contact external force: Define sliding surface s and reaching law as follows:
[0065] e(t)=x d (t)-x(t) (5)
[0066]
[0067] where e(t), s(t), They are position tracking error, sliding surface and reaching law respectively. c is a positive number that determines the convergence speed of the sliding surface. is the actual speed of the robot, λ and η are both greater than zero, ε>0.
[0068] Preferably, the reaching law corresponding to the sliding mode controller is a hyperbolic tangent function (Formula (8)) to reduce the chattering phenomenon when the sliding mode surface is switched.
[0069] Substituting formula (5) into formula (7), we can obtain:
[0070]
[0071] in accordance with And formula (9), we can deduce:
[0072]
[0073] Among them, C x are the centrifugal force and Coriolis force terms in the robot dynamics equation. Then substitute equations (6) and (8) into equation (10), and the system control law is:
[0074]
[0075] In order to prove the stability of the controller, the Lyapunov function is chosen as:
[0076]
[0077] Taking the derivative of equation (12) with respect to time, we can obtain:
[0078]
[0079] Inertia matrix M x is a positive definite matrix, is a skew-symmetric matrix. The closed-loop control system of the sliding mode controller Substituting into formula (13), we can get:
[0080]
[0081] By using the inequality property and combining equations (13) and (14), we can obtain:
[0082]
[0083] in λ max (M x ),λ min (K) are M x , the maximum and minimum eigenvalues of K, b = ημε.
[0084] Using the property for f,V∈[0,+∞)∈R, but Formula (15) can be simplified as:
[0085]
[0086] Substituting formula (16) into formula (15), we get:
[0087]
[0088] In summary, the stability of the sliding surface s can be ensured by selecting the parameter c. From formula (17), we can know is a negative definite matrix, and when s=0, the system is globally asymptotically stable.
[0089] Therefore, the fuzzy variable impedance control method that integrates posture measurement and one-dimensional force sensor information is used in the field of robot motion control technology, including shock wave robots, massage robots and other robot technologies that are applicable to this solution. It is a stable, simple, feasible and low-cost solution.
[0090] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A fuzzy variable impedance control method integrating posture measurement and one-dimensional force sensor information, characterized in that: The method comprises step S1: detecting the distance between the robot end and the target surface by a first sensor to obtain the position information of the target surface; Step S2: constructing a target surface curved model according to the target surface position information; Step S3: Obtain the surface normal vector at the trajectory point based on the surface model Step S4: Using the surface normal vector Adjust the measurement direction of the one-dimensional force sensor and the normal vector of the surface coincide; Step S5: measuring the contact force F information of the target surface normal direction by a one-dimensional force sensor; Step S6: The controller receives the signals from the first sensor and the one-dimensional force sensor and controls the robot motion trajectory in the X and Y directions and the contact force F in the Z direction; The controller in step S6 includes a forward kinematics loop and an inverse kinematics loop, the one-dimensional force sensor is arranged in the forward kinematics loop, the inverse kinematics loop is provided with an algorithm module and connected to the one-dimensional force sensor, the algorithm module is used to receive the one-dimensional force sensor signal and give the execution end demand variable; The algorithm module defines the target impedance as where f ext The corresponding external force is generated at the end of the robot arm. m, b, and k are the mass, damping coefficient, and stiffness coefficient of the position control, respectively. x , They are the motion position deviation, velocity deviation and acceleration deviation of the end of the manipulator under impedance control; A fuzzy variable impedance parameter adjustment module is provided in the inverse kinematics loop, and the fuzzy variable impedance parameter adjustment module is connected to the algorithm module and is used to adjust the damping coefficient b; The damping coefficient is designed based on fuzzy rules. The movement speed V of the end of the robot arm and the contact force F of the person at the previous moment are used as input variables of the fuzzy controller, and their ranges are (-0.15, 0.15) m / s and (-6, 6) N respectively. The output is the impedance parameter b, and the range is defined as (10, 20) N / (m / s).
2. The fuzzy variable impedance control method for fusing posture measurement and one-dimensional force sensor information according to claim 1 is characterized in that: In step S1, the first sensor is composed of a plurality of TOF laser distance sensors.
3. The fuzzy variable impedance control method for fusing posture measurement and one-dimensional force sensor information according to claim 2 is characterized in that: In step S2, the target surface position information is used to construct a target surface model using the least square method or the surface fitting method.
4. The fuzzy variable impedance control method for fusing posture measurement and one-dimensional force sensor information according to claim 1 is characterized in that: The surface normal vector in step S3 The calculation of includes the following steps: Step S31, calculating partial derivatives of variables of the surface model equation; Step S32, substituting the data at the ΔH trajectory point into the data at the ΔH trajectory point to obtain the surface tangent vector along the X and Y directions at the ΔH trajectory point; Step S33: Obtain the surface normal vector at the trajectory point ΔH according to the surface tangent vector 5. The fuzzy variable impedance control method for fusing posture measurement and one-dimensional force sensor information according to claim 1 is characterized in that: A sliding mode controller is also provided in the inverse kinematics loop. The sliding mode controller is respectively connected to the algorithm module and the one-dimensional force sensor. The sliding mode controller is used for sliding mode control of the algorithm module.
6. The fuzzy variable impedance control method for fusing posture measurement and one-dimensional force sensor information according to claim 5 is characterized in that: The reaching law corresponding to the sliding mode controller is a hyperbolic tangent function.
