send classifier output through an LSL protocol

About the GUI application to design signal processing pipelines
Post Reply
camille
Posts: 2
Joined: Wed Jan 06, 2016 11:42 am

send classifier output through an LSL protocol

Post 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

jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: send classifier output through an LSL protocol

Post 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

camille
Posts: 2
Joined: Wed Jan 06, 2016 11:42 am

Re: send classifier output through an LSL protocol

Post by camille »

Jussi,

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

Thank you very much,
Cheers,

camille

Post Reply