Next Article in Journal
Knitting Robots: A Deep Learning Approach for Reverse-Engineering Fabric Patterns
Previous Article in Journal
Intelligent Frozen Gait Monitoring Using Software-Defined Radio Frequency Sensing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Environmental Adaptability of Force–Position Hybrid Control for Quadruped Robots Based on Model Predictive Control

1
School of Electrical Engineering, Naval University of Engineering, Wuhan 430033, China
2
Shanghai Marine Equipment Research Institute, Shanghai 200030, China
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(8), 1604; https://doi.org/10.3390/electronics14081604
Submission received: 12 January 2025 / Revised: 31 March 2025 / Accepted: 3 April 2025 / Published: 16 April 2025

Abstract

:
This study proposes a force–position hybrid control method for quadruped robots based on the Model Predictive Control (MPC) algorithm, aiming to address the challenges of stability and adaptability in complex terrain environments. Traditional control methods for quadruped robots are often based on simplified models, neglecting the impact of complex terrains and unstructured environments on control performance. To enhance the real-world performance of quadruped robots, this paper employs the MPC algorithm to integrate force and position control to achieve precise force–position hybrid regulation. By transforming foot-end forces into joint torques and optimizing them using kinematic inverse solutions, the robot’s stability and motion accuracy in challenging terrains is further enhanced. In this study, a Kalman filter-based state estimation method is adopted to estimate the robot’s state in real time, enabling closed-loop control through the MPC framework, combined with kinematic inverse solutions for hybrid control. The experimental results demonstrate that the proposed MPC algorithm significantly improves the robot’s adaptability and control accuracy across various terrains. In particular, it exhibits superior performance and robustness in multi-contact and uneven terrain scenarios. This research provides a novel approach for deploying quadruped robots in dynamic and complex environments and offers strong support for further optimization of motion control strategies.

1. Introduction

1.1. Research Background

With the rapid development of robotics technology [1,2,3], quadruped robots [4,5] have demonstrated significant potential in various applications, such as disaster rescue, inspection, and military missions, owing to their superior mobility and terrain adaptability [6,7,8,9]. However, in complex terrains and dynamic environments, quadruped robots often face numerous challenges, including irregular terrain, external disturbances, and stringent real-time performance requirements. These issues significantly affect the stability and motion performance of robots, increasing uncertainty in practical missions. Therefore, improving the stability and adaptability of quadruped robots in complex environments [10,11,12] has become a key focus of research in the robotics field.

1.2. State of the Art

In the field of quadruped robotics, many researchers have proposed improved MPC [13] methods to address the challenges of complex terrains and dynamic disturbances, achieving notable progress. The ETH Zurich team [14], using the ANYmal quadruped platform, incorporated foothold constraints into MPC, enabling stable locomotion on slopes, gaps, and stepping stones through inequality constraints. The MIT Cheetah team [15] proposed a novel nonlinear predictive model (RPC) [16] that optimizes the robot’s state, foot-end positions, and ground reaction forces, significantly improving dynamic speed tracking in complex terrain. Dini Navid [17] introduced an MPC-based footstep adjustment strategy that regenerates gait patterns to maintain robot balance when subjected to sudden external disturbances. Michael Neunert [18] designed an MPC method that integrates trajectory optimization with control frameworks, improving robot performance through a unified control and estimation framework.
However, the existing studies still exhibit several limitations:
Single Control Strategy: Most studies focus solely on force control or position control, neglecting the importance of their coordination.
High Resource Consumption: Complex optimization computations increase the real-time computational burden on controllers, imposing high demands on hardware performance.
Limited Environmental Adaptability: The current methods show insufficient robustness to disturbances and adaptability to dynamic and complex environments.

1.3. Contributions of This Paper

To address the above issues, this paper proposes a force–position hybrid control method based on MPC, aiming to enhance the stability and adaptability of quadruped robots in complex terrains. The specific contributions are as follows:
Force–Position Hybrid Control: A coordinated strategy combining force control and position control is introduced, integrating force control with joint position optimization to achieve high-precision foot-end control.
State Estimation: A state estimation method based on Kalman filtering is adopted to improve real-time perception of the robot’s posture and velocity.
Kinematic Inverse Solution: By incorporating the robot’s kinematic model and attitude matrix, the foot-end position and joint angle planning are optimized to support efficient closed-loop control.
Adaptability to Complex Terrains: A control framework with high dynamic response capabilities is designed, enhancing robot stability under complex terrains and dynamic disturbances.
Through simulations and physical experiments, the proposed control method is comprehensively evaluated and verified for its adaptability and control performance in complex terrain environments. The results demonstrate that the MPC-based control framework significantly enhances the robot’s motion stability and control precision in multi-contact, uneven terrain, and dynamically disturbed scenarios. This research provides a novel approach for deploying quadruped robots in dynamic and complex environments and lays a strong foundation for the further optimization of motion control strategies.

2. Methods

2.1. Force–Position Hybrid Control Framework

The force–position hybrid control framework aims to integrate foot-end force control and joint position control to improve the precision and robustness of robot motion. The overall framework of the force–position hybrid control system for the quadruped robot is illustrated in Figure 1.
Position Control Component: By incorporating kinematic inverse solutions, this component optimizes joint positions and foot-end poses, enabling the robot to quickly adapt to complex terrains.
Force Control Component: Using MPC, the target support forces at the robot’s foot ends are calculated to ensure stability under terrain changes or external disturbances.
Collaborative Optimization: Force and position controls are correlated through the Jacobian matrix, with the output of MPC guiding the generation of comprehensive control commands.

2.2. System Modeling

This study uses the quadruped robot Tinymal as a reference to build and simplify the structural model. The robot consists of a rigid body and four identical legs, each with three degrees of freedom (DoFs) corresponding to a lateral hip joint, a vertical hip joint, and a knee joint. Table 1 details the structural dimensions and joint angle constraints of the robot’s legs. Figure 2 shows both the three-dimensional design and the actual prototype of the quadruped robot, providing an overview of its mechanical structure and appearance.
An improved Denavit–Hartenberg (D-H) parameterization method [3] is employed to define the relationships between the coordinate frames of the robot’s body and leg joints. This approach facilitates the derivation of foot-end poses under specific configurations, laying the groundwork for subsequent foot-end trajectory planning. The four legs are numbered sequentially as follows: left foreleg (LF), Left Hindleg (LH), Right Foreleg (RF), and Right Hindleg (RH). The primary coordinate systems are defined as follows:
  • {W}: World coordinate frame;
  • {B}: Body frame located at the robot’s center of mass;
  • {0}: Base frame of the leg;
  • {1}: Lateral hip joint frame;
  • {2}: Vertical hip joint frame;
  • {3}: Knee joint frame;
  • {4}: Foot-end frame.
As all the legs share identical structural parameters, only the left foreleg (LF) is analyzed for kinematics and the establishment of the D-H coordinate system. A structural diagram illustrating the quadruped robot’s joint coordinate systems is shown in Figure 3.
The lateral hip joint angle is denoted as  θ 1 , the vertical hip joint angle as  θ 2 , and the knee joint angle as  θ 3 . The lateral hip link length is denoted as  L 1 , the thigh link length as  L 2 , and the calf link length as  L 3 . Based on the coordinate systems established in Figure 3, the relationships among link lengths, joint angles, and height differences between joints form the modified D-H parameter table, as shown in Table 1.
By substituting the parameter values from the D-H table into the homogeneous transformation matrix equation (Equation (1)), the following transformations can be obtained:
T i i 1 = cos θ i sin θ i 0 a i 1 sin θ i cos i 1 cos θ i cos i 1 sin i 1 d i sin i 1 sin θ i sin i 1 cos θ i sin i 1 cos i 1 d i cos i 1 0 0 0 1
These transformations provide a clear mathematical representation of the kinematic relationships among the robot’s joint coordinate systems, forming the foundation for subsequent trajectory optimization and control strategies.
T 4 0 = T 1 0 T 2 1 T 3 2 T 4 3 = c 24 c 1 s 234 c 1 s 1 c 1 L 1 + L 3 c 23 + L 2 c 2 c 234 s 1 s 244 s 1 c 1 s 1 L 1 + L 3 c 23 + L 2 c 2 s 234 c 234 0 L 3 s 23 L 2 s 2 0 0 0 1
s i = sin θ i ,   c i = cos θ i , s i j k = sin θ i + θ j + θ k ,   c i j k = cos θ i + θ j + θ k ,   s i j = sin θ i + θ j ,   c i j = cos θ i + θ j
In the homogeneous transformation matrix, the first three rows and three columns represent the rotation matrix ( R ) of the foot-end relative to the leg base coordinate system, as shown in the equation. Specifically,  R  describes the orientation of the foot-end relative to the leg base coordinate system. Meanwhile, the first three rows of the fourth column represent the position vector ( P )  of the foot-end relative to the leg base coordinate system, as shown in the equation. Therefore,  P  describes the position of the foot-end relative to the leg base coordinate system. Together,  P  and  R  define the foot-end pose relative to the leg base coordinate system through forward kinematics.
The forward kinematics of a single leg is expressed as follows:
R 4 0 = c 24 c 1 s 23 c 1 s 1 c 24 s 1 s 234 s 1 c 1 s 234 c 234 0 P = c 1 L 1 + L 3 c 23 + L 2 c 2 s 1 L 1 + L 3 c 23 + L 2 c 2 L 3 s 23 L 2 s 2
The importance of inverse kinematics analysis for quadruped robots lies in its role in determining the joint angles required to achieve a desired end-effector position (commonly referring to the foot-end position in legged robots). This is crucial for executing precise and complex tasks. Among the various methods for solving inverse kinematics, the algebraic method and geometric method are the two most commonly used. Given the relatively simple leg structure of quadruped robots, the geometric method is utilized here to solve the inverse kinematics for a single leg. Figure 4 shows the simplified diagram of a single leg.
Based on the front view of the simplified diagram of a single leg, the lateral hip joint angle can be derived using the geometric method. From Figure 4b, the relationship between the lateral hip joint angle and the foot-end position is expressed as follows:
θ 1 = arctan P y P x
Similarly, based on the side view of the simplified diagram of a single leg, the geometric method can be used to derive the expressions for the hip joint angle and the knee joint angle as follows:
θ 2 = + β = arctan P z P x 2 + P y 2 L 1 + arccos L 2 2 + P z 2 + P x 2 + P y 2 L 1 2 L 3 2 2 L 2 P x 2 + P x 2 + P y 2 L 1 2
θ 3 = π γ = π arccos L 2 2 + L 3 2 P z 2 P x 2 + P y 2 L 1 2 2 L 2 L 3
where
L = P x 2 + P y 2 L 1 ,   M = P z 2 + P x 2 + P y 2 L 1 2
= arctan P z P x 2 + P y 2 L 1 ,   β = arccos L 2 2 + P z 2 + P x 2 + P y 2 L 1 2 L 3 2 2 L 2 P z 2 + P x 2 + P y 2 L 1 2
γ = arccos L 2 2 + L 3 2 P z 2 P x 2 + P y 2 L 1 2 2 L 2 L 3

2.3. State-Space Representation

A legged robot is a typical high-dimensional nonlinear system, making it difficult to establish an accurate system model. A simplified quadruped robot is illustrated in Figure 3, where  x ,   y ,   and   z  represent the axes of the world coordinate system  O x y z  and  x b ,   y b ,   and   z b  denote the axes of the body-fixed coordinate system  O b x b y b z b . For the purpose of controller design, a typical quadruped robot as shown in Figure 3 can be represented by a simplified single rigid body model:
p ¨ = i = 1 q f i m g
d d t I ω = i = 1 q r i × f i
R ˙ b w = ω × R b w
In the above equations,  p 3  denotes the position of the robot’s center of mass in the world coordinate frame, and  f i = f i x , f i y , f i z T 3  represents the ground reaction force exerted by  i - t h  leg when in contact with the ground. The number of legs in contact is denoted by  q + . The mass of the robot is  m + . The gravitational acceleration vector is given by  g = [ 0 , 0 , g ] T 3 . The inertia tensor of the robot expressed in the world frame is  I 3 ω 3  denotes the angular velocity of the robot (as a rigid body) expressed in the world frame. The vector from the contact point of the ground reaction force to the center of mass is denoted as  r i 3  and the rotation matrix from the body coordinate frame to the world coordinate frame is  R b w 3 × 3 . For any vectors  x , y 3 , the skew-symmetric matrix  [ x ] × 3 × 3  satisfies the identity  [ x ] × y = x × y .
The robot’s inertia tensor  I  in the world frame can be computed as follows:
I = R b w I b R b w T
where  I b  is the inertia tensor in the body frame. Using Equations (10) and (11), and assuming the angular velocity  ω  is relatively small, the derivative of the angular momentum  I ω  in Equation (9) can be approximated as follows:
  d   d t I ω = I ω ˙ + ω × I ω I ω ˙
Define the system state vector as  x = p T , θ T , v T , ω T , g , where  v = p ˙  is the linear velocity of the robot in the world frame. Then, by combining Equations (8), (9), and (12), the state-space model of the system can be expressed as follows:
x ˙ = A x + B u , u = f 1 T , , f q T T
where
A = 0 3 × 3 1 3 × 3 0 3 × 3 0 3 × 3 0 3 × 1 0 3 × 3 0 3 × 3 R z ψ 0 3 × 3 0 3 × 1 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 1 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 S g 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 1 0 1 × 3 0 1 × 3 0 1 × 3 0 1 × 3 0 B = 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 m 1 1 3 × 3 m 1 1 3 × 3 I 1 r 1 × I 1 r q × 0 1 × 3 0 1 × 3
Here,  S g = [ 0 , 0 , 1 ] T .  For the purpose of controller implementation, the continuous-time system described by Equation (13) can be discretized using the Euler method as follows:
x k + 1 = A k x k + B k u k A k = 1 13 × 13 + A Δ t B k = B Δ t
where  Δ t  denotes the sampling time.

