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.
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 theread
method ofcv::VideoCapture
class fails, by which it restarts publishing without restarting entire node on my environment.