From e83179a6a4505da3d08a1bec2391bcaa78b3d794 Mon Sep 17 00:00:00 2001 From: Mikolaj Walukiewicz Date: Thu, 22 Apr 2021 08:22:47 +0200 Subject: [PATCH] remove std::ref wrappers --- src/KimeraVioRos.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/KimeraVioRos.cpp b/src/KimeraVioRos.cpp index 68fb81d..dd6343c 100644 --- a/src/KimeraVioRos.cpp +++ b/src/KimeraVioRos.cpp @@ -121,15 +121,15 @@ bool KimeraVioRos::spin() { std::future data_provider_handle = std::async(std::launch::async, &VIO::RosDataProviderInterface::spin, - std::ref(*CHECK_NOTNULL(data_provider_.get()))); + CHECK_NOTNULL(data_provider_.get())); std::future vio_viz_handle = std::async(std::launch::async, &VIO::Pipeline::spinViz, - std::ref(*CHECK_NOTNULL(vio_pipeline_.get()))); + CHECK_NOTNULL(vio_pipeline_.get())); std::future vio_pipeline_handle = std::async(std::launch::async, &VIO::Pipeline::spin, - std::ref(*CHECK_NOTNULL(vio_pipeline_.get()))); + CHECK_NOTNULL(vio_pipeline_.get())); // Run while ROS is ok and vio pipeline is not shutdown. ros::Rate rate(20); // 20 Hz while (ros::ok() && !restart_vio_pipeline_) {