CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
sensor
s11n
NoopSerializer.cpp
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
#include "
carla/sensor/s11n/NoopSerializer.h
"
8
9
#include "
carla/Exception.h
"
10
11
namespace
carla
{
12
namespace
sensor
{
13
namespace
s11n
{
14
15
SharedPtr<SensorData>
NoopSerializer::Deserialize
(
RawData
&&) {
16
throw_exception
(std::runtime_error(
"NoopSerializer: Invalid data received."
));
17
}
18
19
}
// namespace s11n
20
}
// namespace sensor
21
}
// namespace carla
Exception.h
NoopSerializer.h
carla::sensor::RawData
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition
RawData.h:21
carla::sensor::s11n::NoopSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
NoopSerializer.cpp:15
carla::sensor::s11n
Definition
ROS2.h:39
carla::sensor
Definition
client/detail/Client.h:58
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
carla::SharedPtr
std::shared_ptr< T > SharedPtr
Definition
Memory.h:15
carla::throw_exception
void throw_exception(const ExceptionT &e)
Templated on the static type so the thrown object keeps its dynamic type: taking a const std::excepti...
Definition
Exception.h:44
Generated by
1.18.0