Cooperative Control of Dynamical Systems: Applications to Autonomous Vehicles