Skip to Content
You are currently on the new version of our website. Access the old version .
ActuatorsActuators
  • Article
  • Open Access

11 November 2026

23 Pages

Robust Trajectory Tracking Control for Snake Robots: A Backstepping and VHC-Integrated Strategy

,
,
,
,
and
1
School of Automation, Hangzhou Dianzi University, Hangzhou 310018, China
2
School of Automation Science and Engineering, South China University of Technology, Guangzhou 510640, China
3
Department of Human Resources, Hangzhou Dianzi University, Hangzhou 310018, China
*
Author to whom correspondence should be addressed.

Abstract

Snake robots are plagued by a critical bottleneck in attaining high-precision regulation of both velocity magnitude and movement direction amid kinematic coupling during gait execution. To address this challenge, this paper formulates a hybrid control strategy via the synergistic integration of backstepping and Virtual Holonomic Constraint (VHC) methods. Firstly, the dynamics model of the snake robot is rigorously formulated under two scenarios: in the presence of external actuating inputs and in their absence. Concurrently, the dynamics system for the targeted input torque is analytically derived. Subsequently, by using the time-scale separation principle, the main system is framed as a perturbed system, and state equations related to both velocity direction and velocity magnitude are established. Meanwhile, a velocity controller based on VHC is synthesized to enforce kinematic constraints while accommodating dynamic uncertainties. Utilizing Lyapunov stability theory and the backstepping method, asymptotic stability of the snake robot is achieved. Finally, simulation results showed that the proposed controller reduced the tangential-speed tracking error by 73.3%. In the physical trial, the heading error remained within the 5% tolerance after approximately 40 s and within the 3% tolerance after approximately 190 s.

1. Introduction

Inspired by the structures and locomotion mechanisms of biological organisms, bioinspired robots have shown potential in a range of applications, including industrial inspection [1], auxiliary construction [2], search in confined spaces [3], seabed exploration [4], medical intervention [5], and cooperative obstacle avoidance in fluid environments [6]. While quadruped robots are prevalent in current research [7,8,9,10], their mobility remains limited in complex, irregular, and narrow channels such as debris gaps. In contrast, the snake robot, with its flexible body structure, exhibits a unique capability for high-degree-of-freedom motion [11], enabling it to adapt to complex environments through diverse gaits, such as meandering [12,13], rolling [14,15], and vertical climbing [16]. In particular, it offers significant advantages for inspection and operational tasks in confined settings such as pipelines and debris gaps. Further research on gait control, trajectory prediction, and motion regulation for snake robots is therefore relevant to their operation in complex environments.
Kinematic and dynamic models provide the theoretical foundation for analyzing and controlling snake robot locomotion. Kinematic models capture the geometric relationships governing robot motion, whereas dynamic models describe the forces and torques that generate it. In ref. [17], a unified motion model was developed for snake robot gaits generated from backbone curves, enabling prediction of both motion direction and magnitude. The study in [18] formulated a Lagrangian dynamic model for a planar snake robot actuated by antagonistic pneumatic artificial muscles. A computed-muscle-force controller based on feedback linearization and full-state feedback was also developed. Simulation results showed that the robot could track circular and square trajectories at a constant linear speed. In ref. [19], a recursive dynamics modeling method based on Lie theory was proposed to improve the motion accuracy of snake-arm robots. The authors of [20] developed an underwater snake robot that combines rigid propulsors with soft joints to improve swimming efficiency and flexibility while reducing the risk of collision damage. The study in [21] presented the design, fabrication, kinestatic modeling, and experimental validation of a two-degree-of-freedom, screw-based, multi-backbone continuum robot. By accounting for system friction, the proposed model improved predictions of robot behavior and reduced hysteresis in the input–output response. In ref. [22], a unified rigid-soft model was established for kinematic and dynamic analyses by representing the soft joint as a flexible universal joint. This model was subsequently used to investigate robot motion in different postures under water flow. The study in [23] introduced a self-adaptation strategy for the planar undulatory locomotion of a multibody snake robot. The strategy determines the optimal propulsion speed according to ground conditions, thereby facilitating efficient and adaptive locomotion. Furthermore, Song et al. [24] proposed a motion-matrix-based gait decomposition method together with a gradient-based algorithm for optimizing the gait parameters of snake robots.
Motion control of snake robots converts high-level motion commands into joint torques and uses feedback to reduce tracking errors, enabling stable and accurate locomotion. The work in [25] designed a Bézier-curve-based climbing gait for pipes with abrupt diameter changes, ensuring continuous joint-angle transitions. Liu et al. [26] proposed a polynomial interpolation method to mitigate body oscillation and sideslip caused by abrupt updates to gait parameters during transitions from straight locomotion to turning. The transition duration was selected using a bisection search to improve gait-switching efficiency. Li et al. [27] proposed a butterfly spiral propulsion mode for snake robots that achieved faster tracking and more stable error responses than cylindrical and conical spiral gaits. Zhang et al. [28] presented an optimal robust path-following control framework based on an improved lateral undulatory gait for snake robots with joint failures. Its effectiveness in motion recovery and robust path following was validated under joint failures. In ref. [29], Sheng et al. proposed a delay-aware swing and grasp (DSG) framework combining rules and learning methods to improve the ability of snake robots to move between trees. In ref. [30], Zhao et al. presented a novel multigait continuous flexible snake mobile robot based on rotating, twisting, and untwisting of a flexible spring, enabling locomotion across a range of complex terrains. Tang et al. [31] proposed the main characteristics control (MCC) method as a unified gait representation. By extracting the principal features of gait backbone curves, the method simplifies and unifies the control functions for different snake robot gaits, facilitating smooth transitions between them. In ref. [32], Elsayed et al. proposed a mobile manipulation approach that enhances the manipulation capabilities of snake robots using their full-body motion. In ref. [33], Yang et al. proposed a gait generation method based on a standardized central pattern generator (CPG) to address the issues of low motion efficiency, high joint signal noise, and challenges in traversing obstacles during helical locomotion of snake robots along high-voltage transmission lines.
Nonholonomic velocity constraints restrict the admissible velocities of a robotic system [34]. When lateral no-slip constraints are not imposed, snake-robot models can account for lateral slip in path-following and speed-control analysis. Virtual holonomic constraints (VHCs) have been applied to motion control of snake robots [35] and bipedal robots [36]. This framework constrains the robot’s motion to a lower-dimensional manifold and prescribes biologically inspired gait patterns. For snake robots, VHC-based controllers can regulate the robot’s heading according to a path-following guidance law. An efficient path-following controller for snake robots subject to multiple constraints and unknown friction was developed in [37]. The trajectory-tracking controller proposed in [38] eliminates sideslip effects and estimates unknown coefficients to improve tracking performance. The approach presented in [39] combines a double-sine serpentine gait with an adaptive sliding mode controller for target tracking. The gait was designed to improve steering efficiency, while the controller uses joint-angle feedback and a new reaching law to improve tracking performance. Li et al. [40] proposed an adaptive path-following strategy that estimates time-varying system parameters and external disturbances online to reduce tracking errors. The approach in [41] combines LOS guidance based on a finite-time sideslip differentiator with an adaptive backstepping controller to address sideslip, external disturbances, and state constraints. A framework for simultaneous obstacle avoidance and path tracking was proposed in [42], incorporating state constraints and disturbance compensation.
Table 1 compares selected approaches across forward-speed regulation, heading control, joint trajectory tracking, feedback-based gait modulation, and locomotion with lateral slip. In this comparison, the proposed framework integrates speed and heading regulation with joint tracking and feedback-based gait modulation within a model that permits lateral slip. This combination defines the scope of the control framework developed in this study.
Table 1. Capability comparison with representative related approaches.
Building on these studies, this paper proposes a control strategy that integrates backstepping with VHC to address kinematic coupling during gait execution. The main contributions are summarized as follows:
  • The state equations of the snake robot are formulated for cases with and without external inputs. The system state variables are defined, and time-varying gait variables are introduced within the VHC framework. Expressions for the desired joint torques and the corresponding state equations are derived.
  • A speed controller integrating backstepping with VHCs is developed based on the dynamic model of the snake robot. The resulting control framework is intended to facilitate the implementation of the theoretical control design on a physical snake robot.
  • Using the concept of the disturbance system and the principle of time-scale separation, the main system is separated, and the state equations related to the speed direction and speed of the snake robot are calculated. The speed controller is designed based on the state equations of the main system, and the asymptotic stability of the system is proved by Lyapunov stability theory.
  • A numerical implementation of the proposed control strategy is developed to evaluate the closed-loop response under the selected model and controller parameters. Numerical simulations assess speed regulation and directional tracking, while experiments with a physical snake robot provide qualitative evidence of the controller’s effectiveness in adjusting the direction of motion.

