cmake_minimum_required(VERSION 2.8.3)
project(wild_thumper)
+EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
-find_package(catkin REQUIRED sensor_msgs cv_bridge roscpp std_msgs image_transport dynamic_reconfigure message_generation)
+find_package(catkin REQUIRED sensor_msgs cv_bridge roscpp rospy std_msgs image_transport dynamic_reconfigure message_generation rosruby tf)
+find_package(OpenCV)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
-# catkin_python_setup()
+catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
)
## Generate services in the 'srv' folder
-# add_service_files(
-# FILES
-# Service1.srv
-# Service2.srv
-# )
+add_service_files(
+ FILES
+ DWM1000Center.srv
+)
## Generate actions in the 'action' folder
# add_action_files(
std_msgs # Or other packages containing msgs
)
+rosruby_setup()
+rosruby_generate_messages(fiducial_msgs)
+
generate_dynamic_reconfigure_options(
- config/path_following.cfg
- config/wt_node.cfg
+ config/PathFollowing.cfg
+ config/WildThumper.cfg
)
###################################
## Specify libraries to link a library or executable target against
target_link_libraries(path_following
${catkin_LIBRARIES}
+ ${OpenCV_LIBS}
)
+if(${ARCHITECTURE} EQUAL "armv7l")
+ add_executable(wt_node src/wt_node.cpp)
+ target_link_libraries(wt_node
+ ${catkin_LIBRARIES}
+ i2c
+ )
+endif()
#############
## Install ##