Actual metal rails aren't viable for a large number of factors. The least of which is maintenance due to big trucks damaging continuously degrading road around them. You'd be better off putting magnets in the road and have equipment in cars to follow them.
Even then, you're no better off than existing self-driving because you have to deal with every other car on the road that doesn't support "rails".