<launch>
  <arg name="node_name" default="hls_color_filter" />

  <arg name="image" default="image" doc="The image topic. Should be remapped to the name of the real image topic." />

  <arg name="use_camera_info" default="false" doc="Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used." />
  <arg name="debug_view" default="true" doc="Specify whether the node displays a window to show image" />

  <arg name="h_limit_max" default="250" doc="The maximum allowed field value Hue" />
  <arg name="h_limit_min" default="0" doc="The minimum allowed field value Hue" />
  <arg name="s_limit_max" default="255" doc="The maximum allowed field value Saturation" />
  <arg name="s_limit_min" default="150" doc="The minimum allowed field value Saturation" />
  <arg name="l_limit_max" default="255" doc="The maximum allowed field value Luminance" />
  <arg name="l_limit_min" default="50" doc="The minimum allowed field value Luminance" />

  <!-- color_filter.cpp  -->
  <node name="$(arg node_name)" pkg="opencv_apps" type="hls_color_filter" output="screen">
    <remap from="image" to="$(arg image)" />
    <param name="use_camera_info" value="$(arg use_camera_info)" />
    <param name="debug_view" value="$(arg debug_view)" />
    <param name="h_limit_max" value="$(arg h_limit_max)" />
    <param name="h_limit_min" value="$(arg h_limit_min)" />
    <param name="s_limit_max" value="$(arg s_limit_max)" />
    <param name="s_limit_min" value="$(arg s_limit_min)" />
    <param name="l_limit_max" value="$(arg l_limit_max)" />
    <param name="l_limit_min" value="$(arg l_limit_min)" />
  </node>
</launch>
