CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carla::rpc::CustomV2XBytes Class Reference

Fixed-size binary payload carried by the custom V2X sensor (sensor.other.v2x_custom). More...

#include <CustomV2XBytes.h>

Public Member Functions

uint8_t max_data_size () const
 
 MSGPACK_DEFINE_ARRAY (data_size, bytes)
 

Public Attributes

std::array< unsigned char, 100 > bytes {}
 
uint8_t data_size {0u}
 

Detailed Description

Fixed-size binary payload carried by the custom V2X sensor (sensor.other.v2x_custom).

The blob is capped at 100 bytes.

Definition at line 19 of file CustomV2XBytes.h.

Member Function Documentation

◆ max_data_size()

uint8_t carla::rpc::CustomV2XBytes::max_data_size ( ) const
inline

Definition at line 22 of file CustomV2XBytes.h.

References bytes.

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::CustomV2XBytes::MSGPACK_DEFINE_ARRAY ( data_size  ,
bytes   
)

Member Data Documentation

◆ bytes

std::array<unsigned char, 100> carla::rpc::CustomV2XBytes::bytes {}

Definition at line 27 of file CustomV2XBytes.h.

Referenced by max_data_size().

◆ data_size

uint8_t carla::rpc::CustomV2XBytes::data_size {0u}

Definition at line 26 of file CustomV2XBytes.h.

Referenced by TEST(), and TEST().


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