ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You should add the path directly to the include_directories entry as shown below. this should be just before the executable definitions for the binaries.

include_directories(include
  ${catkin_INCLUDE_DIRS}
  /your/custom/include/path/here
)

You should add the path directly to the include_directories entry as shown below. this should be just before the executable definitions for the binaries.

include_directories(include
  ${catkin_INCLUDE_DIRS}
  /your/custom/include/path/here
)

Update:

I've just had another look at this and I don't think the error is caused by the lack of include files. You should enable c++11 in CMakeLists.txt as shown below, I think the compiler version is still wrong which is causing it to fail at the first c++11 only feature in the code.

# Enable c++11 compiler
add_definitions(-std=c++11)