CARLA
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Member Functions | List of all members
carla::multigpu::MirroredVehicleParts Struct Reference

Frame data packet 32, every frame: the moving parts of every vehicle. More...

#include <mirrorPackets.h>

Public Types

enum  Field : uint8_t { kWheels = 1u , kOpenDoors = 2u , kDrivetrain = 3u }
 

Public Member Functions

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

Public Attributes

std::vector< VehicleParts > vehicles
 

Static Public Attributes

static constexpr uint16_t kDoorRecordSizeV1 = 1u + 3u * 8u + 4u * 8u
 
static constexpr uint8_t kPacketId = 32u
 
static constexpr uint16_t kWheelRecordSizeV1 = 12u
 

Static Private Member Functions

template<typename T , typename F >
static bool ReadList (BoundedReader &value, uint16_t min_record_size, std::vector< T > &out, F &&read)
 

Detailed Description

Frame data packet 32, every frame: the moving parts of every vehicle.

Definition at line 120 of file mirrorPackets.h.

Member Enumeration Documentation

◆ Field

Enumerator
kWheels 
kOpenDoors 
kDrivetrain 

Definition at line 124 of file mirrorPackets.h.

Member Function Documentation

◆ Read()

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

◆ ReadList()

template<typename T , typename F >
static bool carla::multigpu::MirroredVehicleParts::ReadList ( BoundedReader &  value,
uint16_t  min_record_size,
std::vector< T > &  out,
F &&  read 
)
inlinestaticprivate

◆ Write()

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

Member Data Documentation

◆ kDoorRecordSizeV1

constexpr uint16_t carla::multigpu::MirroredVehicleParts::kDoorRecordSizeV1 = 1u + 3u * 8u + 4u * 8u
staticconstexpr

Definition at line 132 of file mirrorPackets.h.

Referenced by Write().

◆ kPacketId

constexpr uint8_t carla::multigpu::MirroredVehicleParts::kPacketId = 32u
staticconstexpr

Definition at line 122 of file mirrorPackets.h.

Referenced by TEST(), and Write().

◆ kWheelRecordSizeV1

constexpr uint16_t carla::multigpu::MirroredVehicleParts::kWheelRecordSizeV1 = 12u
staticconstexpr

Definition at line 130 of file mirrorPackets.h.

Referenced by Write().

◆ vehicles

std::vector<VehicleParts> carla::multigpu::MirroredVehicleParts::vehicles

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