Traffic control with connected and automated vehicles on urban roads