Control of locomotion systems and dynamics in relative periodic orbits