CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Sensor
AsyncDataStreamImpl.h
浏览该文件的文档.
1
// Copyright (c) 2020 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
// Note: AsyncDataStream.h has a circular dependency with Game/CarlaEngine.h.
8
// You should not have to include this file directly (CarlaEngine.h includes it
9
// at the appropriate place.)
10
11
#pragma once
12
13
#include "
Carla/Game/CarlaEngine.h
"
14
#include "
Carla/Sensor/AsyncDataStream.h
"
15
16
template
<
typename
T>
17
template
<
typename
SensorT>
18
inline
FAsyncDataStreamTmpl<T>::FAsyncDataStreamTmpl
(
19
const
SensorT &Sensor,
20
double
Timestamp,
21
StreamType
InStream)
22
: Stream(
std
::move(InStream)),
23
Header([&Sensor, Timestamp]() {
24
//check(IsInGameThread());
25
using
Serializer =
carla::sensor::s11n::SensorHeaderSerializer
;
26
return
Serializer::Serialize(
27
carla::sensor::SensorRegistry::template get<SensorT*>::index,
28
FCarlaEngine::GetFrameCounter
(),
29
Timestamp,
30
Sensor.GetActorTransform());
31
}()) {}
AsyncDataStream.h
CarlaEngine.h
FAsyncDataStreamTmpl::FAsyncDataStreamTmpl
FAsyncDataStreamTmpl(FAsyncDataStreamTmpl &&)=default
FAsyncDataStreamTmpl::StreamType
T StreamType
Definition
AsyncDataStream.h:39
FCarlaEngine::GetFrameCounter
static uint64_t GetFrameCounter()
Definition
CarlaEngine.h:65
carla::sensor::s11n::SensorHeaderSerializer
Serializes the meta-information (header) sent with all the sensor data.
Definition
SensorHeaderSerializer.h:17
std
Definition
CarlaRecorderCollision.h:31
制作者
1.10.0