CARLA
Loading...
Searching...
No Matches
SensorStates Struct Reference

Frame data packet 27, for the sensors of packet 26 that carry state. More...

#include <sensorSync.h>

Public Types

enum  Field : uint8_t {
  kRandomEngine = 1u , kLidarHorizontalAngle = 2u , kImuHistory = 3u , kRadarPreviousLocation = 4u ,
  kImuLocalRotation = 5u
}
 Field kinds; a reader skips the kinds it does not know. More...

Public Member Functions

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

Public Attributes

std::vector< SensorState > states

Static Public Attributes

static constexpr uint8_t kPacketId = 27u

Static Private Member Functions

template<typename T>
static std::string Bytes (const T &value)
static bool ReadVector (BoundedReader &reader, std::array< double, 3 > &vector)
static void WriteVector (std::ostream &out, const std::array< double, 3 > &vector)

Detailed Description

Frame data packet 27, for the sensors of packet 26 that carry state.

Definition at line 108 of file sensorSync.h.

Member Enumeration Documentation

◆ Field

Field kinds; a reader skips the kinds it does not know.

Enumerator
kRandomEngine 
kLidarHorizontalAngle 
kImuHistory 
kRadarPreviousLocation 
kImuLocalRotation 

Definition at line 113 of file sensorSync.h.

Member Function Documentation

◆ Bytes()

template<typename T>
std::string carla::multigpu::SensorStates::Bytes ( const T & value)
inlinestaticprivate

Definition at line 231 of file sensorSync.h.

◆ Read()

bool carla::multigpu::SensorStates::Read ( std::istream & in,
uint32_t size )
inline

Definition at line 159 of file sensorSync.h.

◆ ReadVector()

bool carla::multigpu::SensorStates::ReadVector ( BoundedReader & reader,
std::array< double, 3 > & vector )
inlinestaticprivate

Definition at line 243 of file sensorSync.h.

◆ Write()

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

Definition at line 123 of file sensorSync.h.

◆ WriteVector()

void carla::multigpu::SensorStates::WriteVector ( std::ostream & out,
const std::array< double, 3 > & vector )
inlinestaticprivate

Definition at line 237 of file sensorSync.h.

Member Data Documentation

◆ kPacketId

uint8_t carla::multigpu::SensorStates::kPacketId = 27u
staticconstexpr

Definition at line 110 of file sensorSync.h.

◆ states

Definition at line 121 of file sensorSync.h.


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