CARLA
Loading...
Searching...
No Matches
FCarlaActor Class Reference

A view over an actor and its properties. More...

#include <CarlaActor.h>

Inheritance diagram for FCarlaActor:

Public Types

enum class  ActorType : uint8 {
  Other , Vehicle , Walker , TrafficLight ,
  TrafficSign , Sensor , INVALID
}
using IdType = uint32

Public Member Functions

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 ApplyAckermannControllerSettings (const FAckermannControllerSettings &)
virtual ECarlaServerResponse ApplyAckermannControlToVehicle (const FVehicleAckermannControl &, const EVehicleInputPriority &)
virtual ECarlaServerResponse ApplyControlToVehicle (const FVehicleControl &, const EVehicleInputPriority &)
virtual ECarlaServerResponse ApplyControlToWalker (const FWalkerControl &)
virtual ECarlaServerResponse ApplyPhysicsControl (const FVehiclePhysicsControl &)
virtual ECarlaServerResponse BlendPose (float Blend)
void BuildActorData ()
void ClearMirroredKinematics ()
virtual ECarlaServerResponse CloseVehicleDoor (const EVehicleDoor)
virtual ECarlaServerResponse DisableActorConstantAcceleration ()
virtual ECarlaServerResponse DisableActorConstantVelocity ()
virtual ECarlaServerResponse EnableActorConstantAcceleration (const FVector &)
virtual ECarlaServerResponse EnableActorConstantVelocity (const FVector &)
virtual ECarlaServerResponse EnableCarSim (const FString &)
virtual ECarlaServerResponse EnableChronoPhysics (uint64_t, float, const FString &, const FString &, const FString &, const FString &)
 FCarlaActor ()=default
 FCarlaActor (IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, carla::rpc::ActorState InState, UWorld *World)
virtual ECarlaServerResponse FreezeTrafficLight (bool)
virtual ECarlaServerResponse GetAckermannControllerSettings (FAckermannControllerSettings &)
AActor * GetActor ()
const AActor * GetActor () const
FVector GetActorAngularVelocity () const
ECarlaServerResponse GetActorBoneNames (TArray< FString > &Names) const
ECarlaServerResponse GetActorBoneRelativeTransforms (TArray< FTransform > &Transforms) const
ECarlaServerResponse GetActorBoneWorldTransforms (TArray< FTransform > &Transforms) const
ECarlaServerResponse GetActorComponentNames (TArray< FString > &Names) const
ECarlaServerResponse GetActorComponentRelativeTransform (const FString &ComponentName, FTransform &Transform) const
ECarlaServerResponse GetActorComponentWorldTransform (const FString &ComponentName, FTransform &Transform) const
template<typename T>
T * GetActorData ()
FActorData * GetActorData ()
template<typename T>
const T * GetActorData () const
const FActorData * GetActorData () const
FVector GetActorGlobalLocation () const
FTransform GetActorGlobalTransform () const
IdType GetActorId () const
const FActorInfo * GetActorInfo () const
FVector GetActorLocalLocation () const
FTransform GetActorLocalTransform () const
ECarlaServerResponse GetActorRigSnapshot (FActorRigSnapshot &Rig) const
ECarlaServerResponse GetActorSocketNames (TArray< FString > &Names) const
ECarlaServerResponse GetActorSocketRelativeTransforms (TArray< FTransform > &Transforms) const
ECarlaServerResponse GetActorSocketWorldTransforms (TArray< FTransform > &Transforms) const
carla::rpc::ActorState GetActorState () const
ActorType GetActorType () const
virtual FVector GetActorVelocity () const
carla::rpc::AttachmentType GetAttachmentType () const
virtual ECarlaServerResponse GetBonesTransform (FWalkerBoneControlOut &)
const TArray< IdType > & GetChildren () const
virtual ECarlaServerResponse GetFailureState (carla::rpc::VehicleFailureState &)
FVector GetMirroredAngularVelocityInRadians () const
uint64 GetMirroredKinematicsFrame () const
IdType GetParent () const
virtual ECarlaServerResponse GetPhysicsControl (FVehiclePhysicsControl &)
virtual ECarlaServerResponse GetPoseFromAnimation ()
IdType GetPrimaryActorId () const
 The id clients know this actor by: the primary's for a mirror on a Multi-GPU secondary, this actor's own id everywhere else.
virtual UTrafficLightController * GetTrafficLightController ()
virtual ETrafficLightState GetTrafficLightState () const
virtual ECarlaServerResponse GetVehicleAckermannControl (FVehicleAckermannControl &)
virtual ECarlaServerResponse GetVehicleControl (FVehicleControl &)
virtual ECarlaServerResponse GetVehicleLightState (FVehicleLightState &)
virtual ECarlaServerResponse GetVehicleTelemetryData (FVehicleTelemetryData &)
virtual ECarlaServerResponse GetWalkerControl (FWalkerControl &)
virtual ECarlaServerResponse GetWheelPitchAngle (const EVehicleWheelLocation &, float &)
virtual ECarlaServerResponse GetWheelSteerAngle (const EVehicleWheelLocation &, float &)
virtual ECarlaServerResponse GetWheelSuspensionOffset (const EVehicleWheelLocation &, float &)
bool HasMirroredKinematics () const
bool IsActive () const
bool IsAlive () const
bool IsDormant () const
bool IsInValid () const
bool IsPendingKill () const
virtual ECarlaServerResponse OpenVehicleDoor (const EVehicleDoor)
void PutActorToSleep (UCarlaEpisode *CarlaEpisode)
void RemoveChildren (IdType ChildId)
virtual ECarlaServerResponse ResetTrafficLightGroup ()
virtual ECarlaServerResponse SetActorAutopilot (bool, bool bKeepState=false)
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)
virtual ECarlaServerResponse SetActorSimulatePhysics (bool bEnabled)
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 SetMirroredKinematics (const FVector &Velocity, const FVector &AngularVelocityRadians, uint64 Frame)
 Multi-GPU secondary: the primary's velocities of the actor this one mirrors, in the world frame (cm/s and rad/s), of primary frame Frame.
void SetParent (IdType InParentId)
void SetPrimaryActorId (IdType InPrimaryActorId)
 Multi-GPU secondary: the id the primary gave the actor this one mirrors.
virtual ECarlaServerResponse SetTrafficLightState (const ETrafficLightState &)
virtual ECarlaServerResponse SetVehicleLightState (const FVehicleLightState &)
virtual ECarlaServerResponse SetWalkerState (const FTransform &Transform, carla::rpc::WalkerControl WalkerControl)
virtual ECarlaServerResponse SetWheelAnimationOverride (bool)
virtual ECarlaServerResponse SetWheelPitchAngle (const EVehicleWheelLocation &, float)
virtual ECarlaServerResponse SetWheelSteerDirection (const EVehicleWheelLocation &, float)
virtual ECarlaServerResponse SetWheelSuspensionOffset (const EVehicleWheelLocation &, float)
virtual ECarlaServerResponse ShowVehicleDebugTelemetry (bool)
ECarlaServerResponse ToWorld (const TArray< FTransform > &Relative, TArray< FTransform > &Transforms) const
virtual ECarlaServerResponse UseCarSimRoad (bool)
void WakeActorUp (UCarlaEpisode *CarlaEpisode)
virtual ~FCarlaActor ()

Static Public Member Functions

static TSharedPtr< FCarlaActor > ConstructCarlaActor (IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, ActorType Type, carla::rpc::ActorState InState, UWorld *World)

Protected Attributes

TSharedPtr< FActorData > ActorData = nullptr
bool bHasMirroredKinematics = false
FVector MirroredAngularVelocity = FVector::ZeroVector
uint64 MirroredKinematicsFrame = 0u
FVector MirroredVelocity = FVector::ZeroVector
ActorType Type = ActorType::INVALID
UWorld * World = nullptr

Private Attributes

carla::rpc::AttachmentType Attachment = carla::rpc::AttachmentType::INVALID
TArray< IdType > Children
IdType Id = 0u
TSharedPtr< const FActorInfo > Info = nullptr
IdType ParentId = 0u
IdType PrimaryActorId = 0u
carla::rpc::ActorState State = carla::rpc::ActorState::Invalid
TWeakObjectPtr< AActor > TheActor = nullptr
 Weak: World Partition can stream out (destroy) the actor without going through the episode, so a raw pointer here dangles and the per-frame state serialization crashes on a freed vtable.

Friends

class FActorRegistry

Detailed Description

A view over an actor and its properties.

Definition at line 24 of file CarlaActor.h.

Member Typedef Documentation

◆ IdType

using FCarlaActor::IdType = uint32

Definition at line 28 of file CarlaActor.h.

Member Enumeration Documentation

◆ ActorType

enum class FCarlaActor::ActorType : uint8
strong
Enumerator
Other 
Vehicle 
Walker 
TrafficLight 
TrafficSign 
Sensor 
INVALID 

Definition at line 30 of file CarlaActor.h.

Constructor & Destructor Documentation

◆ FCarlaActor() [1/2]

◆ FCarlaActor() [2/2]

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

Definition at line 44 of file CarlaActor.cpp.

References Id, Info, State, TheActor, and World.

◆ ~FCarlaActor()

virtual FCarlaActor::~FCarlaActor ( )
inlinevirtual

Definition at line 52 of file CarlaActor.h.

Member Function Documentation

◆ AddActorAngularImpulse()

ECarlaServerResponse FCarlaActor::AddActorAngularImpulse ( const FVector & AngularInpulse)

Definition at line 542 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddActorForce()

ECarlaServerResponse FCarlaActor::AddActorForce ( const FVector & Force)

Definition at line 498 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddActorForceAtLocation()

ECarlaServerResponse FCarlaActor::AddActorForceAtLocation ( const FVector & Force,
const FVector & Location )

Definition at line 518 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddActorImpulse()

ECarlaServerResponse FCarlaActor::AddActorImpulse ( const FVector & Impulse)

Definition at line 454 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddActorImpulseAtLocation()

ECarlaServerResponse FCarlaActor::AddActorImpulseAtLocation ( const FVector & Impulse,
const FVector & Location )

Definition at line 474 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddActorTorque()

ECarlaServerResponse FCarlaActor::AddActorTorque ( const FVector & Torque)

Definition at line 562 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ AddChildren()

void FCarlaActor::AddChildren ( IdType ChildId)
inline

◆ ApplyAckermannControllerSettings()

virtual ECarlaServerResponse FCarlaActor::ApplyAckermannControllerSettings ( const FAckermannControllerSettings & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 431 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ApplyAckermannControlToVehicle()

virtual ECarlaServerResponse FCarlaActor::ApplyAckermannControlToVehicle ( const FVehicleAckermannControl & ,
const EVehicleInputPriority &  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 410 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ApplyControlToVehicle()

◆ ApplyControlToWalker()

virtual ECarlaServerResponse FCarlaActor::ApplyControlToWalker ( const FWalkerControl & )
inlinevirtual

◆ ApplyPhysicsControl()

virtual ECarlaServerResponse FCarlaActor::ApplyPhysicsControl ( const FVehiclePhysicsControl & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 359 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ BlendPose()

virtual ECarlaServerResponse FCarlaActor::BlendPose ( float Blend)
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 524 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ BuildActorData()

void FCarlaActor::BuildActorData ( )

References PutActorToSleep(), and WakeActorUp().

◆ ClearMirroredKinematics()

void FCarlaActor::ClearMirroredKinematics ( )
inline

◆ CloseVehicleDoor()

virtual ECarlaServerResponse FCarlaActor::CloseVehicleDoor ( const EVehicleDoor )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 354 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ConstructCarlaActor()

TSharedPtr< FCarlaActor > FCarlaActor::ConstructCarlaActor ( IdType ActorId,
AActor * Actor,
TSharedPtr< const FActorInfo > Info,
ActorType Type,
carla::rpc::ActorState InState,
UWorld * World )
static

Definition at line 124 of file CarlaActor.cpp.

References Info, Sensor, TrafficLight, TrafficSign, Type, Vehicle, Walker, and World.

Referenced by FActorRegistry::MakeCarlaActor().

◆ DisableActorConstantAcceleration()

virtual ECarlaServerResponse FCarlaActor::DisableActorConstantAcceleration ( )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 324 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ DisableActorConstantVelocity()

virtual ECarlaServerResponse FCarlaActor::DisableActorConstantVelocity ( )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 314 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ EnableActorConstantAcceleration()

virtual ECarlaServerResponse FCarlaActor::EnableActorConstantAcceleration ( const FVector & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 319 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ EnableActorConstantVelocity()

virtual ECarlaServerResponse FCarlaActor::EnableActorConstantVelocity ( const FVector & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 309 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ EnableCarSim()

virtual ECarlaServerResponse FCarlaActor::EnableCarSim ( const FString & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 446 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ EnableChronoPhysics()

virtual ECarlaServerResponse FCarlaActor::EnableChronoPhysics ( uint64_t ,
float ,
const FString & ,
const FString & ,
const FString & ,
const FString &  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 456 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ FreezeTrafficLight()

virtual ECarlaServerResponse FCarlaActor::FreezeTrafficLight ( bool )
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 539 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetAckermannControllerSettings()

virtual ECarlaServerResponse FCarlaActor::GetAckermannControllerSettings ( FAckermannControllerSettings & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 426 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetActor() [1/2]

AActor * FCarlaActor::GetActor ( )
inline

Definition at line 91 of file CarlaActor.h.

References TheActor.

Referenced by AddActorAngularImpulse(), FFrameData::AddActorAppearance(), AddActorForce(), AddActorForceAtLocation(), AddActorImpulse(), AddActorImpulseAtLocation(), AddActorTorque(), UCarlaEpisode::AddRosParentNames(), FFrameData::AddSensorTick(), FFrameData::AddVehicleParts(), ACarlaRecorder::AddVehicleWheelsAnimation(), FVehicleActor::ApplyAckermannControllerSettings(), FVehicleActor::ApplyAckermannControlToVehicle(), FVehicleActor::ApplyControlToVehicle(), FWalkerActor::ApplyControlToWalker(), FVehicleActor::ApplyPhysicsControl(), FCarlaServer::FPimpl::BindActions(), FCarlaEngine::BindReplayedSensor(), FWalkerActor::BlendPose(), ALargeMapManager::CheckActiveActors(), FVehicleActor::CloseVehicleDoor(), ALargeMapManager::ConvertDormantToActiveActors(), ACarlaRecorder::CreateRecorderEventAdd(), FFrameData::CreateRecorderEventAdd(), FActorRegistry::Deregister(), FActorRegistry::Deregister(), UActorDispatcher::DestroyActor(), FVehicleActor::DisableActorConstantAcceleration(), FVehicleActor::DisableActorConstantVelocity(), FVehicleActor::EnableActorConstantAcceleration(), FVehicleActor::EnableActorConstantVelocity(), FVehicleActor::EnableCarSim(), FVehicleActor::EnableChronoPhysics(), FFrameData_SetMirroredMotion(), FTrafficLightActor::FreezeTrafficLight(), FWorldObserver_GetActorState(), FWorldObserver_Serialize(), FVehicleActor::GetAckermannControllerSettings(), GetActorAngularVelocity(), GetActorGlobalLocation(), GetActorGlobalTransform(), GetActorLocalLocation(), GetActorLocalTransform(), GetActorRigSnapshot(), GetActorVelocity(), FWalkerActor::GetActorVelocity(), FWalkerActor::GetBonesTransform(), FVehicleActor::GetFailureState(), FFrameData::GetFrameData(), FVehicleActor::GetPhysicsControl(), FWalkerActor::GetPoseFromAnimation(), FTrafficLightActor::GetTrafficLightController(), FTrafficLightActor::GetTrafficLightState(), FVehicleActor::GetVehicleAckermannControl(), FVehicleActor::GetVehicleControl(), FVehicleActor::GetVehicleLightState(), FVehicleActor::GetVehicleTelemetryData(), FWalkerActor::GetWalkerControl(), FVehicleActor::GetWheelPitchAngle(), FVehicleActor::GetWheelSteerAngle(), FVehicleActor::GetWheelSuspensionOffset(), IsUnrenderableLocalSensorStream(), FCarlaEngine::NotifyBeginEpisode(), ALargeMapManager::OnActorSpawned(), FVehicleActor::OpenVehicleDoor(), FFrameData::PlaceMirror(), FFrameData::PlayAppearances(), FFrameData::PlayVehicleParts(), FFrameData::PrepareMirroredActor(), CarlaReplayerHelper::ProcessReplayerAnimBiker(), FFrameData::ProcessReplayerAnimBiker(), FFrameData::ProcessReplayerAnimVehicle(), CarlaReplayerHelper::ProcessReplayerAnimVehicleWheels(), CarlaReplayerHelper::ProcessReplayerDoorVehicle(), CarlaReplayerHelper::ProcessReplayerEventParent(), FFrameData::ProcessReplayerEventParent(), CarlaReplayerHelper::ProcessReplayerFinish(), FFrameData::ProcessReplayerFinish(), CarlaReplayerHelper::ProcessReplayerWalkerBones(), FActorRegistry::PutActorToSleep(), FActorData::RecordActorData(), FActorSensorData::RecordActorData(), FTrafficLightData::RecordActorData(), FTrafficSignData::RecordActorData(), FVehicleData::RecordActorData(), FWalkerData::RecordActorData(), FCarlaShowOnlyFilter::Rescan(), FTrafficLightActor::ResetTrafficLightGroup(), ResolveWalkerNavController(), FActorData::RestoreActorData(), FActorSensorData::RestoreActorData(), FTrafficLightData::RestoreActorData(), FTrafficSignData::RestoreActorData(), FVehicleData::RestoreActorData(), FWalkerData::RestoreActorData(), FCarlaEngine::RestorePlayedPoses(), FVehicleActor::SetActorAutopilot(), SetActorCollisions(), FWalkerActor::SetActorDead(), SetActorEnableGravity(), FWalkerActor::SetActorEnableGravity(), SetActorGlobalLocation(), SetActorGlobalTransform(), SetActorLocalLocation(), SetActorLocalTransform(), SetActorSimulatePhysics(), FVehicleActor::SetActorSimulatePhysics(), FWalkerActor::SetActorSimulatePhysics(), SetActorTargetAngularVelocity(), SetActorTargetVelocity(), FWalkerActor::SetBonesTransform(), FTrafficLightActor::SetLightGreenTime(), FTrafficLightActor::SetLightRedTime(), FTrafficLightActor::SetLightYellowTime(), FTrafficLightActor::SetTrafficLightState(), FVehicleActor::SetVehicleLightState(), FWalkerActor::SetWalkerState(), FVehicleActor::SetWheelAnimationOverride(), FVehicleActor::SetWheelPitchAngle(), FVehicleActor::SetWheelSteerDirection(), FVehicleActor::SetWheelSuspensionOffset(), FVehicleActor::ShowVehicleDebugTelemetry(), FVehicleActor::UseCarSimRoad(), and FActorRegistry::WakeActorUp().

◆ GetActor() [2/2]

const AActor * FCarlaActor::GetActor ( ) const
inline

Definition at line 96 of file CarlaActor.h.

References TheActor.

◆ GetActorAngularVelocity()

FVector FCarlaActor::GetActorAngularVelocity ( ) const

◆ GetActorBoneNames()

ECarlaServerResponse FCarlaActor::GetActorBoneNames ( TArray< FString > & Names) const

◆ GetActorBoneRelativeTransforms()

ECarlaServerResponse FCarlaActor::GetActorBoneRelativeTransforms ( TArray< FTransform > & Transforms) const

◆ GetActorBoneWorldTransforms()

ECarlaServerResponse FCarlaActor::GetActorBoneWorldTransforms ( TArray< FTransform > & Transforms) const

Definition at line 743 of file CarlaActor.cpp.

References GetActorBoneRelativeTransforms(), Success, and ToWorld().

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetActorComponentNames()

ECarlaServerResponse FCarlaActor::GetActorComponentNames ( TArray< FString > & Names) const

◆ GetActorComponentRelativeTransform()

ECarlaServerResponse FCarlaActor::GetActorComponentRelativeTransform ( const FString & ComponentName,
FTransform & Transform ) const

◆ GetActorComponentWorldTransform()

ECarlaServerResponse FCarlaActor::GetActorComponentWorldTransform ( const FString & ComponentName,
FTransform & Transform ) const

◆ GetActorData() [1/4]

template<typename T>
T * FCarlaActor::GetActorData ( )
inline

Definition at line 216 of file CarlaActor.h.

References ActorData.

◆ GetActorData() [2/4]

◆ GetActorData() [3/4]

template<typename T>
const T * FCarlaActor::GetActorData ( ) const
inline

Definition at line 222 of file CarlaActor.h.

References ActorData.

◆ GetActorData() [4/4]

const FActorData * FCarlaActor::GetActorData ( ) const
inline

Definition at line 210 of file CarlaActor.h.

References ActorData.

◆ GetActorGlobalLocation()

◆ GetActorGlobalTransform()

◆ GetActorId()

IdType FCarlaActor::GetActorId ( ) const
inline

Definition at line 81 of file CarlaActor.h.

References Id.

Referenced by FFrameData::AddActorAppearance(), ACarlaRecorder::AddActorBones(), ACarlaRecorder::AddActorBoundingBox(), FFrameData::AddActorBoundingBox(), ACarlaRecorder::AddActorKinematics(), FFrameData::AddActorKinematics(), ACarlaRecorder::AddActorPosition(), FFrameData::AddActorPosition(), ACarlaRecorder::AddCollision(), ACarlaRecorder::AddExistingActors(), FFrameData::AddExistingActors(), FFrameData::AddPhysicsControl(), FFrameData::AddSensorTick(), ACarlaRecorder::AddTrafficLightState(), FFrameData::AddTrafficLightState(), FFrameData::AddTrafficLightTime(), FFrameData::AddTriggerVolume(), ACarlaRecorder::AddVehicleAnimation(), FFrameData::AddVehicleAnimation(), ACarlaRecorder::AddVehicleDoor(), ACarlaRecorder::AddVehicleLight(), FFrameData::AddVehicleLight(), FFrameData::AddVehicleParts(), ACarlaRecorder::AddVehicleWheelsAnimation(), ACarlaRecorder::AddWalkerAnimation(), FFrameData::AddWalkerAnimation(), UCarlaEpisode::AttachActors(), FCarlaServer::FPimpl::BindActions(), ALargeMapManager::CheckDormantActors(), FActorRegistry::Deregister(), UCarlaEpisode::DestroyActor(), FWorldObserver_Serialize(), FFrameData::GetFrameData(), UActorDispatcher::OnActorDestroyed(), ALargeMapManager::OnActorSpawned(), CarlaReplayerHelper::ProcessReplayerEventDel(), FFrameData::ProcessReplayerEventDel(), CarlaReplayerHelper::ProcessReplayerEventParent(), FFrameData::ProcessReplayerEventParent(), CarlaReplayerHelper::ProcessReplayerFinish(), FFrameData::ProcessReplayerFinish(), UActorDispatcher::RegisterActor(), CaService::SetActor(), ACustomV2XSensor::SetOwner(), ACustomV2XSensor::UpdateStationId(), and WakeActorUp().

◆ GetActorInfo()

◆ GetActorLocalLocation()

FVector FCarlaActor::GetActorLocalLocation ( ) const

◆ GetActorLocalTransform()

FTransform FCarlaActor::GetActorLocalTransform ( ) const

◆ GetActorRigSnapshot()

◆ GetActorSocketNames()

ECarlaServerResponse FCarlaActor::GetActorSocketNames ( TArray< FString > & Names) const

◆ GetActorSocketRelativeTransforms()

ECarlaServerResponse FCarlaActor::GetActorSocketRelativeTransforms ( TArray< FTransform > & Transforms) const

◆ GetActorSocketWorldTransforms()

ECarlaServerResponse FCarlaActor::GetActorSocketWorldTransforms ( TArray< FTransform > & Transforms) const

Definition at line 780 of file CarlaActor.cpp.

References GetActorSocketRelativeTransforms(), Success, and ToWorld().

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetActorState()

carla::rpc::ActorState FCarlaActor::GetActorState ( ) const
inline

Definition at line 106 of file CarlaActor.h.

References State.

Referenced by FWorldObserver_Serialize().

◆ GetActorType()

◆ GetActorVelocity()

FVector FCarlaActor::GetActorVelocity ( ) const
virtual

◆ GetAttachmentType()

carla::rpc::AttachmentType FCarlaActor::GetAttachmentType ( ) const
inline

Definition at line 194 of file CarlaActor.h.

References Attachment.

Referenced by FActorRegistry::WakeActorUp().

◆ GetBonesTransform()

virtual ECarlaServerResponse FCarlaActor::GetBonesTransform ( FWalkerBoneControlOut & )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 514 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by ACarlaRecorder::AddActorBones(), and FCarlaServer::FPimpl::BindActions().

◆ GetChildren()

const TArray< IdType > & FCarlaActor::GetChildren ( ) const
inline

Definition at line 137 of file CarlaActor.h.

References Children.

Referenced by FActorRegistry::PutActorToSleep(), and FActorRegistry::WakeActorUp().

◆ GetFailureState()

virtual ECarlaServerResponse FCarlaActor::GetFailureState ( carla::rpc::VehicleFailureState & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 339 of file CarlaActor.h.

References ActorTypeMismatch.

◆ GetMirroredAngularVelocityInRadians()

FVector FCarlaActor::GetMirroredAngularVelocityInRadians ( ) const
inline

Definition at line 184 of file CarlaActor.h.

References MirroredAngularVelocity.

Referenced by CarlaGetActorAngularVelocityInRadians().

◆ GetMirroredKinematicsFrame()

uint64 FCarlaActor::GetMirroredKinematicsFrame ( ) const
inline

Definition at line 179 of file CarlaActor.h.

References MirroredKinematicsFrame.

Referenced by FFrameData::PlayKinematics().

◆ GetParent()

◆ GetPhysicsControl()

virtual ECarlaServerResponse FCarlaActor::GetPhysicsControl ( FVehiclePhysicsControl & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 329 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetPoseFromAnimation()

virtual ECarlaServerResponse FCarlaActor::GetPoseFromAnimation ( )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 529 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetPrimaryActorId()

IdType FCarlaActor::GetPrimaryActorId ( ) const
inline

The id clients know this actor by: the primary's for a mirror on a Multi-GPU secondary, this actor's own id everywhere else.

Definition at line 150 of file CarlaActor.h.

References Id, and PrimaryActorId.

Referenced by ARayCastSemanticLidar::ComputeRawDetection().

◆ GetTrafficLightController()

◆ GetTrafficLightState()

virtual ETrafficLightState FCarlaActor::GetTrafficLightState ( ) const
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 469 of file CarlaActor.h.

Referenced by ACarlaRecorder::AddTrafficLightState(), and FFrameData::AddTrafficLightState().

◆ GetVehicleAckermannControl()

virtual ECarlaServerResponse FCarlaActor::GetVehicleAckermannControl ( FVehicleAckermannControl & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 421 of file CarlaActor.h.

References ActorTypeMismatch.

◆ GetVehicleControl()

virtual ECarlaServerResponse FCarlaActor::GetVehicleControl ( FVehicleControl & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 416 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by ACarlaRecorder::AddVehicleAnimation(), and FFrameData::AddVehicleAnimation().

◆ GetVehicleLightState()

virtual ECarlaServerResponse FCarlaActor::GetVehicleLightState ( FVehicleLightState & )
inlinevirtual

◆ GetVehicleTelemetryData()

virtual ECarlaServerResponse FCarlaActor::GetVehicleTelemetryData ( FVehicleTelemetryData & )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 334 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetWalkerControl()

virtual ECarlaServerResponse FCarlaActor::GetWalkerControl ( FWalkerControl & )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 509 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by ACarlaRecorder::AddWalkerAnimation(), and FFrameData::AddWalkerAnimation().

◆ GetWheelPitchAngle()

virtual ECarlaServerResponse FCarlaActor::GetWheelPitchAngle ( const EVehicleWheelLocation & ,
float &  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 384 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetWheelSteerAngle()

virtual ECarlaServerResponse FCarlaActor::GetWheelSteerAngle ( const EVehicleWheelLocation & ,
float &  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 374 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GetWheelSuspensionOffset()

virtual ECarlaServerResponse FCarlaActor::GetWheelSuspensionOffset ( const EVehicleWheelLocation & ,
float &  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 394 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ HasMirroredKinematics()

bool FCarlaActor::HasMirroredKinematics ( ) const
inline

◆ IsActive()

bool FCarlaActor::IsActive ( ) const
inline

◆ IsAlive()

bool FCarlaActor::IsAlive ( ) const
inline

Definition at line 60 of file CarlaActor.h.

References carla::rpc::Invalid, carla::rpc::PendingKill, and State.

◆ IsDormant()

bool FCarlaActor::IsDormant ( ) const
inline

Definition at line 71 of file CarlaActor.h.

References carla::rpc::Dormant, and State.

Referenced by AddActorAngularImpulse(), FFrameData::AddActorAppearance(), AddActorForce(), AddActorForceAtLocation(), AddActorImpulse(), AddActorImpulseAtLocation(), AddActorTorque(), FFrameData::AddVehicleParts(), FVehicleActor::ApplyAckermannControllerSettings(), FVehicleActor::ApplyAckermannControlToVehicle(), FVehicleActor::ApplyControlToVehicle(), FWalkerActor::ApplyControlToWalker(), FVehicleActor::ApplyPhysicsControl(), FCarlaServer::FPimpl::BindActions(), FWalkerActor::BlendPose(), ALargeMapManager::CheckDormantActors(), FVehicleActor::CloseVehicleDoor(), FVehicleActor::DisableActorConstantAcceleration(), FVehicleActor::DisableActorConstantVelocity(), FVehicleActor::EnableActorConstantAcceleration(), FVehicleActor::EnableActorConstantVelocity(), FVehicleActor::EnableCarSim(), FVehicleActor::EnableChronoPhysics(), FFrameData_SetMirroredMotion(), FTrafficLightActor::FreezeTrafficLight(), FWorldObserver_Serialize(), FVehicleActor::GetAckermannControllerSettings(), GetActorAngularVelocity(), GetActorGlobalLocation(), GetActorGlobalTransform(), GetActorLocalLocation(), GetActorLocalTransform(), GetActorRigSnapshot(), GetActorVelocity(), FWalkerActor::GetActorVelocity(), FWalkerActor::GetBonesTransform(), FVehicleActor::GetFailureState(), FFrameData::GetFrameData(), FVehicleActor::GetPhysicsControl(), FWalkerActor::GetPoseFromAnimation(), FTrafficLightActor::GetTrafficLightController(), FTrafficLightActor::GetTrafficLightState(), FVehicleActor::GetVehicleAckermannControl(), FVehicleActor::GetVehicleControl(), FVehicleActor::GetVehicleLightState(), FVehicleActor::GetVehicleTelemetryData(), FWalkerActor::GetWalkerControl(), FVehicleActor::GetWheelPitchAngle(), FVehicleActor::GetWheelSteerAngle(), FVehicleActor::GetWheelSuspensionOffset(), FCarlaEngine::NotifyBeginEpisode(), FVehicleActor::OpenVehicleDoor(), FFrameData::PlaceMirror(), FFrameData::PlayAppearances(), FFrameData::PlayVehicleParts(), FFrameData::PrepareMirroredActor(), CarlaReplayerHelper::ProcessReplayerEventParent(), FFrameData::ProcessReplayerEventParent(), FActorRegistry::Register(), FTrafficLightActor::ResetTrafficLightGroup(), ResolveWalkerNavController(), FCarlaEngine::RestorePlayedPoses(), FVehicleActor::SetActorAutopilot(), SetActorCollisions(), FWalkerActor::SetActorDead(), SetActorEnableGravity(), FWalkerActor::SetActorEnableGravity(), SetActorGlobalLocation(), SetActorGlobalTransform(), SetActorLocalLocation(), SetActorLocalTransform(), SetActorSimulatePhysics(), FVehicleActor::SetActorSimulatePhysics(), FWalkerActor::SetActorSimulatePhysics(), SetActorTargetAngularVelocity(), SetActorTargetVelocity(), FWalkerActor::SetBonesTransform(), FTrafficLightActor::SetLightGreenTime(), FTrafficLightActor::SetLightRedTime(), FTrafficLightActor::SetLightYellowTime(), FTrafficLightActor::SetTrafficLightState(), FVehicleActor::SetVehicleLightState(), FWalkerActor::SetWalkerState(), FVehicleActor::SetWheelAnimationOverride(), FVehicleActor::SetWheelPitchAngle(), FVehicleActor::SetWheelSteerDirection(), FVehicleActor::SetWheelSuspensionOffset(), FVehicleActor::ShowVehicleDebugTelemetry(), FVehicleActor::UseCarSimRoad(), and FActorRegistry::WakeActorUp().

◆ IsInValid()

bool FCarlaActor::IsInValid ( ) const
inline

Definition at line 55 of file CarlaActor.h.

References carla::rpc::Invalid, and State.

◆ IsPendingKill()

◆ OpenVehicleDoor()

virtual ECarlaServerResponse FCarlaActor::OpenVehicleDoor ( const EVehicleDoor )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 349 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ PutActorToSleep()

void FCarlaActor::PutActorToSleep ( UCarlaEpisode * CarlaEpisode)

Definition at line 157 of file CarlaActor.cpp.

References ActorData, carla::rpc::Dormant, State, and TheActor.

Referenced by BuildActorData(), and FActorRegistry::PutActorToSleep().

◆ RemoveChildren()

void FCarlaActor::RemoveChildren ( IdType ChildId)
inline

Definition at line 132 of file CarlaActor.h.

References Children.

◆ ResetTrafficLightGroup()

virtual ECarlaServerResponse FCarlaActor::ResetTrafficLightGroup ( )
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 544 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetActorAutopilot()

virtual ECarlaServerResponse FCarlaActor::SetActorAutopilot ( bool ,
bool bKeepState = false )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 436 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions(), and CarlaReplayerHelper::SetActorAutopilot().

◆ SetActorCollisions()

ECarlaServerResponse FCarlaActor::SetActorCollisions ( bool bEnabled)
virtual

Definition at line 604 of file CarlaActor.cpp.

References GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetActorDead()

virtual ECarlaServerResponse FCarlaActor::SetActorDead ( )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 534 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetActorEnableGravity()

ECarlaServerResponse FCarlaActor::SetActorEnableGravity ( bool bEnabled)
virtual

Reimplemented in FWalkerActor.

Definition at line 616 of file CarlaActor.cpp.

References FunctionNotSupported, GetActor(), IsDormant(), and Success.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetActorGlobalLocation()

void FCarlaActor::SetActorGlobalLocation ( const FVector & Location,
ETeleportType Teleport = ETeleportType::TeleportPhysics )

◆ SetActorGlobalTransform()

◆ SetActorLocalLocation()

void FCarlaActor::SetActorLocalLocation ( const FVector & Location,
ETeleportType Teleport = ETeleportType::TeleportPhysics )

◆ SetActorLocalTransform()

void FCarlaActor::SetActorLocalTransform ( const FTransform & Transform,
ETeleportType Teleport = ETeleportType::TeleportPhysics )

◆ SetActorSimulatePhysics()

◆ SetActorState()

void FCarlaActor::SetActorState ( carla::rpc::ActorState InState)
inline

Definition at line 111 of file CarlaActor.h.

References State.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetActorTargetAngularVelocity()

ECarlaServerResponse FCarlaActor::SetActorTargetAngularVelocity ( const FVector & AngularVelocity)

◆ SetActorTargetVelocity()

ECarlaServerResponse FCarlaActor::SetActorTargetVelocity ( const FVector & Velocity)

◆ SetAttachmentType()

void FCarlaActor::SetAttachmentType ( carla::rpc::AttachmentType InAttachmentType)
inline

◆ SetBonesTransform()

virtual ECarlaServerResponse FCarlaActor::SetBonesTransform ( const FWalkerBoneControlIn & )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 519 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetLightGreenTime()

virtual ECarlaServerResponse FCarlaActor::SetLightGreenTime ( float )
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 479 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetLightRedTime()

virtual ECarlaServerResponse FCarlaActor::SetLightRedTime ( float )
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 489 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetLightYellowTime()

virtual ECarlaServerResponse FCarlaActor::SetLightYellowTime ( float )
inlinevirtual

Reimplemented in FTrafficLightActor.

Definition at line 484 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetMirroredKinematics()

void FCarlaActor::SetMirroredKinematics ( const FVector & Velocity,
const FVector & AngularVelocityRadians,
uint64 Frame )
inline

Multi-GPU secondary: the primary's velocities of the actor this one mirrors, in the world frame (cm/s and rad/s), of primary frame Frame.

A mirror never moves on its own, so its body has none of its own, and the velocity getters report these instead.

Definition at line 159 of file CarlaActor.h.

References bHasMirroredKinematics, MirroredAngularVelocity, MirroredKinematicsFrame, and MirroredVelocity.

Referenced by FFrameData::PlayKinematics().

◆ SetParent()

void FCarlaActor::SetParent ( IdType InParentId)
inline

◆ SetPrimaryActorId()

void FCarlaActor::SetPrimaryActorId ( IdType InPrimaryActorId)
inline

Multi-GPU secondary: the id the primary gave the actor this one mirrors.

Definition at line 143 of file CarlaActor.h.

References PrimaryActorId.

Referenced by FFrameData::PrepareMirroredActor().

◆ SetTrafficLightState()

virtual ECarlaServerResponse FCarlaActor::SetTrafficLightState ( const ETrafficLightState & )
inlinevirtual

◆ SetVehicleLightState()

virtual ECarlaServerResponse FCarlaActor::SetVehicleLightState ( const FVehicleLightState & )
inlinevirtual

◆ SetWalkerState()

virtual ECarlaServerResponse FCarlaActor::SetWalkerState ( const FTransform & Transform,
carla::rpc::WalkerControl WalkerControl )
inlinevirtual

Reimplemented in FWalkerActor.

Definition at line 497 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetWheelAnimationOverride()

virtual ECarlaServerResponse FCarlaActor::SetWheelAnimationOverride ( bool )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 399 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetWheelPitchAngle()

virtual ECarlaServerResponse FCarlaActor::SetWheelPitchAngle ( const EVehicleWheelLocation & ,
float  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 379 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetWheelSteerDirection()

virtual ECarlaServerResponse FCarlaActor::SetWheelSteerDirection ( const EVehicleWheelLocation & ,
float  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 369 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SetWheelSuspensionOffset()

virtual ECarlaServerResponse FCarlaActor::SetWheelSuspensionOffset ( const EVehicleWheelLocation & ,
float  )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 389 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ShowVehicleDebugTelemetry()

virtual ECarlaServerResponse FCarlaActor::ShowVehicleDebugTelemetry ( bool )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 441 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ToWorld()

ECarlaServerResponse FCarlaActor::ToWorld ( const TArray< FTransform > & Relative,
TArray< FTransform > & Transforms ) const

Definition at line 656 of file CarlaActor.cpp.

References GetActorLocalTransform(), and Success.

Referenced by GetActorBoneWorldTransforms(), and GetActorSocketWorldTransforms().

◆ UseCarSimRoad()

virtual ECarlaServerResponse FCarlaActor::UseCarSimRoad ( bool )
inlinevirtual

Reimplemented in FVehicleActor.

Definition at line 451 of file CarlaActor.h.

References ActorTypeMismatch.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ WakeActorUp()

void FCarlaActor::WakeActorUp ( UCarlaEpisode * CarlaEpisode)

Definition at line 171 of file CarlaActor.cpp.

References carla::rpc::Active, ActorData, GetActorId(), Info, State, and TheActor.

Referenced by BuildActorData(), and FActorRegistry::WakeActorUp().

◆ FActorRegistry

friend class FActorRegistry
friend

Definition at line 561 of file CarlaActor.h.

References FActorRegistry.

Referenced by FActorRegistry.

Member Data Documentation

◆ ActorData

◆ Attachment

Definition at line 591 of file CarlaActor.h.

Referenced by GetAttachmentType(), and SetAttachmentType().

◆ bHasMirroredKinematics

bool FCarlaActor::bHasMirroredKinematics = false
protected

◆ Children

TArray<IdType> FCarlaActor::Children
private

Definition at line 593 of file CarlaActor.h.

Referenced by AddChildren(), GetChildren(), and RemoveChildren().

◆ Id

IdType FCarlaActor::Id = 0u
private

Definition at line 571 of file CarlaActor.h.

Referenced by FCarlaActor(), GetActorId(), and GetPrimaryActorId().

◆ Info

◆ MirroredAngularVelocity

FVector FCarlaActor::MirroredAngularVelocity = FVector::ZeroVector
protected

◆ MirroredKinematicsFrame

uint64 FCarlaActor::MirroredKinematicsFrame = 0u
protected

Definition at line 585 of file CarlaActor.h.

Referenced by GetMirroredKinematicsFrame(), and SetMirroredKinematics().

◆ MirroredVelocity

FVector FCarlaActor::MirroredVelocity = FVector::ZeroVector
protected

◆ ParentId

IdType FCarlaActor::ParentId = 0u
private

Definition at line 573 of file CarlaActor.h.

Referenced by GetParent(), and SetParent().

◆ PrimaryActorId

IdType FCarlaActor::PrimaryActorId = 0u
private

Definition at line 575 of file CarlaActor.h.

Referenced by GetPrimaryActorId(), and SetPrimaryActorId().

◆ State

◆ TheActor

TWeakObjectPtr<AActor> FCarlaActor::TheActor = nullptr
private

Weak: World Partition can stream out (destroy) the actor without going through the episode, so a raw pointer here dangles and the per-frame state serialization crashes on a freed vtable.

Weak reads back null and the callers' existing null-checks take over.

Definition at line 567 of file CarlaActor.h.

Referenced by FActorRegistry::Deregister(), FCarlaActor(), GetActor(), GetActor(), PutActorToSleep(), FActorRegistry::Register(), and WakeActorUp().

◆ Type

◆ World


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