How can I fix this launchfile? [closed]
Hi dear ROS community!
I've started learning ROS a few months ago. Currently I'm trying to create my first launchfile that starts gscam and image_view packages to open a camera and visualize the video stream. I made a launch file, however, gscam and image_view cannot get connected. Gscam node is launching properly, but not the image_view one; it seems that it is not receiving the parameter. If I launch image_view manually ($rosrun image_view image_view image:=/camera/image_raw) everything works fine and I can visualize the video stream from my camera. How can I fix my launch file? Thank you!
<launch>
<node pkg="gscam" type="gscam" name="gscam01">
<env name="GSCAM_CONFIG" value="v4l2src device=/dev/video0 ! video/x-raw-rgb,framerate=30/1 ! ffmpegcolorspace" />
</node>
<node pkg="image_view" type="image_view" name="image_view01">
<param name="image" type="string" value="/camera/image_raw" />
</node>
</launch>
SOLUTION:
launch>
<node pkg="gscam" type="gscam" name="gscam01">
<env name="GSCAM_CONFIG" value="v4l2src device=/dev/video0 ! video/x-raw-rgb,framerate=30/1 ! ffmpegcolorspace" />
</node>
<node pkg="image_view" type="image_view" name="image_view01">
<remap from="image" to="/camera/image_raw"/>
</node>
</launch>