2. Kinematic and Dynamic Modeling of the Snake Robot

This section derives the planar dynamics of an N-link snake robot using the Newton–Euler equations. First, the geometric constraints and link kinematics are established, followed by the force and moment balances for each link. The resulting dynamics are then expressed in actuated and unactuated coordinates for controller design. Table 2 summarizes the geometric and inertial parameters, link and joint coordinates, actuator torques, and interaction forces used in the model. Link orientations are measured relative to the global x-axis, whereas joint angles describe the relative orientations of adjacent links. Distinguishing actuator torques, interlink constraint forces, and ground friction establishes the notation for the Newton–Euler balances derived below.
Table 2. Symbols and description in the dynamics model of snake robots.
The mathematical model of the snake robot represents the system as a multi-link structure comprising N links interconnected by N − 1 joints. Each link is assumed to be identical, having equal mass, rotational inertia, shape, and density, as shown in Figure 1. The dotted horizontal line indicates the reference direction, the global x-axis, from which the link orientation angle θ i is measured. This modular idealization simplifies the model and isolates the effect of the control law. Additionally, the density of each link in the snake robot is uniformly distributed, with no variations across different parts of the link. The subsequent calculations will utilize the following parameter matrix.
Figure 1. The force analysis of the connecting rod.
The matrices A and D represent the sums and differences of quantities across adjacent links, respectively. The dimensionless vector e is the N-dimensional vector of ones. Left-multiplying by e ⊤ yields the sum of a quantity across all links, whereas multiplying a scalar by e distributes that scalar uniformly across all links. In particular, D e = 0 and e ⊤ e = N . The block matrix E generalizes these summation and distribution properties to the two Cartesian coordinate directions.
A : = 1 1 . . . . 1 1 ∈ R ( N − 1 ) × N , D : = 1 − 1 . . . . 1 − 1 ∈ R ( N − 1 ) × N , e : = [ 1 , ⋯ , 1 ] ⊤ ∈ R N , E : = e 0 N × 1 0 N × 1 e ∈ R 2 N × 2 , θ : = [ θ 1 , ⋯ , θ N ] ⊤ ∈ R N , sin θ : = [ sin θ 1 , ⋯ , sin θ N ] ⊤ ∈ R N , S θ : = diag ( sin θ ) ∈ R N × N , cos θ : = [ cos θ 1 , ⋯ , cos θ N ] ⊤ ∈ R N , C θ : = diag ( cos θ ) ∈ R N × N , sgn θ : = [ sgn θ 1 , ⋯ , sgn θ N ] ⊤ ∈ R N , θ ˙ 2 : = [ θ ˙ 1 2 , ⋯ , θ ˙ N 2 ] ⊤ ∈ R N .
The relative joint angles are defined from the global link orientations θ i as
ϕ i : = θ i − θ i + 1 , i = 1 , 2 , … , N − 1 .
A serpentine motion within the plane can be achieved at any position of the link, utilizing the previously defined coordinate system. When the link angle is denoted as θ i , the transformation matrix between the link and the world coordinate system is represented as
R i Global : = cos θ i − sin θ i sin θ i cos θ i .
The centroid coordinates are given by
X : = [ x 1 , … , x N ] ⊤ , Y : = [ y 1 , … , y N ] ⊤ , p : = p x p y = 1 N m ∑ i = 1 N m x i 1 N m ∑ i = 1 N m y i = 1 N e T X e T Y ,
where X and Y denote the coordinate set of all connecting rod centroids, p x and p y represent the global coordinates of the centroid of the snake robot.
The coordinate relationship between the links can be derived
x i + 1 − x i = l cos θ i + l cos θ i + 1 , y i + 1 − y i = l sin θ i + l sin θ i + 1 .
Furthermore, the matrix form of the coordinate equations can be obtained
D X + l A cos θ = 0 , D Y + l A sin θ = 0 .
The coordinate equations and the centroid equations are expressed in a compact form as follows:
T X = − l A cos ( θ ) p x , T Y = − l A sin ( θ ) p y ,
where T : = D 1 N e ⊤ ∈ R N × N . Because D has rank N − 1 and its null space is spanned by e, augmenting D with e T N yields a nonsingular matrix T.
T − 1 = D ⊤ ( D D ⊤ ) − 1 e .
Then, the coordinates of the links can be obtained by
X = T − 1 − l A cos θ p x = − l K ⊤ cos θ + e p x , Y = T − 1 − l A sin θ p y = − l K ⊤ sin θ + e p y ,
where K ⊤ : = D ⊤ ( D D ⊤ ) − 1 A ∈ R N × N . Since e ⊤ K ⊤ = 0 , the vectors − l K ⊤ cos θ and − l K ⊤ sin θ describe the link-center positions relative to the robot’s center of mass. The terms e p x and e p y add the same center-of-mass translation to all links.
Taking the derivatives of (9), we have
X ˙ = l K ⊤ S θ θ ˙ + e p ˙ x , Y ˙ = − l K ⊤ C θ θ ˙ + e p ˙ y .
Expanding the above equations, we obtain the corresponding velocities as follows
x ˙ i = p ˙ x − σ i S θ θ ˙ , y ˙ i = p ˙ y + σ i C θ θ ˙ ,
where σ i : = − l [ K ⊤ ] i , : ∈ R 1 × N , [ K ⊤ ] i , : denotes the i-th row of the matrix.
Furthermore, taking the derivatives of (11) yields x i ¨ and y i ¨ . With free endpoints, the robot has zero endpoint constraint forces, i.e., h x , 0 = h y , 0 = h x , N = h y , N = 0 . By conducting force analysis on the links, we can obtain the force equations of the links as
m x i ¨ = f R , x , i + h x , i − h x , i − 1 , m y i ¨ = f R , y , i + h y , i − h y , i − 1 , i = 1 , … , N ,
where ( h x , i , h y , i ) denotes the joint constraint force exerted by link i + 1 on link i, whereas − ( h x , i − 1 , h y , i − 1 ) denotes the joint constraint force exerted by link i − 1 on link i. The link force balances can be written in matrix form as
m X ¨ = f R , x + D ⊤ h x , m Y ¨ = f R , y + D ⊤ h y ,
here,
h x : = [ h x , 1 , h x , 2 , … , h x , N − 1 ] ⊤ , h y : = [ h y , 1 , h y , 2 , … , h y , N − 1 ] ⊤ .
By further differentiation, we get
D X ¨ = l A C θ θ ˙ 2 + S θ θ ¨ , D Y ¨ = l A S θ θ ˙ 2 − C θ θ ¨ .
Premultiplying the link force balances in (13) by e ⊤ sums the forces acting on all links. Since e ⊤ D ⊤ = 0 , the joint constraint forces cancel, leaving the net external ground-friction force. Together with the equal-mass center-of-mass relation in (4), this yields
p x ¨ p y ¨ = 1 N e ⊤ X ¨ e ⊤ Y ¨ = 1 N m e ⊤ f R , x e ⊤ f R , y .
Following the modeling assumption of Mohammadi et al. [43], the interaction between each link and the ground is modeled with an anisotropic linear viscous friction model. The ground friction forces are external contact forces determined by the link velocities and orientations, whereas the actuator torques are the physical control inputs. Transforming the local friction law into the global coordinate frame yields
f R , i = − cos θ i − sin θ i sin θ i cos θ i c t 0 0 c n cos θ i − sin θ i sin θ i cos θ i ⊤ x i ˙ y i ˙ .
The constants c t and c n are the tangential and transverse viscous friction coefficients, respectively, with units of N · s · m − 1 . The assumption c n > c t > 0 implies greater resistance to transverse motion than to tangential motion at the same speed. The interaction between this directional resistance and cyclic changes in body shape enables net locomotion. Under this velocity-dependent law, the friction force on a stationary link is zero; static friction, transitions between sticking and sliding, and anchoring by spikes or setae are therefore excluded from this model. The friction forces for all links can be written in compact form as
f R = − c t ( C θ ) 2 + c n ( S θ ) 2 ( c t − c n ) S θ C θ ( c t − c n ) S θ C θ c t ( S θ ) 2 + c n ( C θ ) 2 X ˙ Y ˙ ∈ R 2 N .
The endpoint torques are defined as u 0 : = 0 , u N : = 0 because the actuators are located only at the N − 1 internal joints. Based on the force analysis of the links from Figure 1, the total torque can be expressed as
J θ i ¨ = u i − u i − 1 − l sin θ i h x , i + h x , i − 1 + l cos θ i h y , i + h y , i − 1 , i = 1 , … , N ,
where, u i represents the actuator torque of joint i, exerting u i and − u i on links i and i + 1 , respectively. Then, we have u : = [ u 1 , … , u N − 1 ] ⊤ ∈ R N − 1 . Furthermore, we obtain
J θ ¨ = D ⊤ u − l S θ A ⊤ h x + l C θ A ⊤ h y .
Multiplying Equations (13) by matrix D yields
m D X ¨ = D f R , x + D D ⊤ h x , m D Y ¨ = D f R , y + D D ⊤ h y .
Eliminating the joint constraint forces using (15), (20), and (21), we obtain
M θ θ ¨ + W θ ˙ 2 − l S θ K f R , x + l C θ K f R , y = D ⊤ u ,
p ¨ = 1 N m e ⊤ f R , x e ⊤ f R , y ,
M θ : = J I N + m l 2 S θ V S θ + m l 2 C θ V C θ , W : = m l 2 S θ V C θ − C θ V S θ , V : = A ⊤ ( D D ⊤ ) − 1 A , K : = A ⊤ ( D D ⊤ ) − 1 D ,
here, the notation I d denotes the d × d identity matrix, M θ ( θ ) ∈ R N × N is the inertia matrix in the global link-angle coordinates, and W ( θ ) ∈ R N × N contains the coefficients of the quadratic velocity term. The constant matrices V , K ∈ R N × N are determined by the link-connectivity matrices A and D.
Remark 1.
The analysis above shows that the snake robot behaves as a high-order nonlinear system, as evidenced by the squared term involving the first-order derivative of the link angle θ in Equation (22). Furthermore, the input u represents the torque applied by the joints to the links. The robot has N + 2 generalized coordinates and N − 1 independent joint torques, resulting in three degrees of underactuation [43]. The head-link orientation and center-of-mass position are not directly actuated. Nevertheless, joint motion changes the distributed ground friction, coupling the actuated and unactuated dynamics and enabling indirect control of locomotion.
Define the matrix H to correlate the joint angle and the link angle
H : = 1 1 1 ⋯ 1 1 0 1 1 ⋯ 1 1 ⋮ ⋮ 0 0 0 ⋯ 0 1 ∈ R N × N .
Consider defining the generalized-coordinate vector q ϕ as the set of the joint angle, snake head link angle, and centroid
q ϕ : = ϕ ¯ p ∈ R N + 2 ,
where ϕ ¯ : = [ ϕ 1 , ϕ 2 , … , ϕ N − 1 , θ N ] ⊤ , and p represents the centroid of the snake robot. The relationship between ϕ ¯ and θ can be computed using matrix H
θ = H ϕ ¯ .
Substituting Equation (27) into Equation (22), we obtain
M θ H ϕ ¯ ¨ + W diag H ϕ ¯ ˙ H ϕ ¯ ˙ − l S θ K f R , x + l C θ K f R , y = D ⊤ u .
Define the actuated and unactuated coordinate vectors as q a : = [ ϕ 1 , ϕ 2 , … , ϕ N − 1 ] ⊤ ∈ R N − 1 , q u : = [ θ N , p x , p y ] ⊤ ∈ R 3 , so that q ϕ = [ q a ⊤ , q u ⊤ ] ⊤ . The relation θ p : = H 0 N × 2 0 2 × N I 2 q ϕ defines an invertible linear change of generalized coordinates, since H is upper triangular with unit diagonal. Premultiplication of the rotational dynamics by H ⊤ accounts for the corresponding transformation of generalized forces. Moreover, D H : = I N − 1 0 ( N − 1 ) × 1 , H ⊤ D ⊤ : = I N − 1 0 1 × ( N − 1 ) . Premultiplying (28) by H ⊤ , multiplying (23) by N m , and partitioning the resulting equations according to the actuated and unactuated coordinates yields (29).
M ¯ : = H ⊤ M θ H 0 N × 2 0 2 × N N m I 2 , W ¯ : = H ⊤ W θ ˙ 2 0 2 × 1 , G ¯ : = − l H ⊤ S θ K l H ⊤ C θ K − e ⊤ 0 1 × N 0 1 × N − e ⊤ , M ¯ : = M ¯ 11 M ¯ 12 M ¯ 21 M ¯ 22 , W ¯ : = W ¯ 1 W ¯ 2 , G ¯ : = G ¯ 1 G ¯ 2 , M ¯ 11 q ¨ a + M ¯ 12 q ¨ u + W ¯ 1 + G ¯ 1 f R = u , M ¯ 21 q ¨ a + M ¯ 22 q ¨ u + W ¯ 2 + G ¯ 2 f R = 0 3 × 1 ,
where M ¯ 11 ∈ R N − 1 × N − 1 ,   M ¯ 12 ∈ R N − 1 × 3 ,   M ¯ 21 ∈ R 3 × N − 1 ,   M ¯ 22 ∈ R 3 × 3 ,   W ¯ 1 ∈ R N − 1 ,   W ¯ 2 ∈ R 3 ,   G ¯ 1 ∈ R N − 1 × 2 N ,   G ¯ 2 ∈ R 3 × 2 N .
Equation (29) is the standard partitioned form of an underactuated mechanical system, M ¯ ( q ϕ ) q ¨ ϕ + W ¯ ( q ϕ , q ˙ ϕ ) + G ¯ ( q ϕ ) f R = B u , where B = I N − 1 0 3 × ( N − 1 ) . For the physical parameters J > 0 and m > 0 , V = A ⊤ ( D D ⊤ ) − 1 A ⪰ 0 , which gives M θ ⪰ J I N ; since H is nonsingular, the transformed inertia matrix is symmetric positive definite. Moreover, because the last column of H is e, M ¯ 22 = diag ( e ⊤ M θ e , N m , N m ) , and e ⊤ M θ e ≥ J N > 0 . Therefore, M ¯ 22 ≻ 0 and is consequently nonsingular.
Following the underactuated-system framework in [44], the joint dynamics can be partially linearized via state feedback. Input–output linearization of the joint dynamics is also employed in the snake-robot formulation of [43]. First, solving the unactuated equation in (29) for q ¨ u yields
q ¨ u = − M ¯ 22 − 1 ( M ¯ 21 q ¨ a + W ¯ 2 + G ¯ 2 f R ) .
Substituting Equation (30) into the first equation of Equation (29) yields the following expression for the input torque u:
u = ( M ¯ 11 − M ¯ 12 M ¯ 22 − 1 M ¯ 21 ) q ¨ a + W ¯ 1 + G ¯ 1 f R − M ¯ 12 M ¯ 22 − 1 ( W ¯ 2 + G ¯ 2 f R ) .
The vector q a contains the N − 1 actuated joint angles, and q ¨ a denotes the corresponding angular accelerations. The desired joint accelerations are specified in the following section. The relationship between the unactuated coordinates q u and the actuated coordinates q a is then written as follows:
q ¨ u = U + Z q ¨ a ,
where U : = − M ¯ 22 − 1 ( W ¯ 2 + G ¯ 2 f R ) , Z : = − M ¯ 22 − 1 M ¯ 21 .
With the expressions for the velocities and accelerations of the state variables q a and q u determined, we define the global state variable as
x : = q a q u q ˙ a q ˙ u ∈ R 2 N + 4 .
Define the Schur complement S : = M ¯ 11 − M ¯ 12 M ¯ 22 − 1 M ¯ 21 . Since M ¯ is symmetric positive definite, S is also symmetric positive definite. Replacing q ¨ a in the torque law (31) with the virtual input u ¯ therefore defines a smooth, invertible static state-feedback transformation with respect to u ¯ . This transformation is termed collocated partial feedback linearization because the linearized coordinates are the actuated joint coordinates. It yields q ¨ a = u ¯ , q ¨ u = U + Z u ¯ . The joint subsystem consequently consists of N − 1 double integrators, while the unactuated dynamics retain their nonlinear dependence on the state. The corresponding first-order representation is
x ˙ = q ˙ a q ˙ u u ¯ U + Z u ¯ .

3. Controller Design Based on Backstepping and Virtual Holonomic Constraints

Most control method designs in this study are model-based. Therefore, it is essential to thoroughly analyze and study the model of the research subject. In the design of control methods, common techniques such as backstepping and Lyapunov-based analysis are used to construct virtual controls and assess closed-loop stability [45]. Another approach involves controlling nonlinear systems through methods like local feedback linearization. These two methods are implemented in this paper to achieve dynamic control of the snake robot. Before delving into the control method design, the challenges faced by the control system are considered. First and foremost, the joint tracking problem is addressed, with a focus on achieving precise tracking of the given time-varying joint angles. Subsequently, the system’s velocity control problem is examined, involving the generation of target joint angles based on expected velocities and the model. Furthermore, the paper considers the path tracking and path planning problems. However, due to scope limitations, the focus is solely on the path tracking problem.
Within the Euler–Lagrange framework, virtual holonomic constraints can define a lower-dimensional invariant manifold for control design [46]. In the present snake-robot model, introducing VHCs enables the construction of the corresponding reduced state equations, following the snake-robot application in [43]. Based on these considerations, this section is divided into two parts: one focuses on straight-line tracking, and the other focuses on curved-path tracking.
For periodic locomotion, averaging methods and vibrational-mechanics approaches are established tools for deriving slow dynamics from rapidly oscillating systems [47,48]. In this study, the gait is prescribed directly via the VHC parameterization in (35). In this section, the joint angle variations discussed follow the form
ϕ i , ref : = α sin λ + ( i − 1 ) δ + b i ϕ 0 , i = 1 , 2 , … , N − 1 ,
where α is the joint-angle amplitude, δ is the phase difference between adjacent joints, λ is the time-varying gait phase, ϕ 0 is a time-varying joint-angle offset. The vector b : = [ 0 , … , 0 , 1 ] ⊤ ∈ R N − 1 specifies how the offset is distributed among the joints, and b i denotes its i-th component. The first question to address is the ideal virtual joint-acceleration input u ¯ .
Considering the previous definitions of link angles and joint angles, we introduce the actual joint angles as
ϕ : = [ ϕ 1 , … , ϕ N − 1 ] ⊤ = D θ ∈ R N − 1 .
Following the VHC formulation of [43,46], we have Φ i ( λ ) : = α sin [ λ + ( i − 1 ) δ ] , Φ ( λ ) = [ Φ 1 ( λ ) , … , Φ N − 1 ( λ ) ] ⊤ . In addition, we define ϕ ref : = [ ϕ 1 , ref , … , ϕ N − 1 , ref ] ⊤ = Φ ( λ ) + b ϕ 0 . To ensure that the joint angle input under ideal conditions matches the expected target joint angles, considering the time-varying nature of the joint angles, the desired joint angle’s acceleration is given by
u ¯ : = ϕ ¨ ref + K d ( ϕ ˙ ref − ϕ ˙ ) + K p ( ϕ ref − ϕ ) .
where the matrices K p , K d ∈ R ( N − 1 ) × ( N − 1 ) are constant positive definite diagonal matrices specifying the joint-position and joint-velocity feedback gains, respectively. However, u ¯ cannot be directly used as the joint torque input to the system. To transform Equation (22), first, both sides of the equation are multiplied by M θ − 1 to obtain
θ ¨ + M θ − 1 W θ ˙ 2 − l M θ − 1 S θ K f R , x + l M θ − 1 C θ K f R , y = M θ − 1 D ⊤ u .
Once the actual joint angles and the desired joint angles are defined, the tracking error is defined as
z : = ϕ − ϕ ref = D θ − Φ λ − b ϕ 0 ,
when the error z approaches 0, the tracking of ϕ is accomplished. Multiplying Equation (38) on the left by the matrix D, we get
ϕ ¨ + D M θ − 1 W θ ˙ 2 − l D M θ − 1 S θ K f R , x + l D M θ − 1 C θ K f R , y = D M θ − 1 D ⊤ u .
Knowing that u ¯ = ϕ ¨ , the joint torque to be applied is obtained as
u = ( D M θ − 1 D ⊤ ) − 1 ( D M θ − 1 W θ ˙ 2 − l D M θ − 1 S C θ ⊤ f R + u ¯ ) ,
where S C θ : = K ⊤ S θ − K ⊤ C θ ∈ R 2 N × N . Since this joint controller is based on the snake robot’s dynamic model, it ensures that the joints can track the given joint angles (35) and completes the design of the joint controller.
The compensator states λ and ϕ 0 are used for speed and heading regulation, respectively. To obtain the unactuated rotational equation, we premultiply (22) by e ⊤ . Since D e = 0 , the vector e represents a common angular variation of all links that leaves the relative joint angles unchanged. Consequently, e ⊤ D ⊤ u = 0 , indicating cancellation of the internal actuator torques. After eliminating the interlink constraint forces, the projected equation represents the angular-momentum balance about the robot’s center of mass and retains the external ground-friction moment:
e ⊤ M θ θ ¨ + e ⊤ W θ ˙ 2 − l e ⊤ S C θ ⊤ f R = 0 .
Considering the geometric relationship between joint angles and link angles, as shown in Figure 1, the relationship between link angles and joint angles can be derived as
θ = H a D θ + e θ N ,
where H a : = 1 1 ⋯ 1 0 1 ⋯ 1 ⋮ ⋮ 0 0 ⋯ 1 0 0 ⋯ 0 ∈ R N × ( N − 1 ) , which consists of the first N − 1 columns of H.
On the invariant VHC manifold defined by z = 0 and z ˙ = 0 , the joint configuration satisfies
D θ = Φ ( λ ) + b ϕ 0 .
Substituting (44) into (43), we obtain
θ = H a Φ ( λ ) + H a b ϕ 0 + e θ N .
On the invariant VHC manifold, the reduced dynamics are described by the five coordinates λ , ϕ 0 , θ N , p x , p y and their first time derivatives, giving a ten-dimensional state. By substituting (45) into (42), we have e T M θ θ ¨ = e T M θ H a Φ ″ ( λ ) λ ˙ 2 + e T M θ H a Φ ′ ( λ ) λ ¨ + e T M θ H a b ϕ ¨ 0 + e T M θ e θ ¨ N . By defining e ⊤ M θ H a Φ ″ ( λ ) = M ¯ θ 1 , e ⊤ M θ H a Φ ′ ( λ ) = M ¯ θ 2 , e ⊤ M θ H a b = M ¯ θ 3 , and e ⊤ M θ e = M ¯ θ 4 , we can derive the expression for θ ¨ N :
θ ¨ N = − M ¯ θ 1 M ¯ θ 4 λ ˙ 2 − M ¯ θ 2 M ¯ θ 4 λ ¨ − M ¯ θ 3 M ¯ θ 4 ϕ ¨ 0 − e ⊤ W M ¯ θ 4 θ ˙ 2 + l e T S C θ ⊤ M ¯ θ 4 f R ,
where λ ¨ = u λ , ϕ ¨ 0 = u ϕ 0 , p ¨ = 1 N m e ⊤ f R , x e ⊤ f R , y . The scalar virtual inputs u λ and u ϕ 0 prescribe the accelerations of the gait phase and steering offset, respectively. Then we derive the dynamical model of the snake robot after applying the VHC method.
To control the motion of the snake robot, we set the desired head-link heading as θ r e f and its first and second derivatives as θ ˙ r e f and θ ¨ r e f , respectively, with the constant desired tangential velocity as v r e f . Next, we address the direction and velocity tracking problems of the snake robot sequentially.
Firstly, we address the direction tracking problem. From Equation (46), we observe the part related to ϕ ¨ 0 . To ensure convergence in subsequent calculations, we use the following control input for ϕ ¨ 0 .
u ϕ 0 : = M ¯ θ 4 M ¯ θ 3 u p 1 ( θ ˙ e + u p 2 θ e ) − u p 3 ϕ 0 − u p 4 ϕ ˙ 0 + u p 5 sin ( λ ˙ ) ,
where θ e : = θ N − θ r e f . The constants u p 1 and u p 2 determine the heading-feedback strength and the reduced heading-error convergence rate, respectively. The constants u p 3 and u p 4 provide restoring and damping feedback for the steering-offset dynamics, while u p 5 scales the phase-rate-dependent term. The operating domain excludes zeros of M ¯ θ 3 . The arguments of the phase-rate sine terms use λ ˙ normalized by 1 rad s − 1 . Differentiating the heading error twice with respect to time gives
θ ¨ e = θ ¨ N − θ ¨ r e f .
To calculate the formulas related to u ϕ 0 independently, we transform θ ¨ N in Equation (46) into the following form
θ ¨ N = Θ p 1 − M ¯ θ 3 M ¯ θ 4 ϕ ¨ 0 ,
where Θ p 1 : = − M ¯ θ 1 M ¯ θ 4 λ ˙ 2 − M ¯ θ 2 M ¯ θ 4 λ ¨ − e T W M ¯ θ 4 θ ˙ 2 + l e T S C θ ⊤ M ¯ θ 4 f R . Substituting (47) into (49), we obtain
θ ¨ N = Θ p 1 − u p 1 θ ˙ e + u p 2 θ e + M ¯ θ 3 M ¯ θ 4 u p 3 ϕ 0 + u p 4 ϕ ˙ 0 + u p 5 sin λ ˙ ,
Define the positive singular perturbation parameter as ϵ : = 1 u p 1 ; the perturbation system of variable (50) is derived as follows:
ϵ θ ¨ e = ϵ Θ p 1 − θ ¨ ref + M ¯ θ 3 M ¯ θ 4 u p 3 ϕ 0 + u p 4 ϕ ˙ 0 + u p 5 sin ( λ ˙ ) − y ^ ,
where y ^ : = θ ˙ e + u p 2 θ e is the fast error coordinate. In the reduced system used for the singular-perturbation analysis, this coordinate is set to zero, i.e., y ^ = θ ˙ e + u p 2 θ e = 0 , by setting ϵ = 0 in (51). For finite ϵ > 0 , y ^ remains a dynamic state and is retained in V 1 .
The small parameter ϵ = 1 u p 1 is introduced by the heading-feedback gain. The time-scale separation therefore follows from the controller structure rather than the low locomotion speed alone [45,49]. The following estimates assume smooth reduced dynamics on the considered operating domain and a uniformly bounded coupling residual as ϵ decreases.
In order to separately analyze y ^ , the time-scale separation principle is applied to distinguish the perturbation term from the singular perturbation system. According to the boundary-layer principle, the system satisfies
d y ^ d τ = − y ^ ,
where τ = t ϵ . This equilibrium is exponentially stable. For u p 2 > 0 , the reduced heading-error dynamics θ ˙ e = − u p 2 θ e are exponentially stable. Under the hypotheses of Theorem 11.2 in [45], the following singular-perturbation estimates are obtained:
θ e t , ϵ − e − u p 2 t θ e 0 = O ϵ ,
θ e ˙ t , ϵ + u p 2 e − u p 2 t θ e 0 − e − t ϵ y ^ 0 = O ϵ .
The initial time is set to t = 0 , with y ^ 0 : = y ^ ( 0 ) : = θ ˙ e ( 0 ) + u p 2 θ e ( 0 ) . The notation O ( ϵ ) denotes a remainder whose magnitude is bounded by a constant multiple of ϵ for sufficiently small ϵ .
To analyze the heading-error dynamics, consider the following Lyapunov function candidate:
V 1 : = θ e 2 2 + y ^ 2 2 .
Using (51) and the definition of y ^ , the heading-error components of the closed-loop vector field can be written as θ ˙ e = y ^ − u p 2 θ e , y ^ ˙ = − y ^ ϵ + Θ p 1 − θ ¨ ref + u p 2 ( y ^ − u p 2 θ e ) + M ¯ θ 3 M ¯ θ 4 u p 3 ϕ 0 + u p 4 ϕ ˙ 0 + u p 5 sin ( λ ˙ ) . Since V 1 depends only on θ e and y ^ , its derivative along the closed-loop vector field is
V ˙ 1 = ∂ V 1 ∂ θ e θ ˙ e + ∂ V 1 ∂ y ^ y ^ ˙ = θ e ( y ^ − u p 2 θ e ) + y ^ y ^ ˙ = θ e y ^ − u p 2 θ e 2 + y ^ y ^ ˙ .
Denote all terms after − y ^ ϵ in the expression for y ^ ˙ by R ( t ) . Assume forward-complete trajectories in the considered operating domain and | R ( t ) | ≤ L for a finite constant L ≥ 0 , uniformly over initial conditions in a neighborhood of the error set. In the singular limit considered here, the reduced relation is y ^ = 0 ; following the signed estimate used in the thesis derivation, y ^ y ^ ˙ ≤ − y ^ 2 2 ϵ + L y ^ , giving
V 1 ˙ ≤ θ e y ^ − u p 2 θ e 2 − 1 2 ϵ y ^ 2 + L y ^ .
The nonnegative sum of squares in (58) gives the inequality in (59):
y ^ − θ e 2 + y ^ − L 2 ≥ 0 .
y ^ θ e + y ^ L ≤ y ^ 2 + L 2 2 + θ e 2 2 .
Applying Young’s inequality to the two cross terms in (57), θ e y ^ ≤ θ e 2 2 + y ^ 2 2 and L y ^ ≤ L 2 2 + y ^ 2 2 , gives (60):
V ˙ 1 ≤ y ^ 2 + L 2 2 + θ e 2 2 − u p 2 θ e 2 − 1 2 ϵ y ^ 2 .
Further simplification leads to
V ˙ 1 ≤ − 1 2 ϵ − 1 y ^ 2 − u p 2 − 1 2 θ e 2 + L 2 2 .
For u p 2 > 1 2 and 0 < ϵ < 1 2 , define c : = 2 min { u p 2 − 1 2 , 1 2 ϵ − 1 } > 0 . Then, V ˙ 1 ≤ − c V 1 + L 2 2 . Choose ϵ 1 > 0 such that ϵ 1 2 > L 2 2 c . The comparison lemma gives
V 1 ( t ) ≤ e − c t V 1 ( 0 ) + L 2 2 c ( 1 − e − c t ) ≤ e − c t V 1 ( 0 ) + ϵ 1 2 ( 1 − e − c t ) .
The prescribed heading-error set is defined as Ω ϵ 1 : = { ( θ e , y ^ ) : V 1 ≤ ϵ 1 2 } . From (62), we can obtain max { V 1 ( t ) − ϵ 1 2 , 0 } ≤ e − c t max { V 1 ( 0 ) − ϵ 1 2 , 0 } . This estimate establishes the positive invariance, stability, and attractivity of Ω ϵ 1 , which is therefore asymptotically stable under the stated uniform assumptions. The selected variables satisfy lim sup t → ∞ ∥ [ θ e , y ^ ] ⊤ ∥ ≤ 2 ϵ 1 . Bounded residual oscillations are permitted within this set.
Next, we address the issue of velocity magnitude. As mentioned earlier, controlling the velocity magnitude is achieved by controlling the time-varying variable λ . Thus, in the following, we discuss and study the velocity control problem. In the snake robot, we control the tangential velocity v t and the normal velocity v n . In the previous coordinate transformation, the global coordinate velocities of the center of mass p and the tangential-normal velocities were mentioned. Substituting the link velocities in (10) into the viscous friction law in (18) gives
f R = − c t ( C θ ) 2 + c n ( S θ ) 2 c t − c n S θ C θ c t − c n S θ C θ c t ( S θ ) 2 + c n ( C θ ) 2 X ˙ Y ˙ = Q θ l K T S θ θ ˙ + e p ˙ x − l K T C θ θ ˙ + e p ˙ y ,
where Q θ ∈ R 2 N × 2 N denotes the negative block matrix in (63), which maps the link centroid velocities to the corresponding viscous friction forces.
On the invariant VHC manifold, substituting the friction law (63) and the time derivative of (45) into the centroid dynamics (23) yields the reduced centroid acceleration. Define the unit vectors parallel and normal to the head link as u θ N : = cos θ N sin θ N , v θ N : = − sin θ N cos θ N . The corresponding components of the centroid velocity are v t : = u θ N ⊤ p ˙ , v n : = v θ N ⊤ p ˙ , p ˙ = u θ N v t + v θ N v n . Differentiating the head-frame velocity components yields the tangential and normal velocity dynamics below.
v ˙ t = u θ N ⊤ M λ 1 u θ N v t + u θ N ⊤ M λ 1 v θ N v n + θ ˙ N v n + u θ N ⊤ M λ 2 θ ˙ N + u θ N ⊤ M λ 3 λ ˙ + u θ N ⊤ M λ 4 ϕ ˙ 0 ,
v ˙ n = v θ N ⊤ M λ 1 u θ N v t + v θ N ⊤ M λ 1 v θ N v n − θ ˙ N v t + v θ N ⊤ M λ 2 θ ˙ N + v θ N ⊤ M λ 3 λ ˙ + v θ N ⊤ M λ 4 ϕ ˙ 0 ,
where M λ 1 : = 1 N m E ⊤ Q θ E , M λ 2 : = l N m E ⊤ Q θ S C θ e , M λ 3 : = l N m E ⊤ Q θ S C θ H a Φ ′ ( λ ) , and M λ 4 : = l N m E ⊤ Q θ S C θ H a b . Define the tangential-velocity error as v e : = v t − v r e f . Since v r e f is constant, v ˙ e = v t ˙ , yielding
v ˙ e = v ˙ t = f v t + u θ N ⊤ M λ 3 λ ˙ .
where f v t = u θ N ⊤ M λ 1 u θ N v t + u θ N ⊤ M λ 1 v θ N + θ ˙ N v n + u θ N ⊤ M λ 2 θ ˙ N + u θ N ⊤ M λ 4 ϕ ˙ 0 .
We construct the following controller
u λ = − k λ 1 v ˙ e − k z λ ˙ + k λ 1 v e − g ( v e , λ ˙ ) ,
where k λ 1 > 0 and k z > 0 are constant scalar gains associated with the speed-error feedback and the damping of λ ˙ + k λ 1 v e , respectively. The constant k λ 2 > 0 scales the additional error-dependent feedback term g ( v e , λ ˙ ) .
g ( v e , λ ˙ ) : = k λ 2 v e sin ( λ ˙ ) .
The error-dependent term g v e , λ ˙ modifies the phase-rate feedback in (67). Its effect on speed regulation is assessed by the numerical comparison in Section 4; the heading-error estimate above concerns the prescribed error set.

