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

Error in catkin_make #4

Open
darkyrs opened this issue Apr 12, 2022 · 3 comments
Open

Error in catkin_make #4

darkyrs opened this issue Apr 12, 2022 · 3 comments

Comments

@darkyrs
Copy link

darkyrs commented Apr 12, 2022

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!

@Hello-Water
Copy link

@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...

@Alwen-V
Copy link

Alwen-V commented Nov 19, 2023

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
Copy link

Alwen-V commented Dec 4, 2023

@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

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

3 participants