Aero.trajectory.polynomialTrajectory
Description
generates reference signals for tracing a polynomial trajectory. Use name-value arguments to
define the polynomial trajectory. By default, the function uses a quadratic polynomial in
parametric form and upgrades automatically to cubic if needed. Inputs and outputs are
specified in the north-east-down (NED) coordinate frame. For more information, see Algorithms.refSignals = Aero.trajectory.polynomialTrajectory(Name=Value)
Examples
Name-Value Arguments
Output Arguments
Algorithms
Use Aero.trajectory.polynomialTrajectory to define the parameters of
a polynomial trajectory.
Aero.trajectory.polynomialTrajectory uses the parametric forms of
cubic and quadratic polynomials. The parametric form of a cubic polynomial curve is given by:
x = a0+a1p+a2p2+a3p3
y = b0+b1p+b2p2+b3p3
where a0,
a1, a2,
b1, b2,
b3 are coefficients to be determined and
p is a parameter that takes the value 0 at the start
of the trajectory and a value 1 at the end. The function uses this logic to
fit the polynomial trajectory:
The vehicle initial and final positions and headings are translated into constraints on the curve.
The function uses the shape factor to scale the derivative constraints and , while ensuring that the initial and final headings are still satisfied. This action allows control over the flatness of the trajectory.
If either the initial or final heading is not specified, a3 and b3 are set as
0, and the result is a quadratic polynomial trajectory.
The reference signal is calculated using this logic:
The heading is determined from the tangent direction to the path.
The lateral acceleration and turn rate are computed from the radius of curvature (ρ) of the path using these equations:
Lateral acceleration: α = V2/ρ
Turn rate: ω = V/ρ, where V is the speed of the vehicle.
Version History
Introduced in R2026a
See Also
Live Editor Tasks
Functions
Aero.trajectory.addEvent|Aero.trajectory.bezierTrajectory|Aero.trajectory.circularTrajectory|Aero.trajectory.creepingTrajectory|Aero.trajectory.expandingSquareTrajectory|Aero.trajectory.parallelSweepTrajectory|Aero.trajectory.polylineTrajectory|Aero.trajectory.sectorTrajectory|Aero.trajectory.tracklineTrajectory