Closed lhy0807 closed 2 years ago
Could anyone please help me with the following compilation error? Thanks!
I followed the compilation instruction step-by-step
Errors << planning_ros_utils:make /home/chris/agile_autonomy_ws/logs/planning_ros_utils/build.make.000.log /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `cloudCallback(boost::shared_ptr<topic_tools::ShapeShifter const> const&)': cloud_to_map.cpp:(.text+0x93b): undefined reference to `topic_tools::ShapeShifter::getDataType[abi:cxx11]() const' /usr/bin/ld: cloud_to_map.cpp:(.text+0x9b4): undefined reference to `topic_tools::ShapeShifter::getDataType[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<topic_tools::ShapeShifter const> const&, void>::getTypeInfo()': cloud_to_map.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11topic_tools12ShapeShifterEEEvE11getTypeInfoEv[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11topic_tools12ShapeShifterEEEvE11getTypeInfoEv]+0x3): undefined reference to `typeinfo for topic_tools::ShapeShifter' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `boost::detail::function::function_obj_invoker0<ros::DefaultMessageCreator<topic_tools::ShapeShifter>, boost::shared_ptr<topic_tools::ShapeShifter> >::invoke(boost::detail::function::function_buffer&)': cloud_to_map.cpp:(.text._ZN5boost6detail8function21function_obj_invoker0IN3ros21DefaultMessageCreatorIN11topic_tools12ShapeShifterEEENS_10shared_ptrIS6_EEE6invokeERNS1_15function_bufferE[_ZN5boost6detail8function21function_obj_invoker0IN3ros21DefaultMessageCreatorIN11topic_tools12ShapeShifterEEENS_10shared_ptrIS6_EEE6invokeERNS1_15function_bufferE]+0x56): undefined reference to `topic_tools::ShapeShifter::ShapeShifter()' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `boost::shared_ptr<sensor_msgs::PointCloud_<std::allocator<void> > > topic_tools::ShapeShifter::instantiate<sensor_msgs::PointCloud_<std::allocator<void> > >() const': cloud_to_map.cpp:(.text._ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs11PointCloud_ISaIvEEEEEN5boost10shared_ptrIT_EEv[_ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs11PointCloud_ISaIvEEEEEN5boost10shared_ptrIT_EEv]+0x3d): undefined reference to `topic_tools::ShapeShifter::getDataType[abi:cxx11]() const' /usr/bin/ld: cloud_to_map.cpp:(.text._ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs11PointCloud_ISaIvEEEEEN5boost10shared_ptrIT_EEv[_ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs11PointCloud_ISaIvEEEEEN5boost10shared_ptrIT_EEv]+0x5c): undefined reference to `topic_tools::ShapeShifter::getMD5Sum[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `boost::shared_ptr<sensor_msgs::PointCloud2_<std::allocator<void> > > topic_tools::ShapeShifter::instantiate<sensor_msgs::PointCloud2_<std::allocator<void> > >() const': cloud_to_map.cpp:(.text._ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs12PointCloud2_ISaIvEEEEEN5boost10shared_ptrIT_EEv[_ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs12PointCloud2_ISaIvEEEEEN5boost10shared_ptrIT_EEv]+0x3d): undefined reference to `topic_tools::ShapeShifter::getDataType[abi:cxx11]() const' /usr/bin/ld: cloud_to_map.cpp:(.text._ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs12PointCloud2_ISaIvEEEEEN5boost10shared_ptrIT_EEv[_ZNK11topic_tools12ShapeShifter11instantiateIN11sensor_msgs12PointCloud2_ISaIvEEEEEN5boost10shared_ptrIT_EEv]+0x5c): undefined reference to `topic_tools::ShapeShifter::getMD5Sum[abi:cxx11]() const' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `ros::serialization::PreDeserialize<topic_tools::ShapeShifter>::notify(ros::serialization::PreDeserializeParams<topic_tools::ShapeShifter> const&)': cloud_to_map.cpp:(.text._ZN3ros13serialization14PreDeserializeIN11topic_tools12ShapeShifterEE6notifyERKNS0_20PreDeserializeParamsIS3_EE[_ZN3ros13serialization14PreDeserializeIN11topic_tools12ShapeShifterEE6notifyERKNS0_20PreDeserializeParamsIS3_EE]+0x6b2): undefined reference to `topic_tools::ShapeShifter::morph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: CMakeFiles/cloud_to_map.dir/src/mapping_utils/cloud_to_map.cpp.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<topic_tools::ShapeShifter const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': cloud_to_map.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11topic_tools12ShapeShifterEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN11topic_tools12ShapeShifterEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x44a): undefined reference to `typeinfo for topic_tools::ShapeShifter' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cloud_to_map.dir/build.make:216: /home/chris/agile_autonomy_ws/devel/lib/planning_ros_utils/cloud_to_map] Error 1 make[1]: *** [CMakeFiles/Makefile2:2543: CMakeFiles/cloud_to_map.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/chris/agile_autonomy_ws/src/rpg_mpl_ros/planning_ros_utils/src/trajectory_writer.cpp: In function ‘void trajectory_writer::saveTrajectorytoCSV(const string&, const Trajectory&, double)’: /home/chris/agile_autonomy_ws/src/rpg_mpl_ros/planning_ros_utils/src/trajectory_writer.cpp:64:14: warning: variable ‘t0’ set but not used [-Wunused-but-set-variable] const auto t0 = ros::Time::now(); ^~ /usr/bin/ld: CMakeFiles/trajectory_extractor_node.dir/src/planning_utils/trajectory_extractor_node.cpp.o: in function `void rosbag::Bag::writeMessageDataRecord<planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > >(unsigned int, ros::Time const&, planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > const&)': trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x107): undefined reference to `rosbag::Bag::toHeaderString[abi:cxx11](ros::Time const*) const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x172): undefined reference to `rosbag::Buffer::setSize(unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x17a): undefined reference to `rosbag::Buffer::getData()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x3f7): undefined reference to `rosbag::Bag::seek(unsigned long, int) const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x40a): undefined reference to `rosbag::ChunkedFile::getOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x42d): undefined reference to `rosbag::Bag::getChunkOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x43f): undefined reference to `rosbag::ChunkedFile::getOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x480): undefined reference to `rosbag::Bag::writeHeader(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x492): undefined reference to `rosbag::Bag::writeDataLength(unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4a1): undefined reference to `rosbag::Buffer::getData()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4b3): undefined reference to `rosbag::Bag::write(char const*, long)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4c8): undefined reference to `rosbag::Bag::appendHeaderToBuffer(rosbag::Buffer&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4d6): undefined reference to `rosbag::Bag::appendDataLengthToBuffer(rosbag::Buffer&, unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4de): undefined reference to `rosbag::Buffer::getSize() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4ec): undefined reference to `rosbag::Buffer::getSize() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x4f9): undefined reference to `rosbag::Buffer::setSize(unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x501): undefined reference to `rosbag::Buffer::getData()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_[_ZN6rosbag3Bag22writeMessageDataRecordIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvjRKN3ros4TimeERKT_]+0x50c): undefined reference to `rosbag::Buffer::getData()' /usr/bin/ld: CMakeFiles/trajectory_extractor_node.dir/src/planning_utils/trajectory_extractor_node.cpp.o: in function `void rosbag::Bag::doWrite<planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time const&, planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > const&, boost::shared_ptr<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)': trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x206): undefined reference to `rosbag::Bag::seek(unsigned long, int) const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x20f): undefined reference to `rosbag::ChunkedFile::getOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x24d): undefined reference to `rosbag::Bag::getChunkOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x40a): undefined reference to `rosbag::Bag::getChunkOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x442): undefined reference to `rosbag::Bag::stopWritingChunk()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x450): undefined reference to `rosbag::Buffer::setSize(unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x58c): undefined reference to `rosbag::Bag::startWritingChunk(ros::Time)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x71b): undefined reference to `rosbag::Bag::writeConnectionRecord(rosbag::ConnectionInfo const*, bool)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0x72d): undefined reference to `rosbag::Bag::appendConnectionRecordToBuffer(rosbag::Buffer&, rosbag::ConnectionInfo const*)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0xa68): undefined reference to `rosbag::Bag::seek(unsigned long, int) const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0xa71): undefined reference to `rosbag::ChunkedFile::getOffset() const' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE[_ZN6rosbag3Bag7doWriteIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3ros4TimeERKT_RKN5boost10shared_ptrISt3mapISB_SB_St4lessISB_ESaISt4pairISC_SB_EEEEE]+0xa91): undefined reference to `rosbag::Bag::startWritingChunk(ros::Time)' /usr/bin/ld: CMakeFiles/trajectory_extractor_node.dir/src/planning_utils/trajectory_extractor_node.cpp.o: in function `void write_bag<planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<planning_ros_msgs::TrajectoryCommand_<std::allocator<void> >, std::allocator<planning_ros_msgs::TrajectoryCommand_<std::allocator<void> > > > const&)': trajectory_extractor_node.cpp:(.text._Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE[_Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE]+0x48): undefined reference to `rosbag::Bag::Bag()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE[_Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE]+0x58): undefined reference to `rosbag::Bag::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE[_Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE]+0xfc): undefined reference to `rosbag::Bag::close()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE[_Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE]+0x108): undefined reference to `rosbag::Bag::~Bag()' /usr/bin/ld: trajectory_extractor_node.cpp:(.text._Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE[_Z9write_bagIN17planning_ros_msgs18TrajectoryCommand_ISaIvEEEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt6vectorIT_SaISB_EE]+0x26a): undefined reference to `rosbag::Bag::~Bag()' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/trajectory_extractor_node.dir/build.make:166: /home/chris/agile_autonomy_ws/devel/lib/planning_ros_utils/trajectory_extractor_node] Error 1 make[1]: *** [CMakeFiles/Makefile2:2747: CMakeFiles/trajectory_extractor_node.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 cd /home/chris/agile_autonomy_ws/build/planning_ros_utils; catkin build --get-env planning_ros_utils | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -
Missing ROS package, fixed by installing desktop-full
Could anyone please help me with the following compilation error? Thanks!
I followed the compilation instruction step-by-step