Next Article in Journal
Preliminary Validation of Nitinol Rod Driven Discrete Continuum Robot for Transoral Surgery by Planar Path Planning with CT Images
Previous Article in Journal
Research on Energy Consumption Optimization Strategies of Robot Joints Based on NSGA-II and Energy Consumption Mapping
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

TGPSO: An Adaptive Gait Optimization Algorithm for Hexapod Robots in Multi-Terrain Environments

1
College of Shipbuilding Engineering, Harbin Engineering University, Harbin 150000, China
2
National Key Laboratory of Autonomous Marine Vehicle Technology, Harbin Engineering University, Harbin 150000, China
3
Qingdao Innovation and Development Center, Harbin Engineering University, Qingdao 266000, China
4
National Key Laboratory of Equipment State Sensing and Smart Support, National University of Defense Technology, Changsha 410073, China
5
College of Intelligence Science and Technology, National University of Defense Technology, Changsha 410073, China
*
Author to whom correspondence should be addressed.
Robotics 2025, 14(10), 139; https://doi.org/10.3390/robotics14100139
Submission received: 17 August 2025 / Revised: 23 September 2025 / Accepted: 28 September 2025 / Published: 30 September 2025
(This article belongs to the Section AI in Robotics)

Abstract

To address the limited adaptability of traditional fixed-parameter strategies for hexapod robots operating in multi-material terrain environments, this study proposes a terrain-aware gait optimization method based on an improved particle swarm optimization algorithm that incorporates foot-end sinking perception. This method establishes a ground sinking detection mechanism based on foot-end position sensors, constructs a dynamic weight allocation strategy based on ground bearing capacity, and develops a Terrain-aware Ground Particle Swarm Optimization algorithm (TGPSO) that integrates Latin hypercube sampling, linearly decreasing inertia weights, and stagnation exploration mechanisms. Furthermore, it establishes a unified terrain-based reward function framework to achieve dynamic adjustment of weights for velocity, stability, and transportation efficiency. Simulink simulation verification demonstrates that TGPSO achieves superior optimization performance compared to traditional strategies across three typical terrain types, while exhibiting faster convergence speed and enhanced stability. The research findings provide theoretical foundations and technical support for intelligent motion control of hexapod robots across varying material properties, achieving targeted optimization of locomotion performance under diverse terrain conditions.

1. Introduction

The hexapod robot has proven invaluable in challenging environmental scenarios, including disaster response [1,2], military reconnaissance [3,4], planetary exploration [5,6], and so on. Its hexapod structure allows for stable operation across diverse material surfaces challenging for conventional wheeled or tracked robots. Consequently, the hexapod robot has emerged as a significant research focus in robotics due to its exceptional stability and terrain adaptability in complex environmental contexts [7]. Notable research platforms such as the LAURON series, which has demonstrated successful hexapod locomotion across multiple generations of development, have established strong foundations for advancing hexapod robot technology [8]. Yet, as application scenarios diversify, the constraints of conventional fixed-parameter strategies on unstructured terrain become more apparent. Consequently, current research emphasizes gait planning and optimization techniques utilizing intelligent algorithms to enable terrain-aware motion control of robots across varying environmental conditions [9,10,11,12].
Historically, hexapod robot gait planning predominantly employed fixed-parameter approaches. Liu and Sun extensively examined the kinematics of triangular gait [13,14], whereas Wang and Luneckas systematically investigated the dynamics of wave gait [15,16]. While these methodologies are theoretically robust, their practical adaptability is notably limited when confronted with varying terrain conditions, posing challenges in fulfilling the mobility needs across heterogeneous material surfaces. For example, a fixed gait optimized for rigid rock surfaces with parameters emphasizing stability (low step Frequency, moderate step height) would result in inefficient locomotion when transitioning to sand terrain, where higher step frequency could achieve better speed without stability penalties. Conversely, aggressive gait parameters optimized for sand (high step frequency, large step size) would cause excessive impact forces and potential instability on rock surfaces. Additionally, fixed parameters optimized for load-bearing surfaces fail catastrophically in clay environments where foot sinkage occurs, as they lack mechanisms to detect and adapt to substrate deformation, potentially leading to entrapment scenarios.
To address the limitations of conventional gait planning approaches, terrain-aware methods utilizing intelligent optimization algorithms have been proposed. Luneckas pioneered the application of the Red Fox Optimization (RFO) algorithm [16], inspired by nature, for selecting gait parameters in a hexapod robot. Their objective was to minimize transportation cost (COT) while intelligently transitioning between triangular and wave gaits. Genetic algorithm, a classical method for global optimization, demonstrates robust search capabilities in optimizing hexapod robot gaits. Genetic algorithm theory framework serves as a crucial foundation for coding and optimizing gait parameter [11,17,18]. Additionally, The Particle Swarm Optimization (PSO) algorithm, known for its simplicity and rapid convergence, has been widely adopted for robot gait control. The standard PSO algorithm developed by Kennedy and Eberhart offers a novel solution to this challenge [19]. Building upon this work, Chen and Tao successfully extended the PSO algorithm to optimize gait parameters with significant outcomes [20,21].
Despite the notable achievements of intelligent optimization algorithms in theoretical and laboratory settings, their practical implementation across diverse material properties poses significant challenges. The efficiency of legged robots’ gaits is closely linked to the characteristics of the terrain they traverse [22]. Brooks introduced a ground classification approach based on foot subsidence, offering a novel perspective on terrain identification [23]. The successful deployment of the RHex robot has validated the applicability of this method across various terrains such as rocks, soil, and sand in robotic studies [24]. Recent advancements in reinforcement learning have introduced a parametric model for granular mediums, enabling the comprehensive representation of ground surfaces ranging from soft beach sands to rigid asphalt [25]. This model serves as a valuable framework for testing and refining adaptive motion control algorithms. Building upon this foundation, researchers have proposed terrain recognition techniques leveraging visual perception and force feedback [26,27], significantly enhancing robots’ environmental awareness and adaptability.
Although existing research has achieved significant progress in robotic gait optimization, three critical challenges remain in practical applications that directly relate to the complexity of terrain-robot interactions:
  • Terrain-induced sinkage risks: Foot penetration into soft substrates creates entrapment scenarios where traditional extraction methods prove inadequate, yet current approaches lack sinkage-aware control mechanisms.
  • Substrate-dependent parameter optimization: Different ground materials (rock, sand, clay) require distinct combinations of step size, height, and frequency due to varying stiffness, damping, and friction properties, but existing methods employ fixed-weight objective functions that cannot adapt to these material-specific requirements.
  • Limited global search capability: Traditional PSO algorithms demonstrate poor convergence when handling the multimodal optimization landscapes created by terrain heterogeneity, frequently becoming trapped in local optima that correspond to suboptimal gait configurations.
