On the presumption that mains electricity is
available for farming a solution is to provide
overhead supply as is done for trolley buses.
Two wires and the pickup on the roof of the
harvester etc.
It would need lines of poles across the paddock to
support the wire.

I suspect that this would be a lot cheaper than stacks of batteries that would need replacing at
intervals.
It would make the area between the poles unusable
but would be a small penalty for the almost unlimited
power that would be available.

The separation between rows could be quite large as
trolley buses can move right across multilane highways.

Good idea. Even that might not even be needed if human labour becomes cheap - just run cable direct from the power source to the tractor on trailing power cable, with a few farm workers managing the cable as it snakes behind.

There is this possibility of using rails or overhead wires to power tractors It has been done in the 1930s. It may come back; in this case we'll have hybrid systems. Batteries will still be needed for going around and for light work, but when it is time to go for the heavy work, the machines would be connected to the grid. Right now, the RAMSES vehicle is not made to run on an extension from mains, but it could be modified very easily to do so. Maybe it is the way of the future.