mapping_msgs/PolygonalMap.h: No such file or directory
Hello there
I'm trying to compile this package but I get this error:
[ 0%] Built target rosbuild_precompile
make[3]: Entering directory `/home/jros/rosPackage/testrospackageKinect/build'
make[3]: Leaving directory `/home/jros/rosPackage/testrospackageKinect/build'
make[3]: Entering directory `/home/jros/rosPackage/testrospackageKinect/build'
[ 50%] Building CXX object CMakeFiles/tracker.dir/src/main.cpp.o
/home/jros/rosPackage/testrospackageKinect/src/main.cpp:26:39: fatal error: mapping_msgs/PolygonalMap.h: No such file or directory
#include <mapping_msgs/PolygonalMap.h>
^
compilation terminated.
make[3]: *** [CMakeFiles/tracker.dir/src/main.cpp.o] Error 1
make[3]: Leaving directory `/home/jros/rosPackage/testrospackageKinect/build'
make[2]: *** [CMakeFiles/tracker.dir/all] Error 2
make[2]: Leaving directory `/home/jros/rosPackage/testrospackageKinect/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jros/rosPackage/testrospackageKinect/build'
-------------------------------------------------------------------------------}
I downloaded mapping_msgs
and I copied it in lib folder and I added this to my CMakeLists
, :
include_directories ("/home/jros/rosPackage/testrospackageKinect/lib/mapping_msgs/")
I had the same Error with OpenNI
but when I added this to the CMakeLists
it works:
include_directories ("/home/jros/rosPackage/testrospackageKinect/lib/OpenNI/Include/")
My question is for mapping_msgs
, what should I do? and how can I deal with those kind of errors in CMakeLists
?
I'm using rosbuild pacakge in ROS Indigo in Ubuntu 14.04 64 bit