|
CARLA
|
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 |
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 |
A view over an actor and its properties.
Definition at line 24 of file CarlaActor.h.
| using FCarlaActor::IdType = uint32 |
Definition at line 28 of file CarlaActor.h.
|
strong |
| Enumerator | |
|---|---|
| Other | |
| Vehicle | |
| Walker | |
| TrafficLight | |
| TrafficSign | |
| Sensor | |
| INVALID | |
Definition at line 30 of file CarlaActor.h.
|
default |
| FCarlaActor::FCarlaActor | ( | IdType | ActorId, |
| AActor * | Actor, | ||
| TSharedPtr< const FActorInfo > | Info, | ||
| carla::rpc::ActorState | InState, | ||
| UWorld * | World | ||
| ) |
Definition at line 44 of file CarlaActor.cpp.
|
inlinevirtual |
Definition at line 52 of file CarlaActor.h.
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
|
inline |
Definition at line 126 of file CarlaActor.h.
References Children.
Referenced by FCarlaServer::FPimpl::BindActions(), CarlaReplayerHelper::ProcessReplayerEventParent(), and FFrameData::ProcessReplayerEventParent().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 431 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 410 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 404 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::ProcessReplayerAnimVehicle(), CarlaReplayerHelper::ProcessReplayerAnimVehicle(), FFrameData::ProcessReplayerFinish(), and CarlaReplayerHelper::ProcessReplayerFinish().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 504 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::SetWalkerSpeed(), and CarlaReplayerHelper::SetWalkerSpeed().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 359 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 524 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
| void FCarlaActor::BuildActorData | ( | ) |
|
inline |
Definition at line 167 of file CarlaActor.h.
References bHasMirroredKinematics, MirroredAngularVelocity, and MirroredVelocity.
Referenced by FFrameData::PlayKinematics().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 354 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
static |
Definition at line 124 of file CarlaActor.cpp.
References Info, Sensor, TrafficLight, TrafficSign, Type, Vehicle, Walker, and World.
Referenced by FActorRegistry::MakeCarlaActor().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 324 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 314 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 319 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 309 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 446 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 456 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 539 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 426 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
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(), FFrameData::ProcessReplayerAnimBiker(), CarlaReplayerHelper::ProcessReplayerAnimBiker(), FFrameData::ProcessReplayerAnimVehicle(), CarlaReplayerHelper::ProcessReplayerAnimVehicleWheels(), CarlaReplayerHelper::ProcessReplayerDoorVehicle(), CarlaReplayerHelper::ProcessReplayerEventParent(), FFrameData::ProcessReplayerEventParent(), FFrameData::ProcessReplayerFinish(), CarlaReplayerHelper::ProcessReplayerFinish(), CarlaReplayerHelper::ProcessReplayerWalkerBones(), FActorRegistry::PutActorToSleep(), FActorData::RecordActorData(), FVehicleData::RecordActorData(), FWalkerData::RecordActorData(), FTrafficSignData::RecordActorData(), FTrafficLightData::RecordActorData(), FActorSensorData::RecordActorData(), FCarlaShowOnlyFilter::Rescan(), FTrafficLightActor::ResetTrafficLightGroup(), ResolveWalkerNavController(), FActorData::RestoreActorData(), FVehicleData::RestoreActorData(), FWalkerData::RestoreActorData(), FTrafficSignData::RestoreActorData(), FTrafficLightData::RestoreActorData(), FActorSensorData::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().
|
inline |
Definition at line 96 of file CarlaActor.h.
References TheActor.
| FVector FCarlaActor::GetActorAngularVelocity | ( | ) | const |
Definition at line 390 of file CarlaActor.cpp.
References ActorData, bHasMirroredKinematics, GetActor(), IsDormant(), and MirroredAngularVelocity.
Referenced by FFrameData::AddActorKinematics(), ACarlaRecorder::AddActorKinematics(), and FWorldObserver_GetAngularVelocity().
| ECarlaServerResponse FCarlaActor::GetActorBoneNames | ( | TArray< FString > & | Names | ) | const |
Definition at line 710 of file CarlaActor.cpp.
References FActorRigSnapshot::BoneNames, ComponentNotFound, GetActorRigSnapshot(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
| ECarlaServerResponse FCarlaActor::GetActorBoneRelativeTransforms | ( | TArray< FTransform > & | Transforms | ) | const |
Definition at line 726 of file CarlaActor.cpp.
References FActorRigSnapshot::BoneNames, FActorRigSnapshot::BoneTransforms, ComponentNotFound, GetActorRigSnapshot(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions(), and 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().
| ECarlaServerResponse FCarlaActor::GetActorComponentNames | ( | TArray< FString > & | Names | ) | const |
Definition at line 668 of file CarlaActor.cpp.
References FActorRigSnapshot::ComponentNames, GetActorRigSnapshot(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
| ECarlaServerResponse FCarlaActor::GetActorComponentRelativeTransform | ( | const FString & | ComponentName, |
| FTransform & | Transform | ||
| ) | const |
Definition at line 692 of file CarlaActor.cpp.
References FActorRigSnapshot::ComponentNames, ComponentNotFound, FActorRigSnapshot::ComponentTransforms, GetActorRigSnapshot(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions(), and GetActorComponentWorldTransform().
| ECarlaServerResponse FCarlaActor::GetActorComponentWorldTransform | ( | const FString & | ComponentName, |
| FTransform & | Transform | ||
| ) | const |
Definition at line 680 of file CarlaActor.cpp.
References GetActorComponentRelativeTransform(), GetActorLocalTransform(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 205 of file CarlaActor.h.
References ActorData.
Referenced by FCarlaEngine::BindReplayedSensor(), ALargeMapManager::CheckDormantActors(), FWorldObserver_GetDormantActorState(), FWorldObserver_Serialize(), GetActorRigSnapshot(), FWalkerActor::GetActorVelocity(), and FFrameData::PlaceMirror().
|
inline |
Definition at line 216 of file CarlaActor.h.
References ActorData.
|
inline |
Definition at line 210 of file CarlaActor.h.
References ActorData.
|
inline |
Definition at line 222 of file CarlaActor.h.
References ActorData.
| FVector FCarlaActor::GetActorGlobalLocation | ( | ) | const |
Definition at line 254 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), IsDormant(), ALargeMapManager::LocalToGlobalLocation(), and World.
Referenced by FFrameData::FindTrafficSignAt(), CarlaReplayerHelper::FindTrafficSignAt(), and FWalkerActor::SetWalkerState().
| FTransform FCarlaActor::GetActorGlobalTransform | ( | ) | const |
Definition at line 205 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), IsDormant(), ALargeMapManager::LocalToGlobalTransform(), and World.
Referenced by FFrameData::AddActorPosition(), ACarlaRecorder::AddActorPosition(), FFrameData::AddExistingActors(), ACarlaRecorder::AddExistingActors(), FWorldObserver_Serialize(), FFrameData::PlaceMirror(), FCarlaEngine::RestorePlayedPoses(), FFrameData::SetCameraPosition(), and CarlaReplayerHelper::SetCameraPosition().
|
inline |
Definition at line 81 of file CarlaActor.h.
References Id.
Referenced by FFrameData::AddActorAppearance(), ACarlaRecorder::AddActorBones(), FFrameData::AddActorBoundingBox(), ACarlaRecorder::AddActorBoundingBox(), FFrameData::AddActorKinematics(), ACarlaRecorder::AddActorKinematics(), FFrameData::AddActorPosition(), ACarlaRecorder::AddActorPosition(), ACarlaRecorder::AddCollision(), FFrameData::AddExistingActors(), ACarlaRecorder::AddExistingActors(), FFrameData::AddPhysicsControl(), FFrameData::AddSensorTick(), FFrameData::AddTrafficLightState(), ACarlaRecorder::AddTrafficLightState(), FFrameData::AddTrafficLightTime(), FFrameData::AddTriggerVolume(), FFrameData::AddVehicleAnimation(), ACarlaRecorder::AddVehicleAnimation(), ACarlaRecorder::AddVehicleDoor(), FFrameData::AddVehicleLight(), ACarlaRecorder::AddVehicleLight(), FFrameData::AddVehicleParts(), ACarlaRecorder::AddVehicleWheelsAnimation(), FFrameData::AddWalkerAnimation(), ACarlaRecorder::AddWalkerAnimation(), UCarlaEpisode::AttachActors(), FCarlaServer::FPimpl::BindActions(), ALargeMapManager::CheckDormantActors(), FActorRegistry::Deregister(), UCarlaEpisode::DestroyActor(), FWorldObserver_GetActorState(), FWorldObserver_Serialize(), FFrameData::GetFrameData(), UActorDispatcher::OnActorDestroyed(), ALargeMapManager::OnActorSpawned(), FFrameData::ProcessReplayerEventDel(), CarlaReplayerHelper::ProcessReplayerEventDel(), CarlaReplayerHelper::ProcessReplayerEventParent(), FFrameData::ProcessReplayerEventParent(), FFrameData::ProcessReplayerFinish(), CarlaReplayerHelper::ProcessReplayerFinish(), UActorDispatcher::RegisterActor(), CaService::SetActor(), ACustomV2XSensor::SetOwner(), ACustomV2XSensor::UpdateStationId(), and WakeActorUp().
|
inline |
Definition at line 101 of file CarlaActor.h.
References Info.
Referenced by FFrameData::AddActorBoundingBox(), ACarlaRecorder::AddActorBoundingBox(), ACarlaRecorder::AddCollision(), FFrameData::AddExistingActors(), ACarlaRecorder::AddExistingActors(), UCarlaEpisode::AddRosParentNames(), UActorDispatcher::DestroyActor(), FWorldObserver_GetAcceleration(), FWorldObserver_Serialize(), FActorRegistry::GetDescriptionFromStream(), CaService::GetStationType(), ALargeMapManager::OnActorDestroyed(), ALargeMapManager::OnActorSpawned(), and UCarlaEpisode::SerializeActor().
| FVector FCarlaActor::GetActorLocalLocation | ( | ) | const |
Definition at line 235 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), ALargeMapManager::GlobalToLocalLocation(), IsDormant(), carla::geom::Location::Location(), and World.
| FTransform FCarlaActor::GetActorLocalTransform | ( | ) | const |
Definition at line 183 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), ALargeMapManager::GlobalToLocalTransform(), IsDormant(), and World.
Referenced by GetActorComponentWorldTransform(), and ToWorld().
| ECarlaServerResponse FCarlaActor::GetActorRigSnapshot | ( | FActorRigSnapshot & | Rig | ) | const |
Definition at line 633 of file CarlaActor.cpp.
References FActorRigSnapshot::FromActor(), GetActor(), GetActorData(), IsDormant(), MissingActor, NullActor, FActorData::Rig, and Success.
Referenced by GetActorBoneNames(), GetActorBoneRelativeTransforms(), GetActorComponentNames(), GetActorComponentRelativeTransform(), GetActorSocketNames(), and GetActorSocketRelativeTransforms().
| ECarlaServerResponse FCarlaActor::GetActorSocketNames | ( | TArray< FString > & | Names | ) | const |
Definition at line 755 of file CarlaActor.cpp.
References GetActorRigSnapshot(), FActorRigSnapshot::SocketNames, and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
| ECarlaServerResponse FCarlaActor::GetActorSocketRelativeTransforms | ( | TArray< FTransform > & | Transforms | ) | const |
Definition at line 767 of file CarlaActor.cpp.
References GetActorRigSnapshot(), FActorRigSnapshot::SocketTransforms, and Success.
Referenced by FCarlaServer::FPimpl::BindActions(), and 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().
|
inline |
Definition at line 106 of file CarlaActor.h.
References State.
Referenced by FWorldObserver_Serialize().
|
inline |
Definition at line 86 of file CarlaActor.h.
References Type.
Referenced by FFrameData::AddExistingActors(), ACarlaRecorder::AddExistingActors(), FFrameData::AddVehicleParts(), ACarlaRecorder::AddVehicleWheelsAnimation(), FCarlaServer::FPimpl::BindActions(), FCarlaEngine::BindReplayedSensor(), ALargeMapManager::CheckActiveActors(), FFrameData::FindTrafficSignAt(), CarlaReplayerHelper::FindTrafficSignAt(), FWorldObserver_GetActorState(), FWorldObserver_GetDormantActorState(), FFrameData::GetFrameData(), PathLossModel::GetLocationIfVehicle(), CaService::GetStationType(), PathLossModel::IsVehicle(), FCarlaEngine::NotifyBeginEpisode(), FFrameData::PrepareMirroredActor(), CarlaReplayerHelper::ProcessReplayerAnimVehicleWheels(), FFrameData::ProcessReplayerFinish(), CarlaReplayerHelper::ProcessReplayerFinish(), CaService::SetActor(), and ACarlaRecorder::Ticking().
|
virtual |
Reimplemented in FWalkerActor.
Definition at line 374 of file CarlaActor.cpp.
References ActorData, bHasMirroredKinematics, GetActor(), IsDormant(), and MirroredVelocity.
Referenced by FFrameData::AddActorKinematics(), ACarlaRecorder::AddActorKinematics(), and FWorldObserver_Serialize().
|
inline |
Definition at line 194 of file CarlaActor.h.
References Attachment.
Referenced by FActorRegistry::WakeActorUp().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 514 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by ACarlaRecorder::AddActorBones(), and FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 137 of file CarlaActor.h.
References Children.
Referenced by FActorRegistry::PutActorToSleep(), and FActorRegistry::WakeActorUp().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 339 of file CarlaActor.h.
References ActorTypeMismatch.
|
inline |
Definition at line 184 of file CarlaActor.h.
References MirroredAngularVelocity.
Referenced by CarlaGetActorAngularVelocityInRadians().
|
inline |
Definition at line 179 of file CarlaActor.h.
References MirroredKinematicsFrame.
Referenced by FFrameData::PlayKinematics().
|
inline |
Definition at line 121 of file CarlaActor.h.
References ParentId.
Referenced by FFrameData::AddExistingActors(), UCarlaEpisode::AddRosParentNames(), FFrameData::PlayPositions(), FFrameData::ProcessReplayerEventParent(), UCarlaEpisode::SerializeActor(), and FActorRegistry::WakeActorUp().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 329 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 529 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
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().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 474 of file CarlaActor.h.
Referenced by FFrameData::AddTrafficLightState(), ACarlaRecorder::AddTrafficLightState(), FFrameData::ProcessReplayerStateTrafficLight(), and CarlaReplayerHelper::ProcessReplayerStateTrafficLight().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 469 of file CarlaActor.h.
Referenced by FFrameData::AddTrafficLightState(), and ACarlaRecorder::AddTrafficLightState().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 421 of file CarlaActor.h.
References ActorTypeMismatch.
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 416 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FFrameData::AddVehicleAnimation(), and ACarlaRecorder::AddVehicleAnimation().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 344 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FFrameData::AddVehicleLight(), ACarlaRecorder::AddVehicleLight(), and FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 334 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 509 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FFrameData::AddWalkerAnimation(), and ACarlaRecorder::AddWalkerAnimation().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 384 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 374 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 394 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 174 of file CarlaActor.h.
References bHasMirroredKinematics.
Referenced by CarlaGetActorAngularVelocityInRadians(), FWorldObserver_GetAngularVelocity(), and FFrameData::PlayKinematics().
|
inline |
Definition at line 66 of file CarlaActor.h.
References carla::rpc::Active, and State.
Referenced by ALargeMapManager::ConvertDormantToActiveActors(), and UActorDispatcher::OnActorDestroyed().
|
inline |
Definition at line 60 of file CarlaActor.h.
References carla::rpc::Invalid, carla::rpc::PendingKill, and State.
|
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().
|
inline |
Definition at line 55 of file CarlaActor.h.
References carla::rpc::Invalid, and State.
|
inline |
Definition at line 76 of file CarlaActor.h.
References carla::rpc::PendingKill, and State.
Referenced by FFrameData::AddVehicleAnimation(), ACarlaRecorder::AddVehicleAnimation(), FFrameData::AddVehicleParts(), ACarlaRecorder::AddVehicleWheelsAnimation(), FFrameData::AddWalkerAnimation(), and ACarlaRecorder::AddWalkerAnimation().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 349 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
| void FCarlaActor::PutActorToSleep | ( | UCarlaEpisode * | CarlaEpisode | ) |
Definition at line 157 of file CarlaActor.cpp.
References ActorData, carla::rpc::Dormant, State, and TheActor.
Referenced by FActorRegistry::PutActorToSleep().
|
inline |
Definition at line 132 of file CarlaActor.h.
References Children.
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 544 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 436 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions(), and CarlaReplayerHelper::SetActorAutopilot().
|
virtual |
Definition at line 604 of file CarlaActor.cpp.
References GetActor(), IsDormant(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 534 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
virtual |
Reimplemented in FWalkerActor.
Definition at line 616 of file CarlaActor.cpp.
References FunctionNotSupported, GetActor(), IsDormant(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
| void FCarlaActor::SetActorGlobalLocation | ( | const FVector & | Location, |
| ETeleportType | Teleport = ETeleportType::TeleportPhysics |
||
| ) |
Definition at line 296 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), ALargeMapManager::GlobalToLocalLocation(), IsDormant(), and World.
Referenced by FCarlaServer::FPimpl::BindActions().
| void FCarlaActor::SetActorGlobalTransform | ( | const FTransform & | Transform, |
| ETeleportType | Teleport = ETeleportType::TeleportPhysics |
||
| ) |
Definition at line 347 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), ALargeMapManager::GlobalToLocalTransform(), IsDormant(), and World.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::PlaceMirror(), FFrameData::ProcessReplayerPosition(), CarlaReplayerHelper::ProcessReplayerPosition(), FCarlaEngine::RestorePlayedPoses(), FFrameData::SetCameraPosition(), CarlaReplayerHelper::SetCameraPosition(), and FWalkerActor::SetWalkerState().
| void FCarlaActor::SetActorLocalLocation | ( | const FVector & | Location, |
| ETeleportType | Teleport = ETeleportType::TeleportPhysics |
||
| ) |
Definition at line 273 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), IsDormant(), ALargeMapManager::LocalToGlobalLocation(), and World.
| void FCarlaActor::SetActorLocalTransform | ( | const FTransform & | Transform, |
| ETeleportType | Teleport = ETeleportType::TeleportPhysics |
||
| ) |
Definition at line 320 of file CarlaActor.cpp.
References ActorData, GetActor(), UCarlaStatics::GetLargeMapManager(), IsDormant(), ALargeMapManager::LocalToGlobalTransform(), and World.
|
virtual |
Reimplemented in FVehicleActor, and FWalkerActor.
Definition at line 582 of file CarlaActor.cpp.
References ActorData, FunctionNotSupported, GetActor(), IsDormant(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::PrepareMirroredActor(), FFrameData::SetActorSimulatePhysics(), and CarlaReplayerHelper::SetActorSimulatePhysics().
|
inline |
Definition at line 111 of file CarlaActor.h.
References State.
Referenced by FCarlaServer::FPimpl::BindActions().
| ECarlaServerResponse FCarlaActor::SetActorTargetAngularVelocity | ( | const FVector & | AngularVelocity | ) |
Definition at line 433 of file CarlaActor.cpp.
References ActorData, FunctionNotSupported, GetActor(), IsDormant(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions().
| ECarlaServerResponse FCarlaActor::SetActorTargetVelocity | ( | const FVector & | Velocity | ) |
Definition at line 412 of file CarlaActor.cpp.
References ActorData, FunctionNotSupported, GetActor(), IsDormant(), and Success.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::SetActorVelocity(), and CarlaReplayerHelper::SetActorVelocity().
|
inline |
Definition at line 189 of file CarlaActor.h.
References Attachment.
Referenced by FCarlaServer::FPimpl::BindActions(), CarlaReplayerHelper::ProcessReplayerEventParent(), and FFrameData::ProcessReplayerEventParent().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 519 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 479 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 489 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 484 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
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().
|
inline |
Definition at line 116 of file CarlaActor.h.
References ParentId.
Referenced by FCarlaServer::FPimpl::BindActions(), CarlaReplayerHelper::ProcessReplayerEventParent(), and FFrameData::ProcessReplayerEventParent().
|
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().
|
inlinevirtual |
Reimplemented in FTrafficLightActor.
Definition at line 464 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::ProcessReplayerStateTrafficLight(), and CarlaReplayerHelper::ProcessReplayerStateTrafficLight().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 364 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions(), FFrameData::ProcessReplayerLightVehicle(), and CarlaReplayerHelper::ProcessReplayerLightVehicle().
|
inlinevirtual |
Reimplemented in FWalkerActor.
Definition at line 497 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 399 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 379 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 369 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 389 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 441 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
| 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().
|
inlinevirtual |
Reimplemented in FVehicleActor.
Definition at line 451 of file CarlaActor.h.
References ActorTypeMismatch.
Referenced by FCarlaServer::FPimpl::BindActions().
| 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 FActorRegistry::WakeActorUp().
|
friend |
Definition at line 561 of file CarlaActor.h.
|
protected |
Definition at line 599 of file CarlaActor.h.
Referenced by FOtherActor::FOtherActor(), FSensorActor::FSensorActor(), FTrafficLightActor::FTrafficLightActor(), FTrafficSignActor::FTrafficSignActor(), FVehicleActor::FVehicleActor(), FWalkerActor::FWalkerActor(), GetActorAngularVelocity(), GetActorData(), GetActorData(), GetActorGlobalLocation(), GetActorGlobalTransform(), GetActorLocalLocation(), GetActorLocalTransform(), GetActorVelocity(), PutActorToSleep(), SetActorGlobalLocation(), SetActorGlobalTransform(), SetActorLocalLocation(), SetActorLocalTransform(), SetActorSimulatePhysics(), FVehicleActor::SetActorSimulatePhysics(), FWalkerActor::SetActorSimulatePhysics(), SetActorTargetAngularVelocity(), SetActorTargetVelocity(), and WakeActorUp().
|
private |
Definition at line 591 of file CarlaActor.h.
Referenced by GetAttachmentType(), and SetAttachmentType().
|
protected |
Definition at line 579 of file CarlaActor.h.
Referenced by ClearMirroredKinematics(), GetActorAngularVelocity(), GetActorVelocity(), FWalkerActor::GetActorVelocity(), HasMirroredKinematics(), and SetMirroredKinematics().
|
private |
Definition at line 593 of file CarlaActor.h.
Referenced by AddChildren(), GetChildren(), and RemoveChildren().
|
private |
Definition at line 571 of file CarlaActor.h.
Referenced by GetActorId(), and GetPrimaryActorId().
|
private |
Definition at line 569 of file CarlaActor.h.
Referenced by ConstructCarlaActor(), GetActorInfo(), and WakeActorUp().
|
protected |
Definition at line 583 of file CarlaActor.h.
Referenced by ClearMirroredKinematics(), GetActorAngularVelocity(), GetMirroredAngularVelocityInRadians(), and SetMirroredKinematics().
|
protected |
Definition at line 585 of file CarlaActor.h.
Referenced by GetMirroredKinematicsFrame(), and SetMirroredKinematics().
|
protected |
Definition at line 581 of file CarlaActor.h.
Referenced by ClearMirroredKinematics(), GetActorVelocity(), FWalkerActor::GetActorVelocity(), and SetMirroredKinematics().
|
private |
Definition at line 573 of file CarlaActor.h.
Referenced by GetParent(), and SetParent().
|
private |
Definition at line 575 of file CarlaActor.h.
Referenced by GetPrimaryActorId(), and SetPrimaryActorId().
|
private |
Definition at line 589 of file CarlaActor.h.
Referenced by GetActorState(), IsActive(), IsAlive(), IsDormant(), IsInValid(), IsPendingKill(), PutActorToSleep(), SetActorState(), and WakeActorUp().
|
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(), GetActor(), GetActor(), PutActorToSleep(), FActorRegistry::Register(), and WakeActorUp().
|
protected |
Definition at line 597 of file CarlaActor.h.
Referenced by ConstructCarlaActor(), FOtherActor::FOtherActor(), FSensorActor::FSensorActor(), FTrafficLightActor::FTrafficLightActor(), FTrafficSignActor::FTrafficSignActor(), FVehicleActor::FVehicleActor(), FWalkerActor::FWalkerActor(), and GetActorType().
|
protected |
Definition at line 601 of file CarlaActor.h.
Referenced by ConstructCarlaActor(), GetActorGlobalLocation(), GetActorGlobalTransform(), GetActorLocalLocation(), GetActorLocalTransform(), SetActorGlobalLocation(), SetActorGlobalTransform(), SetActorLocalLocation(), and SetActorLocalTransform().