Add arg to launch file
<p>Instead of running a package using command line, I made a launch file</p>

<p>Commande line:</p>

<pre><code>rosrun image_view image_saver image:=/the-rgb-image-topic
</code></pre>

<p>Launch file:</p>

<pre><code>&lt;launch&gt;
  &lt;node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME"&gt;
    &lt;remap from="image" to="/camera/rgb/image_raw"/&gt;
  &lt;/node&gt;
&lt;/launch&gt;
</code></pre>

<p>Now I want to do the same for this:</p>

<pre><code>rosrun image_view image_saver image:=/camera/depth/image _encoding:=16UC1
</code></pre>

<p>How can I add the argument to the launch file..</p>

<p>I think I should start it like that</p>

<pre><code>&lt;launch&gt;
  &lt;node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME"&gt;
    &lt;remap from="image" to="/camera/rgb/image_raw"/&gt;

  &lt;node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME"&gt;
    &lt;remap from="image" to="/camera/depth/image"/&gt;
  &lt;/node&gt;
&lt;/launch&gt;
</code></pre>