ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
227 stars 159 forks source link

add option to re-open camera device on read failure #43

Closed furushchev closed 5 years ago

furushchev commented 5 years ago

In some cases, camera capture thread stucks on read failure on my environment when capturing images from camera devices. In this pull request, I added the option for dynamic reconfigure: reopen_on_read_failure for enabling/disabling the feature to reopen the camera device when the read method of cv::VideoCapture class fails, by which it restarts publishing without restarting entire node on my environment.