public static void read(geometry_msgs.msg.InertiaStamped data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.header = std_msgs.msg.HeaderPubSubType.Create();
            std_msgs.msg.HeaderPubSubType.read(data.header, cdr);

            data.inertia = geometry_msgs.msg.InertiaPubSubType.Create();
            geometry_msgs.msg.InertiaPubSubType.read(data.inertia, cdr);
        }
 public override void deserialize(MemoryStream stream, geometry_msgs.msg.InertiaStamped data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
 public override void serialize(geometry_msgs.msg.InertiaStamped data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
        public static int getCdrSerializedSize(geometry_msgs.msg.InertiaStamped data, int current_alignment)
        {
            int initial_alignment = current_alignment;

            current_alignment += std_msgs.msg.HeaderPubSubType.getCdrSerializedSize(data.header, current_alignment);

            current_alignment += geometry_msgs.msg.InertiaPubSubType.getCdrSerializedSize(data.inertia, current_alignment);


            return(current_alignment - initial_alignment);
        }
 public static void Copy(geometry_msgs.msg.InertiaStamped src, geometry_msgs.msg.InertiaStamped target)
 {
     target.Set(src);
 }
        public static void write(geometry_msgs.msg.InertiaStamped data, Halodi.CDR.CDRSerializer cdr)
        {
            std_msgs.msg.HeaderPubSubType.write(data.header, cdr);

            geometry_msgs.msg.InertiaPubSubType.write(data.inertia, cdr);
        }
 public static int getCdrSerializedSize(geometry_msgs.msg.InertiaStamped data)
 {
     return(getCdrSerializedSize(data, 0));
 }