M-File Help: lspb | View code for lspb

# lspb

Linear segment with parabolic blend

[s,sd,sdd] = lspb(s0, sf, m) is a scalar trajectory (Mx1) that varies smoothly from s0 to sf in m steps using a constant velocity segment and parabolic blends (a trapezoidal path). Velocity and acceleration can be optionally returned as sd (Mx1) and sdd (Mx1).

[s,sd,sdd] = lspb(s0, sf, m, v) as above but specifies the velocity of the linear segment which is normally computed automatically.

[s,sd,sdd] = lspb(s0, sf, T) as above but specifies the trajectory in terms of the length of the time vector T (Mx1).

[s,sd,sdd] = lspb(s0, sf, T, v) as above but specifies the velocity of the linear segment which is normally computed automatically and a time vector.

## Notes

- If no output arguments are specified S, SD, and SDD are plotted.
- For some values of V no solution is possible and an error is flagged.

## See also

tpoly, jtraj

© 1990-2014 Peter Corke.