2.4. Model Predictive Control Method

MPC is an optimization-based control method that dynamically adjusts control inputs by predicting the future states of the system. The core concept of MPC involves constructing a state-space model of the system, optimizing an objective function over a receding time horizon, and generating control commands based on the current state and predicted outcomes. Using the system model, which incorporates state variables such as attitude angles, positions, and control inputs, the MPC controller predicts the optimal foot-end forces required for stable operation.
By discretizing the simplified dynamics model, the problem is transformed into a quadratic programming (QP) optimization problem. The predicted optimal foot-end forces are then used as feedforward inputs to enable the robot to achieve stable and rapid motion. The discrete finite-horizon predictive controller calculates the desired foot-end contact forces for quadruped robots.
In a typical MPC process, at each iteration, the controller starts from the current state and determines the optimal sequence of control inputs and corresponding state trajectories over a finite prediction horizon, considering constraints on both control inputs and state trajectories. This process is repeated at every time step, requiring only the initial computation of the control input trajectory’s time step.
The standard formulation of the MPC problem is as follows:
min x , u k = 0 n 1 x k + 1 x k + 1 r ϱ k + u k R k   s .   t .   x k + 1 = A k x k + B k u k , k = 0 , , n 1 , f i x μ f i z , f i y μ f i z , 0 f i z f i z , max
In the above equations,  x k + 1 r 13  denotes the reference signal.  Q k   13 × 13 ,   R k   3 q × 3 q  are positive definite diagonal matrices representing the weight matrices for tracking error and control input, respectively.  μ +  denotes the coefficient of friction between the foot and the ground.
To facilitate the solution of the MPC problem, the  n -step optimization can be further transformed into a quadratic programming (QP) problem. Based on Equation (14), we obtain the following formulation:
          X = A qp x 0 + B qp U
In the above equations,  X = x 1 T , , x n T T 13 n  represents all the system states over the prediction horizon  n  and  U = u 0 T , , u n 1 T T 12 n  represents all the control inputs over the same horizon. The matrices  A qp 13 n × 13  and  B qp 13 n × 3 q n  are defined as follows:
A qP = A 0 A 1 A 0 A n 1 A 0 B qP = B 0 0 13 × 3 q 0 0 13 × 3 q A 1 B 0 B 1 0 0 13 × 3 q 0 A n 1 A 1 B 0 A n 1 A 2 B 0 B n 1
Using Equation (16), the optimization objective function for the QP problem can be constructed as follows:
min U A qp x 0 + B qp U X ref ϱ qP + U R qp
In the above equations,  X ref   = x 1 r T , , x k r T T 13 n  denotes the reference signals over the prediction horizon. The positive definite diagonal matrices  Q qp 13 n × 13 n   and   R qp 3 q n × 3 q n  represent the weight matrices for tracking error and control inputs, respectively. These are constructed by assembling the individual diagonal matrices  Q k  and  R k  for each time step  k  within the horizon.
By rearranging Equation (18) and considering the friction constraints, the final QP problem can be formulated as follows:
  min U 1 2 U T H U + U T F   s .   t .   C U c ¯
where
H = 2 B qp T Q qp B qp + R qp F = 2 B qp T Q qp A qp x 0 X ref C = S U 0 6 × 3 0 6 × 3 0 6 × 3 S U 0 6 × 3 0 6 × 3 0 6 × 3 0 6 × 3 0 6 × 3 S U S U = 1 0 μ 0 1 μ 1 0 μ 0 1 μ 0 0 1 0 0 1 c ¯ = c 0 c 0 c 0 T c 0 = 0 0 0 0 f ¯ z 0
f ¯ z +  is a given constant, representing the maximum allowable pressure in the  z -axis direction. By solving the standard QP problem given in Equation (19), the control inputs  U  for all the time steps within the prediction horizon can be obtained. At the current time step, the input  u 0  from the most recent time step can be extracted as the system input  u mpc  to control the quadruped robot.

2.5. State Estimation Using Kalman Filter

The Kalman filter is a widely used method for the real-time estimation of a robot’s state, including its position, velocity, and orientation. It operates through a predict–update mechanism, which combines predictions of the state and covariance with real-time measurements to enhance estimation accuracy. During the prediction stage, the filter estimates the state and updates the covariance based on a system model and process noise. In the update stage, the filter corrects the predicted state using the measured values, adjusting the state estimate based on the Kalman gain. This method provides precise state estimates that are essential for real-time control and are used as inputs for the MPC algorithm.

