While self driving cars will be here, the modules thing probably will not. Largely because it adds complexity to no gain. There’s lots ways popping modules in and out of a “train” can be difficult and no real reason for it, it adds no safety, very little fuel economy, and no efficiency.
I’ve seen (and talked to some of the people making )some preliminary plans on making cars that will fit onto a hyperloop between long destinations - say Boston to New York.
Drive your electric vehicle that has motors on each wheel with ultracapacitor energy storage that can be fully recharged in 15 minutes onto a hyperloop dock, ride that at 600 mph in 60 minutes to New York. Proof of concept is about 2 years out. this stuff is coming on FAST.