Frenet Arc-Length Conversion
An interactive examination of how closely the oriented arc-length increment of a vehicle trajectory matches the reference-path arc-length increment under different vehicle states.
- First published
- Last updated
On this page
Conversion relationship
Starting from the Frenet representation of vehicle position and the vehicle-heading unit vector, “Frenet Vehicle Kinematics” derives the local relationship between reference-path arc length and the oriented arc length of the vehicle trajectory in Equation (3):
dsdℓ=cosφ1−dκr.The interactive figures below vary the heading error φ, lateral deviation d, and reference curvature κr separately and jointly to show how dℓ/ds changes.
Here, s is the reference-path arc-length coordinate of the vehicle’s nearest projection point; ℓ is the oriented arc-length coordinate of the vehicle rear-axle-center trajectory, positive in the vehicle-heading direction; d is the signed lateral deviation measured from the projection point along the left unit normal of the reference path, positive to the left and negative to the right; φ is the heading error between the vehicle heading and the reference-path tangent at the projection point, positive counterclockwise; and κr is the signed curvature of the reference path at the projection point, positive for a left turn and negative for a right turn.
Using the interactive figures
Each relationship curve or surface shares one parameter set with the local Frenet geometry on its right. Move the pointer over a sampled point on a curve or a grid point on a surface to update the geometry immediately; on a touch device, tap a data point to select it.
All local arc-length conversion plots use the same visual notation: blue curves or gradient surfaces represent dℓ/ds; purple dotted lines or translucent planes represent dℓ/ds=1; orange dashed lines mark cosφ=0; and red boundary lines mark 1−dκr=0. The later plots of 1−dκr retain the blue relationship curve, purple unit reference line, and red degeneracy boundary. In the geometry view, increasing s defines the positive direction of the reference path, lateral deviation is positive to the left, and counterclockwise rotation of the vehicle heading from the reference-path tangent is positive.
The geometry view treats the current projection point as its local origin. A line segment of fixed length Δℓ represents the oriented vehicle-trajectory arc-length increment, while Δs=cosφΔℓ/(1−dκr) determines the magnitude and direction of the corresponding reference-path arc-length increment. When Δs<0, the highlighted arc extends backward from the current projection point. The reference curve represents only the local curvature at that point. When κr=0 and ∣κrΔs∣≤π/3, the complete highlighted arc is drawn. Only after the arc exceeds one sixth of a circle is it truncated, with an ellipsis shown in the correct direction; the osculating circle is not treated as the entire reference path and used to search for another projection point. When 1−dκr=0, no finite Δs exists and none is drawn.
The single-value sliders under “Experimental conditions” fix variables that are not represented by the current plot axes. The range sliders under “Plot window” change only the displayed coordinate or analysis range; they do not alter the mathematical relationship. Expand “Advanced range settings” to explore beyond the default limits. “Reset” restores all initial parameters and display ranges for the current experiment.
Effect of one variable on the local arc-length conversion relationship
Nonlinear variation caused by heading error
Figure 1. With (d,κr) fixed, dℓ/ds varies nonlinearly with heading error φ through 1/cosφ. The purple dotted line marks dℓ/ds=1. When the horizontal range is extended to ±90∘, the orange dashed lines mark cosφ=0, where the curve is interrupted. If 1−dκr=0, ∣dℓ/ds∣ diverges near this boundary.
Linear variation caused by lateral deviation
Figure 2. With (φ,κr) fixed, dℓ/ds varies linearly with lateral deviation d. When κr=0 and the signed radius of curvature ρr=1/κr lies within the horizontal range, the red dashed line marks d=ρr. At this position, 1−dκr=0 and the differential of the normal-coordinate map is degenerate; it must not be interpreted as dℓ/ds=0 in a valid Frenet coordinate state.
Linear variation caused by reference curvature
Figure 3. With (φ,d) fixed, dℓ/ds varies linearly with reference curvature κr. When d=0 and 1/d lies within the horizontal range, the red dashed line marks κr=1/d, the degeneracy boundary of the normal-coordinate map 1−dκr=0.
Local arc-length conversion with two varying factors
Combined effect of heading error and lateral deviation
Figure 4. The independent variables are (φ,d) and the surface height is dℓ/ds; reference curvature κr is set by the “Experimental conditions” slider. The translucent purple plane represents dℓ/ds=1. At φ=±90∘, the arc-length-domain parameterization fails. When κr=0, d=1/κr is the degeneracy boundary of the normal-coordinate map.
Combined effect of heading error and reference curvature
Figure 5. The independent variables are (φ,κr) and the surface height is dℓ/ds; lateral deviation d is set by the “Experimental conditions” slider. Heading error produces the nonlinear factor 1/cosφ. When d=0, κr=1/d is the degeneracy boundary of the normal-coordinate map.
Combined effect of lateral deviation and reference curvature
Figure 6. The independent variables are (d,κr) and the surface height is dℓ/ds; heading error φ is set by the “Experimental conditions” slider. The intersection between the surface and the zero plane satisfies dκr=1. This intersection is the degeneracy boundary of the normal-coordinate map and must not be interpreted as dℓ/ds=0 in a valid Frenet coordinate state.
Effect of the relationship between lateral deviation and curvature radius at the projection point
The term 1−dκr is the part of the local arc-length conversion relationship
dsdℓ=cosφ1−dκrthat is jointly determined by the lateral deviation d and the reference curvature κr at the projection point. Within the domain where this relationship applies, once the heading error φ is fixed, the complete influence of d and κr on dℓ/ds is expressed through this factor.
Only the local relationship at the current projection point is considered below. Let the reference-path arc-length coordinate of this point be s0, and abbreviate κr=κr(s0). For κr=0, define
dc=κr1,Rr=∣κr∣1.Rr is the radius of curvature of the osculating circle at the projection point, while dc is the signed coordinate of its center measured along the left unit normal. The center of curvature is located at r(s0)+dcN(s0), and
1−dκr=1−dcd.The factor is therefore determined by the position of the vehicle’s lateral deviation d relative to the normal coordinate dc of the center of curvature:
- d/dc<0: the vehicle and the center of curvature lie on opposite sides of the reference path, so 1−dκr>1;
- 0<d/dc<1: the vehicle lies between the reference path and the center of curvature, so 0<1−dκr<1;
- d=dc: the vehicle position coincides with the center of curvature at the current projection point, so 1−dκr=0;
- d/dc>1: the vehicle lies beyond the center of curvature, so 1−dκr<0.
The center of curvature here describes only the second-order local geometry of the reference path at the current projection point; it does not imply that the reference path itself is a circular arc. The relationship between 1−dκr and the nearest projection can be established directly from the distance between the vehicle and the reference path.
Fix the vehicle position z, and let a candidate point r(ξ) move along the reference path, where ξ is the candidate point’s arc-length coordinate and s0 is the particular coordinate of the current perpendicular foot. Define
q(ξ)=21∥z−r(ξ)∥2.q(ξ) is one half of the squared distance from the vehicle to the candidate point. The constant 1/2 does not change the extrema; it only simplifies differentiation. Because the reference path is parameterized by arc length,
dξdr=T,dξdT=κr(ξ)N,T⋅T=1.Keeping z fixed, differentiate with respect to the candidate coordinate ξ:
q′(ξ)=21dξd[(z−r(ξ))⋅(z−r(ξ))]=−(z−r(ξ))⋅T(ξ).At the current perpendicular foot s0, the vehicle position satisfies
z−r(s0)=dN(s0).Because N⊥T, substituting ξ=s0 into the first derivative gives
q′(s0)=−dN(s0)⋅T(s0)=0.This establishes only that s0 is a stationary point of the distance function. To determine whether it is a local minimum or a local maximum, differentiate again:
q′′(ξ)=−dξd[(z−r(ξ))⋅T(ξ)]=dξdr⋅T−(z−r)⋅dξdT=T⋅T−(z−r)⋅κr(ξ)N.Finally, at ξ=s0, substitute z−r(s0)=dN(s0), T⋅T=1, and N⋅N=1:
dξ2d2qξ=s0=q′′(s0)=1−dκr.The term 1 comes from the unit tangent length T⋅T=1, while −dκr comes from the curvature-induced rotation of the reference-path tangent. Consequently, if 1−dκr>0, s0 is a strict local minimum of the distance function. If 1−dκr<0, s0 is a strict local maximum and cannot be the vehicle’s nearest projection point. If 1−dκr=0, the second-derivative test is inconclusive: whether the point remains a local minimum and whether the projection is unique cannot be determined from d and κr at that point alone. Even when 1−dκr>0, it guarantees only a local minimum; global uniqueness of the nearest projection still depends on the geometry of the complete reference path.
Positive curvature: center of curvature to the left of the reference path
When κr>0, dc=Rr>0 and the center of curvature lies on the left-unit-normal side. As the vehicle moves leftward from the reference path toward the center of curvature, d increases from 0 to Rr and 1−dκr decreases linearly from 1 to 0. When the vehicle is on the right side of the reference path, d<0 and the factor is greater than 1. When d>Rr, the factor is negative, so the current reference point cannot be the vehicle’s nearest projection. This region therefore does not belong to a Frenet coordinate state constructed from that point as the nearest projection.
Figure 7 fixes a positive reference curvature and varies lateral deviation to compare d directly with the current curvature radius. Figure 8 fixes lateral deviation and varies positive reference curvature to show how the same relationship changes as the radius and center of curvature move.
Figure 7. When κr>0, the signed normal coordinate of the center of curvature is dc=Rr=1/κr. The red dashed line marks d=dc, and the grid in the right-hand local geometry extends at least to this center of curvature. Adjust “Reference curvature” to observe the resulting changes in the curvature radius, center position, and 1−dκr.
Figure 8. Lateral deviation d is set by the “Experimental conditions” slider, and positive reference curvature κr is on the horizontal axis. 1−dκr varies linearly with κr. If d=0 and κr=1/d lies within the current horizontal range, the red dashed line marks where the vehicle position coincides with the center of curvature. Adjust d to observe whether this point lies in the positive-curvature range and how it moves with lateral deviation.
Negative curvature: center of curvature to the right of the reference path
When κr<0, dc=−Rr<0 and the center of curvature lies on the right-unit-normal side. As the vehicle moves rightward from the reference path toward the center of curvature, d decreases from 0 to −Rr and 1−dκr likewise decreases linearly from 1 to 0. When the vehicle is on the left side of the reference path, d>0 and the factor is greater than 1. When d<−Rr, the factor is negative, so the current reference point likewise cannot be the vehicle’s nearest projection. This region therefore does not belong to a Frenet coordinate state constructed from that point as the nearest projection.
Figure 9 fixes a negative reference curvature and varies lateral deviation; Figure 10 fixes lateral deviation and varies negative reference curvature. The two figures examine the same relationship as the positive-curvature experiments, but with the center of curvature on the right side of the reference path.
Figure 9. When κr<0, the signed normal coordinate of the center of curvature is dc=−Rr=1/κr. The red dashed line marks d=dc, and the grid in the right-hand local geometry extends at least to this center of curvature. The variation is the same as in Figure 7, except that the center of curvature and the corresponding lateral deviation lie to the right of the reference path.
Figure 10. Lateral deviation d is set by the “Experimental conditions” slider, and negative reference curvature κr is on the horizontal axis. 1−dκr varies linearly with κr. If d=0 and κr=1/d lies within the current horizontal range, the red dashed line marks where the vehicle position coincides with the center of curvature. This figure differs from Figure 8 only in the signs of the reference curvature, center-of-curvature direction, and corresponding lateral deviation.
When κr=0, the curvature radius at the projection point is infinite, no finite center of curvature exists, and 1−dκr=1 for every d. Lateral deviation then has no effect on this part of the local arc-length conversion relationship, so no separate plot is needed.
Sources and further reading
- Frenet Vehicle Kinematics: the full derivation of the conversion relationship, definitions of its variables, nearest-projection conditions, and references.
- Planar Frenet Frame: the unit tangent, left unit normal, and signed-curvature conventions used here.