Partial base model for track offset from road centre line. Extend this model appropriately to define final user model.
partial function trackOffsetBase extends Modelica.Icons.Function; input Real s = 0 "Roads surface parameter 1 (usually arc length along road)"; input Real w = 0 "Roads surface parameter 2 (usually lateral direction)"; output SI.Position trackOffset[3] = zeros(3) "Track offset vector from road centre line to desired trajectory point"; end trackOffsetBase;