Hand-Eye Calibration in Unstructured Environments