High-Level Modeling, Imitation and Control for Locomotion, Autonomous Driving, and Resource Allocation