3. Simulation Experiment

To validate the effectiveness of the proposed control algorithm, a comprehensive simulation framework for quadruped robot motion control was developed using MATLAB R2024a. The simulation was conducted for a total duration of 3 s, with a time step of 0.01 s, resulting in a simulation frequency of 100 Hz. The robot’s structural parameters were initialized, including a body length of 0.2898 m, width of 0.124 m, height of 0.200 m, and a total weight of 8 kg. The leg parameters, such as hip length (0.070 m), thigh length (0.160 m), and shin length (0.190 m), were defined, and the robot’s total inertia was calculated based on these dimensions, considering gravitational acceleration (9.81 m/s2). The initial position and orientation of the robot were set to [0.000, 0.000, 0.200] m and [0, 0, 0] radians, respectively, while the desired target position and orientation were set to [0.500, 0.500, 0.200] m and [0, 0, π/7] radians. Motion parameters, including the expected linear velocity of [0.300, 0.000, 0.000] m/s and angular velocity of [0.000, 0.000, 0.000] rad/s, were also initialized. For gait generation, the cycle duration was set to 0.5 s, with a load factor of 0.5. This step corresponds to one complete cycle of robot movement, which includes the support and swing phases. Foot trajectories were generated using B-spline curves to ensure smooth movement. Predefined foot-end forces were set based on the robot’s weight, with a friction coefficient of 0.3 between the feet and the ground, accounting for both the support and swing phases.
To control the robot’s motion, an MPC algorithm was employed with a prediction horizon of 30 steps and a prediction time of 0.02 s. The simulation time step was set to 0.01 s, and weight matrices for position, velocity, and foot-end forces were defined to minimize errors and control efforts. These initialization steps provided a solid foundation for the simulation, ensuring the accurate simulation of the robot’s motion control and enabling the effective validation of the proposed control algorithm. The control inputs, such as joint angles, velocities, and foot-end forces, were computed by the MPC algorithm, which continuously adjusted the robot’s movements to achieve the desired trajectory.

3.1. Path Planning and State Generation

A desired motion path was generated using a path generation function, with the initial target state aligned with the robot’s starting state. Throughout the simulation, the target states and current states were iteratively updated to ensure smooth movement along the planned trajectory.

3.2. Model Predictive Control

The proposed MPC framework was employed to compute the optimal control inputs. A Hessian matrix and quadratic programming (QP) constraints were constructed based on the robot’s dynamic model, foot-end states, and physical constraints. An optimizer then solved the QP problem to generate control inputs, which were subsequently used to update the robot’s states according to the system’s state equation.

3.3. Motion Simulation and Visualization

The simulation dynamically visualized the robot’s motion and provided insights into various aspects of its performance:
  • Walking trajectory: The path of the robot’s center of mass and foot-end positions over time.
  • Foot-end forces: Visualization of the ground reaction forces exerted by each leg during the gait cycle.
  • Joint torques from QP optimization: Analysis of the computed joint torques for the legs, highlighting the efficiency of the QP-based control strategy.
  • Joint parameter outputs: Detailed charts showing joint angles, velocities, and accelerations over time.
These results are illustrated in Figure 5 (walking trajectory of the robot), Figure 6 (foot-end forces and joint torques derived from QP optimization), and Figure 7 (joint parameters, including angles and velocities).

3.4. Conclusion of Simulation Results

The simulation results demonstrate that the proposed control algorithm effectively enables stable quadruped robot motion in a simulated environment. The robot successfully tracks the desired trajectory, dynamically adjusts its posture during different gait phases, and ensures smooth transitions between the support and swing phases. The visualizations and output data provide robust theoretical and practical insights, paving the way for future real-world validations and physical experiments.

4. Physical Experiments

To validate the proposed control algorithm beyond simulations, a series of physical experiments were conducted on a quadruped robot. These experiments aimed to evaluate the robot’s stability, adaptability, and computational efficiency across diverse real-world environments and scenarios.

4.1. Experimental Setup

4.1.1. Hardware Configuration

The physical quadruped robot is equipped with the following:
Sensors: Inertial measurement units (IMUs) for posture estimation, joint encoders for joint state monitoring, and foot-end force sensors for ground reaction feedback.
Actuators: High-precision servo motors enabling smooth and precise joint control.
Controller: A real-time onboard control unit with sufficient computational resources to run the proposed MPC algorithm at 100 Hz.

4.1.2. Control Modes

