how do I install/build costmap (Beginners Question)
I know its probably a really easy question - so sorry for asking, but I really dont get it to run.
I have a running fuerte installation on ubuntu. For my own rrt implementation, I would like to use the costmap of the navigation stack.
But when I try to compile anything with
#include <costmap_2d/costmap_2d_ros.h>
it get only the message that its not possible to find this header.
But the stack is located under /opt/ros/fuerte/stacks/navigation/costmap_2d and can be find by ros (verifed using roscd costmap_2d)
What else do I have to do to make this compiling? Im really out of ideas at the moment. Do I have to compile the navigation stack somehow? rosmake costmap_2d does nothing, as far as I can tell
EDIT 2:
As suggested, I tried to add the missing header file to my cmake list by using the following code:
set(YOUR_DIRECTORY /opt/ros/fuerte/stacks/navigation/costmap_2d/include)
include_directories( ${YOUR_DIRECTORY})
set(SOURCES ${YOUR_DIRECTORY}/costmap_2d/costmap_2d_ros.h )
rosbuild_add_executable(myrrtwrapper src/MyRRTWrapper.cpp src/graph/MyVertex.cpp src/graph/MyEdge.cpp src/graph/MyGraph.cpp src/MyRRTSolver.cpp src/MapHelper.cpp ${SOURCES})
now i get:
In file included from /opt/ros/fuerte/stacks/navigation/costmap_2d/include/costmap_2d/costmap_2d.h:42:0,
from /opt/ros/fuerte/stacks/navigation/costmap_2d/include/costmap_2d/costmap_2d_ros.h:43,
from xx fatal error: pcl/point_types.h: No such file or directory
compilation terminated.
I guess I have to add them too. will try this now
But actually I thought I was using ROS tools for building? I mean I created my base code with roscreate-pkg and this comes with cmake. For all basic stuff like creating nodes, sending messages etc this seems to be really good, but this is the first time I try to build things with the navigation package. What would be the ROS-Way to use it?