Design of a Controlled Spatial Curve Trajectory for Robot Manipulations