Multi-objective Gait Planning for an Embodied Robot

This paper presents a complete framework for multi-objective gait planning of a biped humanoid robot, with emphasis on the concept of an embodied robot where the physical body, actuation, sensing and computational planning are tightly coupled. Gait generation is decomposed into three phases: start-up, periodic walking and stop. The trajectories of the ankle and hip joints are represented by cubic spline interpolation and parameterized by a set of gait parameters. Since stability, energy consumption and walking speed are conflicting in nature, the gait parameter optimization is formulated as a multi-objective problem. The Strength Pareto Evolutionary Algorithm 2 (SPEA2) is employed to obtain a set of Pareto-optimal gait parameters that trade off these objectives. Numerical simulations and physical experiments on an embodied robot platform validate the effectiveness of the proposed approach.

1. Introduction

An embodied robot is not merely a computer program controlling a mechanical body; it is a system in which the body morphology, actuator dynamics, sensor information and control strategies collectively determine the behavior. Biped humanoid robots are typical examples of embodied robot systems because their highly nonlinear, underactuated and unstable walking dynamics require synchronous coordination between mechanical structure and computational intelligence. The complexity of a biped structure makes the control of flexible and stable walking a challenging problem. Kinematic modeling is the prerequisite for walking implementation. In this work, the Robonova-1 small humanoid platform is adopted as an embodied robot testbed. The forward and inverse kinematics are derived in detail based on its specific structural model.

Gait planning aims to generate joint reference trajectories that allow an embodied robot to move in a stable and energy-efficient manner. According to the periodicity of walking, a complete walking process can be divided into independent periodic phases. In each phase, only a few key postures are defined, and all intermediate postures are generated by cubic spline interpolation. The ankle and hip trajectories are parameterized so that once the gait parameters are chosen, the entire walking trajectory is determined. Hence, determining suitable gait parameter values becomes a central problem.

Existing gait optimization algorithms often consider only a single objective. However, the optimal solution of one objective does not necessarily imply the overall optimality of the embodied robot walking performance. This paper treats gait optimization as a multi-objective optimization problem, constructing three objective functions for stability, energy consumption and walking speed. These three objectives are in conflict: the fastest gait may consume more energy, while an extremely stable gait may reduce speed. Directly weighting the objectives into a scalar sum cannot properly handle such conflicting objectives. We therefore apply the multi-objective evolutionary algorithm SPEA2 to solve the multi-objective gait parameter optimization problem. The final output is a set of Pareto-optimal gait parameters that represent the best compromises among the three objectives. Simulations and experiments on the real embodied robot demonstrate the practicality of the method.

2. Kinematic Modeling of the Biped Humanoid Robot

2.1 Structure Analysis

The embodied robot used in this study has 16 degrees of freedom in total. The legs are the primary focus for walking control. Each leg has 5 DOF: 2 at the hip, 1 at the knee, and 2 at the ankle. The arms have 3 DOF each. Table 1 summarizes the DOF configuration.

Part DOF
Shoulder 2-DOF per arm
Elbow 1-DOF per arm
Hip 2-DOF per leg
Knee 1-DOF per leg
Ankle 2-DOF per leg
Total 16-DOF

Table 2 lists the main structural parameters of the embodied robot, including link masses and lengths used in the dynamic calculations.

Structure Mass (kg) Length (mm)
Torso 0.54 90
Shank 0.06 46
Thigh 0.13 84
Joint bracket 0.004 24

The embodied robot is modeled as a seven-link system: one torso link, two thigh links, two shank links, and two foot links. The joint variables are the generalized coordinates $\theta_i$ ($i=1,\dots,7$) measured from the vertical axis in the sagittal plane, as illustrated in the original model. The coordinate frame is defined with the origin at the midpoint of the two hip joints projected on the ground; the $x$-axis is the forward direction, the $y$-axis is lateral, and the $z$-axis is vertical.

2.2 Forward Kinematics

Forward kinematics determines the position of the swing foot and the links given the joint angles $\theta_i$. Let $\theta_1=\theta_7=0$ for the foot orientation in flat contact. Assuming the left leg is the support leg, the positions of the joints in the sagittal plane are expressed as:

