We model the UGV as a unicycle with the dynamics
where
The control algorithm is a simple proportional controller with
The positional error
To compute the heading error
Then, we have the relationship between the body orientation
Then, we get the orientation error as
Note that when tuning