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

Revision history [back]

click to hide/show revision 1
initial version

Change

include_directories(
  ${catkin_INCLUDE_DIRS}
)

for

include_directories(
  ${catkin_INCLUDE_DIRS}
 include
)

Note that

catkin_package( INCLUDE_DIRS include LIBRARIES LogixEIP CATKIN_DEPENDS roscpp DEPENDS system_lib )

makes source files in dependend packages of your first package finding the headers in the include folder of your first package while

include_directories(
  ${catkin_INCLUDE_DIRS}
 include
)

makes source files in your first package finding the headers in the include folder of your first package. Source files in your package most likely also use the headers in the same package.....

click to hide/show revision 2
No.2 Revision

Change

include_directories(
  ${catkin_INCLUDE_DIRS}
)

for

include_directories(
  ${catkin_INCLUDE_DIRS}
 include
)

Note that

catkin_package(
  INCLUDE_DIRS include
  LIBRARIES LogixEIP
  CATKIN_DEPENDS roscpp
  DEPENDS system_lib
)

)

makes source files in dependend packages of your first package finding the headers in the include folder of your first package while

include_directories(
  ${catkin_INCLUDE_DIRS}
 include
)

makes source files in your first package finding the headers in the include folder of your first package. Source files in your package most likely also use the headers in the same package.....