VIDO-SLAM icon indicating copy to clipboard operation
VIDO-SLAM copied to clipboard

Error in catkin_make

Open darkyrs opened this issue 2 years ago • 3 comments

This error was reported when catkin_make

[ 91%] Built target mono_depth2_generate_messages In file included from /usr/include/c++/9/bits/locale_conv.h:41, from /usr/include/c++/9/locale:43, from /usr/include/c++/9/iomanip:43, from /usr/include/boost/math/policies/error_handling.hpp:12, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/noetic/include/ros/time.h:58, from /opt/ros/noetic/include/ros/ros.h:38, from /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/src/run_vido.cc:1: /usr/include/c++/9/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = VIDO_SLAM::System; _Args = {std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, VIDO_SLAM::System::eSensor}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<VIDO_SLAM::System>]’: /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/src/run_vido.cc:275:90: required from here /usr/include/c++/9/bits/unique_ptr.h:857:30: error: no matching function for call to ‘VIDO_SLAM::System::System(std::__cxx11::basic_string&, VIDO_SLAM::System::eSensor)’ 857 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/src/run_vido.cc:17: /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:85:5: note: candidate: ‘VIDO_SLAM::System::System()’ 85 | System(){}; | ^~~~~~ /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:85:5: note: candidate expects 0 arguments, 2 provided /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:72:7: note: candidate: ‘constexpr VIDO_SLAM::System::System(const VIDO_SLAM::System&)’ 72 | class System | ^~~~~~ /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:72:7: note: candidate expects 1 argument, 2 provided /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:72:7: note: candidate: ‘constexpr VIDO_SLAM::System::System(VIDO_SLAM::System&&)’ /home/dzb/ROS/VIDO-SLAM/src/realtime_demo/../../vido_slam/include/System.h:72:7: note: candidate expects 1 argument, 2 provided

Could you give me some advice?Thanks!

darkyrs avatar Apr 12 '22 01:04 darkyrs

@darkyrs In "vido_slam/include/System.h", where the class "System" is defined, there is just an empty construct function "System(){}", but in "run_vido.cc", where the class "System" is instantiated, it provides two arguments. Considering the "init" member function in the class "system", So I made thte following change: " vido_system_ = std::make_unique<VIDO_SLAM::System>(); vido_system_->Init(config_file,VIDO_SLAM::System::RGBD); " This will solve the above problem, but there will be other problems about "networks" and multithreading...

Hello-Water avatar Jul 14 '22 03:07 Hello-Water

I have encountered the same problem. I want to know how this problem came about, and how can I solve it completely?Pray for your help.@Hello-Water @darkyrs

Alwen-V avatar Nov 19 '23 10:11 Alwen-V

@Hello-Water

@darkyrs In "vido_slam/include/System.h", where the class "System" is defined, there is just an empty construct function "System(){}", but in "run_vido.cc", where the class "System" is instantiated, it provides two arguments. Considering the "init" member function in the class "system", So I made thte following change: " vido_system_ = std::make_unique<VIDO_SLAM::System>(); vido_system_->Init(config_file,VIDO_SLAM::System::RGBD); " This will solve the above problem, but there will be other problems about "networks" and multithreading...

Hello, I'm sorry to bother you, but I still want to ask you if you have solved this problem. At present, I have successfully run all three networks, but demo node still can't run perfectly, that is, I need to annotate all the contents about slam in the run_vido.cc file to run three networks. I think the changes you suggested can be compiled successfully, but they can't run successfully, which makes me very upset. I hope you can read this reply and help me, thank you very much ~ @Hello-Water

Alwen-V avatar Dec 04 '23 13:12 Alwen-V