CARLA
 
载入中...
搜索中...
未找到
VehicleParameters.h
浏览该文件的文档.
1// Copyright (c) 2017 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 UPROPERTY(EditAnywhere, BlueprintReadWrite)
25 TSubclassOf<ACarlaWheeledVehicle> Class;
26
27 UPROPERTY(EditAnywhere, BlueprintReadWrite)
28 int32 NumberOfWheels = 4;
29
30 UPROPERTY(EditAnywhere, BlueprintReadWrite)
31 int32 Generation = 0;
32
33 /// (OPTIONAL) Use for custom classification of vehicles.
34 UPROPERTY(EditAnywhere, BlueprintReadWrite)
35 FString ObjectType;
36
37 /// (OPTIONAL) Use for a base classification of vehicles (car / truck / van / bycicle / motorcycle).
38 UPROPERTY(EditAnywhere, BlueprintReadWrite)
39 FString BaseType;
40
41 /// (OPTIONAL) Use for a more in-depth classification of vehicles (electric / emergency / taxi ...).
42 UPROPERTY(EditAnywhere, BlueprintReadWrite)
43 FString SpecialType;
44
45 UPROPERTY(EditAnywhere, BlueprintReadWrite)
46 bool HasDynamicDoors = false;
47
48 UPROPERTY(EditAnywhere, BlueprintReadWrite)
49 bool HasLights = false;
50
51 UPROPERTY(EditAnywhere, BlueprintReadWrite)
52 TArray<FColor> RecommendedColors;
53
54 /// List of IDs of the drivers (pedestrians) supported by this vehicle, leave
55 /// empty if no driver is supported.
56 UPROPERTY(EditAnywhere, BlueprintReadWrite)
57 TArray<int32> SupportedDrivers;
58};
Base class for CARLA wheeled vehicles.