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

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



            return(current_alignment - initial_alignment);
        }
Ejemplo n.º 4
0
 public static void Copy(std_msgs.msg.UInt8 src, std_msgs.msg.UInt8 target)
 {
     target.Set(src);
 }
Ejemplo n.º 5
0
 public static void read(std_msgs.msg.UInt8 data, Halodi.CDR.CDRDeserializer cdr)
 {
     data.data = cdr.read_type_9();
 }
Ejemplo n.º 6
0
 public static void write(std_msgs.msg.UInt8 data, Halodi.CDR.CDRSerializer cdr)
 {
     cdr.write_type_9(data.data);
 }
Ejemplo n.º 7
0
 public static int getCdrSerializedSize(std_msgs.msg.UInt8 data)
 {
     return(getCdrSerializedSize(data, 0));
 }