Cubic polynomials match endpoint positions and velocities; quintic polynomials also match endpoint accelerations. Each joint gets its own polynomial on \([0, T]\); outside this interval the trajectory is held at rest at its endpoint positions. The boundary conditions are satisfied exactly.
Usage
robot_traj_polynomial(
q0,
q1,
duration,
times = NULL,
n = 101,
qd0 = NULL,
qd1 = NULL,
qdd0 = NULL,
qdd1 = NULL,
order = c("quintic", "cubic")
)Arguments
- q0, q1
Start and end configurations.
- duration
Duration \(T\) in seconds.
- times
Optional sample times; otherwise
nequally spaced samples.- n
Number of samples.
- qd0, qd1, qdd0, qdd1
Endpoint velocities and accelerations (zero by default). Accelerations are ignored by cubic trajectories.
- order
"quintic"or"cubic".