Components of ElegansBot.

(A) Chain model for C. elegans body. (B) Rods in chain model. (C) i-actuator, which is a damped torsional spring. (D) Frictional force (black arrow) due to the translation motion of a rod. (E) Frictional force (black arrow) due to the rotational motion of a rod. (F) Joint force (black arrows) acting on i-rod and (i+1)-rod.

Simulated locomotion from a sine kymogram.

(A) Crawling kymogram. Kymogram indicates the angle of i-joint which is located between i-rod and (i+1)-rod. Red and blue color mean i-joint bend in the dorsal and ventral directions, respectively. (B) Crawling trajectory. The yellow circle indicates the position of the worm’s head. The Orange and sky-blue lines show the worm’s head and tail trajectories, respectively. (C) Swimming kymogram. (D) Swimming trajectory

Simulated locomotion from a kymogram of a real worm locomotion video.

The length and direction of a black arrow indicate the magnitude and direction of the frictional force that the corresponding body part, which is the starting point of the arrow, exerts on the surface. (A) escaping behavior kymogram. Triangles over the heatmap indicate the corresponding time of snapshots shown in Figure (C). (B) Delta-turn kymogram. Triangles over the heatmap indicate the corresponding time of snapshots shown in Figure (D). (C) Escaping behavior trajectory. (D) Delta-turn trajectory. (Those videos are in Supplementary Information)

Body shape transition from the shape in water to the shape in agar.

(A) Average speed of the worm as a function of wavenumber (v) and period (T) for a given friction coefficient. The star symbol indicates the pair of (v, T) that maximizes the worm’s average speed. (B) For each environmental index σ, the pair of (v, T) that maximizes the worm’s average speed. The worm figures inside the small rectangles pointed to by the arrows represent the body shape corresponding to the respective (v, T) pair.