$$
\begin{aligned}
x_B &= x_A + l_2 \sin\theta_2,\\
z_B &= z_A + l_2 \cos\theta_2,\\
x_C &= x_A + l_2 \sin\theta_2 + l_3 \sin\theta_3,\\
z_C &= z_A + l_2 \cos\theta_2 + l_3 \cos\theta_3,
\end{aligned}
$$

where $l_2$ and $l_3$ are the shank and thigh lengths. The hip position is $(x_h,z_h)=(x_C,z_C)$. The swing ankle coordinate $(x_a,z_a)$ satisfies:

$$
\begin{aligned}
x_a &= x_A + l_2 \sin\theta_2 + l_3 \sin\theta_3 – l_5 \sin\theta_5 – l_6 \sin\theta_6,\\
z_a &= z_A + l_2 \cos\theta_2 + l_3 \cos\theta_3 – l_5 \cos\theta_5 – l_6 \cos\theta_6.
\end{aligned}
$$

The center of mass coordinates $(x_{ci},z_{ci})$ of each link can be computed similarly using the distance $a_i$ from the lower joint to the link center. The overall center of gravity of the embodied robot is:

$$
g_x = \frac{\sum_{i=1}^7 m_i x_{ci}}{\sum_{i=1}^7 m_i}, \qquad
g_z = \frac{\sum_{i=1}^7 m_i z_{ci}}{\sum_{i=1}^7 m_i}.
$$

2.3 Inverse Kinematics

Inverse kinematics computes the joint angles from the desired hip and swing ankle positions. From the geometric constraints, the angles can be solved as:

$$
\theta_2 = \arccos\!\left(\frac{(z_h-z_l)^2+(x_h-x_l)^2+l_2^2-l_3^2}{2l_2\sqrt{(z_h-z_l)^2+(x_h-x_l)^2}}\right)
– \arctan\!\left(\frac{x_h-x_l}{z_h-z_l}\right),
$$

$$
\theta_3 = \arccos\!\left(\frac{(z_h-z_l)^2+(x_h-x_l)^2+l_3^2-l_2^2}{2l_3\sqrt{(z_h-z_l)^2+(x_h-x_l)^2}}\right)
+ \arctan\!\left(\frac{x_h-x_l}{z_h-z_l}\right),
$$

where $(x_l,z_l)$ is the support ankle. Similarly, the swing leg angles $\theta_5,\theta_6$ are obtained from the hip and swing ankle coordinates. The torso is kept upright during walking, i.e., $\theta_4=0$. The relative joint angles are then derived from the generalized coordinates, enabling direct servomotor command generation.

3. Parametric Design of Gait Trajectories

3.1 Walking Phase Decomposition

An embodied robot walking cycle consists of alternating single-support and double-support phases. The whole walking process is decomposed into three phases: start-up, periodic walking, and stopping. In the start-up phase, the robot moves from a standing posture with feet together to a state where one foot is placed forward. The periodic walking phase can be represented by a set of key postures at time instants $kT_c$, $kT_c+T_d$, $kT_c+0.5T_d$, $kT_c+T_m$, and $(k+1)T_c$. Finally, the stopping phase brings the swinging foot back next to the support foot.

3.2 Cubic Spline Interpolation

Cubic spline interpolation is used to generate smooth continuous trajectories between the key postures. Given a set of points $(t_j, f_j)$, the spline function $S(t)$ on each interval $[t_j,t_{j+1}]$ is a cubic polynomial:

$$
S(t) = \frac{M_j(t_{j+1}-t)^3 + M_{j+1}(t-t_j)^3}{6h_j}
+ \left(f_j – \frac{M_j h_j^2}{6}\right)\frac{t_{j+1}-t}{h_j}
+ \left(f_{j+1} – \frac{M_{j+1} h_j^2}{6}\right)\frac{t-t_j}{h_j},
$$

