    

 ## On this page

  

 

 # Class simulation\_framework::utilities::vehicle::VehicleFactory

 Last update: 22.04.2026 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

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

**Inherits from**:

- IVehicleFactory

## Members

- [Create](classsimulation__framework_1_1utilities_1_1vehicle_1_1VehicleFactory.md#classsimulation__framework_1_1utilities_1_1vehicle_1_1VehicleFactory_1a41a64ec0d9a2216265afe3afb9d99b18)

## Public functions

<a id="classsimulation__framework_1_1utilities_1_1vehicle_1_1VehicleFactory_1a41a64ec0d9a2216265afe3afb9d99b18"></a>

### Function Create

![](https://img.shields.io/badge/-public-brightgreen "public")

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

```

Create a default [IVehicle](classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle.md#classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle) 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](classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle.md#classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle) implementation

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

**Parameters**:

- const VehicleConfig &amp; **cfg**
- double **dt**

**Return type**: std::unique\_ptr&lt; [IVehicle](classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle.md#classsimulation__framework_1_1utilities_1_1vehicle_1_1IVehicle) &gt;