plan
Plan optimal trajectory
Description
[
computes a feasible trajectory, traj,index,cost,flag] = plan(planner,start)traj, from a list of candidate
trajectories generated from the trajectoryOptimalFrenet
object, planner. start is specified as a
six-element vector [s, ds/dt,
d2s/dt2,
l, dl/ds,
d2l/ds2],
where s is the arc length from the first point in the reference path, and
l is normal distance from the closest point at s on
the reference path.
The output trajectory, traj, also has an associated
cost and index for the TrajectoryList
property of the planner. flag is a numeric exit flag indicating status
of the solution.
To improve the results of the planning output, modify the parameters on the
planner object.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
![Figure contains an axes object. The axes object with title Binary Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 5 objects of type image, line, patch. One or more of the lines displays its values using only markers These objects represent Waypoints, Reference Path, Optimal Trajectory.](../../examples/nav/win64/OptimalTrajectoryPlanningInTheFrenetSpaceExample_01.png)
![Figure contains an axes object. The axes object with title Binary Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 6 objects of type image, line, patch. One or more of the lines displays its values using only markers These objects represent Waypoints, Reference Path, Optimal Trajectory, Lane Boundaries.](../../examples/nav/win64/PartitionLongitudinalTerminalStatesTrajectoryGenerationExample_01.png)