To address these challenges, this study proposes a terrain-aware gait optimization method with real-time parameter selection that considers ground subsidence. Three typical ground materials—rock ground, sand ground, and clay ground—are selected as research subjects. These three materials represent the fundamental modes of robot foot–ground interaction: rock ground provides a rigid contact interface, sand ground exhibits the compressible characteristics of granular media, and clay ground demonstrates semi-fluid deformable contact, covering the fundamental spectrum of material contact properties in robotic locomotion research.
The paper is organized as follows: Section 2 establishes the problem model, details the construction methods for velocity, stability, and efficiency objective functions, TGPSO algorithm design, and gait optimization process; Section 3 validates the effectiveness of the proposed method through simulation and experiments; Section 4 analyzes performance comparison results under different ground conditions; Section 5 summarizes the research findings and outlines future research directions.

2. Materials and Methods

2.1. Problem Modeling

2.1.1. Problem Description and Definition

The terrain-adaptive gait optimization problem for hexapod robots stems from the adaptive limitations of traditional fixed-parameter strategies across varying material properties. Different terrains exhibit distinct foot–ground interaction characteristics: rock ground provides rigid contact but involves impact loads, sand ground offers good load-bearing capacity, and clay ground is prone to foot subsidence. The core challenge of this problem lies in how to achieve coordinated unification of the triple objectives of velocity, stability, and transportation cost through real-time perception of ground characteristics and dynamic adjustment of gait parameters. Specific technical challenges include:
  • Real-time terrain identification based on foot subsidence.
  • Dynamic allocation of multi-objective weights under different terrains.
  • Global optimization solving under strongly coupled gait parameter conditions.
This research problem is formulated as follows: The terrain-aware gait optimization for hexapod robots is formulated as a constrained multi-objective optimization problem. Given terrain characteristics T identified through foot sinkage δ, the objective is to determine the optimal gait parameter vector θ = [L, H, f] that maximizes the comprehensive performance index.
Decision Variables: L: Step Size (m); H: Step Height (m); f: Step Frequency (Hz).
max F ( θ , T ) = λ 1 Speed ( θ , T ) + λ 2 Stability ( θ , T ) + λ 3 Efficiency ( θ , T )
In the equation, X ∈ Ω represents the gait  parameter constraint space; T denotes the terrain type; and λ is the weight  coefficient dynamically adjusted according to terrain characteristics.
Based on the aforementioned robot dimensional  limitations and findings from the model parameter adjustment process during  simulation, the following constraint conditions are established:
  • Step Size ∈  [0, 0.3] m; Stpheight ∈ [0, 0.2] m; StepFrequency ∈ [0.5, 2] Hz;
  • Stability constraints: center of mass fluctuation < 0.05 m;
  • Energy consumption constraints: joint torque shall not exceed the  rated torque of the motor;
  • Terrain adaptability constraints: foot-end sinkage < 0.5 m.

2.1.2. Hexapod Robot System Modeling

The mechanical structure of the simulated robot in  this study adopts a circumferential arrangement of the body and legs, where the  six legs are uniformly distributed around the main structure at various angles,  forming a stable and highly flexible configuration. The robot body measures 660  mm in length, 676 mm in width, and 145 mm in height, with a total weight of  121.2 kg. In the Simulink of MatlabR2023b simulation environment, the robot can  achieve a forward speed of 0.5 m/s and a lateral speed of 0.5 m/s on hard  surfaces. Each leg of the robot has 3 degrees of freedom, with leg segment  lengths as follows: coxa: 165 mm, femur: 240 mm, and tibia: 510 mm. The  three-dimensional model diagram of the hexapod simulation robot is shown in the  Figure 1.
Hexapod robots, with their multi-leg structure, can  achieve stable locomotion through coordinated leg movement. The gait patterns  of legged robots focus on determining the swing and support sequences of each  leg after establishing the foot trajectory. Triangular, quadrupedal, and wave  gaits are common locomotion patterns for hexapod robots. Subsequently, using  the simulated hexapod robot designed in the previous section as a prototype,  this paper focuses on the straight-line triangular gait, which exhibits both  high speed and excellent stability, as the primary research object.
The triangular gait of hexapod robots refers to a  gait planning pattern in which three legs continuously support the body while  the other three legs remain in the swing phase during locomotion. This gait is  termed “triangular” because the supporting legs form a triangular  configuration. Derived from crab locomotion patterns, this gait possesses  characteristics of stable movement, high speed, and low energy consumption,  making it the most commonly employed gait in hexapod robot control. In the  triangular gait, the six legs are divided into two groups, with legs within  each group maintaining synchronized movement states.
Taking forward locomotion as an example, the six  legs are numbered 1–6 in a counterclockwise direction starting from the left  front leg, divided into two groups: 1, 3, 5 and 2, 4, 6, The key characteristic  of triangular gait is that the two groups alternate between swing and stance  phases, ensuring continuous body support and propulsion. Initially, all six  legs are in the support state as shown in Figure 2a. During the first half-cycle,  legs 1, 3, and 5 lift into the swing state and move forward, while legs 2, 4,  and 6 simultaneously remain in stance phase and actively propel the body  forward as depicted in Figure 2b. During the second half-cycle, legs 2, 4,  and 6 lift into swing motion, while legs 1, 3, and 5 simultaneously transition  to stance phase and propel the body forward as illustrated in Figure 2c.  Finally, legs 2, 4, and 6 land, and the robot returns to the initial  configuration as shown in Figure 2d, completing one complete gait cycle. This  alternating pattern ensures that three legs always maintain ground contact for  stability while the other three advance for forward progression.

2.1.3. System Architecture and Methodology Overview

The proposed terrain-adaptive gait optimization system integrates three core functional modules to address the challenges of hexapod robot locomotion across varying material surfaces, as illustrated in Figure 3.
Terrain Analysis Module: This module employs real-time foot-end position sensors to detect ground subsidence and classify terrain characteristics. The terrain classifier utilizes contact force feedback, dynamic friction measurements, and sinkage depth data to distinguish between rock ground (rigid contact), sand ground (compressible granular medium), and clay ground (deformable semi-fluid contact). The measured parameters feed into a terrain identification algorithm that outputs terrain type classifications.
Algorithmic Framework Module: The core optimization engine implements the Terrain-aware Ground Particle Swarm Optimization (TGPSO) algorithm with integrated Latin hypercube sampling for particle initialization. The framework incorporates adaptive parameter adjustment mechanisms including linearly decreasing inertia weights and dynamic learning factor modification. A unified reward function dynamically weights speed, stability, and efficiency objectives based on terrain characteristics identified by the terrain analysis module.
Action Generation Module: This module serves as the critical interface between optimization results and physical robot implementation, integrating multiple sensor subsystems for comprehensive motion control and performance monitoring. The module translates optimized gait parameters (Step Size, Step Height, Step Frequency) into executable robot commands through a multi-layered control architecture.
Inertial Measurement Unit (IMU): Mounted on the robot’s central body, the IMU provides continuous monitoring of body orientation, angular velocity, and linear acceleration. This sensor enables real-time calculation of velocity indicators for the speed objective function and detects body inclination changes that affect stability margins during locomotion across uneven terrain.
Foot-end Sinkage Perception Module: Each leg terminus integrates position sensors and force sensors to detect foot penetration depth and contact force magnitude. The sinkage perception system continuously monitors vertical displacement relative to initial ground contact, enabling real-time detection of substrate deformation and potential entrapment scenarios. This data directly feeds into the terrain classification algorithm and provides critical input for the efficiency objective function calculations.
Stability Margin Assessment Module: This subsystem combines IMU data with foot force measurements to calculate real-time stability indicators including center of mass position relative to the support polygon, force distribution among supporting legs, and dynamic stability margins. The module computes the distance from the center of gravity projection to the support polygon boundaries, providing essential feedback for the stability objective function.
The proposed system is implemented and validated in Simulink of MatlabR2023b simulation environment using the following configuration: The simulation employs ODE45 variable-step solver with maximum Step Size set to 1 × 10−3 s (equivalent to 1000 Hz baseline resolution). The integrated sensor modules from Simulink library are configured as follows:
  • Position and velocity measurements: Transformer sensor modules sample at 1 kHz simulation time.
  • IMU data acquisition: Three-axis accelerometer and AHRS (Attitude and Heading Reference System) modules provide orientation and angular velocity data at 1 kHz simulation rate.
  • Contact force sensors: Integrated within the foot–ground contact model, updating at the solver’s variable step rate.
The contact force calculation (Equation (2)) is computed at each solver step, with computational complexity of O(n) per leg contact. In the Simulink of MatlabR2023b environment, the complete hexapod dynamics simulation including all six legs runs at approximately 0.1–0.3× real-time speed on standard workstation hardware, indicating the computational feasibility for real-time implementation on dedicated control hardware.
For practical robot implementation, these simulation parameters translate to achievable real-time performance: typical embedded control systems can execute the contact model calculations within 100–200 μs per leg, supporting control frequencies of 500–1000 Hz commonly used in legged robotics applications.

2.1.4. Mechanical Modeling of Foot–Ground Interaction

The subsidence phenomenon occurring when hexapod robot feet contact the ground can be described using elastic mechanics models. A foot–ground contact model is established based on Hertz contact theory:
F n = k p x + k d x ·
where F n represents the normal contact force; x denotes the foot subsidence depth; and k p , k d represent the stiffness coefficient and damping coefficient, respectively.
The Hertz contact model is applicable across all three terrain types with appropriate parameter adjustments: For rock ground, the high stiffness coefficient (3 × 109 N/m) captures the rigid contact characteristics with minimal deformation. For sand ground, the moderate stiffness (9.1 × 106 N/m) represents the compressible nature of granular media where particles rearrange under loading. For clay ground, the lower stiffness (1.7 × 106 N/m) models the semi-fluid deformable properties where significant subsidence can occur. The damping coefficients are correspondingly adjusted to represent the energy dissipation characteristics of each terrain type during foot–ground interaction.
Based on Simulink of MatlabR2023b simulation, this study employs a foot–ground contact model that incorporates spherical geometry embedded within the robot foot coordinate system, with a rigid body simulating the ground substrate (dimensions: 100 m × 100 m × 1 m). Real-time calculation and transmission of normal and tangential contact forces during foot–ground interaction are achieved through a contact force calculation module. To acquire foot subsidence characteristic data, the simulation model integrates position sensors, force sensors, and an IMU, which are respectively used for real-time monitoring of foot vertical displacement relative to the ground, contact force components at the foot–ground contact interface, and foot motion velocity. The ground subsidence detection mechanism operates by establishing a reference ground height when each foot initially contacts the surface, followed by continuous monitoring of the foot’s vertical position using position sensors. The subsidence depth is calculated as the difference between the initial contact height and the current foot position, with average subsidence values computed across all supporting legs to ensure robust terrain identification. These sensor data will provide critical inputs for subsequent ground mechanical parameter identification and gait optimization. It should be noted that while force sensors provide contact state information for stability calculations, the contact model parameters kp and kd in Equation (2) are predetermined from material property databases rather than identified from real-time force measurements, ensuring computational efficiency for online optimization.
Due to the special characteristics of the operating environment for hexapod crab-inspired robots, ground conditions are complex, and different ground materials impose varying gait requirements on the robot. Therefore, this study configures different parameters for robot–ground contact to maximally reproduce the effects of various ground materials on robot locomotion. Figure 4 shows three typical terrains where the hexapod robot introduced in this article comes into contact with the ground.
The formula for calculating the contact stiffness between robot foot and ground surface is as follows [28].
k p = 4 G r 1 ν
where G represents the shear modulus (Pa); ν denotes Poisson’s ratio; r represents the contact radius; and the damping coefficient is calculated using the following formula [29].
k d = 2 ζ k p × m
where ζ represents the damping ratio; k p  denotes the contact  stiffness (N/m); and m represents the equivalent mass.
Based on the above calculation formulas and considering the characteristics of different ground materials combined with Simulink of MatlabR2023b simulation properties, the corresponding simulation parameters are configured as shown in the following Table 1.

2.2. Algorithm Design

2.2.1. Multi-Objective Optimization Problem Modeling

In unstructured ground environments, motion optimization of hexapod robots based on triangular gait faces multiple constraints and challenges. The unstructured characteristics of ground environments result in high uncertainty in robot–ground contact states, necessitating the pursuit of optimal balance among speed, stability, and transportation cost. For hexapod crab-inspired robots employing triangular gait forward locomotion, during the motion process, objective functions for speed, stability, and Cost of Transport (COT) are defined and normalized through measurements of hexapod robot velocity, center of mass fluctuation and stability margin, and energy consumption of individual robot joints [31].
Speed Objective Function:
Speed ( X , T ) = v v min v max v min
where v represents the robot’s vector velocity, and the velocity of the hexapod robot during operation ranges from [0, 0.5] m/s.
Stability Objective Function:
Stability ( X , T ) = ω 1 × e σ Z σ Max + ω 2 × D ( P c , p ) × ( 1 min ( ε μ , 0.5 ) )
where σ z represents the standard deviation of the robot’s center of mass in the vertical direction during operation, σ Max represents the maximum tolerable fluctuation, and an exponential decay approach is designed to achieve the effect that larger fluctuations result in lower scores; D ( P c , p ) represents the distance calculation formula, computing the distance from the center of gravity projection point p to the support polygon p c ; 1 min ( ε μ , 0.5 ) represents the force balance correction factor, where ε denotes the standard deviation of contact forces and μ represents the mean of contact forces.
Cost of Transport (COT) Function:
Effiency = 1 W / mg s i W / mg s min W / mg s max W / mg s min W = 0 18 ω × τ d t
where ω (rad/s) represents  the joint angular velocity, and τ represents the joint torque.

2.2.2. PSO Algorithm

The PSO algorithm is an optimization algorithm that simulates the foraging behavior of bird flocks, treating potential solutions as points in the search space, referred to as particles. Each particle’s fitness value is defined as, its individual optimum is defined as c 1 , and the global optimum of the population is c 2 , where i and g represent the number of particles, and the dimension is denoted as D. During each iteration process, particles optimize their velocity and position through individual and global optima, with the mathematical expressions and iterative formulas as follows:
V ij t + 1 = w × V ij t + c 1 × rand ( ) × ( P ij X ij t ) + c 2 × rand ( ) × ( P gj X ij t )
X ij t + 1 = X ij t + V ij t + 1
where rand () represents a random number varying within the range (0, 1); c 1 and c 2 are positive real numbers called learning factors; and w represents the inertia weight.
Through the introduction of the particle swarm optimization algorithm, θ = { L 1 , H 2 , f 3 } represent Step Size, Step Height, and Step Frequency, respectively. The fitness function value V ij = Fitness is constructed through simulation data collection, and through continuous iteration, the optimal step length, step height, and step frequency are optimized according to different ground conditions.
However, due to the random initialization strategy of traditional PSO algorithms, particle distribution becomes non-uniform, failing to achieve global search, which leads to the particle swarm algorithm easily falling into local optima and being unable to effectively select optimal gait parameters. Additionally, the single initialization and reward function do not consider the influence of different ground environments on optimization objective weights, resulting in lower efficiency.

2.2.3. TGPSO Algorithm Design

To ensure global search implementation, Latin hypercube sampling is employed during particle initialization to guarantee uniform distribution of particles in the parameter space, with the formula as follows:
x i j = L B j + U B j L B j N × ( π i + u i )
where x i j represents the initial position of the i-th particle in the j-th dimension; Π i represents a random permutation of {1, 2, 3, …, N}; u i denotes a uniformly distributed random number in (0, 1); and L B j , U B j represent the parameter boundaries.
Simultaneously employing linearly decreasing inertia weight and dynamically adjusting adaptive learning factors to achieve smooth transition from global search to local optimization:
w ( t ) = w max w max w min T max × t
c 1 ( t ) = ( c 1 , init 0.5 ) × ( 1 t T max ) + 1 c 2 ( t ) = ( c 2 , init 0.5 ) × t T max + 2
where w ( t ) represents the inertia weight at the current moment; c 1 ( t ) represents the individual learning factor; c 2 t represents the social learning factor; and 1 , 2 takes the value of 0.5 in the formula.
A stagnation exploration mechanism is simultaneously employed to continuously monitor the global optimal solution. When the global optimal solution shows no improvement for N consecutive iterations, the 30% worst-performing particles are reinitialized to ensure optimality of the convergence value.
if | f gbest ( t ) f gbest ( t N stag ) < ε then X worst 30 % new = LHS ( 0.3 N , D , L B , U B )
Compared to standard PSO, the improved algorithm significantly enhances optimization performance and convergence stability under the same computational complexity through intelligent parameter adjustment and diversity maintenance mechanisms. The algorithm flowchart is shown in Figure 1.
Through the aforementioned improvement strategies, this algorithm can adaptively adjust optimization strategies according to terrain characteristics, effectively balancing the requirements for speed, stability, and transportation cost of hexapod robots in complex environments, providing theoretical foundation and technical support for intelligent motion control of hexapod working robots.

2.2.4. Terrain-Aware Reward Function Framework with Dynamic Weight Allocation

Based on the ground adaptive recognition mechanism utilizing foot subsidence measurements, this study proposes a unified reward function framework that adapts to different terrain characteristics through dynamic adjustment of weight coefficients. According to the problem description section presented earlier, the reward function defined in this paper is:
F ( θ , T ) = λ 1 Speed ( θ , T ) + λ 2 Stability ( θ , T ) + λ 3 Efficiency ( θ , T ) λ 1 + λ 2 + λ 3 = 1
Meanwhile, to achieve convergence in the algorithmic process, the convergence function in the PSO algorithm is defined as:
Fitness = e α W i
where α represents the convergence constant, with a value of 2.5.
Based on real-time perception of terrain physical characteristics, this paper proposes a dynamic adjustment approach for motion control optimization objectives, establishing a low-medium-high weight allocation mechanism for speed, stability, and efficiency. Moreover, this weight configuration satisfies the normalization constraint, ensuring targeted optimization of robot motion performance under different terrain conditions and mathematical rationality of parameter settings. According to the weight setting principles in multi-objective optimization, combined with the actual requirement hierarchy of robot motion control, this simulation experiment sets the primary objective weight at 0.5, with secondary objective weights decreasing progressively as shown below:
λ 1 λ 2 λ 3 = 0.2 0.5 0.3 0.5 0.2 0.3 0.3 0.2 0.5 δ < 0.05 0.05 δ 0.1 δ 0.1
where δ represents the foot subsidence in the robot foot–ground contact model.
In rock ground, due to the rigid surface with irregular protrusions and crevices, the system prioritizes stability through conservative gait strategies, employing a reward function construction method with high weight for stability, medium weight for efficiency, and low weight for speed to reduce imbalance risks. Under sand ground conditions, where the surface has certain load-bearing capacity, the robot can adopt faster step frequencies and larger step lengths, implementing a strategy with high weight for speed, medium weight for efficiency, and low weight for stability, maintaining dynamic balance and achieving efficient propulsion through rapid continuous gait transitions. In clay ground, where surface load-bearing capacity is weak and prone to foot subsidence, the system prioritizes energy efficiency maximization and postural stability, adopting anti-sinking strategies for effective escape. Therefore, a reward function construction with high weight for efficiency, medium weight for speed, and low weight for stability is employed. Through this unified adaptive control framework, the robot can continuously monitor ground characteristic changes and adjust gait parameters and motion strategies in real-time, thereby achieving targeted parameter optimization in dynamic and complex environments.

3. Results

3.1. Simulation Environment Setup

To validate the effectiveness of the proposed algorithm, this study established a high-fidelity hexapod crab-inspired robot systematic platform based on the Simulink of MatlabR2023b simulation experimental platform, completely reproducing its dynamic characteristics. Utilizing the system characteristics of Simulink of MatlabR2023b, through modular and low-code approaches, inverse kinematics methods are employed to calculate the joint angles of each leg via triangular gait patterns, analyze the robot’s kinematic capabilities, and collect relevant data for verification. The detailed videos of the robot locomotion are as follows, This video is intended to demonstrate the walking performance of the hexapod robot in the simulation system:
The hexapod robot Simulink model is shown in the following Figure 5.

3.2. Gait Simulation Parameter Design and Results

