CARLA
 
载入中...
搜索中...
未找到
NoopSerializer.h
浏览该文件的文档.
1// Copyright (c) 2017 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/Memory.h"
11
12#include <cstdint>
13#include <cstring>
14
15namespace carla {
16namespace sensor {
17
18 class SensorData;
19
20namespace s11n {
21
22 /// Dummy serializer that blocks all the data. Use it as serializer for
23 /// client-side sensors that do not send any data.
25 public:
26
27 [[ noreturn ]] static SharedPtr<SensorData> Deserialize(RawData &&data);
28 };
29
30} // namespace s11n
31} // namespace sensor
32} // namespace carla
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition RawData.h:21
Dummy serializer that blocks all the data.
static SharedPtr< SensorData > Deserialize(RawData &&data)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
Definition Memory.h:20