CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
rpc
CustomV2XBytes.h
Go to the documentation of this file.
1
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include "
carla/MsgPack.h
"
10
11
#include <array>
12
#include <cstdint>
13
14
namespace
carla
{
15
namespace
rpc
{
16
17
/// Fixed-size binary payload carried by the custom V2X sensor
18
/// (sensor.other.v2x_custom). The blob is capped at 100 bytes.
19
class
CustomV2XBytes
{
20
public
:
21
22
uint8_t
max_data_size
()
const
{
23
return
static_cast<
uint8_t
>
(
bytes
.max_size());
24
}
25
26
uint8_t
data_size
{0u};
27
std::array<unsigned char, 100>
bytes
{};
28
29
MSGPACK_DEFINE_ARRAY
(
data_size
,
bytes
);
30
};
31
32
}
// namespace rpc
33
}
// namespace carla
MsgPack.h
carla::rpc::CustomV2XBytes
Fixed-size binary payload carried by the custom V2X sensor (sensor.other.v2x_custom).
Definition
CustomV2XBytes.h:19
carla::rpc::CustomV2XBytes::max_data_size
uint8_t max_data_size() const
Definition
CustomV2XBytes.h:22
carla::rpc::CustomV2XBytes::data_size
uint8_t data_size
Definition
CustomV2XBytes.h:26
carla::rpc::CustomV2XBytes::bytes
std::array< unsigned char, 100 > bytes
Definition
CustomV2XBytes.h:27
carla::rpc::CustomV2XBytes::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(data_size, bytes)
carla::rpc
Definition
DebugShapeDrawer.h:11
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
Generated by
1.18.0