rrg-polito / mono-slam

MonoSLAM implementation in ROS
Mozilla Public License 2.0
140 stars 59 forks source link

compilation error #8

Open aaravrav142 opened 5 years ago

aaravrav142 commented 5 years ago

Hi,

I am trying to run this on Ubuntu 16 ROS kinetic but always gettting the same message when doing catkin_make.

Not sure why its not able to find ros libraries because I can see that catkin required packages are there in the CMakeList.

[  0%] Building CXX object mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o
/home/arav/catkin_ws/src/mono-slam/src/monoslam_ransac.cpp:1:21: fatal error: ros/ros.h: No such file or directory
compilation terminated.
mono-slam/CMakeFiles/mono-slam.dir/build.make:62: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/src/monoslam_ransac.cpp.o' failed
make[2]: *** [mono-slam/CMakeFiles/mono-slam.dir/src/monoslam_ransac.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/arav/catkin_ws/src/mono-slam/src/vslamRansac.cpp:4:21: fatal error: ros/ros.h: No such file or directory
compilation terminated.
mono-slam/CMakeFiles/mono-slam.dir/build.make:86: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o' failed
make[2]: *** [mono-slam/CMakeFiles/mono-slam.dir/src/vslamRansac.cpp.o] Error 1
CMakeFiles/Makefile2:1577: recipe for target 'mono-slam/CMakeFiles/mono-slam.dir/all' failed
make[1]: *** [mono-slam/CMakeFiles/mono-slam.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] Built target _velodyne_msgs_generate_messages_check_deps_VelodyneScan
[  0%] Built target _velodyne_msgs_generate_messages_check_deps_VelodynePacket
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j3" failed

Thanks

abougouffa commented 4 years ago

Hi,

I faced the same problem (on Ubuntu 18.10 / ROS Melodic), I fixed it by modifying the CMakeLists.txt, I created a pull request.

aaravrav142 commented 4 years ago

Hi @abougouffa , Thanks for the pull request. With your pull on the CMakeList it compiles fine. However, I am unable to see the mapping process after running the rosrun with my image topic. Any pointers on this? Thanks