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

## 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 COMPONENTS
  image_geometry
  image_transport
  pcl_conversions
  pcl_ros
  cv_bridge
  nodelet
  dynamic_reconfigure
  roscpp
  rospy
  rostime
  sensor_msgs
  std_msgs
  tf
  kitti
)

## 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()

#add dynamic reconfigure api
#find_package(catkin REQUIRED dynamic_reconfigure)
generate_dynamic_reconfigure_options(
  cfg/continuous_calibration.cfg
  cfg/edge_detector.cfg
  cfg/fusion.cfg
  cfg/harris3d.cfg
  cfg/pcl_image.cfg
  cfg/sync_image.cfg
  cfg/sync_remap.cfg
)

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
  INCLUDE_DIRS include
  LIBRARIES image_cloud
  CATKIN_DEPENDS image_geometry image_transport pcl_conversions pcl_ros cv_bridge nodelet roscpp rospy rostime sensor_msgs std_msgs tf
  DEPENDS system_lib
)

###########
## Build ##
###########

find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(PCL 1.7 REQUIRED)

include_directories(BEFORE 	${PCL_INCLUDE_DIRS}  
							${OpenCV_INCLUDE_DIRS}
  							${Boost_INCLUDE_DIRS}
)

link_directories(${PCL_LIBRARY_DIRS}
				 ${OpenCV_LIBRARY_DIRS}
)

add_definitions( ${PCL_DEFINITIONS}
				 ${OpenCV_DEFINITIONS}
)
if (NOT PCL_FOUND)
    MESSAGE(FATAL_ERROR "PCL not found.\n")
endif (NOT PCL_FOUND)


set(common
  src/common/string_list.cpp
)


set(kitti_data
  src/common/kitti/serializable.cpp
  src/common/kitti/camera.cpp
  src/common/kitti/camera_list.cpp
  src/common/kitti/dataset.cpp
  src/common/kitti/tf.cpp
)

## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
  include
)

## Fusion Nodelets
add_library(fusion
  src/fusion/fusion.cpp
)

target_link_libraries(fusion
  ${catkin_LIBRARIES}
)

add_dependencies(fusion
  ${PROJECT_NAME}_gencfg
)

## image feature Nodelets
add_library(edge
  src/image_features/edge_detector_nodelet.cpp
)

add_dependencies(edge 
  ${PROJECT_NAME}_gencfg
)

target_link_libraries(edge
  ${catkin_LIBRARIES}
)

## pcl feature Nodelets
add_library(harris3d
  src/pcl_features/harris3d_nodelet.cpp
)

add_dependencies(harris3d
  ${PROJECT_NAME}_gencfg
)

target_link_libraries(harris3d
  ${catkin_LIBRARIES}
)

## Calibration Nodelets
add_library(pcl_to_image
  src/calibration/pcl_to_image_nodelet.cpp
)

target_link_libraries(pcl_to_image
  ${catkin_LIBRARIES}
)

add_dependencies(pcl_to_image 
  ${PROJECT_NAME}_gencfg
)

## Other
add_executable(gui
  src/gui/node.cpp
  src/gui/gui_opencv.cpp
  src/gui/slider.cpp
  ${common}
  ${kitti_data}
)

target_link_libraries(gui
  ${catkin_LIBRARIES}
)

add_dependencies(gui 
  ${PROJECT_NAME}_gencfg
)


add_executable(benchmark_standalone
  src/calibration/benchmark_standalone.cpp
)

target_link_libraries(benchmark_standalone
  ${catkin_LIBRARIES}
  kitti
)

add_dependencies(benchmark_standalone 
  ${PROJECT_NAME}_gencfg
)

# Continuous calibration
add_executable(continuous_calibration
  src/calibration/continuous_calibration_node.cpp
  src/calibration/continuous_calibration.cpp
)

add_library(continous_calibration
	src/calibration/continuous_calibration_nodelet.cpp
	src/calibration/continuous_calibration.cpp<commit_msg>added for debugging more pcl libs to gui<commit_after>cmake_minimum_required(VERSION 2.8.3)
project(image_cloud)

## 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 COMPONENTS
  image_geometry
  image_transport
  pcl_conversions
  pcl_ros
  cv_bridge
  nodelet
  dynamic_reconfigure
  roscpp
  rospy
  rostime
  sensor_msgs
  std_msgs
  tf
  kitti
)

