Charging battery powered locos seems to be an annoying step. Would it be possible to have battery powered locos charge via the tracks in say a track-powered yard (though nickel plated brass of course

)
Theoretically, yes..
Practically, there may be problems:
- You may have loco's with differing numbers of cells in them.
- You may have loco's with differing battery chemistry's in them. - So requiring different charging systems/regimes.
- If you use 'intelligent' charger(s), you can only really have one loco per charger, at any one time. - Else how does the charger know what to do for each loco.
You can, 'top-up' your loco's this way, during a session.. I would use a current-limited charger for this.
BUT,
I would ask if this is really necessary?
You can get several hours of running from a single charge.
If you use 'low-discharge' cells, and charge after a running session, your loco(s) should be good to go, straight from the storage shelf / yard.
Cycling the loco's, so each gets used regularly is also a good idea. - Helps get a good life from your batteries.
Note:
Batteries should be considered a 'consumable'.
Over-time, they will deteriorate, and will eventually need to be changed. However, I would guess (unless you are running a few hours every day) that you will get 3-5 years from a set of batteries.