Autonomous Animation and Control of Four-Legged Animals