CARLA
 
载入中...
搜索中...
未找到
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
15
16template <typename T>
17template <typename SensorT>
19 const SensorT &Sensor,
20 double Timestamp,
21 StreamType InStream)
22 : Stream(std::move(InStream)),
23 Header([&Sensor, Timestamp]() {
24 //check(IsInGameThread());
26 return Serializer::Serialize(
27 carla::sensor::SensorRegistry::template get<SensorT*>::index,
29 Timestamp,
30 Sensor.GetActorTransform());
31 }()) {}
FAsyncDataStreamTmpl(FAsyncDataStreamTmpl &&)=default
static uint64_t GetFrameCounter()
Definition CarlaEngine.h:65
Serializes the meta-information (header) sent with all the sensor data.