Abstract: This talk will consider the optimal control of autonomous vehicles operating in constrained environments. A general control framework for mechanical systems with symmetries and nonholonomic constraints will be presented. The main contribution of the proposed framework is the formulation of structure-preserving integration and optimization schemes based on the theory of discrete mechanics and variational integrators. Such a discrete geometric approach has various benefits that will be discussed. Several examples with simple robotic vehicle models will be shown.