CARLA轮式车辆的基类 更多...
#include <CarlaWheeledVehicleNW.h>
类 ACarlaWheeledVehicleNW 继承关系图:
ACarlaWheeledVehicleNW 的协作图:Public 成员函数 | |
Constructor and destructor | |
| ACarlaWheeledVehicleNW (const FObjectInitializer &ObjectInitializer) | |
| ~ACarlaWheeledVehicleNW () | |
Public 成员函数 继承自 ACarlaWheeledVehicle | |
| ACarlaWheeledVehicle (const FObjectInitializer &ObjectInitializer) | |
| ~ACarlaWheeledVehicle () | |
| const FVehicleControl & | GetVehicleControl () const |
| Vehicle control currently applied to this vehicle. 更多... | |
| const FVehicleAckermannControl & | GetVehicleAckermannControl () const |
| Vehicle Ackermann control currently applied to this vehicle. 更多... | |
| FTransform | GetVehicleTransform () const |
| Transform of the vehicle. 更多... | |
| float | GetVehicleForwardSpeed () const |
| Forward speed in cm/s. Might be negative if goes backwards. 更多... | |
| FVector | GetVehicleOrientation () const |
| Orientation vector of the vehicle, pointing forward. 更多... | |
| int32 | GetVehicleCurrentGear () const |
| Active gear of the vehicle. 更多... | |
| FTransform | GetVehicleBoundingBoxTransform () const |
| Transform of the vehicle's bounding box relative to the vehicle. 更多... | |
| FVector | GetVehicleBoundingBoxExtent () const |
| Extent of the vehicle's bounding box. 更多... | |
| UBoxComponent * | GetVehicleBoundingBox () const |
| Get vehicle's bounding box component. 更多... | |
| float | GetMaximumSteerAngle () const |
| Get the maximum angle at which the front wheel can steer. 更多... | |
| void | SetAIVehicleState (ECarlaWheeledVehicleState InState) |
| ECarlaWheeledVehicleState | GetAIVehicleState () const |
| FVehiclePhysicsControl | GetVehiclePhysicsControl () const |
| FAckermannControllerSettings | GetAckermannControllerSettings () const |
| void | RestoreVehiclePhysicsControl () |
| FVehicleLightState | GetVehicleLightState () const |
| void | ApplyVehiclePhysicsControl (const FVehiclePhysicsControl &PhysicsControl) |
| void | ApplyAckermannControllerSettings (const FAckermannControllerSettings &AckermannControllerSettings) |
| void | SetSimulatePhysics (bool enabled) |
| void | SetWheelCollision (UWheeledVehicleMovementComponent4W *Vehicle4W, const FVehiclePhysicsControl &PhysicsControl) |
| void | SetWheelCollisionNW (UWheeledVehicleMovementComponentNW *VehicleNW, const FVehiclePhysicsControl &PhysicsControl) |
| void | SetVehicleLightState (const FVehicleLightState &LightState) |
| void | SetFailureState (const carla::rpc::VehicleFailureState &FailureState) |
| bool | IsTwoWheeledVehicle () |
| virtual bool | IsTwoWheeledVehicle_Implementation () |
| void | ApplyVehicleControl (const FVehicleControl &Control, EVehicleInputPriority Priority) |
| void | ApplyVehicleAckermannControl (const FVehicleAckermannControl &AckermannControl, EVehicleInputPriority Priority) |
| bool | IsAckermannControlActive () const |
| void | ActivateVelocityControl (const FVector &Velocity) |
| void | DeactivateVelocityControl () |
| FVehicleTelemetryData | GetVehicleTelemetryData () const |
| void | ShowDebugTelemetry (bool Enabled) |
| void | FlushVehicleControl () |
| void | SetThrottleInput (float Value) |
| void | SetSteeringInput (float Value) |
| void | SetBrakeInput (float Value) |
| void | SetReverse (bool Value) |
| void | ToggleReverse () |
| void | SetHandbrakeInput (bool Value) |
| void | HoldHandbrake () |
| void | ReleaseHandbrake () |
| TArray< float > | GetWheelsFrictionScale () |
| void | SetWheelsFrictionScale (TArray< float > &WheelsFrictionScale) |
| void | SetCarlaMovementComponent (UBaseCarlaMovementComponent *MoementComponent) |
| template<typename T = UBaseCarlaMovementComponent> | |
| T * | GetCarlaMovementComponent () const |
| FBox | GetDetectionBox () const |
| float | GetDetectionSize () const |
| void | UpdateDetectionBox () |
| const TArray< int32 > | GetFoliageInstancesCloseToVehicle (const UInstancedStaticMeshComponent *Component) const |
| void | DrawFoliageBoundingBox () const |
| FBoxSphereBounds | GetBoxSphereBounds () const |
| bool | IsInVehicleRange (const FVector &Location) const |
| void | SetWheelSteerDirection (EVehicleWheelLocation WheelLocation, float AngleInDeg) |
| Set the rotation of the car wheels indicated by the user 0 = FL_VehicleWheel, 1 = FR_VehicleWheel, 2 = BL_VehicleWheel, 3 = BR_VehicleWheel NOTE : This is purely aesthetic. 更多... | |
| float | GetWheelSteerAngle (EVehicleWheelLocation WheelLocation) |
| void | OpenDoor (const EVehicleDoor DoorIdx) |
| void | CloseDoor (const EVehicleDoor DoorIdx) |
| void | OpenDoorPhys (const EVehicleDoor DoorIdx) |
| void | CloseDoorPhys (const EVehicleDoor DoorIdx) |
| void | RecordDoorChange (const EVehicleDoor DoorIdx, const bool bIsOpen) |
| virtual FVector | GetVelocity () const override |
| void | SetRolloverFlag () |
| carla::rpc::VehicleFailureState | GetFailureState () const |
| float | GetSpeedAnim () const |
| void | SetSpeedAnim (float Speed) |
| float | GetRotationAnim () const |
| void | SetRotationAnim (float Rotation) |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 ACarlaWheeledVehicle | |
| static FRotator | GetPhysicsConstraintAngle (UPhysicsConstraintComponent *Component) |
| static void | SetPhysicsConstraintAngle (UPhysicsConstraintComponent *Component, const FRotator &NewAngle) |
Public 属性 继承自 ACarlaWheeledVehicle | |
| float | DetectionSize { 750.0f } |
| FBox | FoliageBoundingBox |
| UBoxComponent * | VehicleBounds |
| float | CarSimOriginOffset = 150.f |
| bool | bIsNWVehicle = false |
| float | SpeedAnim { 0.0f } |
| float | RotationAnim { 0.0f } |
Protected 成员函数 继承自 ACarlaWheeledVehicle | |
| virtual void | BeginPlay () override |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) |
| void | RefreshLightState (const FVehicleLightState &VehicleLightState) |
| void | AdjustVehicleBounds () |
| void | ResetConstraints () |
Protected 属性 继承自 ACarlaWheeledVehicle | |
| TArray< FName > | ConstraintComponentNames |
| float | DoorOpenStrength = 100.0f |
CARLA轮式车辆的基类
在文件 CarlaWheeledVehicleNW.h 第 24 行定义.
| ACarlaWheeledVehicleNW::ACarlaWheeledVehicleNW | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 CarlaWheeledVehicleNW.cpp 第 11 行定义.
| ACarlaWheeledVehicleNW::~ACarlaWheeledVehicleNW | ( | ) |
在文件 CarlaWheeledVehicleNW.cpp 第 17 行定义.