Trajectory Planning for Robot Manipulators