It's also worth noting that a fully driverless truck is a very bad candidate for battery power: with no driver's hours restrictions it will never be in one place long enough to recharge.
You would just swap out the battery pack with a fully charged one.