I guess when it comes down to it a fuel tank only holds so much energy, and if we think we can replace a fuel tank with batteries on another kind of truck with an acceptable loss in range, then maybe we can do the same on a garbage truck. They were burning diesel to run the compactor before, so it may not be much difference.
On the other hand, it looks like some are about to be used in New Jersey: https://www.government-fleet.com/10122076/jersey-city-to-rec...
I guess when it comes down to it a fuel tank only holds so much energy, and if we think we can replace a fuel tank with batteries on another kind of truck with an acceptable loss in range, then maybe we can do the same on a garbage truck. They were burning diesel to run the compactor before, so it may not be much difference.