The experiments were conducted in two modes to comprehensively evaluate the control algorithm:
Manual Control Mode: The robot was operated using a remote controller, allowing the operator to manually adjust its speed, direction, and gait transitions. This mode focused on testing the robot’s responsiveness and adaptability.
Path Planning Mode: The robot followed a predefined trajectory, generated by the path planning module, to evaluate its ability to autonomously track a desired path while maintaining stability and efficiency.

4.1.3. Testing Environments

The quadruped robot was tested in various environments, as depicted in Figure 8, including a runway, grassland, football field, and laboratory.
  • Runway: A flat and stable surface representing ideal conditions for basic locomotion and trajectory tracking.
  • Grassland: An uneven, soft terrain for testing adaptability to external disturbances such as slipping or sinking.
  • Football Field: An artificial turf field requiring stability during rapid turning and dynamic speed changes.
  • Laboratory: A controlled environment for precise maneuvers, such as narrow-path walking and obstacle crossing.
Figure 8. Testing environments: (a) runway, (b) grassland, (c) football field, and (d) laboratory.
Figure 8. Testing environments: (a) runway, (b) grassland, (c) football field, and (d) laboratory.
Electronics 14 01604 g008

4.2. Experimental Procedure

The experiments were conducted in the following steps:
Setup: The robot was initialized with either manual control commands or a predefined path planning trajectory, depending on the mode.
Task Execution: The robot performed tasks such as straight-line walking, turning, variable-speed motion, and obstacle crossing in each environment.
Disturbance Testing: In the grassland and football field scenarios, random external pushes or terrain irregularities were introduced to evaluate recovery performance.
Data Collection: Sensor data, including joint angles, foot-end positions, ground reaction forces, and energy consumption, were recorded for offline analysis.
Figure 9 presents the posture data of the robot recorded during locomotion, illustrating its stability and motion characteristics. The ground reaction forces (GRFs) on all four legs during motion are shown in Figure 10, reflecting the dynamic load distribution and interaction with the terrain.

4.3. Results and Analysis

The performance metrics for both the manual control and path planning modes are summarized in Table 2, covering key indicators of stability and adaptability across different terrains.

5. Conclusions

This study presents a force–position hybrid control method for quadruped robots based on the MPC algorithm, addressing the challenges of stability and adaptability in complex terrain environments. Unlike traditional control methods that rely on simplified models and often overlook the influence of unstructured terrains, the proposed approach integrates force and position control to achieve the precise regulation of foot-end forces and joint positions. By transforming foot-end forces into joint torques and optimizing them through kinematic inverse solutions, the algorithm significantly enhances the robot’s stability and motion accuracy in challenging environments.
The Kalman filter-based state estimation method further supports the control framework by providing real-time state information, enabling closed-loop control through the MPC framework. This ensures dynamic adaptability and precise regulation of the robot’s movements, even in scenarios with multi-contact and uneven terrains.

5.1. Key Findings

5.1.1. Improved Stability and Adaptability

The experimental results demonstrate that the proposed MPC algorithm effectively maintains the robot’s posture stability and balanced force distribution across all the tested terrains. Even in dynamic and unstructured environments, the robot exhibits low trajectory errors, minimal posture deviations, and rapid recovery from external disturbances.

5.1.2. Robust Performance Across Diverse Terrains

On flat surfaces, the robot achieves high trajectory tracking accuracy with minimal control errors.
On uneven terrains such as grassland and artificial turf, the hybrid control method enables rapid gait adjustments and stable locomotion, with recovery times under 500 ms from external disturbances.

5.1.3. Real-Time Control and Energy Efficiency

The integration of kinematic inverse solutions reduces computational complexity, enabling real-time control at a frequency of 100 Hz. Energy consumption measurements further confirm the efficiency of the proposed control strategy, with average power usage well optimized across all the scenarios.

5.2. Significance and Future Work

The proposed force–position hybrid control approach provides a novel solution for deploying quadruped robots in dynamic and complex environments. It demonstrates superior adaptability and robustness in real-world applications, offering strong support for further optimization of motion control strategies. Future work will focus on the following:
  • Expanding the framework to handle dynamic obstacle avoidance and cooperative multi-robot systems.
  • Enhancing computational efficiency to scale the algorithm for higher degrees of freedom and more complex terrains.
  • Exploring learning-based methods to further improve adaptability in highly unpredictable environments.
By addressing these directions, the proposed control framework aims to contribute to the advancement of robust and intelligent quadruped robotic systems for practical deployment in diverse real-world applications.

Author Contributions

