Aero.trajectory.bezierTrajectory
Description
generates reference signals for tracing Bezier trajectories. Use name-value arguments to
define the Bezier curve. By default, refSignals = Aero.trajectory.bezierTrajectory(Name=Value)Aero.trajectory.bezierTrajectory
starts by defining a quadratic Bezier curve. The function automatically switches to define a
cubic Bezier curve as needed. Function inputs and outputs are specified in the NED
(North-East-Down) coordinate frame. For more information, see Algorithms.
Examples
Name-Value Arguments
Output Arguments
Algorithms
Use Aero.trajectory.bezierTrajectory to define these parameters of a
bezier trajectory.
The general form of the Bezier trajectory used is
where the Pi+1s represent the control points as 2-by-1 vectors and the position vector that traces the Bezier curve.
This logic is used to fit the Bezier trajectory.
A cubic Bezier curve has four control points. The initial position is set as the first control point P2, and the final position is set as the fourth control point P2.
The second control point P3 is defined along the direction of the initial heading, at a distance from the initial position. The first element of the shape factor determines this distance.
The third control point P4 is defined opposite to the direction of the final heading, at a distance from the final position. The second element of the shape factor determines this distance. If either the initial or final heading is not specified, the corresponding intermediate control point is omitted, resulting in a quadratic Bezier curve.
The reference signal is calculated using this logic:
Heading is determined from the tangent direction to the path.
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.circularTrajectory|Aero.trajectory.creepingTrajectory|Aero.trajectory.expandingSquareTrajectory|Aero.trajectory.parallelSweepTrajectory|Aero.trajectory.polylineTrajectory|Aero.trajectory.polynomialTrajectory|Aero.trajectory.sectorTrajectory|Aero.trajectory.tracklineTrajectory