Novel total hip surgery robotic system based on self-localization and optical measurement