The unit quaternion: A useful tool for inverse kinematics of robot manipulators