Conceptualization, Y.X. and Y.Z.; methodology, Y.X.; software, Y.X.; validation, Y.X., Y.Z. and B.H.; formal analysis, Y.X.; investigation, Y.X.; resources, Y.X. and L.L.; data curation, Y.X. and L.W.; writing—original draft preparation, Y.X.; writing—review and editing, Y.X., Y.Z. and Y.W.; visualization, Y.X.; supervision, Y.Z. and Y.W.; project administration, Y.X. and Y.W.; funding acquisition, Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 41771487; the Hubei Provincial Outstanding Young Scientist Fund, grant number 2019CFA086; and the National Key Research and Development Program, grant number 2022YFC3102800.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Biswal, P.; Mohanty, P.K. Development of quadruped walking robots: A review. Ain Shams Eng. J. 2021, 12, 2017–2031. [Google Scholar] [CrossRef]
  2. Fukuhara, A.; Gunji, M.; Masuda, Y. Comparative anatomy of quadruped robots and animals: A review. Adv. Robot. 2022, 36, 612–630. [Google Scholar] [CrossRef]
  3. Fan, Y.; Pei, Z.; Wang, C.; Li, M.; Tang, Z.; Liu, Q. A Review of Quadruped Robots: Structure, Control, and Autonomous Motion. Adv. Intell. Syst. 2024, 6, 2300783. [Google Scholar] [CrossRef]
  4. Zhu, X.; Wang, M.; Ruan, X.; Chen, L.; Ji, T.; Liu, X. Adaptive Motion Skill Learning of Quadruped Robot on Slopes Based on Augmented Random Search Algorithm. Electronics 2022, 11, 842. [Google Scholar] [CrossRef]
  5. Kumar, A.; Fu, Z.; Pathak, D.; Malik, J. Rma: Rapid motor adaptation for legged robots. arXiv 2021, arXiv:2107.04034. [Google Scholar]
  6. Kim, J.; Kang, T.; Song, D.; Yi, S.-J. Design and Control of a Open-Source, Low Cost, 3D Printed Dynamic Quadruped Robot. Appl. Sci. 2021, 11, 3762. [Google Scholar] [CrossRef]
  7. Di Carlo, J.; Wensing, P.M.; Katz, B.; Bledt, G.; Kim, S. Dynamic locomotion in the mit cheetah 3 through convex model-predictive control. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; IEEE: New York, NY, USA, 2018; pp. 1–9. [Google Scholar]
  8. Minniti, M.V.; Grandia, R.; Farshidian, F.; Hutter, M. Adaptive CLF-MPC with application to quadrupedal robots. IEEE Robot. Autom. Lett. 2021, 7, 565–572. [Google Scholar] [CrossRef]
  9. Lee, J.; Hwangbo, J.; Wellhausen, L.; Koltun, V.; Hutter, M. Learning quadrupedal locomotion over challenging terrain. Sci. Robot. 2020, 5, eabc5986. [Google Scholar] [CrossRef] [PubMed]
  10. Zhou, K.; Li, C.; Li, C.; Zhu, Q. Motion planning method for quadruped robots walking on unknown rough terrain. J. Mech. Eng. 2020, 56, 210–219. [Google Scholar]
  11. Xu, R.; Zhao, C.; Li, J.; Hu, J.; Hou, X. A Hybrid Improved-Whale-Optimization–Simulated-Annealing Algorithm for Trajectory Planning of Quadruped Robots. Electronics 2023, 12, 1564. [Google Scholar] [CrossRef]
  12. Chen, Z.; Zhan, G.; Jiang, Z.; Zhang, W.; Rao, Z.; Wang, H.; Li, J. Adaptive impedance control for docking robot via Stewart parallel mechanism. ISA Trans. 2024, 155, 361–372. [Google Scholar] [CrossRef] [PubMed]
  13. Kim, D.; Di Carlo, J.; Katz, B.; Bledt, G.; Kim, S. Highly dynamic quadruped locomotion via whole-body impulse control and model predictive control. arXiv 2019, arXiv:1909.06586. [Google Scholar]
  14. Grandia, R. Perceptive and Dynamic Locomotion Through Nonlinear Model Predictive Control. Ph.D. Thesis, ETH Zurich, Zürich, Switzerland, 2022. [Google Scholar]
  15. Bledt, G.; Powell, M.J.; Katz, B.; Di Carlo, J.; Wensing, P.M.; Kim, S. MIT Cheetah 3: Design and Control of a Robust, Dynamic Quadruped Robot. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 2245–2252. [Google Scholar]
  16. Ding, Y.; Pandala, A.; Li, C.; Shin, Y.-H.; Park, H.-W. Representation-Free Model Predictive Control for Dynamic Motions in Quadrupeds. IEEE Trans. Robot. 2021, 37, 1154–1171. [Google Scholar] [CrossRef]
  17. Dini, N.; Majd, V.J. An MPC-based two-dimensional push recovery of a quadruped robot in trotting gait using its reduced virtual model. Mech. Mach. Theory 2020, 146, 103737. [Google Scholar] [CrossRef]
  18. Neunert, M.; De Crousaz, C.; Furrer, F.; Kamel, M.; Farshidian, F.; Siegwart, R.; Buchli, J. Fast nonlinear model predictive control for unified trajectory optimization and tracking. In Proceedings of the 2016 IEEE International Conference on Robotics and Automation (ICRA), Stockholm, Sweden, 16–21 May 2016; IEEE: New York, NY, USA, 2016; pp. 1398–1404. [Google Scholar]
Figure 1. Framework of the force–position hybrid control for a quadruped robot.
Figure 1. Framework of the force–position hybrid control for a quadruped robot.
Electronics 14 01604 g001
Figure 2. Three-dimensional model and real-world image of the quadruped robot.
Figure 2. Three-dimensional model and real-world image of the quadruped robot.
Electronics 14 01604 g002
Figure 3. Structural diagram of the quadruped robot.
Figure 3. Structural diagram of the quadruped robot.
Electronics 14 01604 g003
Figure 4. Simplified single-leg views: (a) schematic, (b) front view, and (c) side view.
Figure 4. Simplified single-leg views: (a) schematic, (b) front view, and (c) side view.
Electronics 14 01604 g004
Figure 5. Walking trajectory of the robot.
Figure 5. Walking trajectory of the robot.
Electronics 14 01604 g005
Figure 6. Foot-end forces and joint torques derived from QP optimization.
Figure 6. Foot-end forces and joint torques derived from QP optimization.
Electronics 14 01604 g006
Figure 7. Joint parameters, including angles and velocities.
Figure 7. Joint parameters, including angles and velocities.
Electronics 14 01604 g007
Figure 9. Robot posture data during locomotion.
Figure 9. Robot posture data during locomotion.
Electronics 14 01604 g009
Figure 10. Ground reaction forces measured on all four legs of the robot.
Figure 10. Ground reaction forces measured on all four legs of the robot.
Electronics 14 01604 g010
Table 1. Modified D-H parameters for the left foreleg (LF).
Table 1. Modified D-H parameters for the left foreleg (LF).
Joint FrameLink Length Height DifferenceJoint TwistJoint Angle
10000
2   L 1 0−π/2   θ 1
3   L 2 00   θ 2
4   L 3 00   θ 3
Table 2. Performance metrics of the quadruped robot under different terrain conditions in manual control and path planning modes.
Table 2. Performance metrics of the quadruped robot under different terrain conditions in manual control and path planning modes.
Metric CategorySpecific MetricDefinitionRunwayGrasslandFootball FieldLaboratory
StabilityTrajectory Error (MSE)Mean squared error between actual and desired trajectories (cm2).<2 cm2<5 cm2<5 cm2<3 cm2
Posture DeviationStandard deviation of roll and pitch angles (°).±1°±1°±1°±1°
Foot-End Force VariationStandard deviation of foot contact forces (N).<3 N<7 N<6 N<4 N
AdaptabilityDisturbance Recovery TimeTime to regain stability after external disturbances (ms).<400 ms<500 ms<450 ms<300 ms
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xue, Y.; Wang, L.; He, B.; Zhao, Y.; Wang, Y.; Li, L. Research on Environmental Adaptability of Force–Position Hybrid Control for Quadruped Robots Based on Model Predictive Control. Electronics 2025, 14, 1604. https://doi.org/10.3390/electronics14081604

AMA Style

Xue Y, Wang L, He B, Zhao Y, Wang Y, Li L. Research on Environmental Adaptability of Force–Position Hybrid Control for Quadruped Robots Based on Model Predictive Control. Electronics. 2025; 14(8):1604. https://doi.org/10.3390/electronics14081604

Chicago/Turabian Style

Xue, Yuquan, Liming Wang, Bi He, Yonghui Zhao, Yang Wang, and Longmei Li. 2025. "Research on Environmental Adaptability of Force–Position Hybrid Control for Quadruped Robots Based on Model Predictive Control" Electronics 14, no. 8: 1604. https://doi.org/10.3390/electronics14081604

APA Style

Xue, Y., Wang, L., He, B., Zhao, Y., Wang, Y., & Li, L. (2025). Research on Environmental Adaptability of Force–Position Hybrid Control for Quadruped Robots Based on Model Predictive Control. Electronics, 14(8), 1604. https://doi.org/10.3390/electronics14081604

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop