Optimal covariance steering: Theory and its application to autonomous driving