Reference Path Generator
Libraries:
Vehicle Dynamics Blockset /
Vehicle Scenarios /
Drive Cycle and Maneuvers
Description
The Reference Path Generator block fits a clothoid curve to user-defined waypoints to generate vehicle reference pose and path curvature. Clothoid curves have curvature that varies linearly with distance traveled, making them ideal for generating smooth, easily navigable trajectories. The block calculates the nearest path using instantaneous vehicle position and computes a reference horizon over a specified length and number of samples for use by a driver block. Select either closed or open-ended waypoints, and specify the distance to search ahead for the nearest waypoint to the vehicle to identify the starting reference point.
The figure shows how the Reference Path Generator block generates the reference horizon from the fitted path. Blue circles represent the specified waypoints, Reference path waypoints, refPathXY [m], connected by a smooth clothoid curve. From the vehicle's current position and orientation specified by the block inputs, X, Y, and psi, the block identifies the nearest point on the path and computes a specified number of evenly spaced points ahead, shown as red circles. These points form the output reference path, DrvRef, used for trajectory planning. The first point is the closest reference location, while the last point lies at a distance, Path search distance, wayptSrchDist [m], along the path from the vehicle position, ensuring a continuous horizon.
Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026a


