Пример #1
0
        public static void read(actionlib_msgs.msg.GoalID data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.stamp = builtin_interfaces.msg.TimePubSubType.Create();
            builtin_interfaces.msg.TimePubSubType.read(data.stamp, cdr);

            data.id = cdr.read_type_d();
        }
Пример #2
0
 public override void deserialize(MemoryStream stream, actionlib_msgs.msg.GoalID data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
Пример #3
0
 public override void serialize(actionlib_msgs.msg.GoalID data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
Пример #4
0
        public static int getCdrSerializedSize(actionlib_msgs.msg.GoalID data, int current_alignment)
        {
            int initial_alignment = current_alignment;

            current_alignment += builtin_interfaces.msg.TimePubSubType.getCdrSerializedSize(data.stamp, current_alignment);

            current_alignment += 4 + Halodi.CDR.CDRCommon.alignment(current_alignment, 4) + data.id.Length + 1;


            return(current_alignment - initial_alignment);
        }
Пример #5
0
 public static void Copy(actionlib_msgs.msg.GoalID src, actionlib_msgs.msg.GoalID target)
 {
     target.Set(src);
 }
Пример #6
0
        public static void write(actionlib_msgs.msg.GoalID data, Halodi.CDR.CDRSerializer cdr)
        {
            builtin_interfaces.msg.TimePubSubType.write(data.stamp, cdr);

            cdr.write_type_d(data.id);
        }
Пример #7
0
 public static int getCdrSerializedSize(actionlib_msgs.msg.GoalID data)
 {
     return(getCdrSerializedSize(data, 0));
 }