Webcam rosnode - Aeroclub-IITM/Plugins_setup GitHub Wiki
This section is to make your webcam stream images to your ros topic.
Download this launch file and put it in your ros package.
Open terminal
sudo apt-get install ros-melodic-video-stream-opencv
Now launch the ros launch,
roslaunch <pkg-name> camera.launch