Ejemplo n.º 1
0
        public static void read(action_msgs.msg.GoalStatus data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.goal_info = action_msgs.msg.GoalInfoPubSubType.Create();
            action_msgs.msg.GoalInfoPubSubType.read(data.goal_info, cdr);

            data.status = cdr.read_type_9();
        }
Ejemplo n.º 2
0
 public override void deserialize(MemoryStream stream, action_msgs.msg.GoalStatus data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
Ejemplo n.º 3
0
 public override void serialize(action_msgs.msg.GoalStatus data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
Ejemplo n.º 4
0
        public static int getCdrSerializedSize(action_msgs.msg.GoalStatus data, int current_alignment)
        {
            int initial_alignment = current_alignment;

            current_alignment += action_msgs.msg.GoalInfoPubSubType.getCdrSerializedSize(data.goal_info, current_alignment);

            current_alignment += 1 + Halodi.CDR.CDRCommon.alignment(current_alignment, 1);



            return(current_alignment - initial_alignment);
        }
        public static void read(action_msgs.msg.GoalStatusArray data, Halodi.CDR.CDRDeserializer cdr)
        {
            int status_list_length = cdr.read_type_2();

            data.status_list = new System.Collections.Generic.List <action_msgs.msg.GoalStatus>(status_list_length);
            for (int i = 0; i < status_list_length; i++)
            {
                action_msgs.msg.GoalStatus new_status_list = action_msgs.msg.GoalStatusPubSubType.Create();
                action_msgs.msg.GoalStatusPubSubType.read(new_status_list, cdr);
                data.status_list.Add(new_status_list);
            }
        }
Ejemplo n.º 6
0
 public void Set(GoalStatusArray other)
 {
     if (other.status_list == null)
     {
         status_list = null;
     }
     else
     {
         status_list = new System.Collections.Generic.List <action_msgs.msg.GoalStatus>(other.status_list.Count);
         for (int i1 = 0; i1 < other.status_list.Count; i1++)
         {
             if (other.status_list[i1] == null)
             {
                 status_list.Add(null);
             }
             else
             {
                 action_msgs.msg.GoalStatus newElement = action_msgs.msg.GoalStatusPubSubType.Create();
                 action_msgs.msg.GoalStatusPubSubType.Copy(other.status_list[i1], newElement);
                 status_list.Add(newElement);
             }
         }
     }
 }
Ejemplo n.º 7
0
 public static void Copy(action_msgs.msg.GoalStatus src, action_msgs.msg.GoalStatus target)
 {
     target.Set(src);
 }
Ejemplo n.º 8
0
        public static void write(action_msgs.msg.GoalStatus data, Halodi.CDR.CDRSerializer cdr)
        {
            action_msgs.msg.GoalInfoPubSubType.write(data.goal_info, cdr);

            cdr.write_type_9(data.status);
        }
Ejemplo n.º 9
0
 public static int getCdrSerializedSize(action_msgs.msg.GoalStatus data)
 {
     return(getCdrSerializedSize(data, 0));
 }