Manipulator Trajectory Planning Using Geodesic Method