Skip to content
Snippets Groups Projects
Commit 7fb34a1e authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix incorrect vision timestamp

parent 9d4d3445
No related branches found
No related tags found
No related merge requests found
Pipeline #26979 passed
......@@ -275,6 +275,7 @@ void StereoVideoSource::updateParameters() {
}
bool StereoVideoSource::capture(int64_t ts) {
capts_ = timestamp_;
timestamp_ = ts;
lsrc_->grab();
return true;
......@@ -338,7 +339,7 @@ bool StereoVideoSource::compute(int n, int b) {
if (!frame.hasChannel(Channel::Left)) { return false; }
}
host_->notify(timestamp_, frame);
host_->notify(capts_, frame);
return true;
}
......
......@@ -38,6 +38,7 @@ class StereoVideoSource : public detail::Source {
LocalSource *lsrc_;
Calibrate *calib_;
int64_t capts_;
cv::Size color_size_;
cv::Size depth_size_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment