Ejemplo n.º 1
0
 /// <summary>
 /// Receive body parts information
 /// </summary>
 /// <param name="currSample">
 /// The float array containing the body parts statuses. The parameters are -1.0 for no connection,
 /// 1.0 for connected but a problem with the system/ motor, 0.0 connected and no problem.
 /// </param>
 /// <returns>Success.</returns>
 public bool proprioception_set(Float32Array currSample)
 {
     //print("Proprio: " + currSample.Data);
     // check if the float array contains information for the 6 body parts
     if (currSample.CalculateSize() >= 6)
     {
         /* body_manager() handles the information in currSample for the 6 body parts
          * mapping:
          * 41 id of the head icon, position in currSample 0
          * 42 id of the right_body icon, position in currSample 1
          * 43 id of the left_body icon, position in currSample 2
          * 44 id of the right_hand icon, position in currSample 3
          * 45 id of the left_hand icon, position in currSample 4
          * 46 id of the wheelchair icon, position in currSample 5
          */
         body_manager(41, 0, currSample);
         body_manager(42, 1, currSample);
         body_manager(43, 2, currSample);
         body_manager(44, 3, currSample);
         body_manager(45, 4, currSample);
         body_manager(46, 5, currSample);
     }
     return(true);
 }