CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FMirrorState Struct Reference

What a Multi-GPU secondary keeps between the primary frames it plays. More...

#include <FrameData.h>

Public Member Functions

void Reset ()
 

Public Attributes

std::unordered_set< uint32_t > CreatedIds
 Local ids of the mirrors this secondary spawned, as opposed to map actors it reused (traffic lights, the spectator): only these may be swept.
 
std::optional< std::vector< uint64_t > > DisabledObjects
 The environment objects the primary has disabled (sorted), once a frame said so, and the registration of this server's objects they were last applied to: one in a map layer still streaming in is disabled once it is registered.
 
uint64 DisabledObjectsRegistrations = 0u
 
std::vector< std::pair< uint32_t, uint32_t > > PendingParents
 Attachments not replayed yet, as (child, parent) primary ids: one of the two is not mirrored yet.
 
std::vector< std::pair< uint32_t, FTransform > > PlayedPoses
 The poses the last frame played set, by local id, to check before the capture that nothing moved a mirror in between.
 

Detailed Description

What a Multi-GPU secondary keeps between the primary frames it plays.

Definition at line 58 of file FrameData.h.

Member Function Documentation

◆ Reset()

void FMirrorState::Reset ( )
inline

Member Data Documentation

◆ CreatedIds

std::unordered_set<uint32_t> FMirrorState::CreatedIds

Local ids of the mirrors this secondary spawned, as opposed to map actors it reused (traffic lights, the spectator): only these may be swept.

Definition at line 62 of file FrameData.h.

Referenced by FFrameData::PlayFrameData(), and Reset().

◆ DisabledObjects

std::optional<std::vector<uint64_t> > FMirrorState::DisabledObjects

The environment objects the primary has disabled (sorted), once a frame said so, and the registration of this server's objects they were last applied to: one in a map layer still streaming in is disabled once it is registered.

Definition at line 76 of file FrameData.h.

Referenced by FFrameData::PlayWorldState(), and Reset().

◆ DisabledObjectsRegistrations

uint64 FMirrorState::DisabledObjectsRegistrations = 0u

Definition at line 77 of file FrameData.h.

Referenced by FFrameData::PlayWorldState(), and Reset().

◆ PendingParents

std::vector<std::pair<uint32_t, uint32_t> > FMirrorState::PendingParents

Attachments not replayed yet, as (child, parent) primary ids: one of the two is not mirrored yet.

Definition at line 66 of file FrameData.h.

Referenced by FFrameData::PlayFrameData(), and Reset().

◆ PlayedPoses

std::vector<std::pair<uint32_t, FTransform> > FMirrorState::PlayedPoses

The poses the last frame played set, by local id, to check before the capture that nothing moved a mirror in between.

Definition at line 70 of file FrameData.h.

Referenced by FFrameData::PlayPositions(), Reset(), and FCarlaEngine::RestorePlayedPoses().


The documentation for this struct was generated from the following file: