PACKAGE

<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
  <name>metavision_driver</name>
  <version>1.0.8</version>
  <description>ROS1 and ROS2 drivers for metavision based event cameras</description>
  <maintainer email="bernd.pfrommer@gmail.com">Bernd Pfrommer</maintainer>
  <license>Apache-2</license>

  <!-- ROS1 specific dependencies -->
  <buildtool_depend condition="$ROS_VERSION == 1">catkin</buildtool_depend>
  <depend condition="$ROS_VERSION == 1">dynamic_reconfigure</depend>
  <depend condition="$ROS_VERSION == 1">nodelet</depend>

  <!-- ROS2 specific dependencies -->
  <buildtool_depend condition="$ROS_VERSION == 2">ament_cmake</buildtool_depend>
  <buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_auto</buildtool_depend>
  <buildtool_depend condition="$ROS_VERSION == 2">ament_cmake_ros</buildtool_depend>
  <depend condition="$ROS_VERSION == 2">rclcpp</depend>
  <depend condition="$ROS_VERSION == 2">rclcpp_components</depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_copyright</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_cppcheck</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_cpplint</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_flake8</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_lint_cmake</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_pep257</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_xmllint</test_depend>
  <test_depend condition="$ROS_VERSION == 2">ament_cmake_clang_format</test_depend>

  <!--
   for some reason the build fails if rosbag2_composable_recorder is not present
   <exec_depend condition="$ROS_VERSION == 2">rosbag2_composable_recorder</exec_depend>
  -->

  <!-- common dependencies -->
  <buildtool_depend>ros_environment</buildtool_depend> <!-- ROS_VERSION + ROS_DISTRO -->
  <depend>event_camera_msgs</depend>
  <buildtool_depend>ros_environment</buildtool_depend> <!-- ROS_VERSION + ROS_DISTRO -->
  <depend>std_srvs</depend>

  <!-- openeb dependencies -->
  <buildtool_depend>wget</buildtool_depend>
  <buildtool_depend>unzip</buildtool_depend>
  <buildtool_depend>curl</buildtool_depend>
  <buildtool_depend>git</buildtool_depend>
  <buildtool_depend>cmake</buildtool_depend>
  <buildtool_depend>hdf5-tools</buildtool_depend>
  <depend>boost</depend>
  <depend>libusb-1.0-dev</depend>
  <depend>libhdf5-dev</depend>
  <depend>libglew-dev</depend>
  <depend>libglfw3-dev</depend>
  <depend>ffmpeg</depend>
  <depend>libopencv-dev</depend>
  <depend>libopenscenegraph</depend>
  <test_depend>gtest</test_depend>

  <export>
    <nodelet plugin="${prefix}/nodelet_plugins.xml"/>
    <!-- this is crucial else the package will not be registered! -->
    <build_type condition="$ROS_VERSION == 1">catkin</build_type>
    <build_type condition="$ROS_VERSION == 2">ament_cmake</build_type>
  </export>
</package>