CARLA
Loading...
Searching...
No Matches
carla::multigpu::SensorTicks Struct Reference

Frame data packet 26: every sensor of the primary that ticks in this frame. More...

#include <sensorSync.h>

Public Member Functions

bool Read (std::istream &in, uint32_t size)
void Write (std::ostream &out) const

Public Attributes

std::vector< SensorTick > ticks

Static Public Attributes

static constexpr uint8_t kPacketId = 26u
static constexpr uint16_t kRecordSizeV1 = 8u

Detailed Description

Frame data packet 26: every sensor of the primary that ticks in this frame.

A secondary's mirrors tick on exactly these frames, with these deltas, whatever their own tick interval says, so their sensor_tick phase is the primary's even if they were created later. Written on every frame, even when empty.

Definition at line 34 of file sensorSync.h.

Member Function Documentation

◆ Read()

◆ Write()

void carla::multigpu::SensorTicks::Write ( std::ostream & out) const
inline

Member Data Documentation

◆ kPacketId

uint8_t carla::multigpu::SensorTicks::kPacketId = 26u
staticconstexpr

Definition at line 36 of file sensorSync.h.

Referenced by Write().

◆ kRecordSizeV1

uint16_t carla::multigpu::SensorTicks::kRecordSizeV1 = 8u
staticconstexpr

Definition at line 38 of file sensorSync.h.

Referenced by Read(), and Write().

◆ ticks

std::vector<SensorTick> carla::multigpu::SensorTicks::ticks

Definition at line 40 of file sensorSync.h.

Referenced by FFrameData::AddSensorTick(), FFrameData::Clear(), Read(), TEST(), TEST(), and Write().


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