4. Simulation and Experimental Validation

4.1. Numerical Simulations

The numerical simulation is performed using MATLAB R2019a to validate the stability of the proposed controller. The mechanical initial state defined in Section 2 is x = 0 24 × 1 , with ϕ 0 = λ = ϕ ˙ 0 = λ ˙ = 0 . The reference speed magnitude is 0.05 m / s , and the prescribed heading is π 4 rad . The simulation parameters are listed below. Here, u p 1 = 1 ϵ , u p 2 = k N , u p 3 = k 1 , and u p 4 = k 2 ; the listed gains give c = 19 > 0 .
N = 10 2 l = 0.14   m c t = 0.1   N · s · m − 1 c n = 1   N · s · m − 1 , α = π 6 δ = 2 π 5 v r e f = 0.05   m / s θ r e f = π 4   rad , ϵ = 10 − 4 k N = 10 k 1 = 1 k 2 = 1 , k z = 800 k λ 1 = 1000 k λ 2 = 1000 .
Figure 2 shows the simulated centroid trajectory, while Figure 3 compares the head-link heading to the 45 ∘ reference. The centroid trajectory initially curves before transitioning to a straighter segment. Over the plotted interval, the head-link heading remains close to the reference, with small periodic deviations associated with the serpentine gait. Together, these results illustrate the robot’s directional response under the selected simulation conditions.
Figure 2. The centroid position of the snake robot.
Figure 3. The head angle of the snake robot.
Figure 4 and Figure 5 show the tangential and normal components of the centroid velocity, respectively. In Figure 4, the tangential velocity settles into a nearly steady oscillatory response at approximately 0.048 m/s, remaining below the reference of 0.05 m/s. In Figure 5, the normal velocity approaches small oscillations around zero after the initial transient. These responses indicate predominantly forward locomotion with reduced lateral velocity in the illustrated simulation.
Figure 4. The tangential velocity of the snake robot.
Figure 5. The normal velocity of the snake robot.
Figure 6 and Figure 7 show the steering offset ϕ 0 and the gait phase λ , respectively. After the initial adjustment, the steering offset exhibits bounded, periodic oscillations. The gait phase continues to increase and approaches a linear dependence on time, indicating an approximately constant phase rate during later motion. The steering offset ϕ 0 sets the reference angle for the joint adjacent to the head, whereas the advancing gait phase λ governs the periodic evolution of the joint-angle references.
Figure 6. Time evolution of the steering offset ϕ 0 .
Figure 7. Time evolution of the gait phase λ .
Figure 8 and Figure 9 assess joint tracking of the reference gait prescribed by the virtual holonomic constraints. Figure 8 shows the instantaneous mean absolute tracking error across joints, which quantifies the average deviation per joint. Figure 9 reports the Euclidean norm of the error vector, providing an aggregate measure of the discrepancy between the actual and reference joint configurations. Both measures exhibit oscillations with decreasing upper envelopes during the initial transient, followed by persistent periodic residuals. These responses indicate that the initial tracking mismatch is attenuated, although nonzero deviations from the prescribed gait persist during the subsequent motion.
Figure 8. Mean absolute joint tracking error.
Figure 9. Euclidean norm of the joint tracking error.
Figure 10 compares the tangential-velocity responses of the reference controller from Mohammadi et al. [43] and the controller proposed in this study. After the transient response, the proposed controller remains closer to the target speed of 0.05 m / s , though both responses exhibit small periodic oscillations. At this target speed, the reference controller converged to approximately 0.0485 m / s , whereas the proposed controller converged to approximately 0.0496 m / s . Accordingly, the proposed controller increased the converged tangential speed by approximately 0.0011 m / s and reduced the absolute speed error relative to the target by approximately 73.3 % .
Figure 10. Comparison of tangential-velocity tracking responses.

4.2. Physical Experiments

A physical experiment was conducted to examine the robot’s directional response under the implemented controller. Figure 11 presents successive snapshots of the robot during the experiment with a prescribed heading of π 4 rad = 45 ∘ . Panels (a)–(d) show the early stage of motion, whereas panels (e)–(h) show subsequent changes in body configuration and orientation. The sequence provides qualitative evidence of heading adjustment on the physical platform under the tested conditions.
Figure 11. The results of the physical snake robot experiment. (a) Initial motion at a heading of 0 ∘ , with the body beginning to twist; (b) Start adjusting the direction, accompanied by a slight bend of the body; (c) The body orientation gradually approaches 45 ∘ ; (d) Continuously twist the body towards the 45 ∘ target direction; (e) The robot moves at 45 ∘ with a small overall curvature; (f) The body distorts into a distinct S-shape to sustain movement; (g) The robot moves in an S-shaped towards 45 ∘ ; (h) The robot successfully maintains a 45 ∘ target orientation while moving.
The robot uses orthogonal joints, each driven by an ST3035 servo motor that accepts angle commands and provides joint-angle feedback. The head module houses the onboard computing board (Raspberry Pi), camera, IMU, illumination unit, and Wi-Fi communication module; the battery is housed in the tail. Servo commands and joint-angle measurements are exchanged over a TTL bus through a URT-1 serial-to-TTL converter.
Figure 12 shows the heading response in the physical trial. The filtered average body-direction angle approaches the prescribed 45 ∘ heading and remains within the 5 % error band after approximately 40 s and the 3 % band after approximately 190 s . Meanwhile, this result reflects that each joint can track the desired joint angle well.
Figure 12. Average body-direction angle of the snake robot.

