On the Cooperative Control and Obstacle Avoidance of MultiVehicle Systems