I'm working with the OAK-D PoE RGB camera and I'm trying to achieve two things:
Stream video using RTSP
Capture still images from the RGB camera using CameraControl and serve them over HTTP.
Here are the two pipelines I'm trying to combine: gen2-rtsp, and Script HTTTP Server.
I've set up a system where I can start and stop video streaming using a ROS Bool topic. This part seems to work fine. However, I've run into a snag when trying to retrieve images. When I make a ROS service call from the terminal to fetch the image from the HTTP link, it works the first time. But on subsequent calls, the callback seems to hang, preventing me from fetching another image.
My current workaround is to use the mono camera for video streaming and a separate color camera for capturing RGB images. I'd appreciate any insights or suggestions on this issue.
Here's the code for reference:
Video and Still link on RGB camera