CARLA
 
载入中...
搜索中...
未找到
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/VehicleTelemetryData.h
浏览该文件的文档.
1// Copyright (c) 2022 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 "VehicleTelemetryData.generated.h"
10
11USTRUCT(BlueprintType)
13{
14 GENERATED_USTRUCT_BODY()
15
16 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
17 float TireFriction = 0.0f;
18
19 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
20 float LatSlip = 0.0f; // degrees
21
22 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
23 float LongSlip = 0.0f;
24
25 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
26 float Omega = 0.0f;
27
28 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
29 float TireLoad = 0.0f;
30
31 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
32 float NormalizedTireLoad = 0.0f;
33
34 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
35 float Torque = 0.0f; // [Nm]
36
37 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
38 float LongForce = 0.0f; // [N]
39
40 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
41 float LatForce = 0.0f; // [N]
42
43 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
44 float NormalizedLongForce = 0.0f;
45
46 UPROPERTY(Category = "Wheel Telemetry Data", EditAnywhere, BlueprintReadWrite)
47 float NormalizedLatForce = 0.0f;
48};
49
50USTRUCT(BlueprintType)
51struct CARLA_API FVehicleTelemetryData
52{
53 GENERATED_BODY()
54
55 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
56 float Speed = 0.0f; // [m/s]
57
58 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
59 float Steer = 0.0f;
60
61 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
62 float Throttle = 0.0f;
63
64 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
65 float Brake = 0.0f;
66
67 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
68 float EngineRPM = 0.0f;
69
70 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
71 int32 Gear = 0.0f;
72
73 UPROPERTY(Category = "Vehicle Telemetry Data", EditAnywhere, BlueprintReadWrite)
74 float Drag = 0.0f; // [N]
75
76 UPROPERTY(Category = "Vehicle Engine Physics Control", EditAnywhere, BlueprintReadWrite)
77 TArray<FWheelTelemetryData> Wheels;
78};