I have used jerk limited velocity profile for linear path trajectory. for more understandable similar motion graph which is shown below from internet:
With this kind of motion in a while loop I used servoj. My algorithm is shown below:
///////////////////////////////////////////////////////////////////////
myPoses=[pose1,pose2,pose3…poseN]
i=1
while i<N
servoj(get_inverse_kin(poseN),0,0,t=0.08,
lookahead_time=0.03,gain=1170)
end
/////////////////////////////////////////////////////////////////////
With these lookahead_time and gain coefficients, I have reached exactly the end point with adjusting gain to 1170 value but when I watch my middle points in polysope log viewer cannot reach the desired points. Maybe 1 or 2 mm lagging happened. Do I have to change gain and lookahed_time coefficient during path? I could not fix it. I need suggestions.