|
CARLA
|
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 |
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.
|
inline |
Definition at line 52 of file sensorSync.h.
References carla::multigpu::SensorTick::actor_id, carla::multigpu::SensorTick::delta_seconds, kRecordSizeV1, carla::multigpu::BoundedReader::Read(), carla::multigpu::BoundedReader::ReadFixedListHeader(), carla::multigpu::BoundedReader::ReadRecord(), and ticks.
Referenced by FFrameData::Read(), TEST(), and TEST().
|
inline |
Definition at line 42 of file sensorSync.h.
References kPacketId, kRecordSizeV1, ticks, carla::multigpu::WriteFixedListHeader(), carla::multigpu::WriteFrameDataHeader(), and carla::multigpu::detail::WritePod().
Referenced by TEST(), TEST(), and FFrameData::Write().
|
staticconstexpr |
Definition at line 36 of file sensorSync.h.
|
staticconstexpr |
Definition at line 38 of file sensorSync.h.
| 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().