If the car is autonomous, there won’t be a need for the cops to pull the vehicle over, and there won’t be traffic cops either. Autonomous vehicles will be “managing” the roads on their own, and will also do their own recognition of other vehicles and obstacles, and will keep detailed records of trips.
Not for traffic violations, because electronic systems are "perfect". But there are other reasons to pull a car over, however. And there will be a long period in which self-drivers will be sharing the roads with traditional vehicles. The need for traffic cops won't go away anytime soon, and besides the unions won't stand for that.