This simulation experiment is conducted based on hexapod robots, verifying the gait parameter optimization effects through establishing different terrain physical models. Considering the differences in terrain mechanical characteristics, differentiated parameter search strategies and multi-objective weight allocation methods are employed.
This study adopts improved particle swarm optimization with 20 particles and a maximum of 30 iterations. The inertia weight ω decreases linearly from 0.9 to 0.4 to balance global search and local exploitation, while learning factors c1 decreases from 2.5 to 0.5 and c2 increases from 0.5 to 2.5, achieving dynamic transition from individual learning to social learning in the algorithm. The optimization results using the TGPSO algorithm for different ground materials are shown in the following Figure 6.
The combined visualization displays parameter space exploration for (a) rock ground, (b) sand ground, and (c) clay ground. The 3D scatter plots show the evolution of particle positions in parameter space, with color gradients representing performance values and marking global optimal values. The convergence curves demonstrate the optimization progress across iterations, comparing convergence speed and best performance achieved to date. The optimization convergence performance of TGPSO is detailed in Section 4, where convergence curves are presented for rock ground, sand ground, and clay ground, demonstrating its superior convergence speed and stability compared to traditional strategies.
The parameters for different ground surfaces optimized based on the TGPSO algorithm are shown in Table 2.

4. Discussion

To verify the effectiveness of gait parameters optimized by the TGPSO algorithm, this study designed a comparative experimental scheme. The experiment selected three ground types (rock ground, sand ground, and clay ground), with five sets of gait parameters configured for performance comparison on each terrain: (1) TGPSO optimized parameter group, representing the optimal gait parameters obtained through the proposed algorithm; (2) Traditional fixed parameter group, employing empirical gait parameters commonly used for hexapod robots in literature, combined with the dimensions of the simulation robot [32,33]. (3) Standard PSO optimized parameter group, representing optimal gait parameters obtained using traditional PSO algorithms [19]; (4) Grey Wolf Algorithm (GWO) optimized parameter group [34]; and (5) Northern Goshawk Optimization (NGO) optimized parameter group [35]. Through the Simulink of MatlabR2023b simulation platform, quantitative evaluation of the motion performance of the five parameter groups under corresponding terrain conditions was conducted, with focused analysis on three key performance indicators: robot forward speed, stability, and cost of transport consumption, to verify the effectiveness and superiority of the proposed optimization method in enhancing hexapod robot adaptability to unstructured terrain. The experimental results are shown in Figure 7 below.
The simulation results demonstrate that TGPSO exhibits superior optimization performance across optimization tasks for all three ground types, achieving optimal reward values in each case. The detailed optimization indicators for each algorithm are shown in the following Table 3.

4.1. Rock Ground

Rock ground, as a typical rigid contact interface, possesses mechanical characteristics of high stiffness and low damping, presenting severe challenges to hexapod robot stability control. Based on these terrain characteristics, this study employs a reward function construction strategy with high weighting for stability. The stability indicators optimized by each algorithm are extracted and shown in the following Figure 8.
The simulation results demonstrate that, as shown in Figure 8, the TGPSO algorithm achieves optimal stability indicators in rock ground environments. In terms of stability optimization, the TGPSO algorithm obtained an optimal stability indicator of 0.66, tied for best with NGO, representing a 4.7% improvement over traditional PSO algorithms and a 1% improvement compared to the GWO algorithm. Regarding comprehensive performance, as illustrated in Figure 7, the TGPSO algorithm achieved an optimal reward value of 0.66, tied for best with GWO and NGO algorithms, showing a 10% improvement over traditional fixed parameter strategies and a 1.5% improvement compared to standard PSO algorithms. From the parameter configuration perspective, the algorithm intelligently selected larger step length (0.153 m) and step height (0.076 m) to ensure obstacle-crossing capability, while employing lower step frequency (0.63 Hz) to reduce impact loading, reflecting accurate understanding of the stability-priority strategy for hard ground surfaces. The convergence curves for each algorithm on rock ground are shown in the following Figure 9.
In terms of convergence characteristics, the TGPSO algorithm demonstrates excellent comprehensive performance across multiple aspects. From an optimization accuracy perspective, TGPSO converges to a fitness value of 0.190, significantly outperforming standard PSO’s 0.193 and ranking second among the four algorithms, only after GWO’s 0.188. Regarding convergence curves, TGPSO exhibits a steady and gradual convergence process, reaching stability at iterations 14–16. While its convergence speed is not as rapid as NGO’s jump-style fast convergence, it avoids the potential algorithmic instability and local optimum risks that such abrupt convergence may introduce. Compared to GWO, which has similar convergence timing, TGPSO demonstrates a smoother convergence trajectory with reduced oscillation phenomena during the search process. Relative to standard PSO, TGPSO not only achieves significant improvement in final optimization accuracy but also shows certain enhancement in convergence speed. Overall, TGPSO maintains stable and reliable convergence characteristics while ensuring high optimization accuracy.

4.2. Sand Ground

Sand ground as a typical granular medium terrain, exhibits mechanical characteristics of compressibility combined with good load-bearing capacity. Its cushioning properties and inter-particle friction provide conditions for robots to adopt aggressive motion parameters. Targeting these terrain characteristics, this study constructed an optimization objective system with high weight for speed, medium weight for efficiency, and low weight for stability. Therefore, the comparison of speed indicators optimized by the five experimental groups in this environment is shown in the following Figure 10.
The simulation results demonstrate that the TGPSO algorithm exhibits excellent performance in speed optimization for sand environments, achieving an optimal speed indicator of 0.41, tied for first place with the NGO algorithm. This represents a significant 141% improvement compared to the baseline fixed parameter method, while achieving 20.6% and 13.9% improvements over traditional PSO and GWO algorithms, respectively. Moreover, in the comprehensive reward comparison shown in Figure 6, it obtained the highest reward value in sand environments, showing a 17.7% improvement over traditional fixed parameter strategies (0.62), a 2.8% improvement over standard PSO algorithms (0.71), and a 1.4% improvement over GWO algorithms (0.72), performing optimally among all comparative algorithms. This fully demonstrates that the TGPSO algorithm, through its adaptive parameter adjustment mechanism, can precisely identify the compressibility and good load-bearing characteristics of sand ground. By selecting aggressive motion parameter configurations with maximum step length (0.30 m) and highest step frequency (2.00 Hz), it maximally utilizes the dynamic advantages of this terrain type, achieving optimal results in both individual speed indicators and comprehensive performance trade-offs. The convergence curves for each algorithm on sand ground are shown in the following Figure 11.
From a convergence performance perspective, the TGPSO algorithm achieves stable convergence within 18 iterations, representing a 28% improvement in convergence speed compared to the standard PSO algorithm (25 iterations), with the entire optimization process being smooth and monotonic, successfully avoiding the local optimum trap that PSO encounters during iterations 3–10. Compared to other advanced algorithms, TGPSO demonstrates a more stable descent trajectory than NGO in terms of convergence stability, avoiding the severe fluctuations that NGO experiences in the initial phase, while maintaining convergence smoothness comparable to GWO. From the perspective of final optimization accuracy, TGPSO converges to the optimal value, significantly outperforming PSO, GWO, and NGO, indicating that TGPSO achieves an effective balance between convergence efficiency and algorithmic stability while ensuring optimal solution quality.

