yuxng / PoseCNN

A Convolutional Neural Network for 6D Object Pose Estimation in Cluttered Scenes
https://rse-lab.cs.washington.edu/projects/posecnn/
MIT License
746 stars 242 forks source link

Not able to catkin_make the ros folder #93

Open shghatge opened 5 years ago

shghatge commented 5 years ago

Are there any instructions available on how to use the ros package? We tried by building synthesizer and kinect_fusion successfully but when we catkin_make we get this error

[100%] Linking CXX executable /home/shivani/PoseCNN/ros/devel/lib/synthesizer/synthesizer_node CMakeFiles/synthesizer_node.dir/src/main.cpp.o: In functioncallback(boost::sharedptr<synthesizer::PoseCNNMsg<std::allocator > const> const&)': main.cpp:(.text+0x246): undefined reference to cv_bridge::toCvCopy(sensor_msgs::Image_<std::allocator<void> > const&, std::string const&)' main.cpp:(.text+0x310): undefined reference tocv_bridge::toCvCopy(sensormsgs::Image<std::allocator > const&, std::string const&)' CMakeFiles/synthesizer_node.dir/src/main.cpp.o: In function main': main.cpp:(.text+0x9a7): undefined reference toros::init(int&, char, std::string const&, unsigned int)' main.cpp:(.text+0xa03): undefined reference to ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)' CMakeFiles/synthesizer_node.dir/src/main.cpp.o: In functionvoid ros::Publisher::publish<geometrymsgs::PoseStamped<std::allocator > >(geometrymsgs::PoseStamped<std::allocator > const&) const': main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT]+0xad): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStamped_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStamped_ISaIvEEEEEvRKT_]+0x1e3): undefined reference toros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT]+0x30b): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT]+0x45b): undefined reference to ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)' main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStamped_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStamped_ISaIvEEEEEvRKT_]+0x591): undefined reference toros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' CMakeFiles/synthesizer_node.dir/src/main.cpp.o:main.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13geometry_msgs12PoseStampedISaIvEEEEEvRKT]+0x6d0): more undefined references to `ros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' follow collect2: error: ld returned 1 exit status synthesizer/CMakeFiles/synthesizer_node.dir/build.make:437: recipe for target '/home/shivani/PoseCNN/ros/devel/lib/synthesizer/synthesizer_node' failed make[2]: ** [/home/shivani/PoseCNN/ros/devel/lib/synthesizer/synthesizer_node] Error 1 CMakeFiles/Makefile2:1134: recipe for target 'synthesizer/CMakeFiles/synthesizer_node.dir/all' failed make[1]: [synthesizer/CMakeFiles/synthesizer_node.dir/all] Error 2 Makefile:138: recipe for target 'all' failed`