5. Discussion

The gait parameterization and reduced dynamics in Section 3 follow the VHC formulation of Mohammadi et al. [43], and the present study evaluates the implemented feedback design within this framework. The evaluated modification is the error-dependent term g ( v e , λ ˙ ) in the speed compensator. The numerical comparison shows improved speed regulation, reflected in a smaller final tangential-speed deviation, and the physical platform demonstrates heading adjustment. These results support the controller’s practical feasibility under the tested conditions. Further tests across reference speeds, friction conditions, and initial states, together with quantitative speed measurements on the physical platform, would help establish its performance over a broader operating range.
Figure 3 also shows small periodic deviations in the head-link orientation, which may be unfavorable for inspection cameras. Previous work has treated head orientation as a separate control objective through hierarchical VHC control [43] and head-trajectory tracking with actuator-failure robustness [50]. The present controller regulates locomotion heading rather than camera pose; stable head-pose tracking would require an additional control objective and dedicated validation and is left for future work.

6. Conclusions

In this paper, we first established the dynamic model of the snake robot based on geometric mechanics principles, obtaining the dynamical representation of the robot. Subsequently, we prescribed the snake robot’s serpentine gait through VHCs and derived the reduced nonlinear dynamics on the corresponding constraint manifold. Based on the VHC and backstepping methods, we devised controllers for the snake robot’s velocity direction and magnitude during its serpentine gait. Theoretical analysis demonstrates that the incorporation of new variables and velocity direction controllers enables the robot to converge to the desired direction of motion while maintaining Lyapunov stability. The simulation comparison showed an approximately 73.3% reduction in tangential-speed error. In the physical experiment, the heading error remained within the 5% and 3% tolerance bands after approximately 40 s and 190 s , respectively. These results support the effectiveness of the proposed controller in speed and heading regulation.

