Serpentine and Rectilinear Motion Generation in Snake Robot Using Central Pattern Generator with Gait Transition