The disclosure relates to the technical field of robot, and more particularly to a method and system for detecting the foot-end touchdown of quadruped robot.
Currently, there are mainly three methods to detect the foot-end touchdown state of the quadruped robot:
The above three methods have the following defects:
The disclosure discloses a method and system for detecting the foot-end touchdown of quadruped robot to solve the above technical problems.
The disclosure is realized by means of the following technical solution:
A method for detecting the foot-end touchdown of quadruped robot, comprising:
Furthermore, the foot-end height touchdown probability p(c|pz) is calculated with formula (1):
Where, pz represents the foot-end height above ground, μz represents the average foot-end height above ground at the time of touchdown and σz2 represents the variance of the foot-end height above ground.
Furthermore, the knee torque touchdown probability p(c|τk) is calculated with formula (2):
Where, τk represents the external torque of knee joint, μτ represents the average external torque of knee joint at the time of touchdown and στ2 represents the variance of the external torque of knee joint.
Furthermore, the gait of the quadruped robot changes cyclically; in each gait cycle, the gait phase progressively increases between 0-1; and each gait cycle is divided into a touchdown stage and a swing stage according to the leg motion state; 0≤gait phase<φswitch is the touchdown stage, and φswitch≤gait phase<1 is the swing stage; in the scheduled touchdown stage, the gait schedule touchdown probability p(c|φ) is calculated with formula (3):
In the scheduled swing stage, the gait schedule touchdown probability p(c|φ) is calculated with formula (4):
Where, φ∈[0,1] represents the current phase in the gait cycle, φswitch represents the phase at the time of inversion between the support phase and the swing phase, and σφ2 represents the variance of the gait phase.
Furthermore, the final foot-end touchdown probability of four legs is calculated with recurrence formula (7):
Where, Q represents the covariance matrix of noise during state transition process, R represents the covariance matrix of the observation noise;
The state transition matrix A=O4, the control input matrix B=I4, wk represents the noise during the state transition process, z1k represents the foot-end touchdown probability of four legs obtained through the probabilistic touchdown model of foot-end height, z2k represents the foot-end touchdown probability of four legs obtained through the probabilistic touchdown model of external torque of knee joint, H represents the observation matrix, and vk represents the observation noise:
Wherein the center-of-mass position and body attitude of the robot are obtained by attitude solution through IMU, and the foot-end height above ground of each leg is obtained by combining the motor position fed back by the leg motor encoder.
A system for detecting the foot-end touchdown of the quadruped robot, comprising: a Kalman Filter unit, a measuring unit consisting of a foot-end height measuring module, a foot-end height touchdown probability measuring module and a knee torque touchdown probability measuring module, and an input unit consisting of a gait schedule touchdown probability calculation module; Wherein:
Compared with the prior art, the disclosure has the following beneficial effects:
The drawings illustrated herein are used to provide a further understanding of the disclosure and constitute a part of the present application. They are not intended to limit the embodiments of the disclosure.
In order to make the objectives, technical solutions and advantages of the disclosure more clear, the disclosure will be described in further detail below with reference to embodiments and drawings. The illustrative embodiments of the disclosure and their description are intended to explain the disclosure and not intended to limit the disclosure.
The method disclosed in the disclosure for detecting the foot-end touchdown of quadruped robot, comprises:
The system disclosed in the disclosure for detecting the foot-end touchdown of the quadruped robot, comprises: a Kalman Filter unit, a measuring unit consisting of a foot-end height measuring module, a foot-end height touchdown probability measuring module and a knee torque touchdown probability measuring module, and an input unit consisting of a gait schedule touchdown probability calculation module; Wherein:
The disclosure discloses an embodiment based on the above method and system for detecting the foot-end touchdown of quadruped robot.
As shown in
The method for detecting the foot-end touchdown of quadruped robot is described in detail in combination with
I. Kinematic model: The center-of-mass position and body attitude are obtained by attitude solution through IMU, and the foot-end height above ground of each leg is obtained by combining the motor position fed back by the motor encoder, respectively: pz,1, pz,2, pz,3, pz,4.
II. Assuming that at the time of foot-end touchdown, the foot-end height above ground follows the Gaussian distribution with an average value μz and a variance σz2, the probabilistic touchdown model of foot-end height is formula (1):
Where, pz represents the foot-end height above ground and p(c|pz) represents the conditional touchdown probability with the foot-end height of pz.
II. Assuming that at the time of foot-end touchdown, the external torque of knee joint follows the Gaussian distribution with an average value μτ and a variance στ2, the probabilistic touchdown model of external torque of knee joint is formula (2):
Where, τk represents the external torque of knee joint and p(c|τk) represents the conditional touchdown probability with the external torque of knee joint of Tk.
The gait of the quadruped robot changes cyclically as scheduled in advance; in each gait cycle, the gait phase progressively increases between 0-1. Each gait cycle is divided into a touchdown stage and a swing stage according to the leg motion state; 0≤gait phase<φswitch is the touchdown stage, and φswitch≤gait phase<1 is the swing stage; φswitch represents the phase at the time of inversion between the support phase.
For example, in the most common diagonal gait, 0≤gait phase<0.5 is the touchdown stage, and 0.5≤gait phase<1 is the swing stage.
The closer the gait phase is to the midpoint of the touchdown phase, the greater the touchdown probability is. On the contrary, the farther the gait phase is to the midpoint of the touchdown phase, the lower the touchdown probability is, as shown in
4.1 In the scheduled touchdown stage, the probabilistic touchdown model of gait schedule is formula (3):
4.2 In the scheduled swing stage, the probabilistic touchdown model of gait schedule is formula (4):
Where, φ∈[0,1] represents the current phase in the gait cycle, φswitch represents the phase at the time of inversion between the support phase and the swing phase, and σφ2 represents the variance of the gait phase.
V. The gait schedule touchdown probability is taken as the system input, and the foot-end height touchdown probability and the knee torque touchdown probability are taken as the system measurements. Kalman Filter is used to obtain the foot-end touchdown probability of four legs. The specific calculation method is as follows:
1. Kalman Filter state transition equation is shown in formula (5):
Where, the state variable {circumflex over (x)}k represents the final foot-end touchdown probability of four legs; the state transition matrix A=O4; the control input matrix B=I4, wk represents the noise during the state transition process, which can be considered to follow the Gaussian distribution.
2. Kalman Filter observation equation is shown in formula (6):
Where, z1k represents the foot-end touchdown probability of four legs obtained through the probabilistic touchdown model of foot-end height; z2k represents the foot-end touchdown probability of four legs obtained through the probabilistic touchdown model of external torque of knee joint; H represents the observation matrix; vk represents the observation noise, which can be considered to follow the Gaussian distribution.
3. According to the Kalman Filter state transition equation (5) and the observation equation (6), the Kalman Filter recurrence formula (7) can be obtained:
Where, Q represents the covariance matrix of noise during state transition process and R represents the covariance matrix of observation noise.
4. The final foot-end touchdown probability of four legs {circumflex over (x)}k can be calculated with formula (7). If {circumflex over (x)}k is greater than the threshold, it is considered to touch down; otherwise it is considered to not touch down.
The disclosure may accurately estimate the touchdown state between the foot end and the ground based on the basic sensor and fusion algorithm of the quadruped robot without deploying excess sensors at the foot end.
The specific embodiment above further describes the objectives, technical solutions and beneficial effect of the disclosure in detail. It should be understood that the above is only the specific embodiment of the disclosure and is not intended to limit the scope of protection of the disclosure. Any modification, equivalent replacement and improvement within the spirit and principle of the disclosure, shall be covered by the scope of protection of the disclosure.
This application is a Continuation of the U.S. application Ser. No. 17/540,168 filed on Dec. 1, 2021, and entitled “A Method and System for Detecting the Foot-end Touchdown of Quadruped Robot”, now pending, the entire disclosures of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 17540168 | Dec 2021 | US |
Child | 18748334 | US |