Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

Class simulation_framework::utilities::vehicle::VehicleFactory

Last update: 22.04.2026

Definition: autonomy/simulation/utilities/vehicle/vehicle_factory.h (line 14)

Inherits from:

  • IVehicleFactory

Members

Public functions

Function Create

std::unique_ptr< IVehicle > simulation_framework::utilities::vehicle::VehicleFactory::Create(const VehicleConfig &cfg, double dt) override

Create a default IVehicle instance from a configuration file.

Parameters:

  • config_file_path: path to a vehicle JSON configuration
  • dt: delta time-step used by created components (controller and model internally)

Returns:

unique_ptr owning a concrete IVehicle implementation

The factory constructs a Vehicle and configures a controller and model based on the provided configuration. Throws on configuration errors.

Parameters:

  • const VehicleConfig & cfg
  • double dt

Return type: std::unique_ptr< IVehicle >

Connect with Ansys