Instead of running a package using command line, I made a launch file
Commande line:
rosrun image_view image_saver image:=/the-rgb-image-topic
Launch file:
<launch>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/camera/rgb/image_raw"/>
</node>
</launch>
Now I want to do the same for this:
rosrun image_view image_saver image:=/camera/depth/image _encoding:=16UC1
How can I add the argument to the launch file..
I think I should start it like that
<launch>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/camera/rgb/image_raw"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/camera/depth/image"/>
</node>
</launch>