Exemplo n.º 1
0
 /// <summary>
 /// Set a single element in the vector by index.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="value"></param>
 public void Set(int index, double value)
 {
     RSUtils.ReceiveSync <DefaultUpdateResponseType>(taskQueue, opPort.SetByIndex(new List <int>()
     {
         index
     }, new List <double>()
     {
         value
     }, DateTime.Now), Myro.Utilities.Params.DefaultRecieveTimeout);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set a single element in the vector by index.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="value"></param>
 public void Set(int index, double value)
 {
     //try
     //{
     RSUtils.ReceiveSync <DefaultUpdateResponseType>(taskQueue, opPort.SetByIndex(new List <int>()
     {
         index
     }, new List <double>()
     {
         value
     }, DateTime.Now), Myro.Utilities.Params.defaultRecieveTimeout);
     //}
     //catch (ArgumentOutOfRangeException)
     //{
     //    throw new AdapterArgumentException(Strings.IndexOutOfBounds(index));
     //}
 }