Closed hoonkai closed 3 years ago
@hoonkai Sorry for delay. Could you please check if https://github.com/ros-drivers/video_stream_opencv/issues/72 fixes the issue?
Hello ! I have the same issue, when could not capture frame error is raise, the node is not able to publish again the image. I have to kill the node and re launch it. Do you have the same issue ?
I believe the parameter reopen_on_read_failure
should allow to fix this, but I'm not sure if this is the same issue. I'll close for now, reopen if you think it's still an issue.
Hi
When
stop_frame
is set to-1
, capturing the stream leads to the following error:as I briefly reported here: https://github.com/ros-perception/image_pipeline/issues/516#issuecomment-629823085_
Here's the result of a quick investigation. This line handles the case when
stop_frame == -1
: https://github.com/ros-drivers/video_stream_opencv/blob/master/src/video_stream.cpp#L244where
latest_config
is a copy ofconfig
. But https://github.com/ros-drivers/video_stream_opencv/blob/master/src/video_stream.cpp#L140 expects a meaningful value ofstop_frame
.I've managed to avoid the error by making
latest_config
aVideoStreamConfig*
, but I'm not sure if that'll produce unintended effects.