From 1a51e4bbdaf865fb44f894ccde3c60b2ca945cb2 Mon Sep 17 00:00:00 2001 From: Mateo de Mayo Date: Mon, 1 Aug 2022 12:56:36 -0300 Subject: [PATCH] Fix compilation with librealsense, closes #5 --- src/rs_t265_vio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rs_t265_vio.cpp b/src/rs_t265_vio.cpp index 589101b..b5fd12e 100644 --- a/src/rs_t265_vio.cpp +++ b/src/rs_t265_vio.cpp @@ -391,13 +391,13 @@ void draw_image_overlay(pangolin::View& v, size_t cam_id) { glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - if (curr_vis_data.get() && cam_id < curr_vis_data->projections.size()) { - const auto& points = curr_vis_data->projections[cam_id]; + if (curr_vis_data.get() && cam_id < curr_vis_data->projections->size()) { + const auto& points = curr_vis_data->projections->at(cam_id); if (!points.empty()) { double min_id = points[0][2], max_id = points[0][2]; - for (const auto& points2 : curr_vis_data->projections) + for (const auto& points2 : *curr_vis_data->projections) for (const auto& p : points2) { min_id = std::min(min_id, p[2]); max_id = std::max(max_id, p[2]);