The present invention relates to the field of robot technologies, and specifically to a method of tracking control for a foot force and moment of a biped robot.
Zero moment point (ZMP) is a very important concept in the research of biped robots and is essential to walking planning, stability and so on of biped robots. An important means of evaluating whether a biped robot walks stably is whether an actual ZMP can well track a planned ZMP. Moreover, the force and moment on the foot can reflect the ZMP situation of the robot, and the actual ZMP of the robot walking on flat ground is generally calculated through the force and moment on the foot, so that the actual force and moment on the foot of the robot can be controlled to track the planned force and moment so as to realize ZMP tracking and more stable walking of the robot.
From a physical perspective, such a method enables the foot to keep providing the force and moment required for stable walking of the robot and thus can theoretically achieve the effect of allowing the robot to walk on any uneven ground. However, due to the lag caused by the robot system and various errors caused by the impact, the control effect of the force and moment cannot reach the theoretical ideal state, and the robot can only adapt to ground with small unevenness, which is nevertheless valuable for position control robots.
The prior art discloses a stability control method for a biped robot walking on uneven ground. The method uses compliance control and can reduce impact when the foot of the robot meets ground to ensure that the ZMP is within the support area of the sole when the foot is landed, thereby meeting stable walking conditions of the robot. However, the method does not consider that the ZMP can track a planned value as much as possible, let alone considering the tracking of the foot force and moment. Just control of the ZMP within the support area cannot solve the stability problem of the robot walking on uneven ground. The prior art discloses a ZMP tracking method based on whole body momentum compensation. The method can compensate a ZMP difference by using momentum generated by rotation of joints throughout the body, but does not consider the situation of the robot walking on uneven ground or consider the force on the foot of the robot, and cannot deal with the problem of ZMP tracking on uneven ground.
The prior art further provides a method for calculating a planned force and moment of a robot using a planned ZMP. The method does not focus on making the foot force and moment track the planned value to achieve the purpose of walking on uneven ground, and thus only uses a very simple admittance controller for control to achieve the adjustment effect. However, the controller has an excessively small adjustment range, which cannot meet control requirements for uneven ground with slight protrusions and depressions.
To sum up, the prior art mostly directly detects an actual ZMP of a robot and controls the actual ZMP to track a planned ZMP to realize stable walking of the robot. However, implementation by using ZMP tracking has two drawbacks: first, calculation of a ZMP on uneven ground is theoretically inconvenient and inaccurate, and thus cannot desirably reflect the walking state of a robot. That is, using the control method of ZMP tracking alone on uneven ground definitely has undesirable effect, and the calculated ZMP of the robot cannot always be required to track the planned value. Second, due to the impact and error of a force sensor, the ZMP calculated from the foot force and moment is also inaccurate. Added with the theoretical error, the real ZMP of the robot calculated in this way is not real at all, which definitely affects the control effect.
In order to solve the problems existing in the prior art, the present invention discloses a method of tracking control for a foot force and moment of a biped robot, which can not only realize desirable tracking of an actual ZMP on a planned ZMP on flat ground for the biped robot, but also desirably realize stable walking on ground with small unevenness. Besides, the design of a control model of a force tracking controller can reduce the impact on the foot when it meets ground.
The present invention achieves the aforementioned technical objective through the following technical solution.
A method of tracking control for a foot force and moment of a biped robot is as follows: a desired force on a foot and a desired moment on the foot of the robot are distributed through a planned zero moment point of the robot, differences of the desired force on the foot and the desired moment on the foot from an actual force on the foot and an actual moment on the foot are respectively calculated, and the differences are used as input of a force tracking controller, the force tracking controller outputs position adjustment quantities in three directions of an ankle joint, and the position adjustment quantities are added to original ankle joint trajectory planning to obtain an adjusted ankle joint trajectory, and joint angles are obtained through inverse kinematics, so as to realize tracking of the foot force and moment of the robot and then realize ZMP tracking.
Further, the three directions of the ankle joint comprise a vertical direction, a pitch direction, and a roll direction of the ankle joint.
Further, the actual force on the foot and the actual moment on the foot are calculated through a six-dimensional force sensor in an ankle of the robot.
Further, the desired force on the foot and the desired moment on the foot are calculated through a planned ZMP distribution method.
Furthermore, the specific process of calculation through the planned ZMP distribution method is:
(1) calculating desired forces and moments on feet in a single-foot support period
calculating and distributing desired forces on feet in vertical directions of a left foot and a right foot according to a ratio of distances between the ZMP and ankle joints of two feet, and then respectively cross-multiplying vectors from the ZMP to positions of the ankle joints of the two feet by the two desired forces to respectively obtain desired moments on feet of the two feet; and
(2) calculating desired forces and moments on feet in a double-foot support period
wherein a calculation method for the desired forces on feet is the same as that in the single-foot support period, and in calculating the desired moments on feet, first, a sum of desired moments of the two feet is calculated using the method for calculating desired moments on feet in the single-foot support period, and then desired moments on feet of the left foot and the right foot are calculated and distributed according to the ratio of the distances between the ZMP and the ankle joints of the two feet.
Further, an expression of the force tracking controller is: e=dsd(F, Fold, eold, ėold, TCONTROL), where e is a sum of deformation quantities of two spring damping systems, F is an input external force, Fold is an input force of a previous control period, eold is an output position adjustment quantity of the previous control period, ėold is an output position adjustment quantity derivative of the previous control period, and TCONTROL is a control period.
Further, the two spring damping systems are connected in series to form a double-spring damping model, and each spring damping system is formed by a spring and a damper connected in parallel.
The beneficial effects of the present invention are as follows:
In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and fully described below with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the embodiments to be described are only a part rather than all of the embodiments of the present invention. All other embodiments derived by those of ordinary skill in the art based on the embodiments of the present invention without carrying out creative efforts should fall within the protection scope of the present invention.
The actual force on the foot and the actual moment on the foot are measured and calculated through a six-dimensional force sensor in an ankle of the robot. The specific calculation process is as follows:
As shown in
When the foot of the robot rotates, the posture of the foot coordinate system is no longer the same as that of the waist coordinate system. As a result, Fz.sensor measured by the force sensor is different from Fz used in the control method of the present invention, and Fz.sensor needs to be first mapped to the waist coordinate system to obtain Fz. As shown in
Fz=Fz.senor·cos q6·cos q5 (1)
Then, the moment is calculated. Using calculation of the moment in the x direction as an example, the actual moment τ is calculated using the following equation:
τ=Fy.sensor·HAnkle+τsensor (2)
where HAnkle is a height difference between a geometric center of the sensor and an axis center of the ankle joint.
The desired force on the foot and the desired moment on the foot of the robot are calculated using a planned ZMP distribution method. First, a desired force on the foot and a desired moment on the foot, namely, a desired force and moment applied by the foot of the robot to the ground, are calculated, and the desired force and the desired moment on the foot are the opposite of the desired force and moment applied by the foot to the ground. As shown in
where fdL and τdL are the desired force and moment of the left foot, JR and τdR are the desired force and moment of the right foot, Mg is the gravity of the whole body of the robot, pAnkle_L and pAnkle_R are respectively desired positions of ankle joints of left and right feet of the robot in the world coordinate system, and pdZMP is a desired position of the ZMP of the robot in the world coordinate system. A midpoint of a line segment connected between two ankles of the robot in a reset state is usually used as a zero point (point O in
where pEdge_L and pEdge_R are inner edges of the left and right feet of the robot.
It can be seen from equation (4) that when pdZMP greater than pAnkle_R, α turns negative, and the desired force on the left foot has an upward direction, which is illogical; when pdZMP is less than pAnkle_L, (1−α) turns negative, and the desired force on the right foot has an upward direction, which is also illogical. Accordingly, the range of a needs to be limited. The practical meaning is that when the planned ZMP of the robot moves to a place right below or outside the ankle joint of any foot, it is considered that the foot supports the weight of the whole robot. The judgment method is as follows:
if α>1thenα=1
if α<0thenα=0 (5)
Therefore, in the single-foot support period and when the ZMP is within the support area of any foot, the desired force and moment can be calculated using the aforementioned method, but at other time of a double-foot support period, the distribution of moments of two feet needs to be considered. Since a summed moment of the forces and moments on the left and right feet of the robot is zero at the point ZMP, the calculation equation for the summed moment τ of the left and right feet is as follows:
τ=−(pAnkle_L−pdZMP)×fdL−(pAnkle_R−pdZMP)×fdR (6)
The foot moment distribution in the double-foot support period is as follows:
The calculated desired moment is distributed in two directions of x (roll direction) and y (pitch direction), so as to calculate the respective desired moments of the left and right feet.
The design method of the force tracking controller is as follows:
As shown in
Laplace transform is performed on the two equations:
Laplace transform is performed on the sum of the deformation quantities of the springs to obtain:
e(s)=e1(s)+e2(s) (10)
Equation (9) is substituted into equation (10) to obtain:
Inverse Laplace transform is performed to obtain the relationship between e and F:
K1K2e+(K1D2+K2D1)ė+D1D2ë=(K1+K2)F+(D1+D2){dot over (F)} (12)
The above equation is linearly discretized to obtain the expression of the force tracking controller as follows:
e=dsd(F,Fold,eold,ėold,TCONTROL) (13)
where Fold is an input force of a previous control period, eold is an output position adjustment quantity of the previous control period, ėold is an output position adjustment quantity derivative of the previous control period, and TCONTROL is a control period.
Coefficients of the force tracking controller are optimized using LQR, after desirable controller coefficients are obtained, an ideal force and moment tracking effect can be achieved, and since the double-spring damping model is used, the foot has a certain compliance effect in actual application. In setting elastic coefficients and damping coefficients of the two springs, they are configured as combinations of large stiffness—medium damping and small stiffness—large damping. The specific data is shown in Table 1:
In this way, the foot can have an impact-absorbing effect and produce a desirable force and moment tracking effect.
The above description is merely preferred embodiments of the present invention, and is not intended to limit the present invention in any form. Although the present invention has been disclosed above through the preferred embodiments, they are not intended to limit the present invention. Those skilled in the art can make many possible changes and modifications to the technical solutions of the present invention or modify the technical solutions of the present invention into equivalent embodiments of equivalent changes, by using the methods and technical content disclosed above without departing from the scope of the technical solutions of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall fall within the protection scope of the technical solutions of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201910622271.3 | Jul 2019 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20110160906 | Orita | Jun 2011 | A1 |
20180250812 | Narukawa | Sep 2018 | A1 |
20200209890 | Xiong | Jul 2020 | A1 |
Number | Date | Country |
---|---|---|
2004130460 | Apr 2004 | JP |
Number | Date | Country | |
---|---|---|---|
20210009218 A1 | Jan 2021 | US |