global2frenet
Convert global states to Frenet states
Syntax
Description
converts global states to Frenet trajectory states.frenetState
= global2frenet(refPath
,globalState
)
[_,
returns latTimeDerivatives
] = global2frenet(refPath
,globalState
)latTimeDerivatives
containing 1st and 2nd order derivatives of
lateral deviation with respect to time and a flag indicating if the heading should flip when
converting to global coordinates.
[_] = global2frenet(
accepts a vector of arclengths, refPath
,globalState
,sFrame
)sFrame
at which the Frenet frame should
be centered at.