ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Instead of setting environment variables in the launch file. What I ended up doing is editing my bash file . So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can launch gscam without any problems..

Instead of setting environment variables in the launch file. What I ended up doing is editing my bash file . So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can launch gscam without any problems.. If anyone knows how to set it in a launch file please post as it may be useful for future situations.

Instead Use this line of code in your launch file. Set this right after <launch> at the beginning of my launch file . <env name="GSCAM_CONFIG" value="v4l2src device=/dev/video2 ! video/x-raw-rgb ! ffmpegcolorspace"/>

Or instead of setting environment variables in the launch file, edit your bash file. What I ended up doing is editing my bash file . So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can launch gscam without any problems.. If anyone knows how to set it in a launch file please post as it may be useful for future situations.

Use this line of code in your launch file. Set this right after <launch> at the beginning of my launch file . <env name="GSCAM_CONFIG" value="v4l2src device=/dev/video2 ! video/x-raw-rgb ! ffmpegcolorspace"/>

Or instead of setting environment variables in the launch file, edit your bash file. So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can launch gscam without any problems.. If anyone knows how to set it in a launch file please post as it may be useful for future situations. problems.

Use this line of code in your launch file. Set this right after <launch> at the beginning of my your launch file . <env name="GSCAM_CONFIG" value="v4l2src device=/dev/video2 ! video/x-raw-rgb ! ffmpegcolorspace"/>

Or instead of setting environment variables in the launch file, edit your bash file. So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can launch gscam without any problems.

Use this line of code in your launch file. Set this right after <launch> at the beginning of your launch file . <env name="GSCAM_CONFIG" value="v4l2src device=/dev/video2 ! video/x-raw-rgb ! ffmpegcolorspace"/>

Or instead of setting environment variables in the launch file, edit your bash file. So first in terminal " gedit ~/.bashrc" then add this line somewhere near the bottom of the file "GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" . My web camera was set to video0. Now I can you should launch gscam without any problems.