CARLA
 
载入中...
搜索中...
未找到
PedestrianParameters.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
9#include "GameFramework/Character.h"
10
11#include "PedestrianParameters.generated.h"
12
13UENUM(BlueprintType)
14enum class EPedestrianGender : uint8
15{
16 Other UMETA(DisplayName = "Other"),
17 Female UMETA(DisplayName = "Female"),
18 Male UMETA(DisplayName = "Male"),
19
20 SIZE UMETA(Hidden),
21 INVALID UMETA(Hidden)
22};
23
24UENUM(BlueprintType)
25enum class EPedestrianAge : uint8
26{
27 Child UMETA(DisplayName = "Child"),
28 Teenager UMETA(DisplayName = "Teenager"),
29 Adult UMETA(DisplayName = "Adult"),
30 Elderly UMETA(DisplayName = "Elderly"),
31
32 SIZE UMETA(Hidden),
33 INVALID UMETA(Hidden)
34};
35
36USTRUCT(BlueprintType)
37struct CARLA_API FPedestrianParameters
38{
39 GENERATED_BODY()
40
41 UPROPERTY(EditAnywhere, BlueprintReadWrite)
42 FString Id;
43
44 UPROPERTY(EditAnywhere, BlueprintReadWrite)
45 TSubclassOf<ACharacter> Class;
46
47 UPROPERTY(EditAnywhere, BlueprintReadWrite)
49
50 UPROPERTY(EditAnywhere, BlueprintReadWrite)
52
53 UPROPERTY(EditAnywhere, BlueprintReadWrite)
54 TArray<float> Speed;
55
56 UPROPERTY(EditAnywhere, BlueprintReadWrite)
57 int32 Generation = 0;
58
59 UPROPERTY(EditAnywhere, BlueprintReadWrite)
60 bool bCanUseWheelChair = false;
61};
EPedestrianGender