Research Article  Open Access
Galloping Trajectory Generation of a Legged Transport Robot Based on Energy Consumption Optimization
Abstract
Legged walking robots have very strong operation ability in the complex surface and they are very suitable for transportation of tools, materials, and equipment in unstructured environment. Aiming at the problems of energy consumption of legged transport robot during the fast moving, a method of galloping trajectory planning based on energy consumption optimization is proposed. By establishing transition angle polynomials of flight phase, liftoff phase, and stance phase and constraint condition between each state phase, the locomotion equations of the ellipse trajectory are derived. The transition angle of each state phase is introduced into the system energy consumption equations, and the energy optimization index based on transition angles is established. Inverse kinematics solution and trajectory planning in one gait cycle are applied to genetic algorithm process to solve the nonlinear programming problem. The results show that the optimized distribution of transition angles of state phases is more reasonable, and joint torques and system energy consumption are reduced effectively. Thus, the method mentioned above has a great significance to realize fast operation outdoors of transport robot.
1. Introductions
With the development of technology, upgrading the traditional construction machinery products by using the computer control technology and robot technology and so forth has become an inevitable trend. By increasing the hightech content, the purposes of improving operational efficiency and work quality and reducing fuel consumption and construction cost can be achieved. Due to the fact that legged robot has much difference with wheeled and tracked robot in structure, which only needs some continuous and discrete foot tip during the motion, it has stronger operation ability in complex environments such as striding over obstacles and passing the rugged, unstructured, or muddy surface easily. That is very suitable for transportation of tools, materials, and equipment in unstructured environment. Because legged robot has the characteristics of multiDOF, construction complexity, uneasy control, and easy overturn, most of legged robot ensures stability during the motion by keeping contact with surface with one or more legs [1]. However, highspeed operation will be limited by this type of exercise, which caused the fact that primary control strategies currently can only achieve fast gait such as work or jog. The speed can be improved effectively if the foot tip of robot can be made off the ground for a period of time in the process of moving. That will enable the biped robot and multilegged robot to achieve the running in the real meaning [2].
In recent years, many researchers have engaged in research on multilegged robot running [3–5]. Kim and Park [6] proposed a leg trajectory that is generated by elliptic motion based on lip joint and keen joint. Meanwhile, the gallop was achieved by analyzing the movement rules of the robot during the contact with surface. More than that, all kinds of galloping styles can also be generated by controlling parameters such as the center of long and short axis of elliptical trajectory and rotation velocity. Step control and force redistribution strategy were proposed by Palmer III and Orin [7], which was used for controlling the locomotion of the robot. That allowed the quadruped to reach a speed of 4.75 m/s and turn at a rate of 20 degrees/s. Focchi et al. [8] were successful in trotting gait with elliptical trajectory generated by Central Pattern Generation (CPG) and controlled by reflection trajectory, which guarantees the stability combined with body posture controller. Marhefka et al. used fuzzy control techniques to control both bounding and galloping of multirobot [9], and they mapped inverse kinematics to a fuzzy system using intuitive heuristics. According to the question that the time of touchdown phase and swing phase are constant within the existing strategy of galloping trajectory, Capi et al. [10] reestablished the polynomial of trajectory and motion state of the robot, which was optimized by using genetic algorithm, and thus the more reasonable galloping trajectory was obtained. Roh and Park [11] proposed a simple and efficient galloping algorithm with elliptic trajectory. This method can effectively keep body height and body balance in the process of gallop based on angular momentum and fuzzy logic control, in which the desired reaction forces are obtained by angular momentum analysis and the fuzzy logic control used for keeping galloping stability.
Generally, during the running and galloping, flight phase when the robot is completely off the ground and stance phase when the robot is in contact with the ground are repeated in sequence. During the fight phase, the robot is completely governed by the gravity. This indicated that the motion of the robot in flight is decided by the robot motion during the previous stance phase [12]. Of course, another issue is the energy consumption during the moving process. The battery life is an important indicator when transport robots work outdoors independently. However, energy consumption will increase with the speed increased. So, if we make energy consumption an optimization index, it can be effectively reduced by dividing duration of each state and range of motion reasonably. To sum up, aiming at the problems about energy consumption in trajectory generation of multilegged robot, this paper proposes a galloping trajectory strategy based on energy consumption optimization. By deriving the function of elliptic trajectory, we introduce transition angles of state phase into system energy consumption equation as variables. And this issue of nonlinear planning can be solved by using genetic algorithm. This method enables making energy consumption optimization as objective to divide each state phase reasonably. The advantages of this method are that it can reduce energy consumption effectively and increase cruising ability of robot.
2. Modeling and Galloping Trajectory Generation
2.1. Transport Robot Model with Mammalian Configuration
Due to the fact that transport robot needs capacity of loading, we adopt a kind of legged structure with mammalian configuration. On the other hand, the advantages of all the legs with the same design in terms of design cost, replacement, modularity, and so on are also considered [13]. Compared with the structure of imitated insects, the workspace and flexibility are reduced, but the advantages of low energy and high load are more suitable for transportation in the construction. The mechanical model of hexapod transport robot is shown in Figure 1. Each of the legs consists of three parts which are connected by a hip joint and a knee joint, and the leg mechanism is attached to the body via a root joint. Each of the legs has three joints, and the length of each link has been optimized [14], which can be regarded as a manipulator with three rotating joints attached to a stationary base (the robotic body). Hence, the establishment of kinematic model and the derivation of the kinematic equation can follow the traditional method of robot technology, which can be obtained by defining the reference coordinate system according to the Denavit–Hartenberg model. The body of the robot is made of aluminumalloy material, which is used to load controller, power supply module, and load. Material of sponge is adhered to the foot tip, which can effectively prevent skid and reduce the impact force from ground.
2.2. Galloping Trajectory Generation
A cycle of animal movements is divided into two states: [15] swing phase and touchdown phase. But the position and speed during the gallop are the most important factors in effecting robot motion. Here, the swing phase is further divided to two phases: flight phase and liftoff phase. In this paper, we adopt elliptic trajectory to generate galloping trajectory [16]. The entire trajectory is made of three transition angles , , and , which represent flight phase, touchdown phase, and and liftoff phase, respectively. , , and are initial angles of each state, which are shown in Figure 2. Those transition angles are obtained by Hermite interpolation algorithm and interconnected by continuous conditions. Thus, the gallop is achieved.
We assume the whole body of the robot is a mass. According to free fall conditions,in which is the time of free fall and is falling height of body. The condition of section is from contact off to contact on, and the COG velocity is . The ellipse angle is determined by a cubic polynomial, and the 4 unknown parameters are determined by the following 4 constraints:in which and are origin angle and end angle belonging to state, and are origin velocity and end velocity belonging to state, and is the motion velocity of body. and of flight state are all determined by cubic polynomial, which is shown in (3). According to the 4 constraints, (4) can be obtained, and then to solve it,
However, in the section, the feet tip of robot is keeping contact with ground all the time, and the COG velocity is . The ellipse angle is determined by a firstorder polynomial, and the 2 unknown parameters are determined by the equation of and of flight section when the foot first contacts ground:
In section, the condition of the foot tip of robot is from contact on to contact off, and the COG velocity is . The elliptic angle of this section is similar to the section of flight, which is determined by a cubic polynomial, and the 4 unknown parameters are determined by the following 4 constraints:
On section, each and are similar to , which are determined by a cubic polynomial equation (7), and it can be solved by following 4 constraints (6):
To sum up, each polynomial based on analysis above can be solved by corresponding constraints one by one, and the whole curve of the ellipse angle is determined, which is shown in Figure 3. According to the change of ellipse angle and following ellipse equation, the ideal location of foot tip of the robot leg can be obtained: in which and are coefficients of long and short axis of ellipse, and are front direction and vertical direction, and and are abscissa and ordinate of elliptical center.
3. Energy Consumption Model during Gallop
It can be known from above that as long as , , and are determined, the whole galloping trajectory is determined too. Taking the condition of transport robots working outdoors independently into consideration, energy consumption is a very important factor. So, in this paper, energy consumption is made as the optimization index, and the degrees of each state are determined by minimum system. Firstly, we establish the model of energy consumption during the gallop.
In this paper, the rotation of each joint of the robot leg is realized by brushless DC motor and reducer with corresponding motor controller. The related functions can be expressed as below [13].
Voltage balance function of DC motor is
According to static characteristics of DC motor, we have
For output torque of motor and joint driving torque, we have
According to speed of motor and joint speed, we obtainin which is the EMF constant, is the torque constant, and are the linear resistance and inductance, and are the armature voltage and current, is the gear reduction ratio, and are the speed of motor and joint, is the motor and gear efficiency, is the electromagnetic torque, and is the joint torque.
The instantaneous power of the motor is
Substituting (9) into (13), we obtain
Substituting (10) and (11) into (14), we obtainin which inductance is the energy storage element and if the energy is invariant from the beginning to the end of a period, the energy loss of the inductance can be neglected. Then, the instantaneous power of the motor becomes [16]
Taking all joints in the leg into consideration, the total energy of a single leg in a walking gait cycle becomes [16]in which is defined as
Here, is cycle time, the duration of each leg’s one step cycle in a periodic gait. , , , and are constant. The value of depends on the trajectory planning. is derived by Lagrange’s dynamical equations.
Since the transition angles of each state phase , , are the parameters to be optimized and they determine the final leg trajectory and ideal location of foot tip , according to the inverse kinematics function, we havein which
Usually, is the position vector of foot tip in the leg reference frame and is given by the gait and trajectory planning. Joint angle, joint angular speed, and angular acceleration can be solved by inverse kinematics function, expressed as
Joint angle, joint angular speed, and angular acceleration can be calculated through the initial and final state of the locomotion trajectory, but it is still a function with reference to and .
For the joint torque,
is a symmetric matrix associated with acceleration, which involves the inertia tensor, is the Coriolis and centrifugal matrix, and is the gravity matrix. According to the derivation above, they are all the function with and . Hence, the power equation (16) and total energy consumption equation (17) of the threejointed leg system can be formulated aswhere and is a unit matrix of 3 by 3,
It can be known from above that the whole galloping trajectory can be determined as long as , , and are confirmed. According to the inverse kinematics function, the rotation trajectory of each joint can be determined, and then the joint torque and systematic energy consumption are obtained. The function with and can be obtained by substituting unknown transition angles of state phase into systematic energy consumption equation. , , and can be confirmed as long as the minimum energy consumption is obtained by optimization. Based on the equation above, taking the energy consumption as optimization index, the state phase transition angle that is meeting the requirement of energy consumption can be obtained by solving (29) which means that the galloping trajectory planning is completed:where is initial range of state phase transition angle.
4. Optimal Solutions with Genetic Algorithm
The genetic algorithm is used for solving this optimization problem that has linear or nonlinear constrained condition. It is based on natural selection, solved by biological evolution. It is widely used in various optimization problems [17]. This method is described in Figure 4.(1)Firstly, we create a population with n size and then select the new state phase transition angle within the constraint and then put it into the galloping trajectory planner to calculate. In one gait period, the running speed and stride sizes are all determined by gait generator [16]. For each individual, the initial position and the end position are obtained by the trajectory planning. According to the initial and end condition, the initial and end joint angle, angular speed, and angular accelerations are obtained by inverse kinematics equation (21).(2)Joint torques can be obtained by joint angle, angular speed, angular accelerations, and (22), and total energy consumption in one gait period can be obtained by (27). According to constraint condition, punishment factors are given and fitness is valuated. The inferior individuals are removed and superior individual with a number of m are to be saved directly to the next generation.(3)If the stopping criterion is satisfied after evaluating the fitness, the optimization will stop. Otherwise, the new individual will be produced continually and create the next generation by selection, rebuilding, cross, and variation. During the optimization, cross probability is , variation probability is , and penalty factor is . And the variation of mean fitness is shown in Figure 5.
In this paper, the parameters of the system are shown in Table 1. The length of each joint is , , , the long and short axis coefficient are , , and the boundary of the variations is

