I have used dhcpd on my Raspberry Pi with Stretch Lite installed to configure my static IP, however this will only work on the private robot network. When testing and developing, I connect it to my home network to SSH into it.
How can I set a static IP for one network, but use a dynamic one on all other networks? Both are connected with the eth0 interface.