Ejemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public void sendData(List<float> data)
        {
            //devo convertire la stringa in bottle
            Bottle bt = new Bottle();
            foreach (float ft in data)
            {
                //Bottle bt2 = new Bottle();
                bt.addDouble(ft);

                //bt.addList() = bt2;

            }
           

            outPort.write(bt);
            bt.clear();
            bt.Dispose();
        }
Ejemplo n.º 2
0
        public void receivedData(out string received) 
        {
            Bottle b = new Bottle();
            b=input.read();

            if (b != null)
                received = b.toString_c();
            else
                received = "";

            
            b.Dispose();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public void sendData(float data)
        {
            //devo convertire la stringa in bottle
            Bottle bt = new Bottle();
            bt.addDouble(data);

            outPort.write(bt);
            bt.clear();
            bt.Dispose();
        }