The pilot-wave dynamics of walking droplets