1. Introduction
Compared with wheeled or tracked robots, legged robots have certain advantages in the unstructured environment and have become one of the hotspots in the field of robotics. For legged robots, quadruped robots have simple structure and are easy to control; therefore, they’re more widely used than biped and hexapod robots.
Foot trajectory planning is important for the study of quadruped robots. Sakakibara et al. [
1] proposed a trot gait trajectory based on a sinusoidal curve and realized by He et al. [
2]. This trajectory was simple and easy to be realized, but when the robot touched the ground, the bottom of the foot would slide and move. Semini et al. [
3] used the cycloid foot trajectory to plan motions of HyQ—a hydraulically and electrically actuated quadruped robot. However, only a set of typical trot gait parameters including a 50% duty cycle was used. Zhang et al. [
4] used a virtual model to study the torso motion control of a quadruped robot, where a flight toe trajectory generator was established. In the flight phase, a rectangular trajectory was used. However, the foot endpoint would have a big velocity before landing, which could cause an impact and could affect the control system. To deal with the above problem, a new foot trajectory needs to be studied. The foot trajectory can solve problems like the landing impact and more gait parameters need to be included in the trajectory.
Despite the fact that legged robots promise great mobility in rough and unstructured terrains, they still have some deficiencies in energy consumption when compared with tracked or wheeled robots. In order to improve the energy efficiency of the legged robots, many researchers studied the energy consumption of legged robots. In the last paragraph, the foot trajectories were studied in the view of motions not energy. In this part, energy models proposed by different researchers are introduced. Ikeda et al. [
5] analyzed the energy flow of a quadruped robot with a flexible trunk joint. The energy consumption conditions were studied under different gaits. However, this paper did not establish any specific energy model of the robot. It only divided the energy flow into the energy input, the friction loss, and the collision loss. It lacked an analysis of the mechanical power change. Muraro et al. [
6] and Silva et al. [
7] both established their own energy model and studied the energy consumption by using different gait, and several criteria were proposed to evaluate the performances of different conditions. These two works focused on body forward velocity; therefore, only the step length and gait cycle were taken into consideration. Moreover, the energy model of References [
6] and [
7] only calculated the mechanical power, and the heat rate was ignored, which is a big part of the loss in practical application. Lei et al. [
8] analyzed the energy consumption of a quadruped robot with three foot trajectories based on their trot gait. The energy model only took the mechanical power into account, and the influence on energy consumption caused by a duty cycle was not studied. Wang et al. [
9] established the kinematics and dynamics models of a quadruped robot and studied the influences of different parameters on energy consumption. In this work, the feet forces were regarded as half of the robot total mass, which was not rigorous. Moreover, the heat rate was ignored in the energy model and only the situations with a 50% duty cycle were studied. Roy et al. [
10] studied the effects of turning gait parameters on energy consumption of an electric actuated six-legged robot. In the paper, the joint positions were programmed by quintic polynomial. Moreover, the foot force distribution problem was discussed and a relative complete energy model was established. However, the heat rate of the hydraulic cylinder was different from the electric motor. In this work, a complete energy model that is suitable for a hydraulic actuated quadruped robot is studied.
In order to calculate the energy consumption correctly, the foot force distribution problem needs to be considered. Although the above studies have given a certain impetus to the high efficient trajectory planning and energy consumption research, the current energy models are either relatively simple or not suitable for hydraulic actuated quadruped robots. Therefore, a complete energy model as well as a universal foot trajectory for a hydraulic actuated quadruped robot needs to be studied. For hydraulic actuated quadruped robots, the hydraulic friction includes the Coulomb friction, static friction, and static decay friction. Therefore, the energy consumption due to friction is big and the heat rate must be considered in the energy model. In order to describe the robot motions better, a universal foot trajectory for a hydraulic actuated quadruped robot needs to be studied. Different gait parameters have to be included in the foot trajectory, and their influences on energy consumption should be studied.
This work expounds our study of the quadruped robot foot trajectory in planar motions. The main purpose of this work is to study the effects of different gait parameters on energy consumption. Firstly, the kinematics and dynamics model of the SCalf robot are established. An energy model including the mechanical power and heat rate is set up to calculate the energy consumption. A trot gait foot trajectory based on the cubic spline interpolation is proposed. The energy consumption variation caused by different gait parameters are studied through simulations.
2. Robot Modelling
The quadruped robot SCalf was build by the Center for Robotics of Shandong University, as shown in
Figure 1. SCalf is a hydraulic actuated robot. The length and width of the robot are 1.4 m and 0.75 m respectively, and the overall weight is 200 kg. The robot consists of a trunk and four legs. The structure of the legs must be designed considering the fact that an improper design can limit the reachable space of the robot legs when operating in the normal quadruped gaits [
11]. Therefore, the leg of SCalf is designed as a 3 DOFs (degree of freedom) structure to make the foot endpoint move in a three-dimension workspace with the hip joint as its origin. The three joints of the leg are defined as the rolling hip joint, pitching hip joint, and pitching knee joint. To make the robot easy to control, the SCalf is built symmetrically. The backward/forward configuration is used to improve the gradeability and load capacity.
A variable displacement piston pump is connect to the gasoline engine to provide power for the whole robot system. The onboard hydraulic system and the control system are integrated inside the trunk of the robot. The onboard hydraulic system can distribute a hydraulic flow to the joint actuators and can control the motions of the robot. The robot can be used to transport loads on rough terrains like jungle or mountain, and its load capacity is 200 kg.
To calculate the energy consumption of the robot, the following preconditions are made:
(a) Only the motions in the sagittal plane are studied. The robot is walking on a flat surface with the trot gait.
(b) When walking on a flat surface, the height change of the robot trunk’s center of mass (COM) is ignored.
(c) The trunk of the robot can be regarded as a cuboid, and its COM is assumed to be at the geometric center of the body
2.1. The Kinematics Modelling
The legs of the robot have the same structure and mechanical parameters. Here, the right front (RF) leg is used as an example. The single leg model is shown in
Figure 2. According to precondition (a), the motions of the rolling hip joint are not considered and the rolling hip joint position is set as 0.
In
Figure 2, the RF leg can be divided into the hip, thigh, and shank parts. Since the motions of the rolling hip joint are neglected, the hip part can be regarded as the base. The origin of the coordinate frame
is set at the rolling hip joint. The
z-axis direction is vertical to the ground facing upward. The
x-axis is pointing to the motion direction of the robot.
The mechanical parameters in
Figure 2 are introduced as follows. The lengths of the hip, thigh, and shank parts are
,
, and
respectively, where
= 45 mm.
and
are the masses of the thigh and the shank parts, respectively. The joint positions of the pitching hip and pitching knee joints are denoted as
and
, respectively. The COMs of the thigh and shank parts are defined by
,
,
, and
. When the thigh and shank parts rotate around their own joint shafts, the moments of inertia are
and
, respectively. The values of these mechanical parameters are listed in
Table 1 [
12].
Based on the mechanical parameters, the location of the foot endpoint in coordinate frame
can be written as follows, where
By solving Equation (
1), the joint positions of the RF leg can be obtained as
where
The Jacobian matrix of the single leg model can also be calculated by Equation (
1).
2.2. The Dynamics Modelling
In order to obtain the energy consumptions of the robot, the joint torques must be acquired. The RF leg is used to build the dynamics model of the robot. The standard form of the dynamic equation can be written as Equation (
5), where
is the inertia matrix,
is the Coriolis and centrifugal forces matrix, and
is the gravitational loading vector.
In the dynamics equation of Equation (
5), the inertia matrix
is a 2 × 2 matrix and can be written as follows:
where
The Coriolis and centrifugal forces matrix
is shown in Equation (
10).
where
The gravitational loading vector
is
In the above equations, , , and .
Equation (
5) shows the situation with no contact between the feet and the ground. When considering the ground reaction force, the dynamics model of the single leg changes to Equation (
16), where
is the ground reaction force vector. The calculation of
will be introduced in the next part.
2.3. The Foot Force Distribution
When analysing the foot force distribution, the slippage between the foot endpoint and the ground is neglected [
13]. For the sagittal motions, the lateral forces of the foot endpoints can be ignored, and the ground reaction forces of each leg can be divided into a normal and a tangential component.
The ground reaction force can cause many negative effects like structural damages and control difficulties; therefore, the value of the ground reaction force must be minished. Here, the minimization of norm of the foot force method is used to minimize the norm solution of the foot force and to reduce the compact between the ground and the robot [
14].
A coordinate frame
is established at the geometric center of the body. The
x axis points to the direction of the motion. The direction of the
z axis is vertical to the ground and points upwards. The
y axis is defined by the right-hand rule. The static force diagram is illustrated in
Figure 3. Here, we assume the RF and LH (left-hind) legs are in the stance phase.
is the ground reaction force vector which contains the ground reaction force of the RF and LH legs, where
and
. The vector
contains the forces and moment acting on the robot COM in sagittal plane. Under these conditions, the forces and moment balance equations can be written as follows:
The Equations (
17) to (
19) can be written in a matrix form as follows:
where
In Equation (
21),
and
are the coordinates of the support foot endpoints in
.
In Equation (
20), there are 4 unknowns but only 3 equations. Here, we use the least squared method to realize the minimization of norm of the foot force method. The result is shown as follows.
In Equation (
22), the matrix
is also the pseudoinverse matrix of
. As the third component of
(
) is zero, the parameters in the last column of
can be neglected. The value of
is shown as follows.
where
The Jacobian matrix in Equation (
16) can be written as follows:
In Equation (
33),
and
are the Jacobian of the RF and LH legs respectively.
3. The Energy Analysis of The Scalf
3.1. Energy Model
In order to analyze the energy consumption conditions of SCalf, the energy model must be established. For SCalf, the calculation of the energy consumption is obtained by the integration of the joint power. The joint power consists of the mechanical power and heat rate, as shown in Equation (
34), where
T is the gait cycle,
E is the energy consumption in one gait cycle, and
P is the joint power.
In the second line of Equation (
34),
and
are the friction and piston velocity of the hydraulic cylinder, respectively. The joint torque
can be acquired by the dynamics analysis.
The structure of the hydraulic actuator is shown in
Figure 4. The displacement and force of the piston can be measured by the position and force sensors. The motions of the piston are controlled by the servo valve.
The friction of hydraulic cylinders are strongly coupled by many parameters, and it has a high nonlinearity. It depends on many conditions like the cylinder velocity
, the pressure difference
across the piston and possibly on the cylinder position
, and the temperature
t [
15]. The SCalf uses the asymmetry cylinders to realize the joint motions. The model parameters are different when the actuator are extending or shorting. According to the research made by Nissing, the model of the hydraulic frictions can be written in Equation (
35) [
16].
In Equation (
35),
B is the viscous friction coefficient (Ns/m),
is the Coulomb friction coefficient (N),
is the static friction coefficient (N), and
is the attenuation coefficient of static friction. Using the measured result made by Polzer et al. [
17], the parameters in Equation (
35) can be obtained as follows. When
0,
B = 220 Ns/m,
= 50 N,
= 30 N and
= 0.015 m/s. When
0,
B = 180 Ns/m,
= 50 N,
= 20 N, and
= 0.007 m/s.
The cylinder velocities can be obtained by the differential of cylinder lengths. The cylinder lengths can be calculated by the mechanical parameters in
Figure 5 and
Table 2.
The relationship between the cylinder lengths and mechanical parameters are shown in Equation (
36)
3.2. Energetic Criterion
In order to evaluate the energy consumptions of robot motions, the corresponding energetic criterion should be designed.
In this paper, a criterion called energy cost is considered. The energy cost
is defined as the energy consumption for a unit distance. It represents the energy consumption of the robot movements intuitively. It is defined by assuming that the negative work produced by the actuators are dissipated.
4. The Foot Trajectory Analysis
The SCalf team has already done some research on the gait trajectory planning [
18,
19,
20], but they only considered the situations under the duty cycle as 50%. In this paper, a more general trot gait trajectory is proposed. In the trot gait,
S is the step length,
T is the gait cycle,
H is the step height, and
is the standing height, as illustrated in
Figure 6.
is the duty cycle of the trot gait. The velocity of the robot
can be obtained by the step length
S and the gait cycle
T by using Equation (
38).
During the movements of the robot, the legs will swing periodically with respect to the trunk. In order to make the quadruped robot walk at a steady speed, this work realizes the trajectory planning of the robot by simulating the trajectory of the quadruped animals’ feet. Based on the motions of the horses, a foot trajectory including the cubic spline interpolation curve and the straight line is studied. The phases of the four legs are shown in
Figure 7, where the two feet on the diagonal have the same movements.
Here, the trajectory of the RF leg is analyzed. During the stance phase, the trunk of the robot is moving forward. According to Equations (
16), (
22), and (
34), in order to minimize the energy consumption, joint torques have to be as small as possible. Then, the first component of
M, which is
, have to be small. Therefore, the trunk acceleration
a is set as zero, and the motions of the stance phase become uniform motions in the
x direction. The positions in the
z direction are equal to −
. The trajectory equation of the stance phase in the coordinate frame
can be obtained in Equation (
39).
In order to obtain the parameters of the foot trajectory during the swing phase, the initial and terminated conditions of the stance phase are listed in
Table 3, including the positions and velocities of the foot endpoint in the
x and
z directions.
In the swing phase, the cubic spline interpolation and the cosine curve are used in the
x and
z directions respectively. In the trajectory expression of the
x direction, the coefficients of the cubic equation are obtained from the data in
Table 3. For the cosine curve in the
z direction, the foot endpoint reaches the curve’s top in the middle of the swing phase. According to the above conditions, the foot trajectory can be written in Equation (
40).
where
The curves of the foot trajectory are shown in
Figure 8, including the curves of the
x direction, of the
z direction, and in coordinate frame
. Here, the gait parameters are chosen as follow:
S = 0.25 m,
T = 0.5 s,
H = 0.08 m,
= 0.5 m, and
= 0.3.
The advantages of this foot trajectory are listed as follows:
(a) When gait phases switch, the velocities of the foot endpoint are zero, which can eliminate the collisions between the foot and the ground.
(b) The trunk velocity and the velocity of the swing leg are changing with no mutation.
(c) At the beginning and end of the swing phases, the foot endpoint will move back some distance, which can improve the ability of the robot to move over obstacles and to adapt to certain undulating grounds.
5. Simulations
In this section, we will study the influences of different gait parameters on the energy consumptions. The four legs of the SCalf have the same structure and mechanical parameters; therefore, the energy consumption of the RF leg can be regarded as a quarter of the total energy consumption.
A set of experiments are implementing in MATLAB. The total energy consumptions as well as the energy consumptions during the stance and swing phases using different gait parameters are calculated, and the energetic criterion is used to evaluate the robot motions. The flow chart of the simulation is illustrated in
Figure 9.
In the simulations, the robot trunk can be regarded as a cuboid, and the mass of trunk is M = 200 kg. The distances between the origins of and in the x and z directions are 0.68 m and 0.15 m respectively, which are used to confirm the position of the foot endpoints in .
Different gait parameters such as step length
S, gait cycle
T, step height
H, standing height
, and duty cycle
are studied in this section. The default values of the gait parameters are listed in
Table 4. Under the default condition, the velocity of the robot is 1 m/s.
5.1. Validation of the Energy Model
In order to verify the energy model proposed in this paper, some experiments are carried out. Different from the electrical actuated robots [
21,
22], the energy consumption of a hydraulic actuated robot is obtained by the data of joint sensors. For SCalf, the position and force sensors mounted on the actuator (
Figure 4) are used to measure the cylinder lengths
and joint forces
(
i = 1, 2). Here, the equations of the RF leg are used. The mechanical parameters can be found in
Table 2.
The joint angular velocities in Equation (
34) can be obtained by the following equations.
The torques in Equation (
34) are equal to the forces multiplied by their force arms, where
i = 1, 2.
In the experiment, the gait parameters are chosen from
Table 4. The sensor data are recorded with a frequency of 80 Hz. In this work, data of 5 gait cycles are recorded. The curves of joint positions, joint torques, and the leg power of the RF leg are illustrated in
Figure 10,
Figure 11 and
Figure 12.
From the above experiment results, the joint positions, joint torque, and leg power have the same trends in the experiment and simulation. The energy consumptions during 5 cycles are 393.69 J and 421.80 J for the experiment and simulation, respectively. The mean powers of the RF leg in the experiment and simulation can be calculated as 157.48 W and 168.72 W respectively. The differences between the data are mainly caused by the foot force distribution. Based on the energy consumptions and average power, the proposed energy model is verified.
5.2. Simulation Results
5.2.1. Step Length
In this part, the step lengths are set as different values while the other gait parameters use default values. The step lengths ranges from 0.15 m to 0.5 m with an interval of 0.05 m. The energy consumption conditions and the
are shown in
Figure 13.
From
Figure 13, we can know that with the increasement of the step length, the energy consumption during different phases and
are both increasing but that the growth rate of
is slower than the energy consumption.
5.2.2. Step Height
The energy consumption conditions with different step height are shown in
Figure 14 and
Table 5. The step heights
H are chosen as 0.04, 0.08, 0.12, 0.16, and 0.20 m. According to Equation (
37), when the step length
S is set as a constant, the energy consumption is proportional to
.
Based on the equations of the foot trajectory, the step height has no influence on the stance phase, which can be verified in
Figure 14. With the augmentation of the step height, the movement distance of the leg endpoint as well as the joint energy consumptions will increase. Considering the obstacle crossing ability of the robot, a proper value of the step height needs to be chosen.
5.2.3. Standing Height
Considering the mechanical limitation and the ranges of the joint position, the standing heights are chosen between 0.5 to 0.7 m with a step of 0.05 m. The values of are proportional to the energy consumptions.
The results are illustrated in
Figure 15 and
Table 6. When the distance between the trunk and the ground is small, the joints have to sustain more weight, which will increase the joint torques, and the energy consumption will increase. However, if the distance between the trunk and the ground is too large, the COM of the robot will rise, which will reduce the movement stability of the robot.
5.2.4. Gait Cycle
The gait cycle is the reciprocal of the gait frequency (
f). Here, we choose the gait cycles as 0.5, 0.6, 0.7, 0.8, 0.9, and 1.0 s to calculate the energy consumption. The results are listed in
Figure 16 and
Table 7.
With a large gait cycle, the velocity and acceleration of the joint angle will be decreased and the joint torque can be reduced according to Equation (
5). From
Figure 16, we can know that the energy consumption in the swing phase will decrease with the augmentation of the gait cycle but that the energy consumptions during the stance phase remain the same. For the motion of the SCalf, a gait with a large cycle can reduce the energy consumption but will make the motion unstable.
5.2.5. Duty Cycle
When the duty cycle is less or greater than 0.5, there will be conditions like a four-foot touchdown or a four-foot flight. The energy consumptions with different duty cycles are shown in
Figure 17, and the
are listed in
Table 8.
For different duty cycles, the different energy costs
are proportional to the energy consumptions, too. From
Figure 17, we can know that the energy consumptions during the stance phases are nearly the same. When the duty cycle is large or small, the energy consumption during the swing phase will grow rapidly. The optimal duty cycle falls into the range of 0.3 to 0.5.
5.3. Discussion
In robot motions, the velocity of the robot is an important comprehensive index. According to Equation (
38), the robot velocity is decided by the step length
S and gait cycle
T; both big
S or short
T can increase robot velocity. Based on the results in
Figure 13 and
Figure 16, big
S and short
T will both increase the energy consumption. When choosing the values of
S and
T, the mechanical limitations and control stability should be considered. We notice that the growth rate of the energy consumption caused by
S is higher than that caused by
T. Therefore, when the robot velocity is determined, a gait with a small step length and a short gait cycle should be chosen.
For the step height H and standing height , there are conflicts between low energy consumption and control effectiveness. Therefore, the selection of these parameters should consider the actual terrain and control situation.
Most researchers only study foot trajectories with the duty cycle as 50%. From the results in
Figure 17, we can know that the optimal duty cycle falls into the range of 0.3–0.5, which would make the common trot gait become a flying trot gait.
According to the above discussions, for a typical situation with the robot velocity as 1 m/s, the gait parameters are chosen as follows: step length S = 0.25 m, gait cycle T = 0.5 s, step height H = 0.08 m, standing height = 0.6 m, and gait cycle = 0.4. The energy consumptions under these gait parameters can be calculated as 217.45 J, 102.39 J, and 319.84 J for the stance phase, swing phase, and total consumption. The energy cost of this condition is 639.68 J/m.
6. Conclusions
In this work, the energy consumption conditions of the quadruped robot SCalf are studied. The kinematics model of the robot was studied, and the dynamics model was established based on the foot force distribution analysis. A complete energy model including the mechanical power and heat rate was derived. In order to describe the motions of the robot, a universal foot trajectory based on cubic spline interpolation is proposed. Different gait parameters including step length, gait cycle, step height, standing height, and duty cycle are considered in the trajectory. After obtaining the equations of the foot trajectory, the influences of different gait parameters on energy consumption are studied through a simulation. According to the results of the simulation, during the motion, a trot gait with a short step length and a small gait cycle should be chosen. The obstacle crossing ability and motion stability need to be considered in the selection of the standing height and step height. The duty cycle of the gait should be selected in the range of 0.3 to 0.5. For a typical situation with the robot velocity as 1 m/s, the gait parameters are chosen as follows: step length S = 0.25 m, gait cycle T = 0.5 s, step height H = 0.08 m, standing height = 0.6 m, and gait cycle = 0.4.