diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a5cf44..95c4c1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ add_executable (papillon src/papillon.cpp) add_executable (control src/control.cpp) add_dependencies( papillon ${PROJECT_NAME}_generate_messages_cpp ) target_link_libraries(papillon ${catkin_LIBRARIES}) +target_link_libraries(control ${catkin_LIBRARIES}) set_property (TARGET papillon APPEND PROPERTY INCLUDE_DIRECTORIES ${OpenCV_INCLUDE_DIRS}) set_property (TARGET papillon APPEND PROPERTY INCLUDE_DIRECTORIES ${catkin_INCLUDE_DIRS}) set_property (TARGET papillon APPEND PROPERTY LINK_LIBRARIES ${OpenCV_LIBRARIES}) diff --git a/src/control.cpp b/src/control.cpp index f33d3ce..8264fbf 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -21,6 +21,7 @@ class Drone_control { Drone_control() : n("~") { pub_cmd = n.advertise("/bebop/cmd_vel", 1); sub_box = n.subscribe("/papillon/bbox", 1, &Drone_control::on_msg, this); + ROS_INFO("Built !"); }