Multibody dynamics of a flexible legged robot with wheeled feet