There was cars build with the same concept, the problem was to insure the cars that had a high tech motor at each wheels
The motors were DC and were doing both driving and breaking, and were computer controled in the 80's.
A Retired Electrical Engineer from Montreal tried to get the concept going. He had a 16HP Diesel engine to drive the generator charging batteries.