Perception And Planning Of Connected And Automated Vehicles