CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
sensor
s11n
ObstacleDetectionEventSerializer.cpp
浏览该文件的文档.
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
#include "
carla/sensor/data/ObstacleDetectionEvent.h
"
8
#include "
carla/sensor/s11n/ObstacleDetectionEventSerializer.h
"
9
10
namespace
carla
{
11
namespace
sensor {
12
namespace
s11n {
13
14
SharedPtr<SensorData>
ObstacleDetectionEventSerializer::Deserialize
(
RawData
&&data) {
15
return
SharedPtr<SensorData>
(
new
data::ObstacleDetectionEvent
(std::move(data)));
16
}
17
18
}
// namespace s11n
19
}
// namespace sensor
20
}
// namespace carla
ObstacleDetectionEventSerializer.h
ObstacleDetectionEvent.h
carla::sensor::RawData
包装一个传感器生成的原始数据以及一些有用的元信息。
Definition
RawData.h:20
carla::sensor::data::ObstacleDetectionEvent
Definition
ObstacleDetectionEvent.h:20
carla::sensor::s11n::ObstacleDetectionEventSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
ObstacleDetectionEventSerializer.cpp:14
carla
CARLA模拟器的主命名空间。
Definition
Carla.cpp:139
carla::SharedPtr
boost::shared_ptr< T > SharedPtr
使用这个SharedPtr(boost::shared_ptr)以保持与boost::python的兼容性, 但未来如果可能的话,我们希望能为std::shared_ptr制作一个Python适配器。
Definition
Memory.h:19
制作者
1.10.0