ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Okay so first I discovered I could run catkin_make like 4 times and then it will build all the proper header files in the include directory, but obviously that didn't solve the issue. So I searched for "catkin_make multiple times site:ros.org" and I found the solution.
cmake_minimum_required(VERSION 2.8.3)
project(mobility)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
sensor_msgs
std_msgs
random_numbers
message_generation
)
add_message_files(
FILES
Resource.msg
Pose2D.msg
Status.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS geometry_msgs roscpp sensor_msgs std_msgs random_numbers
message_runtime
)
add_executable(
mobility src/mobility.cpp
)
add_dependencies(mobility ${catkin_EXPORTED_TARGETS})
target_link_libraries(
mobility
${catkin_LIBRARIES}
)
I just needed to add
add_dependencies(mobility ${catkin_EXPORTED_TARGETS})
Where mobility is the executable(s)? for the package.