The trajectories should be generaded using proportional regulators with limited output. The example of such regulator in pseudo-code:
error_x = dest_x - measured_x
u_x = gain_P * error_x
if u_x > u_max then
u_x = u_max
else if u_x < u_min then
u_x = u_min
end
where:
measured_xis the current value of the controlled state variable xdest_xis its desired valueerror_xis the errorgain_Pis the proportional regulator gainu_minandu_maxare the limits of the outputu_x