where $h_j = t_{j+1}-t_j$, and $M_j = S”(t_j)$ are solved from the continuity conditions. This guarantees $C^2$ continuity, which yields smooth and stable joint trajectories for the embodied robot.

3.3 Parameter Definition and Trajectory Generation

The following gait parameters are defined:

  • $D_s$: step length
  • $T_c$: gait cycle time
  • $H_{ao}$: maximum ankle height
  • $L_{ao}$: forward displacement of the ankle to the highest point
  • $H_{\max}$, $H_{\min}$: maximum and minimum hip heights
  • $x_{sd}$, $x_{ed}$: hip displacement relative to support ankle at single-support boundaries
  • $q_b$, $q_f$: foot-ground angles at lift-off and touchdown

During the periodic phase, the ankle trajectory $x_a(t)$ is expressed as a cubic polynomial in each interval:

$$
x_a(t) = a_0 + a_1(t-kT_c) + a_2(t-kT_c)^2 + a_3(t-kT_c)^3,
$$

with coefficients determined by boundary conditions:

$$
\begin{aligned}
x_a(kT_c) &= kD_s,\\
x_a(kT_c+T_d) &= kD_s + l_{an}\sin q_b + l_{af}(1-\cos q_b),\\
x_a(kT_c+T_m) &= kD_s + L_{ao},\\
x_a((k+1)T_c) &= (k+1)D_s – l_{an}\sin q_f – l_{af}(1-\cos q_f).
\end{aligned}
$$

Here $l_{an}$ is the distance from the ankle joint to the foot sole, and $l_{af}$ is the distance from the ankle joint to the front of the foot. Similarly, the ankle height $z_a(t)$ and foot orientation $\theta_a(t)$ are interpolated with cubic splines. The hip trajectory $x_h(t)$ and $z_h(t)$ are also expressed as polynomials, with the hip height switching between $H_{\min}$ and $H_{\max}$. This parameterization maps the gait planning problem into a parameter search problem, which is suitable for the embodied robot optimization framework.

4. Multi-objective Gait Parameter Optimization

4.1 Problem Formulation

Let $\mathbf{x} = (D_s, T_c, L_{ao}, H_{ao}, H_{\max}, H_{\min}, x_{sd}, x_{ed}, q_b, q_f)$ be the decision vector containing the gait parameters. The multi-objective optimization problem is:

$$
\min_{\mathbf{x}} \quad \mathbf{f}(\mathbf{x}) = \big(f_1(\mathbf{x}), f_2(\mathbf{x}), f_3(\mathbf{x})\big),
$$

where $f_1$ measures instability, $f_2$ measures energy consumption, and $f_3$ measures walking time (inversely proportional to speed). The Pareto dominance relation is used to compare solutions. A solution $\mathbf{a}$ dominates $\mathbf{b}$ if $f_i(\mathbf{a}) \le f_i(\mathbf{b})$ for all $i$ and $f_j(\mathbf{a}) < f_j(\mathbf{b})$ for at least one $j$. The set of nondominated solutions forms the Pareto optimal front.

4.2 Constraint Handling

To reduce the search space and maintain physical feasibility, the gait parameters are bounded based on human walking analysis:

$$
\begin{aligned}
&2(l_{ab}+l_{af}) \le D_s \le 2(l_{ab}+l_{af}) + 2l_{th},\\
&l_{an} \le H_{ao} \le l_{an} + l_{sh},\\
&\frac{l_{ab}+l_{af}}{2} \le L_{ao} \le \frac{l_{ab}+l_{af}}{2} + 3l_{sh},\\
&0 \le q_b \le \frac{\pi}{3}, \quad 0 \le q_f \le \frac{\pi}{3},\\
&l_{an}+l_{sh} \le H_{\max} \le l_{an}+l_{sh}+l_{th}+l_{tr},\\
&l_{an}+l_{sh} \le H_{\min} \le l_{an}+l_{sh},\\
&l_{ab}+l_{af} \le x_{sd} \le l_{ab}+l_{af},\\
&l_{ab}+l_{af} \le x_{ed} \le l_{ab}+l_{af}+2l_{th},\\
&5 \le T_c \le 15.
\end{aligned}
$$

