|
CARLA
|
#include <CarlaReplayerHelper.h>
Private Member Functions | |
| FCarlaActor * | FindTrafficSignAt (FVector Location) |
| bool | SetActorAutopilot (FCarlaActor *CarlaActor, bool bEnabled, bool bKeepState=false) |
| bool | SetActorSimulatePhysics (FCarlaActor *CarlaActor, bool bEnabled) |
| std::pair< int, FCarlaActor * > | TryToCreateReplayerActor (FVector &Location, FVector &Rotation, FActorDescription &ActorDesc, uint32_t DesiredId, bool SpawnSensors) |
Private Attributes | |
| UCarlaEpisode * | Episode {nullptr} |
Definition at line 28 of file CarlaReplayerHelper.h.
|
private |
Definition at line 100 of file CarlaReplayerHelper.cpp.
References FActorRegistry::begin(), FActorRegistry::end(), Episode, FCarlaActor::GetActorGlobalLocation(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), FCarlaActor::TrafficLight, FCarlaActor::TrafficSign, x, y, and z.
Referenced by TryToCreateReplayerActor().
| void CarlaReplayerHelper::ProcessReplayerAnimBiker | ( | CarlaRecorderAnimBiker | Biker | ) |
Definition at line 525 of file CarlaReplayerHelper.cpp.
References CarlaRecorderAnimBiker::DatabaseId, CarlaRecorderAnimBiker::EngineRotation, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderAnimBiker::ForwardSpeed, FCarlaActor::GetActor(), ACarlaWheeledVehicle::SetRotationAnim(), and ACarlaWheeledVehicle::SetSpeedAnim().
Referenced by CarlaReplayer::ProcessAnimBiker().
| void CarlaReplayerHelper::ProcessReplayerAnimVehicle | ( | CarlaRecorderAnimVehicle | Vehicle | ) |
Definition at line 419 of file CarlaReplayerHelper.cpp.
References FCarlaActor::ApplyControlToVehicle(), FVehicleControl::bHandBrake, FVehicleControl::bManualGearShift, FVehicleControl::Brake, FVehicleControl::bReverse, Episode, UCarlaEpisode::FindCarlaActor(), FVehicleControl::Gear, FVehicleControl::Steer, FVehicleControl::Throttle, and Vehicle.
Referenced by CarlaReplayer::ProcessAnimVehicle().
| void CarlaReplayerHelper::ProcessReplayerAnimVehicleWheels | ( | const CarlaRecorderAnimWheels & | Wheels1, |
| const CarlaRecorderAnimWheels & | Wheels2, | ||
| double | Per, | ||
| float | Travel | ||
| ) |
Definition at line 332 of file CarlaReplayerHelper.cpp.
References CarlaRecorderAnimWheels::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::GetActorType(), ACarlaWheeledVehicle::GetWheelRadius(), GetWheelSpinDelta(), ACarlaWheeledVehicle::HasCarlaVehicleAnimation(), ACarlaWheeledVehicle::HasWheel(), WheelInfo::Location, ACarlaWheeledVehicle::SetWheelAnimationOverride(), ACarlaWheeledVehicle::SetWheelPitchAngle(), ACarlaWheeledVehicle::SetWheelSteerDirection(), WheelInfo::SteeringAngle, WheelInfo::TireRotation, FCarlaActor::Vehicle, and CarlaRecorderAnimWheels::WheelValues.
Referenced by CarlaReplayer::UpdateWheels().
| void CarlaReplayerHelper::ProcessReplayerAnimWalker | ( | CarlaRecorderAnimWalker | Walker | ) |
Definition at line 520 of file CarlaReplayerHelper.cpp.
References CarlaRecorderAnimWalker::DatabaseId, SetWalkerSpeed(), and CarlaRecorderAnimWalker::Speed.
Referenced by CarlaReplayer::ProcessAnimWalker().
| void CarlaReplayerHelper::ProcessReplayerDoorVehicle | ( | CarlaRecorderDoorVehicle | DoorVehicle | ) |
Definition at line 438 of file CarlaReplayerHelper.cpp.
References CarlaRecorderDoorVehicle::bIsOpen, CarlaRecorderDoorVehicle::DatabaseId, CarlaRecorderDoorVehicle::Doors, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), and Vehicle.
Referenced by CarlaReplayer::ProcessDoorVehicle().
| std::pair< int, uint32_t > CarlaReplayerHelper::ProcessReplayerEventAdd | ( | FVector | Location, |
| FVector | Rotation, | ||
| CarlaRecorderActorDescription | Description, | ||
| uint32_t | DesiredId, | ||
| bool | bIgnoreHero, | ||
| bool | bIgnoreSpectator, | ||
| bool | ReplaySensors | ||
| ) |
Definition at line 167 of file CarlaReplayerHelper.cpp.
References CarlaRecorderActorDescription::Attributes, Episode, FActorAttribute::Id, FActorDescription::Id, CarlaRecorderActorDescription::Id, SetActorAutopilot(), SetActorSimulatePhysics(), TryToCreateReplayerActor(), FActorAttribute::Type, FActorDescription::UId, CarlaRecorderActorDescription::UId, FActorAttribute::Value, FActorDescription::Variations, FCarlaActor::Vehicle, and FCarlaActor::Walker.
Referenced by CarlaReplayer::ProcessEventsAdd().
| bool CarlaReplayerHelper::ProcessReplayerEventDel | ( | uint32_t | DatabaseId | ) |
Definition at line 240 of file CarlaReplayerHelper.cpp.
References UCarlaEpisode::DestroyActor(), Episode, UCarlaEpisode::FindCarlaActor(), and FCarlaActor::GetActorId().
Referenced by CarlaReplayer::ProcessEventsDel().
| bool CarlaReplayerHelper::ProcessReplayerEventParent | ( | uint32_t | ChildId, |
| uint32_t | ParentId | ||
| ) |
Definition at line 254 of file CarlaReplayerHelper.cpp.
References FCarlaActor::AddChildren(), UCarlaEpisode::AttachActors(), Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::GetActorId(), FCarlaActor::IsDormant(), UCarlaEpisode::PutActorToSleep(), carla::rpc::Rigid, FCarlaActor::SetAttachmentType(), and FCarlaActor::SetParent().
Referenced by CarlaReplayer::ProcessEventsParent().
| bool CarlaReplayerHelper::ProcessReplayerFinish | ( | bool | bApplyAutopilot, |
| bool | bIgnoreHero, | ||
| std::unordered_map< uint32_t, bool > & | IsHero | ||
| ) |
Definition at line 566 of file CarlaReplayerHelper.cpp.
References FCarlaActor::ApplyControlToVehicle(), FVehicleControl::bHandBrake, FVehicleControl::bManualGearShift, FVehicleControl::Brake, FVehicleControl::bReverse, Episode, FVehicleControl::Gear, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), SetActorSimulatePhysics(), SetActorVelocity(), SetWalkerSpeed(), FVehicleControl::Steer, FVehicleControl::Throttle, FCarlaActor::Vehicle, and FCarlaActor::Walker.
Referenced by CarlaReplayer::Stop().
| void CarlaReplayerHelper::ProcessReplayerLightScene | ( | CarlaRecorderLightScene | LightScene | ) |
Definition at line 493 of file CarlaReplayerHelper.cpp.
References CarlaRecorderLightScene::bOn, CarlaRecorderLightScene::Color, Episode, UCarlaLightSubsystem::GetLight(), CarlaRecorderLightScene::Intensity, CarlaRecorderLightScene::LightId, UCarlaLightSubsystem::SetClientStatesdirty(), and CarlaRecorderLightScene::Type.
Referenced by CarlaReplayer::ProcessLightScene().
| void CarlaReplayerHelper::ProcessReplayerLightVehicle | ( | CarlaRecorderLightVehicle | LightVehicle | ) |
Definition at line 456 of file CarlaReplayerHelper.cpp.
References CarlaRecorderLightVehicle::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::SetVehicleLightState(), and CarlaRecorderLightVehicle::State.
Referenced by CarlaReplayer::ProcessLightVehicle().
| bool CarlaReplayerHelper::ProcessReplayerPosition | ( | CarlaRecorderPosition | Pos1, |
| CarlaRecorderPosition | Pos2, | ||
| double | Per, | ||
| double | DeltaTime | ||
| ) |
Definition at line 290 of file CarlaReplayerHelper.cpp.
References CarlaRecorderPosition::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderPosition::Location, CarlaRecorderPosition::Rotation, and FCarlaActor::SetActorGlobalTransform().
Referenced by CarlaReplayer::InterpolatePosition().
| bool CarlaReplayerHelper::ProcessReplayerStateTrafficLight | ( | CarlaRecorderStateTrafficLight | State | ) |
Definition at line 396 of file CarlaReplayerHelper.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), UTrafficLightController::GetGroup(), FCarlaActor::GetTrafficLightController(), UTrafficLightController::SetElapsedTime(), ATrafficLightGroup::SetFrozenGroup(), FCarlaActor::SetTrafficLightState(), and State.
Referenced by CarlaReplayer::ProcessStates().
| void CarlaReplayerHelper::ProcessReplayerWalkerBones | ( | const CarlaRecorderWalkerBones & | Walker | ) |
Definition at line 538 of file CarlaReplayerHelper.cpp.
References AWalkerController::BlendPose(), FWalkerBoneControlIn::BoneTransforms, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), AWalkerController::SetBonesTransform(), and WalkerBones.
Referenced by CarlaReplayer::ProcessWalkerBones().
| void CarlaReplayerHelper::ProcessReplayerWeather | ( | const CarlaRecorderWeather & | Weather | ) |
Definition at line 467 of file CarlaReplayerHelper.cpp.
References AWeather::ApplyWeather(), FWeatherParameters::Cloudiness, FWeatherParameters::DustStorm, Episode, FWeatherParameters::FogDensity, FWeatherParameters::FogDistance, FWeatherParameters::FogFalloff, UCarlaEpisode::GetWeather(), FWeatherParameters::MieScatteringScale, FWeatherParameters::Precipitation, FWeatherParameters::PrecipitationDeposits, FWeatherParameters::RayleighScatteringScale, FWeatherParameters::ScatteringIntensity, FWeatherParameters::SunAltitudeAngle, FWeatherParameters::SunAzimuthAngle, Weather, FWeatherParameters::Wetness, and FWeatherParameters::WindIntensity.
Referenced by CarlaReplayer::ProcessWeather().
| void CarlaReplayerHelper::RemoveStaticProps | ( | ) |
Definition at line 642 of file CarlaReplayerHelper.cpp.
References Episode.
Referenced by CarlaReplayer::CheckPlayAfterMapLoaded(), and CarlaReplayer::ReplayFile().
|
private |
Definition at line 151 of file CarlaReplayerHelper.cpp.
References FCarlaActor::SetActorAutopilot(), and Success.
Referenced by ProcessReplayerEventAdd().
|
private |
Definition at line 135 of file CarlaReplayerHelper.cpp.
References FCarlaActor::SetActorSimulatePhysics(), and Success.
Referenced by ProcessReplayerEventAdd(), and ProcessReplayerFinish().
| void CarlaReplayerHelper::SetActorVelocity | ( | FCarlaActor * | CarlaActor, |
| FVector | Velocity | ||
| ) |
Definition at line 619 of file CarlaReplayerHelper.cpp.
References FCarlaActor::SetActorTargetVelocity().
Referenced by ProcessReplayerFinish().
| bool CarlaReplayerHelper::SetCameraPosition | ( | uint32_t | Id, |
| FVector | Offset, | ||
| FQuat | Rotation | ||
| ) |
Definition at line 370 of file CarlaReplayerHelper.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActorGlobalTransform(), UCarlaEpisode::GetSpectatorPawn(), and FCarlaActor::SetActorGlobalTransform().
Referenced by CarlaReplayer::UpdatePositions().
|
inline |
Definition at line 34 of file CarlaReplayerHelper.h.
References Episode.
Referenced by CarlaReplayer::SetEpisode().
| void CarlaReplayerHelper::SetWalkerSpeed | ( | uint32_t | ActorId, |
| float | Speed | ||
| ) |
Definition at line 629 of file CarlaReplayerHelper.cpp.
References FCarlaActor::ApplyControlToWalker(), Episode, UCarlaEpisode::FindCarlaActor(), and FWalkerControl::Speed.
Referenced by ProcessReplayerAnimWalker(), and ProcessReplayerFinish().
|
private |
Definition at line 43 of file CarlaReplayerHelper.cpp.
References Episode, FindTrafficSignAt(), UCarlaStatics::GetLargeMapManager(), FActorDescription::Id, ALargeMapManager::OnActorSpawned(), and UCarlaEpisode::SpawnActorWithInfo().
Referenced by ProcessReplayerEventAdd().
|
private |
Definition at line 109 of file CarlaReplayerHelper.h.
Referenced by FindTrafficSignAt(), ProcessReplayerAnimBiker(), ProcessReplayerAnimVehicle(), ProcessReplayerAnimVehicleWheels(), ProcessReplayerDoorVehicle(), ProcessReplayerEventAdd(), ProcessReplayerEventDel(), ProcessReplayerEventParent(), ProcessReplayerFinish(), ProcessReplayerLightScene(), ProcessReplayerLightVehicle(), ProcessReplayerPosition(), ProcessReplayerStateTrafficLight(), ProcessReplayerWalkerBones(), ProcessReplayerWeather(), RemoveStaticProps(), SetCameraPosition(), SetEpisode(), SetWalkerSpeed(), and TryToCreateReplayerActor().