|
CARLA
|
#include <FrameData.h>
Public Member Functions | |
| void | AddEvent (const CarlaRecorderEventAdd &Event) |
| void | AddEvent (const CarlaRecorderEventDel &Event) |
| void | AddEvent (const CarlaRecorderEventParent &Event) |
| void | Clear () |
| void | CreateRecorderEventAdd (uint32_t DatabaseId, uint8_t Type, const FTransform &Transform, FActorDescription ActorDescription, bool bAddOtherRelatedInfo=true) |
| void | GetFrameData (UCarlaEpisode *ThisEpisode, bool bAdditionalData=false, bool bIncludeActorsAgain=false) |
| uint64_t | GetFrameNumber () const |
| const carla::multigpu::FrameTime * | GetFrameTime () const |
| The primary's clocks and settings of this frame; null for a frame from an older primary. | |
| bool | HasSensorTicks () const |
| Whether the frame says which sensors tick (only older builds do not). | |
| void | PlayFrameData (UCarlaEpisode *ThisEpisode, std::unordered_map< uint32_t, uint32_t > &MappedId, FMirrorState &MirrorState, TFunctionRef< void(uint32_t, uint32_t, bool)> OnActorAdded, TFunctionRef< void(uint32_t)> OnActorRemoved) |
| OnActorAdded receives (primary actor id, local actor id, whether it was just created rather than reused) for every actor created or reused; OnActorRemoved the primary id of every actor destroyed. | |
| carla::multigpu::FrameDataReadResult | Read (const uint8_t *Data, size_t Size) |
| Parses one SEND_FRAME payload. | |
| void | SetEpisode (UCarlaEpisode *ThisEpisode) |
| void | SetFrameTime (const carla::multigpu::FrameTime &Time) |
| void | Write (std::ostream &OutStream) |
Private Member Functions | |
| void | AddActorAppearance (FCarlaActor *CarlaActor, bool bFullResync) |
| void | AddActorBoundingBox (FCarlaActor *CarlaActor) |
| void | AddActorKinematics (FCarlaActor *CarlaActor) |
| void | AddActorPosition (FCarlaActor *CarlaActor) |
| void | AddAnimBiker (const CarlaRecorderAnimBiker &Biker) |
| void | AddAnimVehicle (const CarlaRecorderAnimVehicle &Vehicle) |
| void | AddAnimWalker (const CarlaRecorderAnimWalker &Walker) |
| void | AddBikerAnimation (FCarlaActor *CarlaActor) |
| void | AddBoundingBox (const CarlaRecorderActorBoundingBox &ActorBoundingBox) |
| void | AddCollision (AActor *Actor1, AActor *Actor2) |
| void | AddEventLightSceneChanged (const UCarlaLight *Light) |
| void | AddExistingActors (void) |
| void | AddKinematics (const CarlaRecorderKinematics &ActorKinematics) |
| void | AddLightVehicle (const CarlaRecorderLightVehicle &LightVehicle) |
| void | AddPhysicsControl (const ACarlaWheeledVehicle &Vehicle) |
| void | AddPosition (const CarlaRecorderPosition &Position) |
| void | AddSensorTick (FCarlaActor *CarlaActor) |
| void | AddState (const CarlaRecorderStateTrafficLight &State) |
| void | AddTrafficLightState (FCarlaActor *CarlaActor) |
| void | AddTrafficLightTime (const ATrafficLightBase &TrafficLight) |
| void | AddTriggerVolume (const ATrafficSignBase &TrafficSign) |
| void | AddVehicleAnimation (FCarlaActor *CarlaActor) |
| void | AddVehicleLight (FCarlaActor *CarlaActor) |
| void | AddVehicleParts (FCarlaActor *CarlaActor) |
| void | AddWalkerAnimation (FCarlaActor *CarlaActor) |
| void | AddWorldState (bool bFullResync) |
| std::pair< int, FCarlaActor * > | CreateOrReuseActor (FVector &Location, FVector &Rotation, FActorDescription &ActorDesc, uint32_t DesiredId, bool SpawnSensors, std::unordered_map< uint32_t, uint32_t > &MappedId) |
| FCarlaActor * | FindTrafficSignAt (FVector Location) |
| void | GetFrameCounter () |
| void | PlaceMirror (FCarlaActor &CarlaActor, FTransform Transform) |
| void | PlayAppearances (const std::unordered_map< uint32_t, uint32_t > &MappedId) |
| void | PlayKinematics (const std::unordered_map< uint32_t, uint32_t > &MappedId) |
| void | PlayMapLayers () |
| void | PlayPositions (const std::unordered_map< uint32_t, uint32_t > &MappedId, FMirrorState &MirrorState) |
| void | PlayVehicleParts (const std::unordered_map< uint32_t, uint32_t > &MappedId) |
| void | PlayWorldState (FMirrorState &MirrorState) |
| void | PrepareMirroredActor (FCarlaActor *CarlaActor, uint32_t PrimaryActorId) |
| void | ProcessReplayerAnimBiker (CarlaRecorderAnimBiker Biker) |
| void | ProcessReplayerAnimVehicle (CarlaRecorderAnimVehicle Vehicle) |
| void | ProcessReplayerAnimWalker (CarlaRecorderAnimWalker Walker) |
| std::pair< int, uint32_t > | ProcessReplayerEventAdd (FVector Location, FVector Rotation, CarlaRecorderActorDescription Description, uint32_t DesiredId, bool bIgnoreHero, bool ReplaySensors, std::unordered_map< uint32_t, uint32_t > &MappedId) |
| bool | ProcessReplayerEventDel (uint32_t DatabaseId) |
| bool | ProcessReplayerEventParent (uint32_t ChildId, uint32_t ParentId, const std::unordered_map< uint32_t, uint32_t > &MappedId) |
| bool | ProcessReplayerFinish (bool bApplyAutopilot, bool bIgnoreHero, std::unordered_map< uint32_t, bool > &IsHero) |
| void | ProcessReplayerLightScene (CarlaRecorderLightScene LightScene) |
| void | ProcessReplayerLightVehicle (CarlaRecorderLightVehicle LightVehicle) |
| bool | ProcessReplayerPosition (CarlaRecorderPosition Pos1, CarlaRecorderPosition Pos2, double Per, double DeltaTime) |
| bool | ProcessReplayerStateTrafficLight (CarlaRecorderStateTrafficLight State) |
| bool | SetActorSimulatePhysics (FCarlaActor *CarlaActor, bool bEnabled) |
| void | SetActorVelocity (FCarlaActor *CarlaActor, FVector Velocity) |
| bool | SetCameraPosition (uint32_t Id, FVector Offset, FQuat Rotation) |
| void | SetFrameCounter () |
| void | SetWalkerSpeed (uint32_t ActorId, float Speed) |
Definition at line 120 of file FrameData.h.
|
private |
Definition at line 200 of file FrameData.cpp.
References carla::multigpu::ActorAppearance::actor_id, carla::multigpu::ActorAppearances::actors, FPrimaryWorldState::Appearances, FMirroredAppearance::bCollisions, FMirroredAppearance::bHidden, carla::multigpu::ActorAppearance::collisions, Episode, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetMultiGpuWorldState(), carla::multigpu::ActorAppearance::hidden, FCarlaActor::IsDormant(), MirrorAppearances, carla::multigpu::ActorAppearance::scale, and FMirroredAppearance::Scale.
Referenced by GetFrameData().
|
private |
Definition at line 1353 of file FrameData.cpp.
References AddBoundingBox(), FActorInfo::BoundingBox, BoundingBox, FCarlaActor::GetActorId(), and FCarlaActor::GetActorInfo().
Referenced by CreateRecorderEventAdd().
|
private |
Definition at line 1317 of file FrameData.cpp.
References AddKinematics(), FCarlaActor::GetActorAngularVelocity(), FCarlaActor::GetActorId(), and FCarlaActor::GetActorVelocity().
Referenced by GetFrameData().
|
private |
Definition at line 1168 of file FrameData.cpp.
References FCarlaActor::GetActorGlobalTransform(), FCarlaActor::GetActorId(), carla::multigpu::MirroredPosition::id, MirrorPositions, Position, and carla::multigpu::MirroredPositions::positions.
Referenced by GetFrameData().
|
private |
Definition at line 1497 of file FrameData.cpp.
References CarlaRecorderAnimBikers::Add(), and Bikers.
Referenced by AddVehicleParts().
|
private |
Definition at line 1492 of file FrameData.cpp.
References CarlaRecorderAnimVehicles::Add(), Vehicle, and Vehicles.
Referenced by AddVehicleAnimation().
|
private |
Definition at line 1502 of file FrameData.cpp.
References CarlaRecorderAnimWalkers::Add(), and Walkers.
Referenced by AddWalkerAnimation().
|
private |
|
private |
Definition at line 1531 of file FrameData.cpp.
References CarlaRecorderActorBoundingBoxes::Add(), and BoundingBoxes.
Referenced by AddActorBoundingBox().
Definition at line 1445 of file FrameData.cpp.
References CarlaRecorderCollisions::Add(), Collision, and Collisions.
| void FFrameData::AddEvent | ( | const CarlaRecorderEventAdd & | Event | ) |
Definition at line 1421 of file FrameData.cpp.
References CarlaRecorderEventsAdd::Add(), and EventsAdd.
Referenced by AddExistingActors(), UCarlaEpisode::AttachActors(), CreateRecorderEventAdd(), and UActorDispatcher::OnActorDestroyed().
| void FFrameData::AddEvent | ( | const CarlaRecorderEventDel & | Event | ) |
Definition at line 1426 of file FrameData.cpp.
References CarlaRecorderEventsDel::Add(), CarlaRecorderEventDel::DatabaseId, EventsDel, and CarlaRecorderEventsDel::GetEvents().
| void FFrameData::AddEvent | ( | const CarlaRecorderEventParent & | Event | ) |
Definition at line 1440 of file FrameData.cpp.
References CarlaRecorderEventsParent::Add(), and EventsParent.
|
private |
Definition at line 1512 of file FrameData.cpp.
References CarlaRecorderLightScenes::Add(), and LightScenes.
Referenced by AddWorldState().
|
private |
Definition at line 2147 of file FrameData.cpp.
References AddEvent(), CreateRecorderEventAdd(), FActorInfo::Description, Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorGlobalTransform(), FCarlaActor::GetActorId(), FCarlaActor::GetActorInfo(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), and FCarlaActor::GetParent().
Referenced by GetFrameData().
|
private |
Definition at line 1526 of file FrameData.cpp.
References CarlaRecorderActorsKinematics::Add(), and Kinematics.
Referenced by AddActorKinematics().
|
private |
Definition at line 1507 of file FrameData.cpp.
References CarlaRecorderLightVehicles::Add(), and LightVehicles.
Referenced by AddVehicleLight().
|
private |
Definition at line 1390 of file FrameData.cpp.
References CarlaRecorderPhysicsControls::Add(), CarlaRecorderPhysicsControl::DatabaseId, Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), PhysicsControls, Vehicle, and CarlaRecorderPhysicsControl::VehiclePhysicsControl.
Referenced by CreateRecorderEventAdd().
|
private |
Definition at line 1416 of file FrameData.cpp.
References CarlaRecorderPositions::Add(), Position, and Positions.
|
private |
Definition at line 1332 of file FrameData.cpp.
References carla::multigpu::SensorState::actor_id, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), ASensor::GetMirrorState(), ASensor::GetReadyToTickDeltaSeconds(), ASensor::IsReadyToTick(), MirrorSensorStates, MirrorSensorTicks, State, carla::multigpu::SensorStates::states, and carla::multigpu::SensorTicks::ticks.
Referenced by GetFrameData().
|
private |
Definition at line 1487 of file FrameData.cpp.
References CarlaRecorderStates::Add(), State, and States.
Referenced by AddTrafficLightState().
|
private |
Definition at line 1283 of file FrameData.cpp.
References AddState(), FCarlaActor::GetActorId(), UTrafficLightController::GetElapsedTime(), UTrafficLightController::GetGroup(), FCarlaActor::GetTrafficLightController(), FCarlaActor::GetTrafficLightState(), and ATrafficLightGroup::IsFrozen().
Referenced by GetFrameData().
|
private |
Definition at line 1401 of file FrameData.cpp.
References CarlaRecorderTrafficLightTimes::Add(), Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), TrafficLight, TrafficLightTime, and TrafficLightTimes.
Referenced by CreateRecorderEventAdd().
|
private |
Definition at line 1367 of file FrameData.cpp.
References CarlaRecorderActorTriggerVolumes::Add(), Episode, FActorRegistry::FindCarlaActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), ATrafficSignBase::GetTriggerVolumes(), TriggerVolume, and TriggerVolumes.
Referenced by CreateRecorderEventAdd().
|
private |
Definition at line 1188 of file FrameData.cpp.
References AddAnimVehicle(), CarlaRecorderAnimVehicle::bHandbrake, FVehicleControl::bHandBrake, CarlaRecorderAnimVehicle::Brake, FVehicleControl::Brake, CarlaRecorderAnimVehicle::DatabaseId, CarlaRecorderAnimVehicle::Gear, FVehicleControl::Gear, FCarlaActor::GetActorId(), FCarlaActor::GetVehicleControl(), FCarlaActor::IsPendingKill(), FVehicleControl::Steer, CarlaRecorderAnimVehicle::Steering, CarlaRecorderAnimVehicle::Throttle, and FVehicleControl::Throttle.
Referenced by GetFrameData().
|
private |
Definition at line 1305 of file FrameData.cpp.
References AddLightVehicle(), CarlaRecorderLightVehicle::DatabaseId, FCarlaActor::GetActorId(), FCarlaActor::GetVehicleLightState(), carla::rpc::VehicleLightState::light_state, and CarlaRecorderLightVehicle::State.
Referenced by GetFrameData().
|
private |
Definition at line 1211 of file FrameData.cpp.
References carla::multigpu::VehicleParts::actor_id, AddAnimBiker(), FVehicleControl::bManualGearShift, carla::multigpu::VehicleParts::current_gear, carla::multigpu::DoorPose::door, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), FCarlaActor::GetActorType(), ACarlaWheeledVehicle::GetChaosWheeledVehicleMovementComponent(), ACarlaWheeledVehicle::GetDrawnWheelPose(), ACarlaWheeledVehicle::GetOpenDoorPoses(), ACarlaWheeledVehicle::GetVehicleControl(), ACarlaWheeledVehicle::GetVehicleCurrentGear(), ACarlaWheeledVehicle::GetWheelSuspensionAxis(), ACarlaWheeledVehicle::HasWheel(), FCarlaActor::IsDormant(), FCarlaActor::IsPendingKill(), ACarlaWheeledVehicle::IsTwoWheeledVehicle(), carla::multigpu::DoorPose::location, carla::multigpu::VehicleParts::manual_gear_shift, MirrorVehicleParts, carla::multigpu::VehicleParts::open_doors, carla::multigpu::DoorPose::rotation, carla::multigpu::VehicleParts::simulating_physics, FCarlaActor::Vehicle, carla::multigpu::MirroredVehicleParts::vehicles, and carla::multigpu::VehicleParts::wheels.
Referenced by GetFrameData().
|
private |
Definition at line 1267 of file FrameData.cpp.
References AddAnimWalker(), FCarlaActor::GetActorId(), FCarlaActor::GetWalkerControl(), FCarlaActor::IsPendingKill(), and FWalkerControl::Speed.
Referenced by GetFrameData().
|
private |
Definition at line 226 of file FrameData.cpp.
References CarlaRecorderWeathers::Add(), AddEventLightSceneChanged(), FPrimaryWorldState::ChangedLights, carla::multigpu::WorldGlobals::day_night_cycle, carla::multigpu::WorldObjects::disabled_environment_objects, FPrimaryWorldState::EnvironmentObjectsSerial, Episode, UCarlaLightSubsystem::GetDayNightCycle(), UCarlaLightSubsystem::GetDayTimeState(), ACarlaGameModeBase::GetDisabledEnvironmentObjects(), ACarlaGameModeBase::GetEnvironmentObjectsSerial(), UCarlaStatics::GetGameMode(), carla::ros2::ROS2::GetInstance(), UCarlaLightSubsystem::GetLight(), UCarlaLightSubsystem::GetLights(), ACarlaGameModeBase::GetLoadedMapLayers(), UCarlaEpisode::GetMultiGpuWorldState(), UCarlaEpisode::GetWeather(), carla::multigpu::WorldGlobals::has_day_time_state, carla::multigpu::WorldGlobals::imu_gravity, ACarlaGameModeBase::IMUSensorGravity, IsValid(), carla::multigpu::WorldGlobals::last_is_day, carla::multigpu::WorldGlobals::map_layers, MirrorWorldGlobals, MirrorWorldObjects, carla::multigpu::WorldGlobals::publish_tf, Weather, Weathers, and FPrimaryWorldState::WeatherSerial.
Referenced by GetFrameData().
| void FFrameData::Clear | ( | ) |
Definition at line 850 of file FrameData.cpp.
References carla::multigpu::ActorAppearances::actors, bHasSensorTicks, Bikers, BoundingBoxes, CarlaRecorderAnimBikers::Clear(), CarlaRecorderAnimVehicles::Clear(), CarlaRecorderAnimWalkers::Clear(), CarlaRecorderActorBoundingBoxes::Clear(), CarlaRecorderActorTriggerVolumes::Clear(), CarlaRecorderCollisions::Clear(), CarlaRecorderEventsAdd::Clear(), CarlaRecorderEventsDel::Clear(), CarlaRecorderEventsParent::Clear(), CarlaRecorderActorsKinematics::Clear(), CarlaRecorderLightScenes::Clear(), CarlaRecorderLightVehicles::Clear(), CarlaRecorderPhysicsControls::Clear(), CarlaRecorderPositions::Clear(), CarlaRecorderStates::Clear(), CarlaRecorderTrafficLightTimes::Clear(), CarlaRecorderWeathers::Clear(), Collisions, carla::multigpu::WorldObjects::disabled_environment_objects, EventsAdd, EventsDel, EventsParent, FrameCounter, CarlaRecorderFrameCounter::FrameCounter, Kinematics, LightScenes, LightVehicles, MirrorAppearances, MirrorPositions, MirrorSensorStates, MirrorSensorTicks, MirrorVehicleParts, MirrorWorldGlobals, MirrorWorldObjects, MultiGpuFrameTime, PhysicsControls, carla::multigpu::MirroredPositions::positions, Positions, carla::multigpu::SensorStates::states, States, carla::multigpu::SensorTicks::ticks, TrafficLightTimes, TriggerVolumes, carla::multigpu::MirroredVehicleParts::vehicles, Vehicles, Walkers, and Weathers.
Referenced by FCarlaEngine::OnPostTick(), and Read().
|
private |
Definition at line 1628 of file FrameData.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), FindTrafficSignAt(), UCarlaStatics::GetLargeMapManager(), FActorDescription::Id, ALargeMapManager::OnActorSpawned(), PlaceMirror(), carla::multigpu::PlanReplayedActor(), carla::multigpu::ReplayedActorPlan::reuse, carla::multigpu::ReplayedActorPlan::spawn_id, and UCarlaEpisode::SpawnActorWithInfo().
Referenced by ProcessReplayerEventAdd().
| void FFrameData::CreateRecorderEventAdd | ( | uint32_t | DatabaseId, |
| uint8_t | Type, | ||
| const FTransform & | Transform, | ||
| FActorDescription | ActorDescription, | ||
| bool | bAddOtherRelatedInfo = true |
||
| ) |
Definition at line 1092 of file FrameData.cpp.
References AddActorBoundingBox(), AddEvent(), AddPhysicsControl(), AddTrafficLightTime(), AddTriggerVolume(), CarlaRecorderActorDescription::Attributes, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FActorDescription::Id, CarlaRecorderActorAttribute::Id, CarlaRecorderActorDescription::Id, TrafficLight, CarlaRecorderActorAttribute::Type, FActorDescription::UId, CarlaRecorderActorDescription::UId, CarlaRecorderActorAttribute::Value, FActorDescription::Variations, and Vehicle.
Referenced by AddExistingActors(), and UCarlaEpisode::SpawnActorWithInfo().
|
private |
Definition at line 2114 of file FrameData.cpp.
References FActorRegistry::begin(), FActorRegistry::end(), Episode, FCarlaActor::GetActorGlobalLocation(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), FCarlaActor::TrafficLight, FCarlaActor::TrafficSign, x, y, and z.
Referenced by CreateOrReuseActor().
|
private |
Definition at line 1536 of file FrameData.cpp.
References FrameCounter, CarlaRecorderFrameCounter::FrameCounter, and FCarlaEngine::GetFrameCounter().
Referenced by GetFrameData().
| void FFrameData::GetFrameData | ( | UCarlaEpisode * | ThisEpisode, |
| bool | bAdditionalData = false, |
||
| bool | bIncludeActorsAgain = false |
||
| ) |
Definition at line 33 of file FrameData.cpp.
References CarlaRecorderTrafficLightTimes::Add(), AddActorAppearance(), AddActorKinematics(), AddActorPosition(), AddExistingActors(), AddSensorTick(), AddTrafficLightState(), AddVehicleAnimation(), AddVehicleLight(), AddVehicleParts(), AddWalkerAnimation(), AddWorldState(), FPrimaryWorldState::Appearances, FActorRegistry::begin(), FActorRegistry::Contains(), FActorRegistry::end(), Episode, FCarlaActor::GetActor(), FCarlaActor::GetActorId(), UCarlaEpisode::GetActorRegistry(), FCarlaActor::GetActorType(), GetFrameCounter(), UCarlaEpisode::GetMultiGpuWorldState(), FCarlaActor::IsDormant(), FActorRegistry::Num(), FCarlaActor::Other, FCarlaActor::Sensor, FCarlaActor::TrafficLight, TrafficLight, TrafficLightTimes, FCarlaActor::Vehicle, and FCarlaActor::Walker.
Referenced by FCarlaEngine::OnPostTick().
|
inline |
Definition at line 185 of file FrameData.h.
References FrameCounter, and CarlaRecorderFrameCounter::FrameCounter.
Referenced by FCarlaEngine::NotifyInitGame(), and FCarlaEngine::PlayPrimaryFrame().
|
inline |
The primary's clocks and settings of this frame; null for a frame from an older primary.
Definition at line 194 of file FrameData.h.
References MultiGpuFrameTime.
Referenced by FCarlaEngine::PlayPrimaryFrame().
|
inline |
Whether the frame says which sensors tick (only older builds do not).
Definition at line 188 of file FrameData.h.
References bHasSensorTicks.
Referenced by FCarlaEngine::PlayPrimaryFrame().
|
private |
Definition at line 780 of file FrameData.cpp.
References FCarlaActor::GetActor(), FCarlaActor::GetActorData(), FCarlaActor::GetActorGlobalTransform(), FCarlaActor::IsDormant(), and FCarlaActor::SetActorGlobalTransform().
Referenced by CreateOrReuseActor(), and PlayPositions().
|
private |
Definition at line 568 of file FrameData.cpp.
References carla::multigpu::ActorAppearances::actors, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::IsDormant(), and MirrorAppearances.
| void FFrameData::PlayFrameData | ( | UCarlaEpisode * | ThisEpisode, |
| std::unordered_map< uint32_t, uint32_t > & | MappedId, | ||
| FMirrorState & | MirrorState, | ||
| TFunctionRef< void(uint32_t, uint32_t, bool)> | OnActorAdded, | ||
| TFunctionRef< void(uint32_t)> | OnActorRemoved | ||
| ) |
OnActorAdded receives (primary actor id, local actor id, whether it was just created rather than reused) for every actor created or reused; OnActorRemoved the primary id of every actor destroyed.
Definition at line 310 of file FrameData.cpp.
References FMirrorState::CreatedIds, Episode, EventAdd, EventDel, EventParent, EventsAdd, EventsDel, EventsParent, UCarlaEpisode::FindCarlaActor(), CarlaRecorderEventsAdd::GetEvents(), CarlaRecorderEventsDel::GetEvents(), CarlaRecorderEventsParent::GetEvents(), MultiGpuFrameTime, FMirrorState::PendingParents, PlayMapLayers(), PrepareMirroredActor(), ProcessReplayerEventAdd(), ProcessReplayerEventDel(), and ProcessReplayerEventParent().
Referenced by FCarlaEngine::PlayPrimaryFrame().
|
private |
Definition at line 753 of file FrameData.cpp.
References FCarlaActor::ClearMirroredKinematics(), Episode, FFrameData_SetMirroredMotion(), UCarlaEpisode::FindCarlaActor(), FrameCounter, CarlaRecorderFrameCounter::FrameCounter, CarlaRecorderActorsKinematics::GetKinematics(), FCarlaActor::GetMirroredKinematicsFrame(), FCarlaActor::HasMirroredKinematics(), Kinematics, and FCarlaActor::SetMirroredKinematics().
|
private |
Definition at line 548 of file FrameData.cpp.
References carla::multigpu::ComputeMapLayerDiff(), Episode, UCarlaStatics::GetGameMode(), ACarlaGameModeBase::GetLoadedMapLayers(), ACarlaGameModeBase::LoadMapLayer(), MirrorWorldGlobals, and ACarlaGameModeBase::UnLoadMapLayer().
Referenced by PlayFrameData().
|
private |
Definition at line 675 of file FrameData.cpp.
References CarlaRecorderPosition::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetParent(), CarlaRecorderPositions::GetPositions(), MirrorPositions, carla::multigpu::OrderParentsFirst(), PlaceMirror(), FMirrorState::PlayedPoses, Position, carla::multigpu::MirroredPositions::positions, Positions, and ProcessReplayerPosition().
|
private |
Definition at line 1924 of file FrameData.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::IsDormant(), MirrorVehicleParts, and carla::multigpu::MirroredVehicleParts::vehicles.
|
private |
Definition at line 603 of file FrameData.cpp.
References carla::multigpu::WorldGlobals::day_night_cycle, carla::multigpu::DiffSortedIds(), carla::multigpu::WorldObjects::disabled_environment_objects, FMirrorState::DisabledObjects, FMirrorState::DisabledObjectsRegistrations, ACarlaGameModeBase::EnableEnvironmentObjects(), Episode, UCarlaLightSubsystem::GetDayNightCycle(), UCarlaLightSubsystem::GetDayTimeState(), ACarlaGameModeBase::GetDisabledEnvironmentObjects(), ACarlaGameModeBase::GetEnvironmentObjectsRegistrations(), UCarlaStatics::GetGameMode(), carla::ros2::ROS2::GetInstance(), UCarlaEpisode::GetWeather(), CarlaRecorderWeathers::GetWeathers(), carla::multigpu::WorldGlobals::imu_gravity, ACarlaGameModeBase::IMUSensorGravity, MirrorWorldGlobals, MirrorWorldObjects, UCarlaLightSubsystem::NotifyDayTimeChange(), carla::multigpu::WorldGlobals::publish_tf, UCarlaLightSubsystem::SetDayNightCycle(), Weather, and Weathers.
|
private |
Definition at line 812 of file FrameData.cpp.
References FCarlaActor::GetActor(), FCarlaActor::GetActorType(), FCarlaActor::IsDormant(), FCarlaActor::Other, FCarlaActor::SetActorSimulatePhysics(), FCarlaActor::SetPrimaryActorId(), FCarlaActor::Vehicle, and FCarlaActor::Walker.
Referenced by PlayFrameData().
|
private |
Definition at line 2010 of file FrameData.cpp.
References CarlaRecorderAnimBiker::DatabaseId, CarlaRecorderAnimBiker::EngineRotation, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderAnimBiker::ForwardSpeed, FCarlaActor::GetActor(), ACarlaWheeledVehicle::SetRotationAnim(), and ACarlaWheeledVehicle::SetSpeedAnim().
|
private |
Definition at line 1905 of file FrameData.cpp.
References FCarlaActor::ApplyControlToVehicle(), FVehicleControl::bHandBrake, FVehicleControl::bManualGearShift, FVehicleControl::Brake, FVehicleControl::bReverse, Episode, UCarlaEpisode::FindCarlaActor(), FVehicleControl::Gear, FCarlaActor::GetActor(), FVehicleControl::Steer, FVehicleControl::Throttle, and Vehicle.
|
private |
Definition at line 2005 of file FrameData.cpp.
References CarlaRecorderAnimWalker::DatabaseId, SetWalkerSpeed(), and CarlaRecorderAnimWalker::Speed.
|
private |
Definition at line 1698 of file FrameData.cpp.
References CarlaRecorderActorDescription::Attributes, CreateOrReuseActor(), Episode, FActorAttribute::Id, FActorDescription::Id, CarlaRecorderActorDescription::Id, SetActorSimulatePhysics(), FActorAttribute::Type, FActorDescription::UId, CarlaRecorderActorDescription::UId, FActorAttribute::Value, FActorDescription::Variations, and FCarlaActor::Vehicle.
Referenced by PlayFrameData().
|
private |
Definition at line 1759 of file FrameData.cpp.
References UCarlaEpisode::DestroyActor(), Episode, UCarlaEpisode::FindCarlaActor(), and FCarlaActor::GetActorId().
Referenced by PlayFrameData().
|
private |
Definition at line 1773 of file FrameData.cpp.
References FCarlaActor::AddChildren(), UCarlaEpisode::AddRosParentNames(), Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActor(), FCarlaActor::GetActorId(), FCarlaActor::GetParent(), FCarlaActor::IsDormant(), UCarlaEpisode::PutActorToSleep(), carla::rpc::Rigid, FCarlaActor::SetAttachmentType(), and FCarlaActor::SetParent().
Referenced by PlayFrameData().
|
private |
Definition at line 2024 of file FrameData.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.
|
private |
Definition at line 1978 of file FrameData.cpp.
References CarlaRecorderLightScene::bOn, CarlaRecorderLightScene::Color, Episode, UCarlaLightSubsystem::GetLight(), CarlaRecorderLightScene::Intensity, CarlaRecorderLightScene::LightId, and CarlaRecorderLightScene::Type.
|
private |
Definition at line 1967 of file FrameData.cpp.
References CarlaRecorderLightVehicle::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::SetVehicleLightState(), and CarlaRecorderLightVehicle::State.
|
private |
Definition at line 1826 of file FrameData.cpp.
References CarlaRecorderPosition::DatabaseId, Episode, UCarlaEpisode::FindCarlaActor(), CarlaRecorderPosition::Location, CarlaRecorderPosition::Rotation, and FCarlaActor::SetActorGlobalTransform().
Referenced by PlayPositions().
|
private |
Definition at line 1882 of file FrameData.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), UTrafficLightController::GetGroup(), FCarlaActor::GetTrafficLightController(), UTrafficLightController::SetElapsedTime(), ATrafficLightGroup::SetFrozenGroup(), FCarlaActor::SetTrafficLightState(), and State.
| carla::multigpu::FrameDataReadResult FFrameData::Read | ( | const uint8_t * | Data, |
| size_t | Size | ||
| ) |
Parses one SEND_FRAME payload.
Only a complete frame (FrameDataReadResult::IsComplete) may be played.
Definition at line 952 of file FrameData.cpp.
References AnimBiker, AnimVehicle, AnimWalker, bHasSensorTicks, Bikers, Clear(), EventAdd, EventDel, EventParent, EventsAdd, EventsDel, EventsParent, carla::multigpu::FrameDataReadResult::frame, FrameCounter, CarlaRecorderFrameCounter::FrameCounter, carla::multigpu::Inconsistent, carla::multigpu::FrameDataReadResult::IsComplete(), Kinematics, Kinematics, carla::multigpu::FrameTime::kPacketId, LightScenes, LightVehicles, MirrorAppearances, MirrorPositions, MirrorSensorStates, MirrorSensorTicks, MirrorVehicleParts, MirrorWorldObjects, MultiGpuActorAppearance, MultiGpuFrameTime, MultiGpuFrameTime, MultiGpuPositions, MultiGpuSensorState, MultiGpuSensorTicks, MultiGpuVehicleParts, MultiGpuWorldGlobals, MultiGpuWorldObjects, carla::multigpu::FrameDataReadResult::packet_id, Position, Positions, carla::multigpu::FrameTime::Read(), carla::multigpu::MirroredPositions::Read(), carla::multigpu::MirroredVehicleParts::Read(), carla::multigpu::SensorTicks::Read(), carla::multigpu::SensorStates::Read(), carla::multigpu::WorldGlobals::Read(), carla::multigpu::WorldObjects::Read(), carla::multigpu::ActorAppearances::Read(), CarlaRecorderAnimBikers::Read(), CarlaRecorderAnimVehicles::Read(), CarlaRecorderAnimWalkers::Read(), CarlaRecorderEventsAdd::Read(), CarlaRecorderEventsDel::Read(), CarlaRecorderEventsParent::Read(), CarlaRecorderActorsKinematics::Read(), CarlaRecorderLightScenes::Read(), CarlaRecorderLightVehicles::Read(), CarlaRecorderPositions::Read(), CarlaRecorderStates::Read(), CarlaRecorderTrafficLightTimes::Read(), CarlaRecorderWeathers::Read(), carla::multigpu::ReadFrameData(), SceneLight, State, States, carla::multigpu::FrameDataReadResult::status, TrafficLightTime, TrafficLightTimes, VehicleLight, Vehicles, Walkers, Weather, and Weathers.
Referenced by FCarlaEngine::NotifyInitGame(), and FCarlaEngine::OnPostTick().
|
private |
Definition at line 2094 of file FrameData.cpp.
References FCarlaActor::SetActorSimulatePhysics(), and Success.
Referenced by ProcessReplayerEventAdd(), and ProcessReplayerFinish().
|
private |
Definition at line 2070 of file FrameData.cpp.
References FCarlaActor::SetActorTargetVelocity().
Referenced by ProcessReplayerFinish().
|
private |
Definition at line 1856 of file FrameData.cpp.
References Episode, UCarlaEpisode::FindCarlaActor(), FCarlaActor::GetActorGlobalTransform(), UCarlaEpisode::GetSpectatorPawn(), and FCarlaActor::SetActorGlobalTransform().
|
inline |
Definition at line 163 of file FrameData.h.
References Episode.
Referenced by UCarlaEpisode::UCarlaEpisode().
|
private |
Definition at line 2109 of file FrameData.cpp.
References FrameCounter, CarlaRecorderFrameCounter::FrameCounter, and FCarlaEngine::ResetFrameCounter().
|
inline |
Definition at line 190 of file FrameData.h.
References MultiGpuFrameTime.
Referenced by FCarlaEngine::OnPostTick().
|
private |
Definition at line 2080 of file FrameData.cpp.
References FCarlaActor::ApplyControlToWalker(), Episode, UCarlaEpisode::FindCarlaActor(), and FWalkerControl::Speed.
Referenced by ProcessReplayerAnimWalker(), and ProcessReplayerFinish().
| void FFrameData::Write | ( | std::ostream & | OutStream | ) |
Definition at line 906 of file FrameData.cpp.
References carla::multigpu::ActorAppearances::actors, Bikers, carla::multigpu::WorldObjects::empty(), EventsAdd, EventsDel, EventsParent, FrameCounter, Kinematics, LightScenes, LightVehicles, MirrorAppearances, MirrorPositions, MirrorSensorStates, MirrorSensorTicks, MirrorVehicleParts, MirrorWorldGlobals, MirrorWorldObjects, MultiGpuFrameTime, carla::multigpu::SensorStates::states, States, TrafficLightTimes, Vehicles, Walkers, Weathers, carla::multigpu::MirroredPositions::Write(), carla::multigpu::MirroredVehicleParts::Write(), carla::multigpu::SensorTicks::Write(), carla::multigpu::SensorStates::Write(), carla::multigpu::WorldObjects::Write(), carla::multigpu::ActorAppearances::Write(), CarlaRecorderAnimVehicles::Write(), CarlaRecorderAnimWalkers::Write(), CarlaRecorderEventsAdd::Write(), CarlaRecorderEventsDel::Write(), CarlaRecorderEventsParent::Write(), CarlaRecorderFrameCounter::Write(), CarlaRecorderActorsKinematics::Write(), CarlaRecorderLightScenes::Write(), CarlaRecorderLightVehicles::Write(), CarlaRecorderStates::Write(), CarlaRecorderTrafficLightTimes::Write(), CarlaRecorderWeathers::Write(), and CarlaRecorderAnimBikers::Write().
Referenced by FCarlaEngine::OnPostTick().
|
private |
Definition at line 155 of file FrameData.h.
Referenced by Clear(), HasSensorTicks(), and Read().
|
private |
Definition at line 133 of file FrameData.h.
Referenced by AddAnimBiker(), Clear(), Read(), and Write().
|
private |
Definition at line 137 of file FrameData.h.
Referenced by AddBoundingBox(), and Clear().
|
private |
Definition at line 128 of file FrameData.h.
Referenced by AddCollision(), and Clear().
|
private |
Definition at line 318 of file FrameData.h.
Referenced by AddActorAppearance(), AddExistingActors(), AddPhysicsControl(), AddTrafficLightTime(), AddTriggerVolume(), AddWorldState(), CreateOrReuseActor(), CreateRecorderEventAdd(), FindTrafficSignAt(), GetFrameData(), PlayAppearances(), PlayFrameData(), PlayKinematics(), PlayMapLayers(), PlayPositions(), PlayVehicleParts(), PlayWorldState(), ProcessReplayerAnimBiker(), ProcessReplayerAnimVehicle(), ProcessReplayerEventAdd(), ProcessReplayerEventDel(), ProcessReplayerEventParent(), ProcessReplayerFinish(), ProcessReplayerLightScene(), ProcessReplayerLightVehicle(), ProcessReplayerPosition(), ProcessReplayerStateTrafficLight(), SetCameraPosition(), SetEpisode(), and SetWalkerSpeed().
|
private |
Definition at line 125 of file FrameData.h.
Referenced by AddEvent(), Clear(), PlayFrameData(), Read(), and Write().
|
private |
Definition at line 126 of file FrameData.h.
Referenced by AddEvent(), Clear(), PlayFrameData(), Read(), and Write().
|
private |
Definition at line 127 of file FrameData.h.
Referenced by AddEvent(), Clear(), PlayFrameData(), Read(), and Write().
|
private |
Definition at line 142 of file FrameData.h.
Referenced by Clear(), GetFrameCounter(), GetFrameNumber(), PlayKinematics(), Read(), SetFrameCounter(), and Write().
|
private |
Definition at line 124 of file FrameData.h.
|
private |
Definition at line 123 of file FrameData.h.
|
private |
Definition at line 136 of file FrameData.h.
Referenced by AddKinematics(), Clear(), PlayKinematics(), Read(), and Write().
|
private |
Definition at line 135 of file FrameData.h.
Referenced by AddEventLightSceneChanged(), Clear(), Read(), and Write().
|
private |
Definition at line 134 of file FrameData.h.
Referenced by AddLightVehicle(), Clear(), Read(), and Write().
|
private |
Definition at line 159 of file FrameData.h.
Referenced by AddActorAppearance(), Clear(), PlayAppearances(), Read(), and Write().
|
private |
Definition at line 148 of file FrameData.h.
Referenced by AddActorPosition(), Clear(), PlayPositions(), Read(), and Write().
|
private |
Definition at line 154 of file FrameData.h.
Referenced by AddSensorTick(), Clear(), Read(), and Write().
|
private |
Definition at line 153 of file FrameData.h.
Referenced by AddSensorTick(), Clear(), Read(), and Write().
|
private |
Definition at line 150 of file FrameData.h.
Referenced by AddVehicleParts(), Clear(), PlayVehicleParts(), Read(), and Write().
|
private |
Definition at line 157 of file FrameData.h.
Referenced by AddWorldState(), Clear(), PlayMapLayers(), PlayWorldState(), and Write().
|
private |
Definition at line 158 of file FrameData.h.
Referenced by AddWorldState(), Clear(), PlayWorldState(), Read(), and Write().
|
private |
Definition at line 146 of file FrameData.h.
Referenced by Clear(), GetFrameTime(), PlayFrameData(), Read(), SetFrameTime(), and Write().
|
private |
Definition at line 140 of file FrameData.h.
Referenced by AddPhysicsControl(), and Clear().
|
private |
Definition at line 139 of file FrameData.h.
|
private |
Definition at line 129 of file FrameData.h.
Referenced by AddPosition(), Clear(), PlayPositions(), and Read().
|
private |
Definition at line 130 of file FrameData.h.
Referenced by AddState(), Clear(), Read(), and Write().
|
private |
Definition at line 141 of file FrameData.h.
Referenced by AddTrafficLightTime(), Clear(), GetFrameData(), Read(), and Write().
|
private |
Definition at line 138 of file FrameData.h.
Referenced by AddTriggerVolume(), and Clear().
|
private |
Definition at line 131 of file FrameData.h.
Referenced by AddAnimVehicle(), Clear(), Read(), and Write().
|
private |
Definition at line 132 of file FrameData.h.
Referenced by AddAnimWalker(), Clear(), Read(), and Write().
|
private |
Definition at line 144 of file FrameData.h.
Referenced by AddWorldState(), Clear(), PlayWorldState(), Read(), and Write().