Skip to content

Commit

Permalink
remove std::ref wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Walukiewicz committed Apr 22, 2021
1 parent d6bad10 commit e83179a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/KimeraVioRos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ bool KimeraVioRos::spin() {
std::future<bool> 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<bool> 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<bool> 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_) {
Expand Down

0 comments on commit e83179a

Please sign in to comment.