4.3. Clay Ground

Clay ground represents the most challenging terrain environment, characterized by semi-fluid deformable contact properties. The surface bearing capacity is significantly weaker than the previous two terrain types and prone to severe foot sinkage phenomena, necessitating that robots adopt transportation cost-priority strategies centered on anti-entrapment and extrication capabilities. Based on the stringent constraints imposed by this terrain, this study designed a reward function architecture with high efficiency weighting, medium speed weighting, and low stability weighting. The comparison of Cost of Transport (COT) metrics optimized for five experimental groups under these environmental conditions is illustrated in the following Figure 12.
The simulation results comprehensively validate the technical advantages of the TGPSO algorithm under complex constrained environments. TGPSO achieved the lowest transportation cost and obtained an optimal reward value of 0.71 in comprehensive evaluation, representing a significant 22.4% improvement over traditional fixed parameter strategies (0.58) and a 1.4% enhancement compared to standard PSO, GWO, and NGO algorithms (all achieving 0.70). The algorithm demonstrates exceptionally refined anti-entrapment optimization capabilities, optimizing step height to an extremely low value of 0.01 m to maximize sinkage risk reduction, while selecting moderate step length (0.135 m) and minimum step frequency (0.51 Hz) to ensure stable locomotion on soft terrain surfaces. This reflects the algorithm’s profound understanding and precise adaptation to complex terrain constraints. The convergence curves of all algorithms on clay ground are shown in Figure 13.
In terms of convergence efficiency, TGPSO achieves stable convergence within approximately 10–12 iterations, significantly improving convergence speed compared to standard PSO’s 15–20 iterations, demonstrating excellent search efficiency. From the algorithm stability perspective, TGPSO exhibits ideal smooth progressive convergence characteristics with stable and controllable optimization processes, avoiding the premature convergence issues that may arise from the rapid convergence patterns of NGO and GWO algorithms (which experience sharp decline within the first 5–8 iterations), thereby ensuring comprehensive exploration of the solution space. Regarding optimization accuracy, TGPSO ultimately converges to a fitness value of approximately 0.169, markedly superior to the values around 0.173 achieved by the other three algorithms, reflecting stronger global optimization capabilities. In summary, TGPSO successfully achieves an optimal balance among convergence speed, algorithm stability, and optimization accuracy, obtaining superior solution quality while ensuring comprehensive search thoroughness.

5. Conclusions

This study focuses on hexapod robots and addresses the requirements for efficient locomotion across multi-material terrain environments by designing an adaptive gait optimization method that incorporates foot-terrain sinkage models. The significance of this research lies in providing theoretical foundations and technical support for bottom-dwelling hexapod robots operating in complex environments, offering important reference for subsequent research in intelligent robot motion control and environmental adaptability. The specific contributions include:
  • Proposed the TGPSO optimization algorithm, which integrates foot sinkage detection mechanisms and dynamic weight adjustment strategies. Through Latin hypercube sampling, linearly decreasing inertia weights, and stagnation exploration mechanisms, it effectively addresses the local optima entrapment issues inherent in traditional PSO algorithms, significantly enhancing global search capabilities and convergence stability.
  • Established a unified terrain-adaptive reward function framework that dynamically adjusts the weighting coefficients for speed, stability, and transportation cost based on foot sinkage measurements. For three typical terrain types— rock ground, sand ground, and clay ground—adaptive adjustment of optimization objectives was achieved.
  • Validation through the Simulink of MatlabR2023b simulation platform demonstrated that the TGPSO algorithm achieved superior locomotion performance across all terrain conditions, while exhibiting excellent performance in center-of-mass fluctuation control, fully demonstrating the algorithm’s technical advantages in multi-material surface motion control.
While this study demonstrates the effectiveness of the TGPSO algorithm in simulation environments, we acknowledge that inherent differences exist between computational modeling and real-world implementation. In future work, we will focus on extending the algorithm’s applicability to geometrically complex terrain scenarios including slopes, obstacles, and irregular surfaces; conducting validation experiments on physical robot platforms to evaluate the algorithm’s robustness and practicality in real environments; and integrating online path planning methods to combine gait optimization with dynamic path planning, enhancing the algorithm’s real-time path adaptation capabilities and complex environment navigation performance, thereby providing more comprehensive technical solutions for the engineering applications of hexapod robots.

Author Contributions

Conceptualization, W.C. and J.D.; methodology, G.B. and W.C.; software, W.C. and Y.L.; validation, W.C., G.B. and Y.L.; formal analysis, W.C.; investigation, G.B. and H.Q.; resources, G.B.; data curation, W.C.; writing—original draft preparation, W.C.; writing—review and editing, W.C., G.B., Y.L. and J.D.; visualization, W.C.; supervision, G.B., H.Q. and Y.L.; project administration, G.B.; funding acquisition, G.B., H.Q. and Y.L. 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 52025111; This research was funded by the National Natural Science Foundation of China, grant number 52401365; This research was funded by the Shandong Provincial Natural Science Foundation, grant number ZR2024QE371; This research was funded by the Stable Supporting Fund of National Key Laboratory of Autonomous Marine Vehicle Technology, grant number 2024-HYHXQ-WDZC05; This research was funded by the National Key Laboratory Foundation, grant number WDZC20255290305.

Data Availability Statement

