Page 1 of 1

send classifier output through an LSL protocol

Posted: Wed Jan 06, 2016 1:45 pm
by camille
hello,

I would like to use the "LSL Export (Gipsa)" box to send the output of the classifier (SVM) to a python script in order to control motors via an Arduino.
the thing is that the output of the classifier is a "Streamed Matrix" while the LSL box takes "Signals" as input.

would you have an idea about how I could do that?

thank you very much,

camille

Re: send classifier output through an LSL protocol

Posted: Fri Jan 08, 2016 8:30 am
by jtlindgren
Hi Camille,

you could try the following (no guarantees). Set the following top secret token in openvibe.conf,

Code: Select all

Designer_AllowUpCastConnection = True
and then connect the Classifier Processor to Matrix Transpose (this is to upgrade the 1-dimensional 'matrix' to a 2-dimensional one understood by the export box), and then this transpose to the LSL Export. It just might work, although the resulting sampling rate in the stream will be 0.

Let us know if it works. :)

Happy hacking,
Jussi

Re: send classifier output through an LSL protocol

Posted: Fri Jan 08, 2016 2:05 pm
by camille
Jussi,

It works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You cannot imagine how released I am ;)

Thank you very much,
Cheers,

camille