modelCircleRoad

Circular road (perpendicular to world z-axis)

Extends from VehicleInterfaces.Roads.Interfaces.Base (Base model for all roads).

Information

The road is a circle described by "radius" and "width". The road surface parameters are defined as:

s: arc length along circle
w: lateral displacement of road, perpendiular to circle

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

The functions are defined in such a way that Dymola inlines all the functions. As a result, it is easy to get derivatives of the functions.

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if road shall be visualized
SI.RadiusradiusRadius of road
SI.LengthwidthWidth of road
RealmuFriction coefficient of road
Modelica.Mechanics.MultiBody.Types.ColorroadColor{255, 0, 0}Color of road
RealpiModelica.Constants.pi

Contents

NameDescription
r_middleprotectedDetermine point on road in the middle of the circle (w=0
circlePositionprotectedDetermine point on road
constantOffsetprotectedDetermine offset from road centre line
circleNormalprotectedDetermine unit normal on road, given road surface parameters
circleHeadingDirectionprotectedDetermine unit heading direction on road
circleFrictionCoefficientprotectedDetermine friction coefficient at point on road