CARLA
Loading...
Searching...
No Matches
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
14namespace carla {
15namespace 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.
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
30 };
31
32} // namespace rpc
33} // namespace carla
Fixed-size binary payload carried by the custom V2X sensor (sensor.other.v2x_custom).
uint8_t max_data_size() const
std::array< unsigned char, 100 > bytes
MSGPACK_DEFINE_ARRAY(data_size, bytes)
This file contains definitions of common data structures used in traffic manager.