The MPC needs to know the state of the car and where the track or goal is. Transforms are used to figure out where the car is. The code looks up the latest transform from a map frame to a car frame.
Abstract: Model Predictive Control (MPC), which involves online optimization of a receding-horizon objective, has been effectively used to generate robust and reactive controllers for many problem ...