Struct Ackermann
Car-like steering: one steered axle and a driven axle a wheelbase apart.
public readonly record struct Ackermann : IEquatable<Ackermann>
- Implements
- Inherited Members
Constructors
Ackermann(float)
Car-like steering: one steered axle and a driven axle a wheelbase apart.
public Ackermann(float Wheelbase)
Parameters
WheelbasefloatThe distance from the steered axle to the driven axle; its magnitude is used.
Properties
Wheelbase
The distance from the steered axle to the driven axle; its magnitude is used.
public float Wheelbase { get; init; }
Property Value
Methods
Curvature(float)
Returns the path curvature of a steering angle, the reciprocal of the turn radius.
public float Curvature(float steering)
Parameters
steeringfloatThe steering angle in radians.
Returns
- float
The curvature, or 0 for a vehicle with no wheelbase.
SteeringAngle(float, float)
Returns the steering angle for a forward speed and a yaw rate.
public float SteeringAngle(float linear, float angular)
Parameters
Returns
- float
The steering angle in radians, or 0 while the vehicle is stopped.
TurnRadius(float)
Returns the turn radius of a steering angle.
public float TurnRadius(float steering)
Parameters
steeringfloatThe steering angle in radians.
Returns
- float
The radius in meters, or PositiveInfinity with the wheels straight.
YawRate(float, float)
Returns the yaw rate a forward speed and a steering angle produce.
public float YawRate(float linear, float steering)
Parameters
Returns
- float
The yaw rate, or 0 for a vehicle with no wheelbase.