Additionally, the double-support duration is set to $T_d = 0.2 T_c$. During optimization, any solution that violates the ZMP stability region or the inverse kinematics feasibility is penalized by adding a large constant to its objective values.

4.3 Stability Objective

The zero moment point (ZMP) criterion is used to quantify dynamic stability. The actual ZMP in the horizontal plane is computed as:

$$
x_{zmp} = \frac{\sum_{i=1}^7 m_i(\ddot{z}_i + g) x_i – \sum_{i=1}^7 m_i \ddot{x}_i z_i – \sum_{i=1}^7 I_{iy} \ddot{\Omega}_{iy}}{\sum_{i=1}^7 m_i(\ddot{z}_i + g)},
$$

$$
y_{zmp} = \frac{\sum_{i=1}^7 m_i(\ddot{z}_i + g) y_i – \sum_{i=1}^7 m_i \ddot{y}_i z_i – \sum_{i=1}^7 I_{ix} \ddot{\Omega}_{ix}}{\sum_{i=1}^7 m_i(\ddot{z}_i + g)}.
$$

Let $(x_{dzmp}, y_{dzmp})$ be the desired ZMP trajectory located at the center of the support polygon. The stability objective is the averaged distance error over one gait cycle:

$$
f_1(\mathbf{x}) = \frac{1}{N} \sum_{k=0}^{N-1} \left[ \left(x_{zmp}(kT_s) – x_{dzmp}(kT_s)\right)^2 + \left(y_{zmp}(kT_s) – y_{dzmp}(kT_s)\right)^2 \right],
$$

where $T_s$ is the sampling period and $N = T_c / T_s$. A smaller $f_1$ indicates better stability.

4.4 Energy Consumption Objective

Energy consumption is largely influenced by joint accelerations. The energy objective considers the angular acceleration of the swing leg and the vertical movement of the ankle. It is defined as:

$$
f_2(\mathbf{x}) = \frac{1}{N} \sum_{k=0}^{N-1} \left( z_a(kT_s) + \left|\ddot{\theta}_5(kT_s)\right| \right),
$$

where $z_a$ is the height of the swing ankle, and $\ddot{\theta}_5$ is the angular acceleration of the swing thigh. Minimizing $f_2$ reduces both the excessive joint torque and the unnecessary vertical motion, thus lowering the energy demand of the embodied robot.

4.5 Speed Objective

The walking speed is defined as the step length divided by the cycle time. Since the optimization problem is formulated as minimization, the speed objective is the inverse of the speed:

$$
f_3(\mathbf{x}) = \frac{T_c}{D_s}.
$$

Minimizing $f_3$ yields a faster walking gait. Clearly, increasing speed may degrade stability and increase energy consumption, hence the conflict among the three objectives.

5. Algorithm and Experimental Results

5.1 SPEA2 Implementation

SPEA2 is adopted to solve the multi-objective gait optimization problem. The algorithm maintains an internal population $P$ and an external archive $A$. The fitness assignment combines Pareto dominance information with density information. In each generation, nondominated individuals from both populations are copied to the archive; if the archive size exceeds the limit, a truncation method based on the $k$-th nearest neighbor removes crowded members. Mating selection uses binary tournament, and crossover and mutation are applied to generate the next population. The algorithm parameters are set as follows:

Parameter Value
Population size $N$ 80
Archive size $M$ 80
Maximum generations $T$ 100
Crossover probability $P_c$ 0.8
Mutation probability $P_m$ 0.1

Each gait parameter is encoded with 10 binary bits, and the concatenated chromosome represents a candidate solution. The optimizer produces a set of Pareto-optimal gait parameter vectors in one run.

5.2 Pareto Front and Gait Generation

Figure 1 shows the obtained Pareto front in the three-dimensional objective space. The points are well distributed, indicating diverse trade-offs among stability, energy and speed. Three representative nondominated gait solutions are selected for further analysis.

