yarp icon indicating copy to clipboard operation
yarp copied to clipboard

Disconnect reversed connection (i.e. mjpeg) should work like normal connections

Open randaz81 opened this issue 8 years ago • 2 comments

The following command:

yarp disconnect /a /b

seems to have no effect on a mjpeg connection. @vtikha @drdanz @barbalberto

randaz81 avatar Jun 08 '16 09:06 randaz81

mjpeg connection is reversed. Try

yarp disconnect /b /a

drdanz avatar Jun 08 '16 09:06 drdanz

@randaz81 This is a known behaviour, but I cannot find documentation about it.

This is an issue that deserves to be investigated, because in the long term, I would like to be able to close it properly.

yarpdev --device test_grabber
yarpview --name /view
yarp connect /grabber /view mjpeg
yarp admin rpc /grabber
>>list out
Response: null
>>list out null
Response: (from "/grabber") (to null) (carrier mjpeg) (push 0)
yarp admin rpc /view
>>list in
Response: "/grabber" anon_rpc
>>list in /grabber
Response: (from "/grabber") (to "/view") (carrier mjpeg) (push 0)
yarpview --name /view2
yarp connect /grabber /view2 mjpeg
yarp admin rpc /grabber
>>list out
Response: null null
>>list out null
Response: (from "/grabber") (to null) (carrier mjpeg) (push 0) (from "/grabber") (to null) (carrier mjpeg) (push 0)

So even if we could change the disconnect for reversed connections, at the moment the sender does not have the information required to perform it

drdanz avatar Jun 17 '16 12:06 drdanz