Text this: Active and passive compliance mechanisms in legged robot locomotion