Design, Analysis, and Fabrication of a Snake-Inspired Robot with a Rectilinear Gait