The change of the final fitness is smaller than 10^{−6} after 51 generations, and the final result is shown below:
5. Simulations
In this section, the ellipse trajectory planning during the gallop is simulated by the software Matlab/Simulink. It is assume that the robot goes forward along the axis on the horizontal ground, the length of a single step is 0.15 m in a cycle time, the relative height between the root joint of leg and ground is 0.17 m, and the gait cycle is 2 s. Galloping trajectory is generated based on the parameters of DH model established in Matlab/Simulink, which is shown in Table 1.
According to the original and optimized state phase transition angle and galloping trajectory of the robot, the objective trajectory of foot tip based on rootjoint coordinate is generated, which is shown in Figure 6. The parameter is used before the optimization, which is obtained by deriving the ideal stepsize. Compared with the optimized parameter , both of the ellipse trajectories are similar basically and just differ in the division of each phase. After optimization, the angles of each state phase have a significant difference, flight phase increased, touchdown phase decreased, and the range of each state phase changed, which can be seen from the hip and knee joint movement angle (Figure 7). In the range of 0 to 0.65 seconds approximately, regardless of the optimization or not, the joint angles are all in the liftoff phase and unchanged basically. However, when near to 0.56 seconds, the optimized trajectory begins to transform with large degree and enters into the touchdown phase early. After that, the optimized trajectory becomes bigger than initial. It makes the distribution of work more reasonable during the motion.
(a) Hip joint
(b) Knee joint
The torques curves of each joint are shown in Figure 8. Joint torque almost does not work in 0–0.65 s, which is corresponding with the locomotion. The main reason it is that the leftoff phase is free fall and do not need to overcome its own weight to do work. However, after 0.65 s, the optimized trajectory enters the flight phase firstly and do more work than before. But in the liftoff phase later, the work of optimized trajectory regardless of hip joint and knee joint is much smaller than nonoptimization.
(a) Hip joint
(b) Knee joint
This is also reflected in the system energy consumption during the movement, which is shown in Figure 9. Due to the existing of touchdown phase, the system energy consumption of optimized trajectory is larger than nonoptimization during 0.65 seconds to 1.5 seconds. But the optimized parameters are more reasonable obviously in the liftoff phase. After optimization, the system energy consumption is reduced by 23% in one gait period. It illustrates that the method of trajectory planning based on energy consumption optimization is reasonable and effective.
6. Conclusions
In this paper, using the existed transportation robot model, the ideal foot tip function based on elliptic galloping trajectory is derived by establishing the transition angles of flight phase, touchdown phase, and liftoff phase and constraint condition of each phase. On the basic analysis of the robot leg dynamics and the joint drive motor model, the formula of joint torque is derived, system energy consumption model is established, and it introduces the galloping state phase transition angle of the robot into that model, and then the index of energy consumption optimization is proposed based on the transition angle. The genetic algorithm is used for optimization. We introduce the inverse kinematics solution and the galloping trajectory planning into the process of the genetic algorithm to solve. The result shows that the distribution of optimized state phase transition angles is more reasonable, and it can reduce joint torque and energy consumption effectively. Although the algorithm proposed in this paper is based on the motor model, it can also apply to other legged robots.
Competing Interests
The authors declare that they have no competing interests.
Acknowledgments
The project supported by Natural Science Basic Research Plan in Shaanxi Province of China (Program no. 2016JQ6066); project funded by China Postdoctoral Science Foundation (no. 2016M592728); Fundamental Research Funds for the Central Universities (no. 310825151041) are acknowledged.
References
 A. Irawan and K. Nonami, “Optimal impedance control based on body inertia for a hydraulically driven hexapod robot walking on uneven and extremely soft terrain,” Journal of Field Robotics, vol. 28, no. 5, pp. 690–713, 2011. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 A. Goswami and V. Kallem, “Rate of change of angular momentum and balance maintenance of biped robots,” in Proceedings of the IEEE International Conference on Robotics and Automation (ICRA '04), vol. 4, pp. 3785–3790, New Orleans, La, USA, May 2004. View at: Publisher Site  Google Scholar
 S. G. Roh and J. H. Park, “A 3D galloping of a quadruped robot based on force tracking control,” in Proceedings of the IASTED International Conference on Modelling, Identification, and Control, pp. 1166–1171, 2011. View at: Google Scholar
 A. Kawamura, K. Sugio, K. Suzuki, and C. Zhu, “Simulation study on one leg jumping for biped running,” in Proceedings of the 8th IEEE International Workshop on Advanced Motion Control (AMC '04), pp. 433–438, Kawasaki, Japan, March 2004. View at: Google Scholar
 I. Poulakakis, J. A. Smith, and M. Buehler, “On the dynamics of bounding and extensions: towards the halfbound and gallop gaits,” in Adaptive Motion of Animals and Machines, H. Kimura, K. Tsuchiya, A. Ishiguro, and H. Witte, Eds., pp. 79–88, Springer, Tokyo, Japan, 2006. View at: Publisher Site  Google Scholar
 K. Y. Kim and J. H. Park, “Ellipsebased legtrajectory generation for galloping quadruped robots,” Journal of Mechanical Science and Technology, vol. 22, no. 11, pp. 2099–2106, 2008. View at: Publisher Site  Google Scholar
 L. R. Palmer III and D. E. Orin, “Force redistribution in a quadruped running trot,” in Proceedings of the IEEE International Conference on Robotics and Automation (ICRA '07), pp. 4343–4348, IEEE, Rome, Italy, April 2007. View at: Publisher Site  Google Scholar
 M. Focchi, V. Barasuol, I. Havoutis, J. Buchli, C. Semini, and D. G. Caldwell, “Local reflex generation for obstacle negotiation in quadrupedal locomotion,” in Proceedings of the International Conference on Climbing Walking Robots (CLAWAR '13), pp. 443–450, 2013. View at: Google Scholar
 D. W. Marhefka, D. E. Orin, J. P. Schmiedeier, and K. J. Waldron, “Intelligent control of quadruped gallops,” IEEE/ASME Transactions on Mechatronics, vol. 8, no. 4, pp. 446–456, 2003. View at: Publisher Site  Google Scholar
 G. Capi, S. Kaneko, K. Mitobe, L. Barolli, and Y. Nasu, “Optimal trajectory generation for a prismatic joint biped robot using genetic algorithms,” Robotics and Autonomous Systems, vol. 38, no. 2, pp. 119–128, 2002. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 S. G. Roh and J. H. Park, “Gallop with speed change for quadruped robots,” in Proceedings of the IEEE International Conference on Robotics and Biomimetics (ROBIO '11), pp. 2787–2792, Phuket, Thailand, December 2011. View at: Publisher Site  Google Scholar
 K. Y. Kim, O. Kwon, J. S. Yeon, and J. H. Park, “Elliptic trajectory generation for galloping quadruped robots,” in Proceedings of the IEEE International Conference on Robotics and Biomimetics (ROBIO '06), pp. 103–108, IEEE, Kunming, China, December 2006. View at: Publisher Site  Google Scholar
 T. Zielinska and J. Heng, “Development of a walking machine: mechanical design and control problems,” Mechatronics, vol. 12, no. 5, pp. 737–754, 2002. View at: Publisher Site  Google Scholar
 Y.G. Zhu, B. Jin, W. Li, and S.T. Li, “Optimal design of hexapodwalking robot leg structure based on energy consumption andworkspace,” Transactions of the Canadian Society for Mechanical Engineering, vol. 38, no. 3, pp. 305–317, 2014. View at: Google Scholar
 J. A. Galvez, J. Estremera, and P. G. De Santos, “A new leggedrobot configuration for research in force distribution,” Mechatronics, vol. 13, no. 89, pp. 907–932, 2003. View at: Publisher Site  Google Scholar
 B. Jin, C. Chen, and W. Li, “Power consumption optimization for a hexapod walking robot,” Journal of Intelligent & Robotic Systems, vol. 71, no. 2, pp. 195–209, 2013. View at: Publisher Site  Google Scholar
 G. Capi, Y. Nasu, L. Barolli, K. Mitobe, and K. Takeda, “Application of genetic algorithms for biped robot gait synthesis optimization during walking and going upstairs,” Advanced Robotics, vol. 15, no. 6, pp. 675–694, 2001. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2016 Yaguang Zhu and Tong Guo. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.