CARLA
Loading...
Searching...
No Matches
PedestrianParameters.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
9#include <util/ue-header-guard-begin.h>
10#include "GameFramework/Character.h"
11#include <util/ue-header-guard-end.h>
12
13#include "PedestrianParameters.generated.h"
14
15UENUM(BlueprintType)
16enum class EPedestrianGender : uint8
17{
18 Other UMETA(DisplayName = "Other"),
19 Female UMETA(DisplayName = "Female"),
20 Male UMETA(DisplayName = "Male"),
21
22 SIZE UMETA(Hidden),
23 INVALID UMETA(Hidden)
24};
25
26UENUM(BlueprintType)
27enum class EPedestrianAge : uint8
28{
29 Child UMETA(DisplayName = "Child"),
30 Teenager UMETA(DisplayName = "Teenager"),
31 Adult UMETA(DisplayName = "Adult"),
32 Elderly UMETA(DisplayName = "Elderly"),
33
34 SIZE UMETA(Hidden),
35 INVALID UMETA(Hidden)
36};
37
38USTRUCT(BlueprintType)
39struct CARLA_API FPedestrianParameters
40{
41 GENERATED_BODY()
42
43 UPROPERTY(EditAnywhere, BlueprintReadWrite)
44 FString Id;
45
46 // Soft reference so catalog parsing does not force-load the class; resolution
47 // happens in MakePedestrianDefinition before the class is handed to the dispatcher.
48 UPROPERTY(EditAnywhere, BlueprintReadWrite)
49 TSoftClassPtr<ACharacter> Class;
50
51 UPROPERTY(EditAnywhere, BlueprintReadWrite)
53
54 UPROPERTY(EditAnywhere, BlueprintReadWrite)
56
57 UPROPERTY(EditAnywhere, BlueprintReadWrite)
58 TArray<float> Speed;
59
60 UPROPERTY(EditAnywhere, BlueprintReadWrite)
61 int32 Generation = 0;
62
63 UPROPERTY(EditAnywhere, BlueprintReadWrite)
64 bool bCanUseWheelChair = false;
65
66 // Empty for an ordinary pedestrian; names the exception otherwise, as the
67 // vehicle catalogue already does with "electric".
68 UPROPERTY(EditAnywhere, BlueprintReadWrite)
69 FString SpecialType;
70};
EPedestrianGender