CARLA
Public Member Functions | List of all members
FVehicleActor Class Reference

#include <CarlaActor.h>

+ Inheritance diagram for FVehicleActor:
+ Collaboration diagram for FVehicleActor:

Public Member Functions

virtual ECarlaServerResponse ApplyAckermannControllerSettings (const FAckermannControllerSettings &) final
 
virtual ECarlaServerResponse ApplyAckermannControlToVehicle (const FVehicleAckermannControl &, const EVehicleInputPriority &) final
 
virtual ECarlaServerResponse ApplyControlToVehicle (const FVehicleControl &, const EVehicleInputPriority &) final
 
virtual ECarlaServerResponse ApplyPhysicsControl (const FVehiclePhysicsControl &PhysicsControl) final
 
virtual ECarlaServerResponse CloseVehicleDoor (const EVehicleDoor DoorIdx) final
 
virtual ECarlaServerResponse DisableActorConstantVelocity () final
 
virtual ECarlaServerResponse EnableActorConstantVelocity (const FVector &Velocity) final
 
virtual ECarlaServerResponse EnableCarSim (const FString &SimfilePath) final
 
virtual ECarlaServerResponse EnableChronoPhysics (uint64_t MaxSubsteps, float MaxSubstepDeltaTime, const FString &VehicleJSON, const FString &PowertrainJSON, const FString &TireJSON, const FString &BaseJSONPath) final
 
 FVehicleActor (IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, carla::rpc::ActorState InState, UWorld *World)
 
virtual ECarlaServerResponse GetAckermannControllerSettings (FAckermannControllerSettings &) final
 
virtual ECarlaServerResponse GetFailureState (carla::rpc::VehicleFailureState &) final
 
virtual ECarlaServerResponse GetPhysicsControl (FVehiclePhysicsControl &PhysicsControl) final
 
virtual ECarlaServerResponse GetVehicleAckermannControl (FVehicleAckermannControl &) final
 
virtual ECarlaServerResponse GetVehicleControl (FVehicleControl &) final
 
virtual ECarlaServerResponse GetVehicleLightState (FVehicleLightState &LightState) final
 
virtual ECarlaServerResponse GetWheelSteerAngle (const EVehicleWheelLocation &WheelLocation, float &Angle)
 
virtual ECarlaServerResponse OpenVehicleDoor (const EVehicleDoor DoorIdx) final
 
virtual ECarlaServerResponse SetActorAutopilot (bool bEnabled, bool bKeepState=false) final
 
virtual ECarlaServerResponse SetActorSimulatePhysics (bool bSimulatePhysics) final
 
virtual ECarlaServerResponse SetVehicleLightState (const FVehicleLightState &LightState) final
 
virtual ECarlaServerResponse SetWheelSteerDirection (const EVehicleWheelLocation &WheelLocation, float AngleInDeg) final
 
virtual ECarlaServerResponse ShowVehicleDebugTelemetry (bool bEnabled) final
 
virtual ECarlaServerResponse UseCarSimRoad (bool bEnabled) final
 
- Public Member Functions inherited from FCarlaActor
ECarlaServerResponse AddActorAngularImpulse (const FVector &AngularInpulse)
 
ECarlaServerResponse AddActorForce (const FVector &Force)
 
ECarlaServerResponse AddActorForceAtLocation (const FVector &Force, const FVector &Location)
 
ECarlaServerResponse AddActorImpulse (const FVector &Impulse)
 
ECarlaServerResponse AddActorImpulseAtLocation (const FVector &Impulse, const FVector &Location)
 
ECarlaServerResponse AddActorTorque (const FVector &Torque)
 
void AddChildren (IdType ChildId)
 
virtual ECarlaServerResponse ApplyControlToWalker (const FWalkerControl &)
 
virtual ECarlaServerResponse BlendPose (float Blend)
 
void BuildActorData ()
 
 FCarlaActor ()=default
 
 FCarlaActor (IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, carla::rpc::ActorState InState, UWorld *World)
 
virtual ECarlaServerResponse FreezeTrafficLight (bool)
 
AActorGetActor ()
 
const AActorGetActor () const
 
FVector GetActorAngularVelocity () const
 
FActorDataGetActorData ()
 
const FActorDataGetActorData () const
 
template<typename T >
T * GetActorData ()
 
template<typename T >
const T * GetActorData () const
 
FVector GetActorGlobalLocation () const
 
FTransform GetActorGlobalTransform () const
 
IdType GetActorId () const
 
const FActorInfoGetActorInfo () const
 
FVector GetActorLocalLocation () const
 
FTransform GetActorLocalTransform () const
 
carla::rpc::ActorState GetActorState () const
 
ActorType GetActorType () const
 
FVector GetActorVelocity () const
 
carla::rpc::AttachmentType GetAttachmentType () const
 
virtual ECarlaServerResponse GetBonesTransform (FWalkerBoneControlOut &)
 
const TArray< IdType > & GetChildren () const
 
IdType GetParent () const
 
virtual ECarlaServerResponse GetPoseFromAnimation ()
 
virtual UTrafficLightControllerGetTrafficLightController ()
 
virtual ETrafficLightState GetTrafficLightState () const
 
virtual ECarlaServerResponse GetWalkerControl (FWalkerControl &)
 
bool IsActive () const
 
bool IsAlive () const
 
bool IsDormant () const
 
bool IsInValid () const
 
bool IsPendingKill () const
 
void PutActorToSleep (UCarlaEpisode *CarlaEpisode)
 
void RemoveChildren (IdType ChildId)
 
virtual ECarlaServerResponse ResetTrafficLightGroup ()
 
virtual ECarlaServerResponse SetActorCollisions (bool bEnabled)
 
virtual ECarlaServerResponse SetActorDead ()
 
virtual ECarlaServerResponse SetActorEnableGravity (bool bEnabled)
 
void SetActorGlobalLocation (const FVector &Location, ETeleportType Teleport=ETeleportType::TeleportPhysics)
 
void SetActorGlobalTransform (const FTransform &Transform, ETeleportType Teleport=ETeleportType::TeleportPhysics)
 
void SetActorLocalLocation (const FVector &Location, ETeleportType Teleport=ETeleportType::TeleportPhysics)
 
void SetActorLocalTransform (const FTransform &Transform, ETeleportType Teleport=ETeleportType::TeleportPhysics)
 
void SetActorState (carla::rpc::ActorState InState)
 
ECarlaServerResponse SetActorTargetAngularVelocity (const FVector &AngularVelocity)
 
ECarlaServerResponse SetActorTargetVelocity (const FVector &Velocity)
 
void SetAttachmentType (carla::rpc::AttachmentType InAttachmentType)
 
virtual ECarlaServerResponse SetBonesTransform (const FWalkerBoneControlIn &)
 
virtual ECarlaServerResponse SetLightGreenTime (float)
 
virtual ECarlaServerResponse SetLightRedTime (float)
 
virtual ECarlaServerResponse SetLightYellowTime (float)
 
void SetParent (IdType InParentId)
 
virtual ECarlaServerResponse SetTrafficLightState (const ETrafficLightState &)
 
virtual ECarlaServerResponse SetWalkerState (const FTransform &Transform, carla::rpc::WalkerControl WalkerControl)
 
void WakeActorUp (UCarlaEpisode *CarlaEpisode)
 
virtual ~FCarlaActor ()
 

Additional Inherited Members

- Public Types inherited from FCarlaActor
enum  ActorType : uint8 {
  ActorType::Other, ActorType::Vehicle, ActorType::Walker, ActorType::TrafficLight,
  ActorType::TrafficSign, ActorType::Sensor, ActorType::INVALID
}
 
using IdType = uint32
 
- Static Public Member Functions inherited from FCarlaActor
static TSharedPtr< FCarlaActorConstructCarlaActor (IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, ActorType Type, carla::rpc::ActorState InState, UWorld *World)
 
- Protected Attributes inherited from FCarlaActor
TSharedPtr< FActorDataActorData = nullptr
 
ActorType Type = ActorType::INVALID
 
UWorld * World = nullptr
 

Detailed Description

Definition at line 471 of file CarlaActor.h.

Constructor & Destructor Documentation

◆ FVehicleActor()

FVehicleActor::FVehicleActor ( IdType  ActorId,
AActor Actor,
TSharedPtr< const FActorInfo Info,
carla::rpc::ActorState  InState,
UWorld *  World 
)

Definition at line 54 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::Type, and FCarlaActor::Vehicle.

Member Function Documentation

◆ ApplyAckermannControllerSettings()

ECarlaServerResponse FVehicleActor::ApplyAckermannControllerSettings ( const FAckermannControllerSettings AckermannSettings)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 929 of file CarlaActor.cpp.

References FVehicleData::AckermannControllerSettings, FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ ApplyAckermannControlToVehicle()

ECarlaServerResponse FVehicleActor::ApplyAckermannControlToVehicle ( const FVehicleAckermannControl AckermannControl,
const EVehicleInputPriority Priority 
)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 850 of file CarlaActor.cpp.

References FVehicleData::AckermannControl, FCarlaActor::ActorData, FVehicleData::bAckermannControlActive, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ ApplyControlToVehicle()

ECarlaServerResponse FVehicleActor::ApplyControlToVehicle ( const FVehicleControl Control,
const EVehicleInputPriority Priority 
)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 829 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FVehicleData::bAckermannControlActive, FVehicleData::Control, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ ApplyPhysicsControl()

ECarlaServerResponse FVehicleActor::ApplyPhysicsControl ( const FVehiclePhysicsControl PhysicsControl)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 733 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, FVehicleData::PhysicsControl, PhysicsControl, Success, and Vehicle.

+ Here is the call graph for this function:

◆ CloseVehicleDoor()

ECarlaServerResponse FVehicleActor::CloseVehicleDoor ( const EVehicleDoor  DoorIdx)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 719 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ DisableActorConstantVelocity()

ECarlaServerResponse FVehicleActor::DisableActorConstantVelocity ( )
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 630 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NullActor, and Success.

+ Here is the call graph for this function:

◆ EnableActorConstantVelocity()

ECarlaServerResponse FVehicleActor::EnableActorConstantVelocity ( const FVector &  Velocity)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 613 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NullActor, and Success.

+ Here is the call graph for this function:

◆ EnableCarSim()

ECarlaServerResponse FVehicleActor::EnableCarSim ( const FString &  SimfilePath)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 989 of file CarlaActor.cpp.

References UCarSimManagerComponent::CreateCarsimComponent(), FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ EnableChronoPhysics()

ECarlaServerResponse FVehicleActor::EnableChronoPhysics ( uint64_t  MaxSubsteps,
float  MaxSubstepDeltaTime,
const FString &  VehicleJSON,
const FString &  PowertrainJSON,
const FString &  TireJSON,
const FString &  BaseJSONPath 
)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 1031 of file CarlaActor.cpp.

References UChronoMovementComponent::CreateChronoMovementComponent(), FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetAckermannControllerSettings()

ECarlaServerResponse FVehicleActor::GetAckermannControllerSettings ( FAckermannControllerSettings AckermannSettings)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 909 of file CarlaActor.cpp.

References FVehicleData::AckermannControllerSettings, FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetFailureState()

ECarlaServerResponse FVehicleActor::GetFailureState ( carla::rpc::VehicleFailureState FailureState)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 666 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FVehicleData::FailureState, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetPhysicsControl()

ECarlaServerResponse FVehicleActor::GetPhysicsControl ( FVehiclePhysicsControl PhysicsControl)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 647 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, FVehicleData::PhysicsControl, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetVehicleAckermannControl()

ECarlaServerResponse FVehicleActor::GetVehicleAckermannControl ( FVehicleAckermannControl VehicleAckermannControl)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 890 of file CarlaActor.cpp.

References FVehicleData::AckermannControl, FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetVehicleControl()

ECarlaServerResponse FVehicleActor::GetVehicleControl ( FVehicleControl VehicleControl)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 871 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FVehicleData::Control, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetVehicleLightState()

ECarlaServerResponse FVehicleActor::GetVehicleLightState ( FVehicleLightState LightState)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 685 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), FVehicleData::LightState, NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ GetWheelSteerAngle()

ECarlaServerResponse FVehicleActor::GetWheelSteerAngle ( const EVehicleWheelLocation WheelLocation,
float &  Angle 
)
virtual

Reimplemented from FCarlaActor.

Definition at line 792 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ OpenVehicleDoor()

ECarlaServerResponse FVehicleActor::OpenVehicleDoor ( const EVehicleDoor  DoorIdx)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 705 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ SetActorAutopilot()

ECarlaServerResponse FVehicleActor::SetActorAutopilot ( bool  bEnabled,
bool  bKeepState = false 
)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 950 of file CarlaActor.cpp.

References AutoPilotNotSupported, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), Success, and Vehicle.

+ Here is the call graph for this function:

◆ SetActorSimulatePhysics()

ECarlaServerResponse FVehicleActor::SetActorSimulatePhysics ( bool  bSimulatePhysics)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 811 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, and Success.

+ Here is the call graph for this function:

◆ SetVehicleLightState()

ECarlaServerResponse FVehicleActor::SetVehicleLightState ( const FVehicleLightState LightState)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 754 of file CarlaActor.cpp.

References FCarlaActor::ActorData, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), FVehicleData::LightState, NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ SetWheelSteerDirection()

ECarlaServerResponse FVehicleActor::SetWheelSteerDirection ( const EVehicleWheelLocation WheelLocation,
float  AngleInDeg 
)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 775 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ ShowVehicleDebugTelemetry()

ECarlaServerResponse FVehicleActor::ShowVehicleDebugTelemetry ( bool  bEnabled)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 972 of file CarlaActor.cpp.

References FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, and Vehicle.

+ Here is the call graph for this function:

◆ UseCarSimRoad()

ECarlaServerResponse FVehicleActor::UseCarSimRoad ( bool  bEnabled)
finalvirtual

Reimplemented from FCarlaActor.

Definition at line 1006 of file CarlaActor.cpp.

References CarSimPluginNotEnabled, FCarlaActor::GetActor(), FCarlaActor::IsDormant(), NotAVehicle, Success, UCarSimManagerComponent::UseCarSimRoad(), and Vehicle.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: