sgzuccaro / moveit_tutorials

25 stars 9 forks source link

linking issue #1

Open kingstone1927 opened 2 years ago

kingstone1927 commented 2 years ago

I got this issue. It seems like it is the compiler issue, do you know how to fix it?

Linking CXX executable /home/irobotics/ws_moveit/devel/lib/reactor_control/reactor_hw_interface
[  3%] Built target rviz_visual_tools_remote_control_autogen
[  3%] Built target visualization_msgs_generate_messages_py
[  3%] Built target visualization_msgs_generate_messages_lisp
[  3%] Built target visualization_msgs_generate_messages_nodejs
[  3%] Built target visualization_msgs_generate_messages_eus
[  3%] Built target visualization_msgs_generate_messages_cpp
[  3%] Built target tf2_msgs_generate_messages_nodejs
[  3%] Built target tf2_msgs_generate_messages_lisp
[  3%] Built target tf2_msgs_generate_messages_eus
[  3%] Built target tf2_msgs_generate_messages_py
[  4%] Built target moveit_version
[  4%] Built target moveit_exceptions
[  4%] Built target moveit_profiler
[  4%] Built target moveit_background_processing
[  5%] Built target moveit_ros_planning_gencfg
[  5%] Built target gtest
[  5%] Built target moveit_planners_ompl_gencfg
[  5%] Built target std_srvs_generate_messages_py
[  5%] Built target std_srvs_generate_messages_nodejs
[  5%] Built target std_srvs_generate_messages_lisp
[  5%] Built target std_srvs_generate_messages_eus
[  5%] Built target std_srvs_generate_messages_cpp
[  5%] Built target nodelet_generate_messages_nodejs
[  5%] Built target moveit_ros_manipulation_gencfg
[  5%] Built target nodelet_generate_messages_cpp
[  5%] Built target bond_generate_messages_py
[  5%] Built target nodelet_generate_messages_eus
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `reactor_ns::ReactorHWInterface::ReactorHWInterface(ros::NodeHandle&, urdf::Model*)':
reactor_hw_interface.cpp:(.text+0x74): undefined reference to `ros_control_boilerplate::GenericHWInterface::GenericHWInterface(ros::NodeHandle const&, urdf::Model*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x1ae): undefined reference to `ros::Subscriber::~Subscriber()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x255): undefined reference to `ros::Publisher::~Publisher()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x277): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x287): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x2da): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x31a): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x326): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x382): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x43d): undefined reference to `ros::Publisher::~Publisher()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x452): undefined reference to `ros::Subscriber::~Subscriber()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `reactor_ns::ReactorHWInterface::init()':
reactor_hw_interface.cpp:(.text+0x5b9): undefined reference to `ros_control_boilerplate::GenericHWInterface::init()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x5c0): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x5d0): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x665): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x6bd): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x6c9): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text+0x725): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `reactor_ns::ReactorHWInterface::read(ros::Duration&)':
reactor_hw_interface.cpp:(.text+0x7bf): undefined reference to `ros::spinOnce()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `hardware_interface::RobotHW::checkForConflict(std::__cxx11::list<hardware_interface::ControllerInfo, std::allocator<hardware_interface::ControllerInfo> > const&) const':
reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x361): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x371): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x3c4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x404): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x410): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE[_ZNK18hardware_interface7RobotHW16checkForConflictERKNSt7__cxx114listINS_14ControllerInfoESaIS3_EEE]+0x48b): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `ros_control_boilerplate::GenericHWInterface::~GenericHWInterface()':
reactor_hw_interface.cpp:(.text._ZN23ros_control_boilerplate18GenericHWInterfaceD2Ev[_ZN23ros_control_boilerplate18GenericHWInterfaceD5Ev]+0x13): undefined reference to `vtable for ros_control_boilerplate::GenericHWInterface'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN23ros_control_boilerplate18GenericHWInterfaceD2Ev[_ZN23ros_control_boilerplate18GenericHWInterfaceD5Ev]+0x1a6): undefined reference to `ros::NodeHandle::~NodeHandle()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `ros::Subscriber ros::NodeHandle::subscribe<reactor_control::reactorTelemetry_<std::allocator<void> >, reactor_ns::ReactorHWInterface>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, void (reactor_ns::ReactorHWInterface::*)(boost::shared_ptr<reactor_control::reactorTelemetry_<std::allocator<void> > const> const&), reactor_ns::ReactorHWInterface*, ros::TransportHints const&)':
reactor_hw_interface.cpp:(.text._ZN3ros10NodeHandle9subscribeIN15reactor_control17reactorTelemetry_ISaIvEEEN10reactor_ns18ReactorHWInterfaceEEENS_10SubscriberERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjMT0_FvRKN5boost10shared_ptrIKT_EEEPSH_RKNS_14TransportHintsE[_ZN3ros10NodeHandle9subscribeIN15reactor_control17reactorTelemetry_ISaIvEEEN10reactor_ns18ReactorHWInterfaceEEENS_10SubscriberERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjMT0_FvRKN5boost10shared_ptrIKT_EEEPSH_RKNS_14TransportHintsE]+0x15a): undefined reference to `ros::NodeHandle::subscribe(ros::SubscribeOptions&)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `ros::Publisher ros::NodeHandle::advertise<reactor_control::armCmd_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)':
reactor_hw_interface.cpp:(.text._ZN3ros10NodeHandle9advertiseIN15reactor_control7armCmd_ISaIvEEEEENS_9PublisherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjb[_ZN3ros10NodeHandle9advertiseIN15reactor_control7armCmd_ISaIvEEEEENS_9PublisherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjb]+0x139): undefined reference to `ros::NodeHandle::advertise(ros::AdvertiseOptions&)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::Publisher::publish<reactor_control::armCmd_<std::allocator<void> > >(reactor_control::armCmd_<std::allocator<void> > const&) const':
reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x4b): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x5b): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0xae): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0xee): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0xfa): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x160): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x16b): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x17b): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x1ce): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x20e): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x21a): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x272): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x27d): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x28d): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x2e0): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x320): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x32c): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x384): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x3a5): undefined reference to `ros::Publisher::Impl::isValid() const'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x3b7): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x3c7): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x41a): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x45a): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x466): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x4cc): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x4d7): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x4e7): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x53a): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x57a): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x586): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x5f5): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x600): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x610): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x663): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x6a3): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x6af): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x707): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x815): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x825): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x878): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x8b7): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x8c3): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0x9a2): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN15reactor_control7armCmd_ISaIvEEEEEvRKT_]+0xa35): undefined reference to `ros::Publisher::publish(boost::function<ros::SerializedMessage ()> const&, ros::SerializedMessage&) const'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::serialization::Serializer<unsigned int>::write<ros::serialization::OStream>(ros::serialization::OStream&, unsigned int)':
reactor_hw_interface.cpp:(.text._ZN3ros13serialization10SerializerIjE5writeINS0_7OStreamEEEvRT_j[_ZN3ros13serialization10SerializerIjE5writeINS0_7OStreamEEEvRT_j]+0x56): undefined reference to `ros::serialization::throwStreamOverrun()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::serialization::ArraySerializer<float, 6ul, void>::write<ros::serialization::OStream>(ros::serialization::OStream&, boost::array<float, 6ul> const&)':
reactor_hw_interface.cpp:(.text._ZN3ros13serialization15ArraySerializerIfLm6EvE5writeINS0_7OStreamEEEvRT_RKN5boost5arrayIfLm6EEE[_ZN3ros13serialization15ArraySerializerIfLm6EvE5writeINS0_7OStreamEEEvRT_RKN5boost5arrayIfLm6EEE]+0x6e): undefined reference to `ros::serialization::throwStreamOverrun()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o:(.data.rel.ro._ZTVN10reactor_ns18ReactorHWInterfaceE[_ZTVN10reactor_ns18ReactorHWInterfaceE]+0x78): undefined reference to `ros_control_boilerplate::GenericHWInterface::reset()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o:(.data.rel.ro._ZTVN10reactor_ns18ReactorHWInterfaceE[_ZTVN10reactor_ns18ReactorHWInterfaceE]+0x88): undefined reference to `ros_control_boilerplate::GenericHWInterface::registerJointLimits(hardware_interface::JointHandle const&, hardware_interface::JointHandle const&, hardware_interface::JointHandle const&, unsigned long)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o:(.data.rel.ro._ZTVN10reactor_ns18ReactorHWInterfaceE[_ZTVN10reactor_ns18ReactorHWInterfaceE]+0x98): undefined reference to `ros_control_boilerplate::GenericHWInterface::printState()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o:(.data.rel.ro._ZTVN10reactor_ns18ReactorHWInterfaceE[_ZTVN10reactor_ns18ReactorHWInterfaceE]+0xa0): undefined reference to `ros_control_boilerplate::GenericHWInterface::loadURDF(ros::NodeHandle const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `reactor_ns::ReactorHWInterface::~ReactorHWInterface()':
reactor_hw_interface.cpp:(.text._ZN10reactor_ns18ReactorHWInterfaceD2Ev[_ZN10reactor_ns18ReactorHWInterfaceD5Ev]+0x2c): undefined reference to `ros::Publisher::~Publisher()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN10reactor_ns18ReactorHWInterfaceD2Ev[_ZN10reactor_ns18ReactorHWInterfaceD5Ev]+0x3e): undefined reference to `ros::Subscriber::~Subscriber()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o:(.data.rel.ro._ZTIN10reactor_ns18ReactorHWInterfaceE[_ZTIN10reactor_ns18ReactorHWInterfaceE]+0x10): undefined reference to `typeinfo for ros_control_boilerplate::GenericHWInterface'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<reactor_control::reactorTelemetry_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x65): undefined reference to `ros::console::g_initialized'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x75): undefined reference to `ros::console::initialize()'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0xc2): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0xfe): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x10a): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: reactor_hw_interface.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN15reactor_control17reactorTelemetry_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x187): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::serialization::ArraySerializer<float, 6ul, void>::read<ros::serialization::IStream>(ros::serialization::IStream&, boost::array<float, 6ul>&)':
reactor_hw_interface.cpp:(.text._ZN3ros13serialization15ArraySerializerIfLm6EvE4readINS0_7IStreamEEEvRT_RN5boost5arrayIfLm6EEE[_ZN3ros13serialization15ArraySerializerIfLm6EvE4readINS0_7IStreamEEEvRT_RN5boost5arrayIfLm6EEE]+0x5f): undefined reference to `ros::serialization::throwStreamOverrun()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::serialization::Serializer<unsigned int>::read<ros::serialization::IStream>(ros::serialization::IStream&, unsigned int&)':
reactor_hw_interface.cpp:(.text._ZN3ros13serialization10SerializerIjE4readINS0_7IStreamEEEvRT_Rj[_ZN3ros13serialization10SerializerIjE4readINS0_7IStreamEEEvRT_Rj]+0x57): undefined reference to `ros::serialization::throwStreamOverrun()'
/usr/bin/ld: CMakeFiles/reactor_hw_interface.dir/src/reactor_hw_interface.cpp.o: in function `void ros::serialization::Serializer<unsigned char>::read<ros::serialization::IStream>(ros::serialization::IStream&, unsigned char&)':
reactor_hw_interface.cpp:(.text._ZN3ros13serialization10SerializerIhE4readINS0_7IStreamEEEvRT_Rh[_ZN3ros13serialization10SerializerIhE4readINS0_7IStreamEEEvRT_Rh]+0x57): undefined reference to `ros::serialization::throwStreamOverrun()'
collect2: error: ld returned 1 exit status
make[2]: *** [reactor_control/CMakeFiles/reactor_hw_interface.dir/build.make:97: /home/irobotics/ws_moveit/devel/lib/reactor_control/reactor_hw_interface] Error 1
make[1]: *** [CMakeFiles/Makefile2:10703: reactor_control/CMakeFiles/reactor_hw_interface.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  5%] Built target bond_generate_messages_nodejs
[  5%] Built target nodelet_generate_messages_lisp
[  5%] Built target bond_generate_messages_eus
make: *** [Makefile:146: all] Error 2
sgzuccaro commented 2 years ago

Do you have your code on GitHub where I could look at it? I can't determine the problem from the compiling output unfortunately.

kingstone1927 commented 2 years ago

Here is the link to the git repo of my project: https://github.com/kingstone1927/USTPhantomXArm/settings

Thanks so much!

sgzuccaro commented 2 years ago

It's hard to say where you problem is. In this type of situation I typically comment as much code as possible to reduce the possible causes. In your case id probably start with commenting out all executables in the reactor_control cmakelist so that those nodes aren't even compiled. And then slowly add them back.

kingstone1927 commented 2 years ago

That makes sense. I will start with that. In this,I used Ubuntu 20 and noedic ROS. Which versions did you use for OS and ROS?

sgzuccaro commented 2 years ago

I used Ubuntu 16.04 and ROS kinetic

kingstone1927 commented 2 years ago

Zuccaro, do you think we can get on a video call so you can help me troubleshoot the problem?

pupubuputeng commented 2 years ago

hello!I can catkin and launch sucessfully ,but the gripper missed.