public void receivedData(out string received) { Bottle b = new Bottle(); b=input.read(); if (b != null) received = b.toString_c(); else received = ""; b.Dispose(); }
private void onContinuousRecognitionResult(object sender, RecognizeCompletedEventArgs args) { //m_reco_continuous.RecognizeAsyncCancel(); if (args.Result != null) { Bottle bReco = new Bottle(); bReco.clear(); //Console.WriteLine("Continuous reco : " + args.Result.Text); foreach (RecognizedWordUnit word in args.Result.Words) { bReco.addString(word.Text); bReco.addDouble(word.Confidence); } m_portContinuousRecognition.write(bReco); Console.WriteLine("Async. Recog : " + bReco.toString_c().c_str()); } m_reco_continuous.RecognizeAsync(); }
public void sendComandOPC(string comand, YarpBottle bot) { Bottle temp = new Bottle(); temp.addString(comand); Bottle booo= temp.addList(); booo.append(bot); outPort.write(temp); Console.WriteLine(temp.toString_c()); }