Text this: Inverse Kinematics Optimization Method of a 6-DOF Robot