CARLA
 
载入中...
搜索中...
未找到
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/VehicleControl.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 "VehicleControl.generated.h"
10
11USTRUCT(BlueprintType)
12struct CARLA_API FVehicleControl
13{
14 GENERATED_BODY()
15
16 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
17 float Throttle = 0.0f;
18
19 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
20 float Steer = 0.0f;
21
22 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
23 float Brake = 0.0f;
24
25 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
26 bool bHandBrake = false;
27
28 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
29 bool bReverse = false;
30
31 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite)
32 bool bManualGearShift = false;
33
34 UPROPERTY(Category = "Vehicle Control", EditAnywhere, BlueprintReadWrite, meta = (EditCondition = bManualGearShift))
35 int32 Gear = 0;
36};