The present invention pertains to the technical field of robots, and in particular relates to a whole-body compliance control method applied to a fast walking biped robot.
Biped robot, as one of the important research orientations in the fields of robotics, has become an important symbol of the development level of national frontier technologies because of its interdisciplinary characteristics. The biped robot is likely to encounter interference from external forces or uneven ground when fast walking. Thus, in order to prevent the robot from rollover, in addition to a gait planning algorithm, it is also important to design a control strategy of stability and robustness to external interference.
Zero moment point (ZMP) is a very important concept in the field of biped robots. ZMP refers to the action point on the foot sole of the robot, where the equivalent resultant force of the foot sole passes through the action point, and the foot sole moment at the action point is zero. An important criterion for judging the stability of the biped robot is that ZMP must always be in a support polygon area. A support polygon is the smallest polygon area surrounded by all contact points between the robot foot sole and the ground. When the heel or toe of the robot lands, the support polygon area becomes smaller, that is, the stability area of the robot becomes smaller. Thus, the robot foot sole is kept in smooth contact with the ground, such that ZMP in the support polygon is the basis of stable walking of the biped robot in the support polygon. In addition, keeping the stability of the upper body of the biped robot is also very important for its stable walking. As the walking speed of the robot increases, the centroid movement speed is relatively high with the large tracking error, which leads to reduction in the support polygon area. In this case, the robot is prone to leaning forward and backward when walking, which seriously affects the walking balance of the robot. Therefore, the centroid position is adjusted to effectively track a desired centroid position and accordingly adjust the ZMP position not to exceed the support polygon, which can enhance the walking stability of the robot. In addition, in the walking process, the robot may be unstable because of the excessive impact caused by the early/late landing of the robot or the uneven ground. Meanwhile, if the foot sole does not land flat when the robot lands, a rotating moment will exist when the foot sole is attached to the ground, which will also easily lead to the rollover of the foot sole, causing the robot to fall.
Therefore, it is very important to control the deviation of the centroid position, reduce the landing impact of the robot and ensure the compliance of the plantar posture for the fast and stable walking biped robot.
Patent literature CN202111461183.3 proposes a biped robot balance controller based on fast ankle adjustment, but the controller only controls the ankle position without comprehensively controlling the ankle position and posture. Moreover, when the robot is in a state of high-speed movement, it is difficult for the actual centroid position of the robot to track the desired position; in this case, only controlling the ankle cannot guarantee the stable walking of the robot.
Patent literature CN202210533708.8 proposes a method for controlling high-dynamic motion centroid compliance of a humanoid robot, but the method does not consider the influence of the excessive impact of foot on stable walking when the robot is on the uneven ground or land early/late due to external interference. In addition, the method does not ensure that the foot can land flat. In this case, the plantar rollover may occur due to the existence of plantar rotating moment, which may lead to the instability of the robot.
In order to solve problems in the above background, the object of the present invention is to provide a whole-body compliance control method applied to a fast and steady walking biped robot to control stable walking of the biped robot.
In order to achieve the object of the present invention, a whole-body compliance control method applied to a fast and stable walking biped robot provided in an embodiment includes the following steps:
Preferably, sensor information is collected by a moment sensor array or a force sensor array that is uniformly distributed on a foot sole.
Preferably, in Step 2, according to the plantar stress data, the actual ZMP positions of the robot in x and y directions are calculated through the following formula:
Wherein fji and τji respectively denote a measured force and moment of a j (th) sensor in the i direction, pji denotes a position coordinate of the sensor relative to an origin of a coordinate system, j=1, . . . , N,i=x,y,z, and the origin of a coordinate system is set as a projective spot of an ankle located on the foot sole.
Preferably, in the Step 3, the biped robot is simplified as a table-cart model to design the centroid compliance controller, where a table height is corresponding to a centroid height relative to the ground; a cart acceleration is a robot centroid acceleration, and the centroid compliance controller is used to calculate the centroid position adjustment variable; and such calculation includes:
Preferably, in Step 4, the double spring-damper model is expressed as:
wherein Δfz denotes a difference between a desired stress value of the ankle and an actual stress value thereof along the z axis, Δza, Δża and Δ{umlaut over (z)}a respectively denote the position, velocity and acceleration adjustment variables of the ankle in the z direction, kz1, kz2 and kz3 are determined by coefficient matrices
and weight matrices Q and R of a state variable and a control variable, and ks1, ks2 and d1, d2 respectively denote rigidity coefficients and damping coefficients of the two spring-damper units.
Preferably, the rigidity coefficients and damping coefficients of the two spring-damper units are selected according to different characteristics of the foot sole of the robot in different periods; when the foot sole just lands, relationships between the rigidity coefficients and damping coefficients of the two spring-damper units need to be opposite, that is, one of the spring-damper units has a large rigidity coefficient and a small damping coefficient, and the other thereof has a small rigidity coefficient and a large damping coefficient; during foot support, the two spring-damper units have a same effect and a same relationship between the rigidity coefficient and the damping coefficient.
Preferably, a linear quadratic regulator is used to calculate coefficients kz1, kz2 and kz3.
Preferably, in the Step 5, the plantar posture adjustment variable is calculated by the plantar posture compliance controller according to the following formula:
Preferably, in Step 6, the originally desired centroid position, plantar position and plantar posture are generated by a three-dimensional linear inverted pendulum model.
Compared with the prior art, the present invention has at least the following beneficial effects:
In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly describe the accompanying drawings that need to be used either the embodiments or the prior art. Apparently, the accompanying drawings in the following descriptions are merely some embodiments of the present invention, and persons of ordinary skill in the art may obtain other accompanying drawings according to these accompanying drawings without creative efforts.
In order to make the object, technical solution and advantages of the present invention more clearly, the present invention will be further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely for explaining the present invention, and do not limit the protection scope of the present invention.
As shown in
In the embodiment, four six-dimensional force/moment sensors are provided for each foot sole of the robot and respectively distributed at four corners of the foot sole; plantar stress data is obtained according to information of the foot force sensor, where the plantar stress data includes a plantar stress and a plantar moment. The forces measured by the four moment sensors are accumulated to obtain the plantar stress, and the plantar moment at the desired ZMP position is calculated by the distance between the desired ZMP position and the four moment sensors and the plantar stress.
It is assumed that fji(j=1, . . . , N,i=x,y,z) and τji(j=1, . . . , N,i=x,y,z) respectively denote a measured force and moment of a J (th) sensor in the i direction, pji(j=1, . . . , N,i=x,y,z) denotes a position coordinate of the sensor relative to an origin of a coordinate system, and the origin of a coordinate system is set as a projective spot of an ankle located on the foot sole, the ZMP is calculated by the following formula:
In the embodiment, the centroid compliance controller is designed to calculate the centroid position adjustment variable; the centroid position is adjusted such that the ZMP of the robot can track the desired ZMP thereof, thereby improving the walking stability of the robot. The method is quite effective for a walking humanoid robot with high rigidity.
In Step 3, the biped robot is simplified as a table-cart model to design the centroid compliance controller to calculate the centroid position adjustment variable. As shown in
In order to detect the actual ZMP position by the sensor, with the time constant (sampling period) T of the sensor being considered, the ZMP equation is given in the following formula, wherein
denotes a lag phase of a first-order system.
The cart acceleration {umlaut over (x)} is an input variable u={umlaut over (x)}, the state variable of the cart is X=[p x {dot over (x)}]T, and the state equation of the system is as follows:
Similarly, a same table-cart model is established for the ZMP position and the desired cart position, and the state equation thereof is as follows:
In order to make the actual value of the ZMP of the robot and the actual value of the centroid position thereof accurately track their respective desired values to maintain the walking stability of the robot, the error values tend to zero with the minimal change in the controlled variable and the state variable, a linear quadratic controller is adopted, and the cost function J is taken as:
Twice numerical integration is performed for Δ{umlaut over (x)} by taking T as a discrete unit to obtain the centroid position adjustment variable Δx(k) at the moment of k.
In embodiments, the plantar position compliance controller is designed to calculate the plantar position adjustment variable of the robot in different periods in the vertical direction. The plantar position compliance controller is designed to deduce the plantar state equation based on the plantar position compliance control of the double spring-damper model; and the linear quadratic regulator is used to calculate the foot adjustment variable in the vertical direction, thereby reducing the foot impact when the robot lands.
In the landing process, the robot being kept full contact with the ground is the basis of its stable movement. If the robot is affected by external disturbance or uneven ground when walking in a non-ideal condition, the foot stress will deviate from the original planned or predicted trajectory or will cause the early/late landing of the robot, the foot sole will generate relatively great impact, which causes the instability of the robot. In this case, the solution is that compliance control is adopted when the robot contacts with the outside to reduce the influence of the impact on the posture of the robot body.
As shown in
The deformation variables of the two spring-damper units are respectively set as z1 and z2, the total deformation variable thereof is za, the stresses thereof are respectively f1 and f2, and the total stress thereof is fz, the following formulas are satisfied:
Laplace transform and arrangement of the above formulas are performed to satisfy:
If the movement acceleration {umlaut over (z)}a of the ankle in the z direction is set as the controlled variable uz={umlaut over (Z)}a of the state equation, and Xz=[fz za ża]T is used as the state variable of the state equation, the state equations of the above formulas are as follows:
The rigidity coefficients and damping coefficients ks1, ks2 and d1, d2 of the two spring-damper units are modified, such that the robot can exhibit different characteristics in different periods. When the foot lands, the robot body is positioned in the front of the supporting leg, and the swinging leg is about to land; thus, specified compliance is needed to quickly absorb the landing impact of the robot to avoid the instability thereof, while the supporting leg is expected to maintain specified supportability to prevent the robot from rollover due to excessively leaning forward; therefore, for the controller that needs to generate a compliance effect, one of the spring-damper units in the double spring-damper model thereof need to have a relatively large rigidity coefficient and a relatively small damping coefficient and is used to quickly absorb the impact in an initial impact stage; and the other of the spring-damper units in the double spring-damper model thereof needs to have a relatively small rigidity coefficient and a relatively large damping coefficient, and is used to slowly and stably generate a relatively adjustment variable with adaption to the external environment and along with an external force in a later impact stage to realize compliance movement. Therefore, the two spring-damper units exhibit obviously different effects; relationships between the rigidity coefficients and the damping coefficients of the two spring-damper units need to be opposite, that is, one of the spring-damper units has a large rigidity coefficient and a small damping coefficient, and the other thereof has a small rigidity coefficient and a large damping coefficient.
During foot support, swinging legs rise to the sky without external impact and can be configured with any parameters, and supporting legs need to have a specified support strength to prevent feet from bowing forward and leaning backward generated by fitting failure of feet and ground due to excessive compliance. Therefore, for the controller that needs to generate the supporting effect, a relatively small rigidity coefficient and a relatively small damping coefficient are used for one of the spring-damper units in the double spring-damper model thereof to absorb the impact, and a relatively large rigidity coefficient and a relatively large damping coefficient are used for the other of the spring-damper units to generate a relatively small adjustment variable to deal with the external force for specified compliant movement in the later stage. Therefore, the two spring-damper units have same effects and same relationships between the rigidity coefficients and the damping coefficients.
Similarly, a same double spring-damper model is established for the ankle stress in the z axis and the desired ankle position in the z direction, and the state equation thereof is as follows:
The relationship between the stress of the ankle in the z axis and the desired ankle position and actual ankle position in the z direction can be expressed as:
In order to make the error tend to zero with the minimal change in the controlled variable and the state variable, the linear quadratic controller is adopted, and the cost function J is taken as:
In the embodiment, the plantar posture compliance controller is designed to calculate the plantar posture adjustment variable. In addition to a fact that the double spring-damper model is used to reduce the plantar impact, it is also necessary to ensure that the foot sole lands flat, avoiding the plantar rollover caused by a rotating moment, thereby causing the instability of the robot. Therefore, the difference between the plantar moment and the desired plantar moment is obtained according to the plantar moment measured in Step 1, to correct a plantar posture (including a rolling direction posture and a pitching direction posture), such that the actual plantar moment can track the desired plantar moment.
The schematic diagram of the plantar posture compliance controller is shown in
The moments of four points, measured by the sensor, are converted to a foothold moment to calculate the actual moment.
In the embodiment, the originally desired centroid position, plantar position and plantar posture are generated according to a three-dimensional linear inverted pendulum model; the correction variables of the centroid position, plantar position and plantar posture are superimposed into the desired gait value originally generated to obtain a correction value; a leg joint angle qd capable of realizing a compliant and stable adjustment function is calculated through an inverse kinematics solution; and the balance between the centroid and the foot is adjusted, thereby increasing the stability of the fast walking biped robot.
According to a whole-body compliance control method applied to a fast and stable walking biped robot provided in an embodiment, the plantar position compliance controller is used to reduce the landing impact and ensure the supportability thereof during support; the plantar posture compliance controller is used to ensure that the actual plantar moment of the robot can track the desired plantar moment to correct the plantar posture and prevent the robot from rollover; and the centroid compliance controller is used to adjust the centroid position, such that the actual centroid position can track the desired centroid position when the robot fast walks, thereby adjusting the ZMP position and increasing the stability of the fast walking biped robot.
The technical solutions and beneficial effects of the present invention are elaborated in the foregoing embodiments. It should be understood that the foregoing embodiments are merely the most preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, supplement, and equivalent replacement, etc. made within the principle of the present invention should fall within the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
202310009303.9 | Jan 2023 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/125001 | 10/17/2023 | WO |