Skip to main content

Module vehicle_api

Module vehicle_api 

Source
Expand description

Vehicle simulation API for Python interop.

Provides Python-friendly types for full vehicle simulation including: tire models (Pacejka/Fiala), drivetrain, suspension, stability control, telemetry, and racing line optimization.

Structs§

AbsState
ABS (anti-lock braking system) state.
EngineCurve
Engine torque curve defined by RPM breakpoints and torque values.
EscState
Electronic stability control (ESC) state.
FialaParams
Fiala tire model parameters.
LapStats
Lap statistics derived from telemetry.
PacejkaCoeffs
Pacejka magic formula tire coefficients.
PyDrivetrain
Drivetrain configuration.
PyRacingLine
Racing line optimizer and analyzer.
PyStabilityControl
Vehicle stability control system combining TCS, ABS, and ESC.
PySteering
Steering system with Ackermann geometry and 4WS option.
PySuspension
One corner suspension.
PyTelemetry
Vehicle telemetry recorder.
PyTireModel
Tire model for force computation.
PyTireThermal
Three-layer tire thermal model (surface / bulk / carcass).
PyVehicle
Full vehicle state.
PyWheelDynamics
State and forces at a single wheel.
TcsState
Traction control system (TCS) state.
TelemetrySample
A single telemetry sample.
TrackPoint
A 2D point on the track.

Enums§

DiffType
Differential type.
SuspensionKind
Suspension geometry type.
TireModelKind
Tire model selection.

Functions§

ackermann_angles
Compute Ackermann steering angles for inner and outer front wheels.
compute_slip_angle
Compute the slip angle from tire velocity components.
compute_slip_ratio
Compute the longitudinal slip ratio.
pacejka_fx
Compute the Pacejka magic formula longitudinal force Fx.
pacejka_fy
Compute the Pacejka magic formula lateral force Fy.