Parameter Gait 1 Gait 2 Gait 3
$D_s$ (mm) 58.56 63.36 65.09
$T_c$ (s) 1.81 2.30 2.01
$L_{ao}$ (mm) 48.10 51.00 52.91
$H_{ao}$ (mm) 37.96 41.02 43.81
$H_{\max}$ (mm) 138.16 136.09 132.97
$H_{\min}$ (mm) 131.46 132.03 129.99
$x_{sd}$ (mm) 17.99 15.84 17.46
$x_{ed}$ (mm) 26.95 30.22 31.77
$q_b$ (rad) 0.450 0.347 0.427
$q_f$ (rad) 0.391 0.772 0.912
$f_1(\mathbf{x})$ 0.0613 0.0519 0.0679
$f_2(\mathbf{x})$ 0.2353 0.2582 0.3481
$f_3(\mathbf{x})$ 0.0309 0.0344 0.0308

Using these three solutions, the cubic spline based trajectory generation described in Section 3 is applied to reconstruct the joint motions. The ankle trajectories, hip trajectories, and foot orientation trajectories are all smooth and continuous, confirming that the generated gaits are executable by the embodied robot. The resulting walking simulations show that each Pareto solution realizes a distinct, but balanced, behavioral preference: Gait 2 is more stable, Gait 3 is slightly faster, and Gait 1 consumes less energy. The decision maker can select the most suitable gait according to task demand without rerunning the optimization.

5.3 Comparison with Weighted Sum Method

To demonstrate the advantage of SPEA2, the same problems are solved using a weighted-sum approach with three objectives aggregated into a single scalar function. Table 4 reports the best and average values over 20 independent runs.

Optimization objective SPEA2 best SPEA2 average Weighted sum best Weighted sum average
$f_1(\mathbf{x})$ 0.0519 0.0601 0.0608 0.0792
$f_2(\mathbf{x})$ 0.2353 0.3025 0.2991 0.3856
$f_3(\mathbf{x})$ 0.0354 0.0376 0.0392 0.0419
Computational time (s) 30.6 34.2 39.1 45.5

The SPEA2 method yields better best and average values for all three objectives, while also requiring less computational time. More importantly, a single run of SPEA2 produces an entire set of nondominated solutions, whereas the weighted-sum method needs multiple runs with different weight combinations to approximate the trade-off surface. Thus SPEA2 is more suitable for the multi-objective gait optimization of the embodied robot.

5.4 Experimental Validation on the Physical Robot

One of the Pareto-optimal gaits is transferred to the actual Robonova-1 embodied robot. The joint angles computed from the inverse kinematics are sent to the servo motors at a constant rate. The robot successfully performs the planned walking steps, maintaining stable balance and smooth transitions between phases. The experimental results confirm that the proposed multi-objective gait planning method is not only valid in simulation but also practical for a physical embodied robot.

6. Conclusion and Future Work

This paper presents a systematic approach to multi-objective gait planning for a biped humanoid embodied robot. The contributions are summarized as follows:

  1. A seven-link kinematic model is established for the Robonova-1 platform, and both forward and inverse kinematics are derived in closed form.
  2. Walking is decomposed into three independent phases, and cubic spline interpolation is used to generate smooth trajectories from key postures.
  3. The gait trajectories are parameterized by ten intuitive gait parameters, enabling a flexible and compact representation of the walking pattern.
  4. Three conflicting objectives — stability, energy consumption and walking speed — are defined as evaluation functions, and SPEA2 is employed to search for Pareto-optimal gait parameters.
  5. Simulation and physical experiments demonstrate that the optimized gaits are stable, smooth, and practical for the embodied robot.

In future work, we plan to extend the framework to terrain-adaptive walking on slopes and uneven surfaces. Online learning mechanisms may be integrated so that the embodied robot can adjust its gait parameters in real time based on sensor feedback. Another promising direction is to automatically select the most preferred solution from the Pareto front using a higher-level decision strategy, reducing the need for human intervention. The ultimate goal is to make the embodied robot walk as flexibly and efficiently as a human being in complex real-world environments.

Scroll to Top