fix(slam): compatible with old version okvis,orbslam

This commit is contained in:
TinyOh 2019-01-04 12:01:30 +08:00
parent 611468ad90
commit 3e5a56cc5d
2 changed files with 10 additions and 0 deletions

View File

@ -269,6 +269,12 @@ class MYNTEYE_API Device {
* Get the latest data of stream.
*/
device::StreamData GetStreamData(const Stream &stream);
/**
* @deprecated Replaced by GetStreamData(const Stream &stream)
*/
device::StreamData GetLatestStreamData(const Stream &stream);
/**
* Get the datas of stream.
* @note default cache 4 datas at most.

View File

@ -451,6 +451,10 @@ device::StreamData Device::GetStreamData(const Stream &stream) {
return streams_->GetLatestStreamData(stream);
}
device::StreamData Device::GetLatestStreamData(const Stream &stream) {
GetStreamData(stream);
}
std::vector<device::StreamData> Device::GetStreamDatas(const Stream &stream) {
CHECK(video_streaming_);
CHECK_NOTNULL(streams_);