cmake_minimum_required(VERSION 3.8)
project(obstacle_cloud)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
ament_python_install_package(${PROJECT_NAME})
install(PROGRAMS obstacle_cloud/node.py DESTINATION lib/${PROJECT_NAME} RENAME obstacle_cloud)
install(DIRECTORY config DESTINATION share/${PROJECT_NAME})
if(BUILD_TESTING)
  find_package(ament_cmake_pytest REQUIRED)
  find_package(launch_testing_ament_cmake REQUIRED)
  ament_add_pytest_test(test_obstacle_cloud test/test_core.py
    PYTHON_EXECUTABLE /usr/bin/python3
    ENV PYTEST_DISABLE_PLUGIN_AUTOLOAD=1)
  ament_add_pytest_test(test_obstacle_cloud_pairing test/test_pairing.py
    PYTHON_EXECUTABLE /usr/bin/python3
    ENV PYTEST_DISABLE_PLUGIN_AUTOLOAD=1)
  add_launch_test(test/test_node.py TIMEOUT 20)
  add_launch_test(test/test_self_node.py TIMEOUT 20)
endif()
ament_package()
