We adopt the approach of Hu et al.13,14 wherein the centerline of a snake of length L is modeled as an inextensible planar curve . The center of mass position and average orientation of the snake are denoted by and , respectively, and the local position and orientation of each point along the snake’s centerline is computed via and , respectively, where is the local tangent vector, is the local curvature and is a mean-zero integration function, which expresses the mathematical machinery that allows us to reconstruct snake’s local positions/orientations from the center of mass, global orientation and curvature information (Fig. 1c). The dimensionless form of is defined in the main text with all simulations employing ϵ = 7 and k = 1, as in13. Differentiating twice with respect to time yields
where is the local normal vector. Writing the snake’s dynamics as a force balance of internal and external forces per unit length yields
where ρ is the line density of the snake. We then scale Eqs. (1) and (2) by and to non-dimensionalize the system.
External forces stem entirely from frictional effects captured through the Coulomb friction model, with anisotropy characterized by coefficients in the forward (μf), backward (μb), and transverse (μt) directions. Scaling friction forces such that allows us to write the friction force as F(s, t) = −N(s, t)μ(s, t) with where is the unit vector associated with the snake’s local velocity direction, and H = 1/2(1 + sgn(x)) is the Heaviside step function used here to distinguish between forward and backward friction components. Here, μb/μf = 1.5, in keeping with experimental observations13. Previous work14 and our preliminary investigations found that static friction effects do not appreciably influence the snake’s steady-state behavior, thus we did not consider them here. Moreover, we write the friction modulation wave as , where is the normalization constant to conserve the overall weight of the snake. Finally, we set Fr = 0.1 throughout, consistent with snakes’ typically low values and without lack of generality.
Assuming the total non-dimensionalized internal forces and torques to be zero ( and ) yields the snake’s equation of motion
where is the moment of inertia. These equations can then be solved for a prescribed non-dimensional curvature κ(s, t) and friction scaling term N(s, t).
In all cases considered here, Eqs. (3) and (4) are numerically solved over 10 undulation periods to allow transient effects from startup to dissipate and the snake to reach steady-state behavior. The snake’s locomotion behavior is then analyzed in terms of the pose angle γ, steering rate , and effective speed ∣veff∣ which are illustrated in Fig. 2a. At steady state, the first trajectory metric that can be computed is the pose angle, which is the angle between the snake’s average orientation and its center of mass velocity direction . The average pose angle over one undulation period is defined as where and ez is the unit vector of out-of-plane axis. Use of the function is required to ensure γ ∈ (−π, π]. Note that is for a nondimensionalized time period, so over one undulation, . Additional trajectory metrics can be computed by considering the snake’s center of mass as a particle undergoing planar motion in polar coordinates, , allowing the snake’s trajectory to be quantified in terms of its effective velocity and steering rate (see SI Note 1 for relevant derivations).
For phase space simulations, a simulation grid was defined with 501 equidistant points in both A ∈ [−2, 2] and Φ ∈ [0, 1], leading to 251k simulations for each of the friction ratios considered. Simulations were performed on the Bridges supercomputing cluster at the Pittsburgh Supercomputing Center.
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this article to respond.