CARLA
Loading...
Searching...
No Matches
VehicleParameters.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
10
11#include "VehicleParameters.generated.h"
12
13USTRUCT(BlueprintType)
14struct CARLA_API FVehicleParameters
15{
16 GENERATED_BODY()
17
18 UPROPERTY(EditAnywhere, BlueprintReadWrite)
19 FString Make;
20
21 UPROPERTY(EditAnywhere, BlueprintReadWrite)
22 FString Model;
23
24 // Soft reference so catalog parsing does not force-load the class; resolution
25 // happens in MakeVehicleDefinition before the class is handed to the dispatcher.
26 UPROPERTY(EditAnywhere, BlueprintReadWrite)
27 TSoftClassPtr<ACarlaWheeledVehicle> Class;
28
29 UPROPERTY(EditAnywhere, BlueprintReadWrite)
30 int32 NumberOfWheels = 4;
31
32 UPROPERTY(EditAnywhere, BlueprintReadWrite)
33 int32 Generation = 0;
34
35 /// (OPTIONAL) Use for custom classification of vehicles.
36 UPROPERTY(EditAnywhere, BlueprintReadWrite)
37 FString ObjectType;
38
39 /// (OPTIONAL) Use for a base classification of vehicles (car / truck / van / bycicle / motorcycle).
40 UPROPERTY(EditAnywhere, BlueprintReadWrite)
41 FString BaseType;
42
43 /// (OPTIONAL) Use for a more in-depth classification of vehicles (electric / emergency / taxi ...).
44 UPROPERTY(EditAnywhere, BlueprintReadWrite)
45 FString SpecialType;
46
47 UPROPERTY(EditAnywhere, BlueprintReadWrite)
48 bool HasDynamicDoors = false;
49
50 UPROPERTY(EditAnywhere, BlueprintReadWrite)
51 bool HasLights = false;
52
53 UPROPERTY(EditAnywhere, BlueprintReadWrite)
54 TArray<FColor> RecommendedColors;
55
56 /// List of IDs of the drivers (pedestrians) supported by this vehicle, leave
57 /// empty if no driver is supported.
58 UPROPERTY(EditAnywhere, BlueprintReadWrite)
59 TArray<int32> SupportedDrivers;
60};
Base class for CARLA wheeled vehicles.