SMS dit: Joint limits avoidance strategy in robotic scanning system