Beispiel #1
0
 public override void deserialize(MemoryStream stream, sensor_msgs.msg.MagneticField data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
Beispiel #2
0
 public override void serialize(sensor_msgs.msg.MagneticField data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
Beispiel #3
0
        public static void write(sensor_msgs.msg.MagneticField data, Halodi.CDR.CDRSerializer cdr)
        {
            std_msgs.msg.HeaderPubSubType.write(data.header, cdr);

            geometry_msgs.msg.Vector3PubSubType.write(data.magnetic_field, cdr);

            for (int i0 = 0; i0 < 9; ++i0)
            {
                cdr.write_type_6(data.magnetic_field_covariance[i0]);
            }
        }
Beispiel #4
0
        public static int getCdrSerializedSize(sensor_msgs.msg.MagneticField 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.Vector3PubSubType.getCdrSerializedSize(data.magnetic_field, current_alignment);

            current_alignment += ((9) * 8) + Halodi.CDR.CDRCommon.alignment(current_alignment, 8);

            return(current_alignment - initial_alignment);
        }
Beispiel #5
0
        public static void read(sensor_msgs.msg.MagneticField data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.header = std_msgs.msg.HeaderPubSubType.Create();
            std_msgs.msg.HeaderPubSubType.read(data.header, cdr);

            data.magnetic_field = geometry_msgs.msg.Vector3PubSubType.Create();
            geometry_msgs.msg.Vector3PubSubType.read(data.magnetic_field, cdr);

            for (int i0 = 0; i0 < 9; ++i0)
            {
                data.magnetic_field_covariance[i0] = cdr.read_type_6();
            }
        }
Beispiel #6
0
 public static void Copy(sensor_msgs.msg.MagneticField src, sensor_msgs.msg.MagneticField target)
 {
     target.Set(src);
 }
Beispiel #7
0
 public static int getCdrSerializedSize(sensor_msgs.msg.MagneticField data)
 {
     return(getCdrSerializedSize(data, 0));
 }