Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kimera_vio_ros catkin build error #138

Closed
mikwaluk opened this issue Apr 20, 2021 · 1 comment
Closed

kimera_vio_ros catkin build error #138

mikwaluk opened this issue Apr 20, 2021 · 1 comment

Comments

@mikwaluk
Copy link

mikwaluk commented Apr 20, 2021

Description:
Hi, I'm trying to compile the kimera_vio_ros package from the master branch, but currently keep getting an error that I'm not able to fix by myself.

I would appreciate your support!

My g++ version is g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

Command:

catkin build

Console output:


Errors     << kimera_vio_ros:make /home/mikolaj/catkin_ws/logs/kimera_vio_ros/build.make.001.log                                                                                                                             
<command-line>:0:15: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:15: warning: ISO C++11 requires whitespace after the macro name
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp: In member function ‘bool VIO::KimeraVioRos::spin()’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:124:66: error: no matching function for call to ‘async(std::launch, bool (VIO::DataProviderInterface::*)(), std::reference_wrapper<VIO::RosDataProviderInterface>)’
                    std::ref(*CHECK_NOTNULL(data_provider_.get())));
                                                                  ^
In file included from /home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:9:0:
/usr/include/c++/5/future:1703:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...)
     async(launch __policy, _Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1703:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...) [with _Fn = bool (VIO::DataProviderInterface::*)(); _Args = {std::reference_wrapper<VIO::RosDataProviderInterface>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:124:66:   required from here
/usr/include/c++/5/future:1703:5: error: no type named ‘type’ in ‘class std::result_of<bool (VIO::DataProviderInterface::*(std::reference_wrapper<VIO::RosDataProviderInterface>))()>’
/usr/include/c++/5/future:1723:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...)
     async(_Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1723:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...) [with _Fn = std::launch; _Args = {bool (VIO::DataProviderInterface::*)(), std::reference_wrapper<VIO::RosDataProviderInterface>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:124:66:   required from here
/usr/include/c++/5/future:1723:5: error: no type named ‘type’ in ‘class std::result_of<std::launch(bool (VIO::DataProviderInterface::*)(), std::reference_wrapper<VIO::RosDataProviderInterface>)>’
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:128:65: error: no matching function for call to ‘async(std::launch, bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>)’
                    std::ref(*CHECK_NOTNULL(vio_pipeline_.get())));
                                                                 ^
In file included from /home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:9:0:
/usr/include/c++/5/future:1703:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...)
     async(launch __policy, _Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1703:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...) [with _Fn = bool (VIO::Pipeline::*)(); _Args = {std::reference_wrapper<VIO::Pipeline>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:128:65:   required from here
/usr/include/c++/5/future:1703:5: error: no type named ‘type’ in ‘class std::result_of<bool (VIO::Pipeline::*(std::reference_wrapper<VIO::Pipeline>))()>’
/usr/include/c++/5/future:1723:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...)
     async(_Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1723:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...) [with _Fn = std::launch; _Args = {bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:128:65:   required from here
/usr/include/c++/5/future:1723:5: error: no type named ‘type’ in ‘class std::result_of<std::launch(bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>)>’
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:132:65: error: no matching function for call to ‘async(std::launch, bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>)’
                    std::ref(*CHECK_NOTNULL(vio_pipeline_.get())));
                                                                 ^
In file included from /home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:9:0:
/usr/include/c++/5/future:1703:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...)
     async(launch __policy, _Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1703:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(std::launch, _Fn&&, _Args&& ...) [with _Fn = bool (VIO::Pipeline::*)(); _Args = {std::reference_wrapper<VIO::Pipeline>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:132:65:   required from here
/usr/include/c++/5/future:1703:5: error: no type named ‘type’ in ‘class std::result_of<bool (VIO::Pipeline::*(std::reference_wrapper<VIO::Pipeline>))()>’
/usr/include/c++/5/future:1723:5: note: candidate: template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...)
     async(_Fn&& __fn, _Args&&... __args)
     ^
/usr/include/c++/5/future:1723:5: note:   template argument deduction/substitution failed:
/usr/include/c++/5/future: In substitution of ‘template<class _Fn, class ... _Args> std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> std::async(_Fn&&, _Args&& ...) [with _Fn = std::launch; _Args = {bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>}]’:
/home/mikolaj/catkin_ws/src/Kimera-VIO-ROS/src/KimeraVioRos.cpp:132:65:   required from here
/usr/include/c++/5/future:1723:5: error: no type named ‘type’ in ‘class std::result_of<std::launch(bool (VIO::Pipeline::*)(), std::reference_wrapper<VIO::Pipeline>)>’
<command-line>:0:15: warning: ISO C++11 requires whitespace after the macro name
make[2]: *** [CMakeFiles/kimera_vio_ros.dir/src/KimeraVioRos.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/kimera_vio_ros.dir/all] Error 2
make: *** [all] Error 2
  • KimeraVIO branch, tag or commit used: master, commit hash 41bc7b8b691c0b23019ca591a56d9ab68bdbd571
  • GTSAM version used: develop, commit hash e9202b836f9415353687941b1c4063fa2c34a4d7
  • OpenGV version used: master, commit hash 91f4b19c73450833a40e463ad3648aae80b3a7f3
  • OpenCV version used: 3.3.1-dev
  • Operating system and version: Ubuntu 16.04
  • Did you change the source code? no
@mikwaluk
Copy link
Author

Closing because I figured out how to fix it (#137 (comment))

suuman pushed a commit to suuman/Kimera-VIO-ROS that referenced this issue Jun 25, 2021
ToniRV added a commit that referenced this issue Jul 24, 2021
ToniRV added a commit that referenced this issue Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant