modelFlatRoad

Straight road along x-axis (perpendicular to world z-axis)

Extends from VehicleInterfaces.Icons.Road (Icon for a road), VehicleInterfaces.Roads.Interfaces.Base (Base model for all roads).

Information

The road is a line along the x-axis of the world system. The road surface parameters are defined as:

s: x-coordinate in world frame (x-axis is road heading direction)
w: y-coordinate in world frame (y-axis is lateral displacement)

The point s=0, w=0 has position vector r={0, 0, 0};

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if road shall be visualized
Realmu0.5Friction coefficient of road
SI.Distanceoffset0Offset from the road centre line
Animation
Modelica.Mechanics.MultiBody.Types.ColorroadColor{255, 0, 0}Color of road
SI.Lengthwidth8Width of road
SI.Positionx_min-100Roads is visualized in the range [x_min .. x_max]
SI.Positionx_max100Roads is visualized in the range [x_min .. x_max]

Contents

NameDescription
linePositionprotectedDetermine point on road
constantOffsetprotectedDetermine offset from road centre line
lineNormalprotectedDetermine unit normal on road
lineHeadingDirectionprotectedDetermine unit heading direction on road
lineFrictionCoefficientprotectedDetermine friction coefficient at point on road