The data presented in this study are openly available in [Mendeley] at [10.17632/6wx5jg3k62.1].

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Deng, H.; Xin, G.; Zhong, G.; Mistry, M. Gait and Trajectory Rolling Planning and Control of Hexapod Robots for Disaster Rescue Applications. Robot. Auton. Syst. 2017, 95, 13–24. [Google Scholar] [CrossRef]
  2. Jadeja, R.; Trivedi, T.; Surve, J. Survivor Detection Approach for Post Earthquake Search and Rescue Missions Based on Deep Learning Inspired Algorithms. Sci. Rep. 2024, 14, 25047. [Google Scholar] [CrossRef]
  3. Lee, S.; Azhari, M.B.; Kang, G.; Günes, O.; Han, D.; Shim, D.H. A Collaborative Team of UAV-Hexapod for an Autonomous Retrieval System in GNSS-Denied Maritime Environments. arXiv 2024, arXiv:2410.09606. [Google Scholar]
  4. Kuo, L.S.; Lin, Y.; Sheng, V.S.; Kuo, L.S.; Jheng, S.J. Development an Intelligent Power Detection System for Mobile Robots. In Proceedings of the 2008 27th Chinese Control Conference, Kunming, China, 16-18 July 2008; IEEE: New York, NY, USA, 2008; pp. 637–641. [Google Scholar]
  5. Chen, G.; Han, Y.; Li, Y.; Shen, J.; Tu, J.; Yu, Z.; Zhang, J.; Cheng, H.; Zhu, L.; Dong, F. Autonomous Gait Switching Method and Experiments of a Hexapod Walking Robot for Mars Environment with Multiple Terrains. Intel. Serv. Robot. 2024, 17, 533–553. [Google Scholar] [CrossRef]
  6. Guo, Y.-Q.; Luo, W.-H.; Xu, Z.-D.; Shu, B.-M.; Yang, D.-K. Research on the Design and Gait Planning of a Hexapod Robot Based on Improved Triangular Gait for Lunar Exploration. Appl. Sci. 2023, 14, 260. [Google Scholar] [CrossRef]
  7. Coelho, J.; Ribeiro, F.; Dias, B.; Lopes, G.; Flores, P. Trends in the Control of Hexapod Robots: A Survey. Robotics 2021, 10, 100. [Google Scholar] [CrossRef]
  8. Roennau, A.; Heppner, G.; Nowicki, M.; Dillmann, R. LAURON V: A Versatile Six-Legged Walking Robot with Advanced Maneuverability. In Proceedings of the 2014 IEEE/ASME International Conference on Advanced Intelligent Mechatronics, Besacon, France, 8–11 July 2014; IEEE: New York, NY, USA, 2014; pp. 82–87. [Google Scholar]
  9. Huang, S.; Zheng, M.; Hu, Z.; Liu, P.X. Enhancing Hexapod Robot Mobility on Challenging Terrains: Optimizing CPG-Generated Gait with Reinforcement Learning. Neurocomputing 2025, 622, 129328. [Google Scholar] [CrossRef]
  10. Ouyang, W.; Chi, H.; Pang, J.; Liang, W.; Ren, Q. Adaptive Locomotion Control of a Hexapod Robot via Bio-Inspired Learning. Front. Neurorobot. 2021, 15, 627157. [Google Scholar] [CrossRef]
  11. Yin, Y.; Gao, F.; Sun, Q.; Zhao, Y.; Xiao, Y. Smart Gait: A Gait Optimization Framework for Hexapod Robots. Chin. J. Mech. Eng. 2024, 37, 15. [Google Scholar] [CrossRef]
  12. Zhang, Z.; He, W.; Wu, F.; Quesada, L.; Xiang, L. Development of a Bionic Hexapod Robot with Adaptive Gait and Clearance for Enhanced Agricultural Field Scouting. Front. Robot. AI 2024, 11, 1426269. [Google Scholar] [CrossRef] [PubMed]
  13. Liu, Y.; Fan, X.; Ding, L.; Wang, J.; Liu, T.; Gao, H. Fault-Tolerant Tripod Gait Planning and Verification of a Hexapod Robot. Appl. Sci. 2020, 10, 2959. [Google Scholar] [CrossRef]
  14. Sun, Y.; Zong, C.; Pancheri, F.; Chen, T.; Lueth, T.C. Design of Topology Optimized Compliant Legs for Bio-Inspired Quadruped Robots. Sci. Rep. 2023, 13, 4875. [Google Scholar] [CrossRef] [PubMed]
  15. Wang, L.; Li, R.; Wang, X.; Gao, W.; Chen, Y. A Motion Control Strategy for a Blind Hexapod Robot Based on Reinforcement Learning and Central Pattern Generator. Symmetry 2025, 17, 1058. [Google Scholar] [CrossRef]
  16. Luneckas, M.; Luneckas, T.; Udris, D.; Plonis, D.; Maskeliūnas, R.; Damaševičius, R. A Hybrid Tactile Sensor-Based Obstacle Overcoming Method for Hexapod Walking Robots. Intel. Serv. Robot. 2021, 14, 9–24. [Google Scholar] [CrossRef]
  17. Katoch, S.; Chauhan, S.S.; Kumar, V. A Review on Genetic Algorithm: Past, Present, and Future. Multimed. Tools Appl. 2021, 80, 8091–8126. [Google Scholar] [CrossRef]
  18. Kneiding, H.; Balcells, D. Augmenting Genetic Algorithms with Machine Learning for Inverse Molecular Design. Chem. Sci. 2024, 15, 15522–15539. [Google Scholar] [CrossRef]
  19. Shi, Y.; Eberhart, R. A Modified Particle Swarm Optimizer. In Proceedings of the 1998 IEEE International Conference on Evolutionary Computation Proceedings. IEEE World Congress on Computational Intelligence (Cat. No.98TH8360), Anchorage, AK, USA, 4–9 May 1998; IEEE: New York, NY, USA, 1998; pp. 69–73. [Google Scholar]
  20. Chen, X.-B.; Gao, F. Energy Expenditure of Trotting Gait Under Different Gait Parameters. Chin. J. Mech. Eng. 2017, 30, 943–950. [Google Scholar] [CrossRef]
  21. Tao, C.; Xue, J.; Zhang, Z.; Cao, F.; Li, C.; Gao, H. Gait Optimization Method for Humanoid Robots Based on Parallel Comprehensive Learning Particle Swarm Optimizer Algorithm. Front. Neurorobot. 2021, 14, 600885. [Google Scholar] [CrossRef]
  22. Walas, K.; Schmidt, A.; Kraft, M.; Fularz, M. Hardware Implementation of Ground Classification for a Walking Robot. In Proceedings of the 9th International Workshop on Robot Motion and Control, Kuslin, Poland, 3–5 July 2013; IEEE: New York, NY, USA, 2013; pp. 110–115. [Google Scholar]
  23. Brooks, C.A.; Iagnemma, K.D.; Dubowsky, S. Visual Wheel Sinkage Measurement for Planetary Rover Mobility Characterization. Auton. Robot. 2006, 21, 55–64. [Google Scholar] [CrossRef]
  24. Saranli, U.; Buehler, M.; Koditschek, D.E. RHex: A Simple and Highly Mobile Hexapod Robot. Int. J. Robot. Res. 2001, 20, 616–631. [Google Scholar] [CrossRef]
  25. Choi, S.; Ji, G.; Park, J.; Kim, H.; Mun, J.; Lee, J.H.; Hwangbo, J. Learning Quadrupedal Locomotion on Deformable Terrain. Sci. Robot. 2023, 8, eade2256. [Google Scholar] [CrossRef]
  26. Vulpi, F.; Milella, A.; Marani, R.; Reina, G. Recurrent and Convolutional Neural Networks for Deep Terrain Classification by Autonomous Robots. J. Terramechanics 2021, 96, 119–131. [Google Scholar] [CrossRef]
  27. Vangen, A.; Barnwal, T.; Olsen, J.A.; Alexis, K. Terrain Recognition and Contact Force Estimation Through a Sensorized Paw for Legged Robots. In Proceedings of the 2023 21st International Conference on Advanced Robotics (ICAR), Abu Dhabi, United Arab Emirates, 5 December 2023; IEEE: New York, NY, USA; pp. 605–612. [Google Scholar]
  28. Johnson, K.L. Contact Mechanics; Cambridge University Press: Cambridge, UK, 1985; ISBN 0 521 25576 7. [Google Scholar]
  29. Inman, D.J. Engineering Vibration, 4th ed.; Pearson: London, UK, 2014; ISBN 978-0-13-356071-8. [Google Scholar]
  30. Ding, L.; Gao, H.; Deng, Z.; Song, J.; Liu, Y.; Liu, G.; Iagnemma, K. Foot–Terrain Interaction Mechanics for Legged Robots: Modeling and Experimental Validation. Int. J. Robot. Res. 2013, 32, 1585–1606. [Google Scholar] [CrossRef]
  31. Ma, X.; Zhang, Q.; Sun, Y.; Wang, N. Research and Analysis on Energy Consumption of Underwater Hexapod Robot Based on Typical Gait. In Intelligent Robotics and Applications; Liu, X.-J., Nie, Z., Yu, J., Xie, F., Song, R., Eds.; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2021; Volume 13015, pp. 14–24. ISBN 978-3-030-89133-6. [Google Scholar]
  32. Brodoline, I.; Sauvageot, E.; Viollet, S.; Serres, J.R. Shaping the Energy Curves of a Servomotor-Based Hexapod Robot. Sci. Rep. 2024, 14, 11675. [Google Scholar] [CrossRef] [PubMed]
  33. Luneckas, M.; Luneckas, T.; Kriaučiūnas, J.; Udris, D.; Plonis, D.; Damaševičius, R.; Maskeliūnas, R. Hexapod Robot Gait Switching for Energy Consumption and Cost of Transport Management Using Heuristic Algorithms. Appl. Sci. 2021, 11, 1339. [Google Scholar] [CrossRef]
  34. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  35. Dehghani, M.; Hubalovsky, S.; Trojovsky, P. Northern Goshawk Optimization: A New Swarm-Based Algorithm for Solving Optimization Problems. IEEE Access 2021, 9, 162059–162080. [Google Scholar] [CrossRef]
