Robot jumping and landing detection method

By constructing a second-order external torque observer and a long short-term memory neural network, the problems of high mechanical complexity and inaccurate detection in robot jump landing detection are solved, achieving real-time and accurate landing detection and reducing system cost and complexity.

CN113987961BActive Publication Date: 2024-08-23BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111413509.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-08-23
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

In existing technologies, robot jump landing detection methods suffer from high mechanical complexity, high cost, and inaccurate detection. Especially when the robot lands with a large impact, the errors of sensors and dynamic model methods are large, affecting the stability and accuracy of the system.

Method used

By employing a second-order external torque observer combined with a long short-term memory neural network, an observer without joint acceleration is constructed to observe external torque in real time and classify it using a neural network to detect the robot's jump landing state.

Benefits of technology

It enables real-time and accurate robot landing inspection, reduces mechanical complexity and hardware costs, improves inspection accuracy and speed, and enhances system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987961B
    Figure CN113987961B
Patent Text Reader

Abstract

The present invention discloses a robot jumping landing detection method, constructs a second-order external torque observer without robot joint acceleration, and adjusts the observer adjustment parameter ω in the second-order external torque observer. n The values ​​of and ξ enable the observer to observe the external torque in real time and obtain the external torque observation value sequence; the external torque observation value sequence observed by the observer in real time is input into the long short-term memory neural network, and the long short-term memory neural network classifies the external torque observation value sequence to complete the robot jump landing detection. This method realizes real-time landing detection without force sensor by introducing external torque observer and combining it with long short-term memory neural network. It can solve the problems of mechanical property degradation and complex structure caused by adding force sensor to the sole of the robot, as well as the large amount of calculation based on dynamic equation calculation and inaccurate detection, improve the stability of the robot mechanical system, and reduce hardware cost while increasing detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of motion control of a legged robot, in particular to a method for detecting the jumping and landing of a legged robot. Background Art

[0002] With the rapid development of artificial intelligence and the Internet, intelligent robot technology has made rapid progress. Intelligent robots are widely used in education, industry, medical care, transportation, security, electricity and many other fields, reflecting a broad application scenario and development space. In order to adapt to the movement requirements of different terrains, the jumping ability of legged robots has gradually become a basic requirement for robot movement. Accurate and real-time jump and landing detection is a key to robot jumping technology.

[0003] In the prior art, there are several methods for jump landing detection:

[0004] At present, robot landing detection mostly uses plantar force sensors for detection. The use of force sensors increases the complexity of mechanical and electrical systems, reduces the stability of the robot system, and is costly; it also has an adverse effect on the difficulty of the control method.

[0005] Another method estimates the force on the foot end of the swing leg by acquiring the torque on each joint of the robot's swing leg, and calculates the force change rate of the foot end of the swing leg in the direction of gravity based on the force on the foot end. When a preset number of continuous force change rates are greater than a preset threshold, it is considered that the swing leg has landed. This method uses the approximate relationship between current and torque τ=rKI when calculating the torque on each joint, where r is the reduction ratio and K is the motor torque coefficient. The error in this relationship will be amplified in areas with large motor current, resulting in serious inaccuracy in the calculation results, especially when the robot has a large impact when landing, and the nonlinearity between the motor current and torque is more serious.

[0006] Another method is based on the robot dynamics equation, using the deviation between the expected control current and the actual current of the joint to determine whether the robot has landed. This method uses the acceleration of the joint in the calculation, and the acceleration is obtained by the second-order differential of the position, which will introduce greater noise and reduce the accuracy of the landing judgment. In addition, this method needs to calculate the control torque required for each joint according to the current motion state of the robot and then calculate the expected control current. The calculation is complex, the amount of calculation is large, and it occupies a lot of hardware resources. The linear correspondence between torque and current is not accurate enough, which will also reduce the accuracy of the landing judgment. Summary of the invention

[0007] In order to address the deficiencies in the prior art, the present application proposes a robot jumping and landing detection method, which can detect changes in the robot's landing state in real time and accurately, that is, to judge the robot's current state - flying or landing - in real time during the process from the robot taking off to contacting the ground and landing.

[0008] The technical solution adopted by the present invention is as follows:

[0009] The robot jumping and landing detection method comprises the following steps:

[0010] S1, constructs a second-order external torque observer without robot joint acceleration, which is expressed as follows:

[0011]

[0012] in, are the centrifugal and Coriolis force vectors, q, are the angles and angular velocities of the leg joints; g(q) is the gravity matrix, τ m is the robot joint output torque matrix, r is the observed value, ω n is the observer amplitude adjustment parameter, ξ is the observer lag adjustment parameter, τ is the time, τ∈[0, t], and p is the momentum of the robot foot;

[0013] S2, adjusts ω in the second-order external torque observer n The values ​​of and ξ enable the observer to observe the external torque in real time and obtain the external torque observation value sequence;

[0014] S3, input the external torque observation value sequence observed by the observer in real time into the long short-term memory neural network, and the long short-term memory neural network classifies the external torque observation value sequence to complete the robot jumping and landing detection.

[0015] Further, the process of constructing the second-order external torque observer is as follows:

[0016] S1.1, first, construct the following second-order external torque observer:

[0017]

[0018] S1.2, substitute the external torque matrix of the robot into the observer constructed in S1.1, and get the following formula:

[0019]

[0020] Among them, τ e is the external torque value, is the differential of the observed value.

[0021] Furthermore, the method to obtain the external moment matrix is ​​as follows:

[0022] S1.2.1, construct the dynamic equations of the leg joints of the leg-foot robot:

[0023]

[0024] The momentum matrix of the robot can be expressed as: M is the robot inertia matrix;

[0025] S1.2.2, taking the derivative of the momentum matrix, we get the following formula:

[0026]

[0027] Substituting the kinetic equation into the equation, we get the following:

[0028]

[0029] After sorting, we get:

[0030]

[0031] Where: M(q) is the inertia matrix of the robot, τ ext is the external torque matrix of the robot, is the first-order differential of the robot inertia matrix M, is the first-order differential of the momentum of the robot foot.

[0032] Furthermore, S2 adjusts the ω in the second-order external torque observer n The basis of the and ξ values ​​is:

[0033] Adjust ξ to make the observation value have low delay and no oscillation, and adjust ω n Make the magnitude of the observed value the same as the true value.

[0034] Furthermore, the long short-term memory neural network structure is as follows:

[0035] f t =σ(W f x t +U f h t-1 +b f )

[0036] i t =1-f t

[0037]

[0038]

[0039] o t =σ(W o x t+U o h t-1 +b o )

[0040] h t =o t ⊙tanh(c t )

[0041]

[0042] Among them, x t is the input at the current moment, σ(x) is the function ⊙ is the product of vector elements, W f , W C , W o , U f , U c , U o 、b f 、b C 、b o is the learnable network parameter, c t is the internal state, is the candidate state obtained by the nonlinear function, h t is the external state at time t, h t-1 is the external state at the previous moment, i t , f t , o t They are input gate, forget gate and output gate respectively.

[0043] Furthermore, the method for obtaining the joint angle and joint speed is: collecting encoder information of each joint of the robot leg to obtain the joint angle value, performing differential processing on the joint angle to obtain the joint speed information.

[0044] Beneficial effects of the present invention:

[0045] (1) When detecting robot jumps, a second-order external torque observer is used to observe the changes in the external torque value in real time and obtain a sequence of external torque observation values. This eliminates the need to install force sensors, reduces mechanical complexity, and enhances system stability.

[0046] (2) A neural network is used to classify the external torque observation sequence. Factors such as the amplitude and change rate of the external torque are considered to classify whether landing has occurred. Multiple influencing factors of landing detection are taken into account, which improves the accuracy and speed of landing detection.

[0047] (3) Compared with the detection method based on the robot dynamics model, this method has high detection accuracy and low computational complexity.

[0048] (4) Compared with the sensor detection method, this method does not require a force sensor to detect external force, which saves the robot hardware cost, reduces the complexity of the mechanical structure and electrical wiring, and improves the stability of the robot system. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is the structural block diagram of the observer of this application;

[0050] Figure 2 This is a schematic diagram of the long short-term memory neural network structure of this application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0052] The joints and connecting rods of the leg robot are as follows Figure 1 As shown, the angle, angular velocity and angular acceleration of each joint are expressed by q, It means that the joint angle can be read by the encoder at the joint, and the speed is obtained by the angle difference operation. Therefore, the dynamic equation of the leg joint of the leg-foot robot can be expressed as follows:

[0053]

[0054] Where: M(q) is the mass matrix of the robot, are the centrifugal and Coriolis force vectors, g(q) is the gravity matrix, τ m is the robot joint output torque matrix, τ ext is the external torque matrix acting on the robot.

[0055] The momentum matrix of the robot can be expressed as:

[0056]

[0057] Where, M is the inertia of the robot;

[0058] Derivative of formula (2):

[0059]

[0060] Substituting formula (3) into formula (1), we get:

[0061]

[0062] In practical applications, the acceleration of the robot joint is obtained by second-order difference of position information, which introduces a lot of noise and is difficult to use directly. The filtered acceleration will produce a large delay, resulting in a large error in the calculated external torque. Therefore, a second-order external torque observer is constructed, and the specific process is as follows:

[0063] First, construct the following formula (5):

[0064]

[0065] Substituting equation (4) into equation (5), we get:

[0066]

[0067] Among them, r is the observed value, ω n is the observer amplitude adjustment parameter, τ e is the external torque value, ξ is the observer lag adjustment parameter, is the differential of the observed value, τ is the time, τ∈[0, t], and p is the momentum of the robot foot

[0068] Since there is no joint angular acceleration in the observer Item, only input position q and speed information The observed value can be obtained.

[0069] Taking the second-order derivative of equation (5) and taking the Laplace transform, we get:

[0070]

[0071] Based on the above formula (7), it can be seen that when ω n →∞, r(t)≈τ ext (t), that is, the observer can observe the external torque value. The block diagram of the observer is as follows Figure 2 shown.

[0072] When in use, the encoder information of each joint of the robot leg is collected to obtain the joint angle value, and the joint angle difference is processed to obtain the joint speed information; the current value of the motor of each joint of the robot leg is read, and the τ m =K t I obtains the robot joint output torque matrix, K t is the motor torque coefficient, I is the motor current; the gravity matrix is ​​obtained by calculating the joint angle value and the robot link mass; the robot momentum is calculated by the speed and the robot inertia M, as shown in formula (2). Based on the above parameters, the observer is constructed as shown in formula (5).

[0073] Adjust ω n and ξ. Specifically, adjust ξ to make the observation delay low and no oscillation occur, and adjust ω nMake the magnitude of the observed value the same as the true value.

[0074] When the robot lands, the ground will have a large impact on the robot, which will in turn generate a large external torque, and the change of the external torque conforms to a specific law. The external torque observation value sequence observed in real time by the second-order external torque observer is input into the trained long short-term memory neural network, and the long short-term memory neural network outputs the current state of the robot, with 0 representing the robot in the air and 1 representing the robot landing.

[0075] The structure of the long short-term memory neural network is as follows:

[0076] f t =σ(W f x t +U f h t-1 +b f )

[0077] i t =1-f t

[0078]

[0079]

[0080] o t =σ(W o x t +U o h t-1 +b o )

[0081] h t =o t ⊙tanh(c t )

[0082]

[0083] Among them, x t is the input at the current moment, σ(x) is the sigmoid function, x is the independent variable; ⊙ is the product of vector elements, W f , W C , W o , U f , U c , U o 、b f 、b C 、b o is the learnable network parameter, c t is the internal state, is the candidate state obtained by the nonlinear function, h t is the external state at time t, ht-1 is the external state at the previous moment, i t ∈[0,1],f t ∈[0,1],o t ∈[0,1] are the input gate, forget gate and output gate respectively. The input gate controls the candidate state at the current moment. The saved information, the forget gate controls the internal state c at the previous moment t-1 The information to be forgotten, the output gate controls the current internal state c t To output to the external state h t Since the input gate and the forget gate have a complementary relationship, the two gates are merged for the convenience of calculation.

[0084] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.

Claims

1. A robot jumping and landing detection method, characterized in that: The steps include: S1, constructs a second-order external torque observer without robot joint acceleration, which is expressed as follows: in, are the centrifugal and Coriolis force vectors, q, are the angles and angular velocities of the leg joints; g(q) is the gravity matrix, τ m is the robot joint output torque matrix, r is the observed value, ω n is the observer amplitude adjustment parameter, ξ is the observer lag adjustment parameter, τ is the time, τ∈[0, t], and p is the momentum of the robot foot; S2, adjusts ω in the second-order external torque observer n The values ​​of and ξ enable the observer to observe the external torque in real time and obtain the external torque observation value sequence; S3, inputting the external torque observation value sequence observed by the observer in real time into the long short-term memory neural network, and the long short-term memory neural network classifies the external torque observation value sequence to complete the robot jump landing detection; The process of constructing the second-order external torque observer is as follows: S1.1, first, construct the following second-order external torque observer: S1.2, substitute the external torque matrix of the robot into the observer constructed in S1.1, and get the following formula: in, is the first-order differential of r, τ e is the external torque value.

2. The robot jumping and landing detection method according to claim 1, characterized in that: The method to obtain the external moment matrix is ​​as follows: S1.2.1, construct the dynamic equations of the leg joints of the leg-foot robot: The momentum matrix of the robot can be expressed as: M is the robot inertia matrix; S1.2.2, taking the derivative of the momentum matrix, we get the following formula: Substituting the kinetic equation into the equation, we get the following: After sorting, we get: Where: M(q) is the inertia matrix of the robot, τ ext is the external torque matrix of the robot, is the first-order differential of the robot inertia matrix M, is the first-order differential of the momentum of the robot foot.

3. The robot jumping and landing detection method according to claim 1, characterized in that: The structure of the long short-term memory neural network is as follows: f t =σ(W f x t +U f h t-1 +b f ) i t =1-f t the t =σ(W o x t +U o h t-1 +b o ) h t =o t ⊙tanh(c t ) Among them, x t is the input at the current moment, σ(x) is a function, ⊙ is the product of vector elements, W f , W C , W o , U f , U c , U o 、b f 、b C 、b o is the learnable network parameter, c t is the internal state, is the candidate state obtained by the nonlinear function, h t is the external state at time t, h t-1 is the external state at the previous moment, i t , f t , o t They are input gate, forget gate and output gate respectively.

4. The robot jumping and landing detection method according to claim 1, 2 or 3, characterized in that: Adjust ω in the second-order external torque observer in S2 n The basis for the values ​​of and ξ is: adjust ξ to make the observation value have low delay and no oscillation, and adjust ω n Make the magnitude of the observed value the same as the true value.

5. The robot jumping and landing detection method according to claim 4, characterized in that: The method for obtaining the joint angle and joint speed is: collecting encoder information of each joint of the robot leg to obtain the joint angle value, performing differential processing on the joint angle to obtain the joint speed information.