Author Contributions

Conceptualization, E.H., X.L. and Q.L.; methodology, E.H., X.L. and Q.L.; software, S.C. and E.H.; validation, X.L. and X.Z.; writing—original draft, X.L. and W.W.; writing—review and editing, X.L., E.H. and S.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Zhejiang Provincial Natural Science Foundation LQN25F030011, the Fundamental Research Funds for the Provincial Universities of Zhejiang under Grant GK259909299001-033.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data in this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
CPGCentral pattern generator
DSGDelay-aware swing and grasp
LOSLine-of-sight
MCCMain characteristics control
ODEOrdinary differential equation
VHCVirtual holonomic constraints

References

  1. Zhang, H.; Li, L.; Jiang, A.; Xu, J.; Shen, H.; Li, Y.; Ji, A.; Wang, Z. LICFM3-SLAM: LiDAR-Inertial-Camera Fusion and Multimodal Multilevel Matching for Bionic Quadruped Inspection Robot Mapping. IEEE Trans. Instrum. Meas. 2025, 74, 1–17. [Google Scholar] [CrossRef] [Scilit]
  2. Sadasue, Y.; Nagae, H.; Takarabe, J.; Iwase, M. Development of Snake-Like Robot for Cable-Laying —Motion Design for Locomotion over Cable Racks and Ceiling Spaces. J. Robot. Mechatron. 2024, 36, 1408–1418. [Google Scholar] [CrossRef] [Scilit]
  3. Han, S.; Chon, S.; Kim, J.; Seo, J.; Shin, D.G.; Park, S.; Kim, J.T.; Kim, J.; Jin, M.; Cho, J. Snake Robot Gripper Module for Search and Rescue in Narrow Spaces. IEEE Robot. Autom. Lett. 2022, 7, 1667–1673. [Google Scholar] [CrossRef] [Scilit]
  4. Li, H.; Wang, G.; Li, L.; Wei, M.; Li, Y.; Sun, W.; Zeng, Q. Design of the swimming system of a bionic jellyfish robot for seabed exploration. Appl. Ocean Res. 2023, 134, 103498. [Google Scholar] [CrossRef] [Scilit]
  5. Zhang, Y.; Ge, Q.; Wang, Z.; Qin, Y.; Wu, Y.; Wang, M.; Shi, M.; Xue, L.; Guo, W.; Zhang, Y.; et al. Extracorporeal Closed-Loop Respiratory Regulation for Patients with Respiratory Difficulty Using a Soft Bionic Robot. IEEE Trans. Biomed. Eng. 2024, 71, 2923–2935. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Li, D.; Deng, H.; Pan, Z.; Xiu, Y. Collaborative obstacle avoidance algorithm of multiple bionic snake robots in fluid based on IB-LBM. ISA Trans. 2022, 122, 271–280. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Bellegarda, G.; Ijspeert, A. CPG-RL: Learning Central Pattern Generators for Quadruped Locomotion. IEEE Robot. Autom. Lett. 2022, 7, 12547–12554. [Google Scholar] [CrossRef] [Scilit]
  8. Sun, Y.; Pancheri, F.; Rehekampff, C.; Lueth, T.C. TurBot: A Turtle-Inspired Quadruped Robot Using Topology Optimized Soft-Rigid Hybrid Legs. IEEE/ASME Trans. Mechatron. 2024, 29, 3193–3202. [Google Scholar] [CrossRef] [Scilit]
  9. Ju, Z.; Wei, K.; Xu, Y. From Concept to Field Trials: Design, Analysis, and Evaluation of a Novel Quadruped Robot with Deformable Wheel–Foot Structure. IEEE Trans. Robot. 2025, 41, 3143–3161. [Google Scholar] [CrossRef] [Scilit]
  10. Fang, S.; Shi, S.; Wu, X.; Wang, X. A Walking and Climbing Quadruped Robot Capable of Ground-Wall Transition: Design, Mobility Analysis and Gait Planning. Intell. Serv. Robot. 2023, 16, 431–451. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, Y.; Kamegawa, T.; Matsuda, E.; Gofuku, A. Motion Planning of a Snake Robot That Moves in Crowded Pipes. Adv. Robot. 2022, 36, 781–793. [Google Scholar] [CrossRef] [Scilit]
  12. Du, Z.; Fang, H.; Xu, J. Snake-worm: A Bi-modal Locomotion Robot. J. Bionic Eng. 2022, 19, 1272–1287. [Google Scholar] [CrossRef] [Scilit]
  13. Fukuoka, Y.; Otaka, K.; Takeuchi, R.; Shigemori, K.; Inoue, K. Mechanical Designs for Field Undulatory Locomotion by a Wheeled Snake-Like Robot with Decoupled Neural Oscillators. IEEE Trans. Robot. 2023, 39, 959–977. [Google Scholar] [CrossRef] [Scilit]
  14. Takemori, T.; Tanaka, M.; Matsuno, F. Adaptive Helical Rolling of a Snake Robot to a Straight Pipe with Irregular Cross-Sectional Shape. IEEE Trans. Robot. 2023, 39, 437–451. [Google Scholar] [CrossRef] [Scilit]
  15. Lu, J.; Tang, C.; Hu, E.; Li, Z. S-shaped rolling gait designed using curve transformations of a snake robot for climbing on a bifurcated pipe. Bioinspir. Biomim. 2024, 19, 036010. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Megalingam, R.K.; Senthil, A.P.; Raghavan, D.; Manoharan, S.K. Modeling of novel circular gait motion through daisy sequence fitting algorithm in a vertical climbing snake robot. J. Field Robot. 2024, 41, 211–226. [Google Scholar] [CrossRef] [Scilit]
  17. Huang, W.; Fang, Y.; Guo, X.; Liu, H.; Liu, L. A Unified Motion Modeling Approach for Snake Robot’s Gaits Generated with Backbone Curve Method. IEEE Trans. Robot. 2024, 40, 4132–4146. [Google Scholar] [CrossRef] [Scilit]
  18. Haghshenas-Jaryani, M. Dynamics and Computed-Muscle-Force Control of a Planar Muscle-Driven Snake Robot. Actuators 2022, 11, 194. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, Y.; Tuo, G.; Li, T.; Shang, Z.; Lin, X.; Liu, X.; Liu, H. A Lie-Theory-Based Dynamics Modeling Method of Snake-Arm Robot with Virtual Linkage Criterion. J. Mech. Robot. 2025, 17, 111011. [Google Scholar] [CrossRef] [Scilit]
  20. Zhang, J.; Chen, Y.; Liu, Y.; Gong, Y. Dynamic Modeling of Underwater Snake Robot by Hybrid Rigid-Soft Actuation. J. Mar. Sci. Eng. 2022, 10, 1914. [Google Scholar] [CrossRef] [Scilit]
  21. Ahmed, S.; Gilbert, H.B. Kinestatic Modeling of a Spatial Screw-Driven Continuum Robot. IEEE Robot. Autom. Lett. 2022, 7, 3563–3570. [Google Scholar] [CrossRef] [Scilit]
  22. Zhang, J.; Chen, Y.; Gong, Y. Kinematics, dynamics, and control of underwater robotic snake based on a rigid-soft unified model. Ships Offshore Struct. 2024, 19, 1408–1423. [Google Scholar] [CrossRef] [Scilit]
  23. Ali, S. Dynamic modeling and simulation of a snake-like multibody robotic system with ground-adaptive strategy and efficient undulatory locomotion. Multibody Syst. Dyn. 2024, 62, 235–247. [Google Scholar] [CrossRef] [Scilit]
  24. Song, B.; Ju, I.; Yun, D. Optimizing snake robot locomotion with decomposed gait pattern representation. Integr. Comput.-Aided Eng. 2025, 32, 196–225. [Google Scholar] [CrossRef] [Scilit]
  25. Wang, W.; Gao, Z. A Variable Diameter Climbing Gait Design for a Snake Robot Based on the Bezier Curve. Int. J. Control. Autom. Syst. 2024, 22, 3753–3761. [Google Scholar] [CrossRef] [Scilit]
  26. Liu, X.; Lin, G.; Wei, W. Adaptive Transition Gait Planning of Snake Robot Based on Polynomial Interpolation Method. Actuators 2022, 11, 222. [Google Scholar] [CrossRef] [Scilit]
  27. Li, D.; Zhang, B.; Wu, C.; Xu, Y.; Huang, J.; Wu, E.Q.; Zhu, L. Tracking Control of Snake Robots with Butterfly Spiral Propulsion for Multiscenario Applications. IEEE Trans. Ind. Inform. 2024, 20, 13526–13536. [Google Scholar] [CrossRef] [Scilit]
  28. Zhang, J.; Ren, C.; Ma, S. Optimal Path Following Control for Motion Recovery from Joint Failure of Snake Robots Using Improved Lateral Undulatory Gait. IEEE/ASME Trans. Mechatron. 2025, 30, 3161–3169. [Google Scholar] [CrossRef] [Scilit]
  29. Sheng, F.; Wan, F.; Tang, C.; Guo, X. A Maneuverable Winding Gait for Snake Robots Based on a Delay-Aware Swing and Grasp Framework Combining Rules and Learning Methods. IEEE Robot. Autom. Lett. 2025, 10, 311–318. [Google Scholar] [CrossRef] [Scilit]
  30. Zhao, W.; Wang, J.; Fei, Y. A Multigait Continuous Flexible Snake Robot for Locomotion in Complex Terrain. IEEE/ASME Trans. Mechatron. 2022, 27, 3751–3761. [Google Scholar] [CrossRef] [Scilit]
  31. Tang, C.; Sun, L.; Zhou, G.; Shu, X.; Tang, H.; Wu, H. Gait Generation Method of Snake Robot Based on Main Characteristic Curve Fitting. Biomimetics 2023, 8, 105. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Elsayed, B.A.; Takemori, T.; Tanaka, M.; Matsuno, F. Mobile Manipulation Using a Snake Robot in a Helical Gait. IEEE/ASME Trans. Mechatron. 2022, 27, 2600–2611. [Google Scholar] [CrossRef] [Scilit]
  33. Yang, Z.; Fang, Z.; Yang, S.; Xiong, Y.; Zhang, D. Research on the Spiral Rolling Gait of High-Voltage Power Line Serpentine Robots Based on Improved Hopf-CPGs Model. Appl. Sci. 2025, 15, 1285. [Google Scholar] [CrossRef] [Scilit]
  34. Simoes, A.A.; Stratoglou, E.; Bloch, A.; Colombo, L.J. Virtual nonholonomic constraints: A geometric approach. Automatica 2023, 155, 111166. [Google Scholar] [CrossRef] [Scilit]
  35. Patel, B.M.; Dwivedy, S.K. Virtual holonomic constraints based super twisting sliding mode control for motion control of planar snake robot in the uncertain underwater environment. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2023, 237, 1480–1491. [Google Scholar] [CrossRef] [Scilit]
  36. Kakaei, M.M.; Salarieh, H.; Sohrabpour, S. Online regulation of walking gait speed for a five-link bipedal robot via adaptive deforming of virtual holonomic constraints. Nonlinear Dyn. 2023, 111, 20055–20071. [Google Scholar] [CrossRef] [Scilit]
  37. Li, X.; Ren, C.; Ma, S. Optimal Path Following Control with Efficient Computation for Snake Robots Subject to Multiple Constraints and Unknown Frictions. IEEE Robot. Autom. Lett. 2022, 7, 9151–9158. [Google Scholar] [CrossRef] [Scilit]
  38. Li, D.; Zeng, L.; Xiu, Y.; Pan, Z.; Zhang, D.; Deng, H. Sideslip Elimination and Coefficient Approximation-Based Trajectory Tracking Control for Snake Robots. IEEE Trans. Ind. Inform. 2023, 19, 8754–8764. [Google Scholar] [CrossRef] [Scilit]
  39. Liu, Z.; Wei, W.; Liu, X.; Han, S. Target Tracking of Snake Robot with Double-Sine Serpentine Gait Based on Adaptive Sliding Mode Control. Actuators 2023, 12, 38. [Google Scholar] [CrossRef] [Scilit]
  40. Li, D.; Zhang, B.; Li, P.; Wu, E.Q.; Law, R.; Xu, X.; Song, A.; Zhu, L.M. Parameter Estimation and Anti-Sideslip Line-of-Sight Method-Based Adaptive Path-Following Controller for a Multijoint Snake Robot. IEEE Trans. Syst. Man Cybern. Syst. 2023, 53, 4776–4788. [Google Scholar] [CrossRef] [Scilit]
  41. Xiu, Y.; Li, D.; Zhang, M.; Deng, H.; Law, R.; Huang, Y.; Wu, E.Q.; Xu, X. Finite-Time Sideslip Differentiator-Based LOS Guidance for Robust Path Following of Snake Robots. IEEE/CAA J. Autom. Sin. 2023, 10, 239–253. [Google Scholar] [CrossRef] [Scilit]
  42. Li, D.; Wu, C.; Liu, G.; Zhu, L.; Wu, E.Q. Synchronous Obstacle Avoidance Tracking Control Scheme for Snake Robots with State Constraints and Interference Compensation. IEEE Trans. Ind. Electron. 2026, 73, 873–884. [Google Scholar] [CrossRef] [Scilit]
  43. Mohammadi, A.; Rezapour, E.; Maggiore, M.; Pettersen, K.Y. Maneuvering Control of Planar Snake Robots Using Virtual Holonomic Constraints. IEEE Trans. Control Syst. Technol. 2016, 24, 884–899. [Google Scholar] [CrossRef] [Scilit]
  44. Reyhanoglu, M.; van der Schaft, A.; McClamroch, N.H.; Kolmanovsky, I. Dynamics and control of a class of underactuated mechanical systems. IEEE Trans. Autom. Control 1999, 44, 1663–1671. [Google Scholar] [CrossRef] [Scilit]
  45. Khalil, H.K. Nonlinear Systems, 3rd ed.; Prentice Hall: Hoboken, NJ, USA, 2002. [Google Scholar]
  46. Maggiore, M.; Consolini, L. Virtual Holonomic Constraints for Euler–Lagrange Systems. IEEE Trans. Autom. Control 2013, 58, 1001–1008. [Google Scholar] [CrossRef] [Scilit]
  47. Blekhman, I.I. Vibrational Mechanics: Nonlinear Dynamic Effects, General Approach, Applications; World Scientific: Singapore, 2000. [Google Scholar]
  48. Arnold, V.I.; Kozlov, V.V.; Neishtadt, A.I. Mathematical Aspects of Classical and Celestial Mechanics, 3rd ed.; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
  49. Kokotovic, P.V.; Khalil, H.K.; O’Reilly, J. Singular Perturbation Methods in Control: Analysis and Design; SIAM: Philadelphia, PA, USA, 1999. [Google Scholar]
  50. Ariizumi, R.; Takahashi, R.; Tanaka, M.; Asai, T. Head-trajectory-tracking control of a snake robot and its robustness under actuator failure. IEEE Trans. Control Syst. Technol. 2019, 27, 2589–2597. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.