Figure 1. Hexapod robot simulation structure diagram.
Figure 1. Hexapod robot simulation structure diagram.
Robotics 14 00139 g001
Figure 2. Schematic diagram of triangular gait forward locomotion.
Figure 2. Schematic diagram of triangular gait forward locomotion.
Robotics 14 00139 g002
Figure 3. Terrain-aware gait parameter optimization system.
Figure 3. Terrain-aware gait parameter optimization system.
Robotics 14 00139 g003
Figure 4. Three types of ground material.
Figure 4. Three types of ground material.
Robotics 14 00139 g004
Figure 5. Hexapod robot simulink modules.
Figure 5. Hexapod robot simulink modules.
Robotics 14 00139 g005
Figure 6. Parameter optimization results for different ground surfaces.
Figure 6. Parameter optimization results for different ground surfaces.
Robotics 14 00139 g006
Figure 7. Simulation reward values of each algorithm.
Figure 7. Simulation reward values of each algorithm.
Robotics 14 00139 g007
Figure 8. Optimization efficiency of rock ground stability indicators.
Figure 8. Optimization efficiency of rock ground stability indicators.
Robotics 14 00139 g008
Figure 9. Convergence curves of various algorithms on the rock ground.
Figure 9. Convergence curves of various algorithms on the rock ground.
Robotics 14 00139 g009
Figure 10. Optimization efficiency of sand ground speed indicators.
Figure 10. Optimization efficiency of sand ground speed indicators.
Robotics 14 00139 g010
Figure 11. Convergence curves of various algorithms on the sand ground.
Figure 11. Convergence curves of various algorithms on the sand ground.
Robotics 14 00139 g011
Figure 12. Optimization efficiency of clay ground COT indicator.
Figure 12. Optimization efficiency of clay ground COT indicator.
Robotics 14 00139 g012
Figure 13. Convergence curves of various algorithms for clay ground.
Figure 13. Convergence curves of various algorithms for clay ground.
Robotics 14 00139 g013
Table 1. Mechanical parameters of three types of ground material [30].
Table 1. Mechanical parameters of three types of ground material [30].
Ground TypeStiffness
(N/m)
Damping
(N/(m/s))
Dynamic
Friction
Static
Friction
Density
(kg/m3)
Rock Ground 3 × 10 9 1.8 × 10 5 0.520.551800
Sand Ground 9.1 × 10 6 90000.60.651700
Clay Ground 1.7 × 10 6 39000.50.551600
Table 2. Optimization results for different ground parameters.
Table 2. Optimization results for different ground parameters.
Ground TypeStep Size
(m)
Step Height
(m)
Step Frequency
(Hz)
v
(m/s)
Standard Deviation
(mm)
COTReward
Rock Ground0.1530.0760.640.210.46.80.66
Sand Ground0.300.1432.000.411.339.10.73
Clay Ground0.1170.010.840.312.621.70.71
Table 3. Different optimization parameters for various ground algorithms.
Table 3. Different optimization parameters for various ground algorithms.
Ground TypeAlgorithm TypeStep Size
(m)
Step Height
(m)
Step Frequency (Hz)Reward
Rock GroundBased0.180.0710.6
PSO0.0730.0371.10.65
GWO0.0970.0480.770.66
NGO0.0860.0430.760.66
TGPSO0.1530.0760.630.66
Sand GroundBased0.180.0710.62
PSO0.30.1482.00.71
GWO0.290.1441.980.72
NGO0.30.1451.880.70
TGPSO0.30.1432.000.73
Clay GroundBased0.180.0710.58
PSO0.1150.0310.650.70
GWO0.1360.010.50.70
NGO0.1320.040.570.70
TGPSO0.1170.010.840.71
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

Bai, G.; Chen, W.; Du, J.; Liu, Y.; Luo, Y.; Qin, H. TGPSO: An Adaptive Gait Optimization Algorithm for Hexapod Robots in Multi-Terrain Environments. Robotics 2025, 14, 139. https://doi.org/10.3390/robotics14100139

AMA Style

Bai G, Chen W, Du J, Liu Y, Luo Y, Qin H. TGPSO: An Adaptive Gait Optimization Algorithm for Hexapod Robots in Multi-Terrain Environments. Robotics. 2025; 14(10):139. https://doi.org/10.3390/robotics14100139

Chicago/Turabian Style

Bai, Guiqiang, Weixu Chen, Jingang Du, Yang Liu, Yanting Luo, and Hongde Qin. 2025. "TGPSO: An Adaptive Gait Optimization Algorithm for Hexapod Robots in Multi-Terrain Environments" Robotics 14, no. 10: 139. https://doi.org/10.3390/robotics14100139

APA Style

Bai, G., Chen, W., Du, J., Liu, Y., Luo, Y., & Qin, H. (2025). TGPSO: An Adaptive Gait Optimization Algorithm for Hexapod Robots in Multi-Terrain Environments. Robotics, 14(10), 139. https://doi.org/10.3390/robotics14100139

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