ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
For the next time, please try to ind the relevant lines where the error is detailed. From your post, we only see there is an error.
However, there are several problems with your CMakeLists.txt
.
You need to tell the compiler where to find the headers you include.
So adapt the following lines in your CMakeLists.txt
from:
include_directories(
${catkin_INCLUDE_DIRS}
)
to
include_directories(
include
${catkin_INCLUDE_DIRS}
)
But I guess you will also need to add the library source file to the add_executable
call, so:
add_executable(rovstate src/rovstate.cpp src/libRobot.cc)
2 | No.2 Revision |
For the next time, please try to ind find the relevant lines where the error is detailed.
From your post, we only see there is an error.
However, there are several problems with your CMakeLists.txt
.
You need to tell the compiler where to find the headers you include.
So adapt the following lines in your CMakeLists.txt
from:
include_directories(
${catkin_INCLUDE_DIRS}
)
to
include_directories(
include
${catkin_INCLUDE_DIRS}
)
But I guess you will also need to add the library source file to the add_executable
call, so:
add_executable(rovstate src/rovstate.cpp src/libRobot.cc)