Haptic inspection of planetary soils with legged robots