Mavlink camera Manager (0.9) functionality in SDK 1.0.0
-
Hello,
I'm curious to know if the mavlink-camera-manager's functionality of switching between RTSP streams in the QGC camera selector is functional in the VOXL SDK 1.0.0 using the voxl-mavcam-manager?
-
@Jeremy-Frederick Yes, it is supported. A video is here: https://www.youtube.com/watch?v=LSM6spG7gzo
-
@Eric-Katzfey Whenever I attempt to run multiple instances of the mavcam-manager, my existing instance is automatically stopped. From the documentation, I'm working under the assumption that running multiple instances of the mavcam-manager, which are fed separate RTSP URL's from standalone versions of the voxl-streamer is the method to advertise multiple cameras to QGC. Is there a separate process to advertise multiple RTSP streams to QGC on SDK 1.0.0? Or is this something that will require a custom service.
-
This requires a custom service @Jeremy-Frederick - you can technically just re-instantiate the voxl-mavmcam-manager in another service and have it running on another thread (which is what I would recommend). The RTSP stream can raelly only handle once connection, otherwise there is good change you will get frames dropped the more instances of qgc you connect too, so I would recommend spinning up a second instance of mavcam-manager on another service. The same goes for voxl-streamer as well - I wouldnt recommend connecting to more than one or two instances of VLC or QGC to the rtsp stream, or else you will start seeing major packet loss. Hopefully this helps you out.
Feel free to hit me up for more help if needed! zachary.lowell@ascendengineer.com
-
@Jeremy-Frederick the quick and easy way to implement this is to remove the following:
https://gitlab.com/voxl-public/voxl-sdk/services/voxl-mavcam-manager/-/commit/718a4b7d34e2115dfe64d5ef0a78b28fc7976092#3a576e09615c0e19842e5f3ac31e858c9ae7fe41_142_135 and rebuild - this code is what kills the first instance and starts the second. In the meantime internally we are updating a fix and can be expected to be seen in the next release of mavcam manager.
-
@Jeremy-Frederick The code has been refactored quite extensively to better support multiple instances. The dev version with these updates is available here: http://voxl-packages.modalai.com/dists/qrb5165/dev/binary-arm64/voxl-mavcam-manager_0.5.4-202401290941_arm64.deb. The user guide is here: https://docs.modalai.com/voxl-mavcam-manager/. Hopefully this works better for you.
-
@Eric-Katzfey This is working great, been playing around with it for the last week or so. The next thing I'll be working on will be the order in which the cameras streams are displayed to QGC. It seems right now on boot the initial stream that comes up in randomized over the various camera being fed into QGC.