## 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()

#add dynamic reconfigure api
#find_package(catkin REQUIRED dynamic_reconfigure)
generate_dynamic_reconfigure_options(
  cfg/continuous_calibration.cfg
  cfg/edge_detector.cfg
  cfg/fusion.cfg
  cfg/harris3d.cfg
  cfg/pcl_image.cfg
  cfg/sync_image.cfg
  cfg/sync_remap.cfg
)

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
  INCLUDE_DIRS include
  LIBRARIES image_cloud
  CATKIN_DEPENDS image_geometry image_transport pcl_conversions pcl_ros cv_bridge nodelet roscpp rospy rostime sensor_msgs std_msgs tf
  DEPENDS system_lib
)

###########
## Build ##
###########

find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(PCL 1.7 REQUIRED)

include_directories(BEFORE 	${PCL_INCLUDE_DIRS}  
							${OpenCV_INCLUDE_DIRS}
  							${Boost_INCLUDE_DIRS}
)

link_directories(${PCL_LIBRARY_DIRS}
				 ${OpenCV_LIBRARY_DIRS}
)

add_definitions( ${PCL_DEFINITIONS}
				 ${OpenCV_DEFINITIONS}
)
if (NOT PCL_FOUND)
    MESSAGE(FATAL_ERROR "PCL not found.\n")
endif (NOT PCL_FOUND)


set(common
  src/common/string_list.cpp
)


set(kitti_data
  src/common/kitti/serializable.cpp
  src/common/kitti/camera.cpp
  src/common/kitti/camera_list.cpp
  src/common/kitti/dataset.cpp
  src/common/kitti/tf.cpp
)

## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
  include
)

## Fusion Nodelets
add_library(fusion
  src/fusion/fusion.cpp
)

target_link_libraries(fusion
  ${catkin_LIBRARIES}
)

add_dependencies(fusion
  ${PROJECT_NAME}_gencfg
)

## image feature Nodelets
add_library(edge
  src/image_features/edge_detector_nodelet.cpp
)

add_dependencies(edge 
  ${PROJECT_NAME}_gencfg
)

target_link_libraries(edge
  ${catkin_LIBRARIES}
)

## pcl feature Nodelets
add_library(harris3d
  src/pcl_features/harris3d_nodelet.cpp
)

add_dependencies(harris3d
  ${PROJECT_NAME}_gencfg
)

target_link_libraries(harris3d
  ${catkin_LIBRARIES}
)

## Calibration Nodelets
add_library(pcl_to_image
  src/calibration/pcl_to_image_nodelet.cpp
)

target_link_libraries(pcl_to_image
  ${catkin_LIBRARIES}
)

add_dependencies(pcl_to_image 
  ${PROJECT_NAME}_gencfg
)

## Other
add_executable(gui
  src/gui/node.cpp
  src/gui/gui_opencv.cpp
  src/gui/slider.cpp
  ${common}
  ${kitti_data}
)

target_link_libraries(gui
  ${catkin_LIBRARIES}
   ${PCL_LIBRARIES} libvtkCommon.so libvtkFiltering.so
)

add_dependencies(gui 
  ${PROJECT_NAME}_gencfg
)


add_executable(benchmark_standalone
  src/calibration/benchmark_standalone.cpp
)

target_link_libraries(benchmark_standalone
  ${catkin_LIBRARIES}
  kitti
)

add_dependencies(benchmark_standalone 
  ${PROJECT_NAME}_gencfg
)

# Continuous calibration
add_executable(continuous_calibration
  src/calibration/continuous_calibration_node.cpp
  src/calibration/continuous_calibration.cpp
)

add_library(continous_calibration
	src/calibration/continuous_calibration_nodelet.cpp
	src/calibration/continuous_calibration.cpp
{'fraction_non_alphanumeric': 0.09420636820684702, 'fraction_numerical': 0.0023940627244433805, 'mean_word_length': 5.77066450567261, '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': '1917540', 'n_tokens_mistral': 3112, 'n_tokens_neox': 2879, 'n_words': 553}