I honestly don't see the issue for industrial type machinery. It's not like some Tesla that has to have a sleek body and beautiful styling. Trucks are already big boxes that carry giant boxes behind them.
Why should one of those boxes not be a giant 300kwh battery pack that they swap out at the multitude of weigh stations they have to stop at along the highway already? Just run massive power to the weigh stations, put in a few massive DC chargers and some forklifts.
Hell you could go further and have other parts of the drivetrain in there -- the controller, the charger unit, the DC to DC converter, etc. Then you have an upgrade path for the trucks as the tech improves.