A unit dual quaternion is introduced as the generalized coordinates of the six-DOF robotic system. An efficient algorithm is proposed to get the actual solution to the forward kinematic equations for real-time control. It is revealed that the algorithm is always valid in the singularity-free workspace of the robot in real- time control.