<commit_before>cmake_minimum_required(VERSION 2.8.3)
project(ug_stereomatcher)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  cv_bridge
  geometry_msgs
  image_transport
  sensor_msgs
  stereo_msgs
  message_generation
  pcl_ros
)

find_package(PCL REQUIRED)

add_message_files(
	FILES
	foveatedstack.msg
  CamerasSync.msg
)

add_service_files(
  FILES
  GetDisparitiesGPU.srv
)

generate_messages(
   DEPENDENCIES
   std_msgs
   sensor_msgs
   stereo_msgs
)

catkin_package(
  CATKIN_DEPENDS cv_bridge image_transport roscpp sensor_msgs std_msgs message_runtime pcl_ros stereo_msgs
)

include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
)

find_package(OpenCV 2)
include_directories(${OpenCV_INCLUDE_DIRS})

### testing non fovea (working)
add_executable(UGdisp_image src/disparitymaps_viz/UG_dispImgTest.cpp)
add_dependencies(UGdisp_image ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGdisp_image boost_signals)
target_link_libraries(UGdisp_image ${catkin_LIBRARIES})
# testing fovea (working)
add_executable(UGFdisp_image src/disparitymaps_viz/UG_FdispImgTest.cpp)
add_dependencies(UGFdisp_image ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGFdisp_image boost_signals)
target_link_libraries(UGFdisp_image ${catkin_LIBRARIES})
###

add_executable(UGpoint_cloud src/pointcloud/getPointCloud.cpp)
add_dependencies(UGpoint_cloud ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGpoint_cloud boost_signals)
target_link_libraries(UGpoint_cloud ${catkin_LIBRARIES})      

add_executable(UGpublish_images src/utils/publish_images.cpp)
target_link_libraries(UGpublish_images ${catkin_LIBRARIES})

# ######################### GPUmatcher
find_package(CUDA REQUIRED) 

# ######################### WARNING #########################
# Different gpus use different gencode flags. Uncomment accordingly
# ######################### WARNING #########################

# Flags below work pretty much for older GPUS (700 and 800 series)
SET(CMAKE_C_FLAGS "-lopencv_core -lopencv_highgui -lm -m64")
SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50")

# Setiings below are for Geforce GTX 970 and most likely for 900 series
SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50")
<commit_msg>Add necessary dependency on generated files<commit_after>cmake_minimum_required(VERSION 2.8.3)
project(ug_stereomatcher)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  cv_bridge
  geometry_msgs
  image_transport
  sensor_msgs
  stereo_msgs
  message_generation
  pcl_ros
)

find_package(PCL REQUIRED)

add_message_files(
	FILES
	foveatedstack.msg
  CamerasSync.msg
)

add_service_files(
  FILES
  GetDisparitiesGPU.srv
)

generate_messages(
   DEPENDENCIES
   std_msgs
   sensor_msgs
   stereo_msgs
)

catkin_package(
  CATKIN_DEPENDS cv_bridge image_transport roscpp sensor_msgs std_msgs message_runtime pcl_ros stereo_msgs
)

include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
)

find_package(OpenCV 2)
include_directories(${OpenCV_INCLUDE_DIRS})

### testing non fovea (working)
add_executable(UGdisp_image src/disparitymaps_viz/UG_dispImgTest.cpp)
add_dependencies(UGdisp_image ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGdisp_image boost_signals)
target_link_libraries(UGdisp_image ${catkin_LIBRARIES})
# testing fovea (working)
add_executable(UGFdisp_image src/disparitymaps_viz/UG_FdispImgTest.cpp)
add_dependencies(UGFdisp_image ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGFdisp_image boost_signals)
target_link_libraries(UGFdisp_image ${catkin_LIBRARIES})
###

add_executable(UGpoint_cloud src/pointcloud/getPointCloud.cpp)
add_dependencies(UGpoint_cloud ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGpoint_cloud boost_signals)
target_link_libraries(UGpoint_cloud ${catkin_LIBRARIES})      

add_executable(UGpublish_images src/utils/publish_images.cpp)
add_dependencies(UGpublish_images ug_stereomatcher_generate_messages_cpp)
target_link_libraries(UGpublish_images ${catkin_LIBRARIES})

# ######################### GPUmatcher
find_package(CUDA REQUIRED) 

# ######################### WARNING #########################
# Different gpus use different gencode flags. Uncomment accordingly
# ######################### WARNING #########################

# Flags below work pretty much for older GPUS (700 and 800 series)
SET(CMAKE_C_FLAGS "-lopencv_core -lopencv_highgui -lm -m64")
SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50")

# Setiings below are for Geforce GTX 970 and most likely for 900 series
SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50")

{'fraction_non_alphanumeric': 0.11172770995190529, 'fraction_numerical': 0.0244173140954495, 'mean_word_length': 8.866788321167883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1622593', 'n_tokens_mistral': 2057, 'n_tokens_neox': 1913, 'n_words': 307}