Esempio n. 1
0
 public override void deserialize(MemoryStream stream, geometry_msgs.msg.PoseWithCovariance data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
Esempio n. 2
0
 public override void serialize(geometry_msgs.msg.PoseWithCovariance data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
Esempio n. 3
0
        public static void write(geometry_msgs.msg.PoseWithCovariance data, Halodi.CDR.CDRSerializer cdr)
        {
            geometry_msgs.msg.PosePubSubType.write(data.pose, cdr);

            for (int i0 = 0; i0 < 36; ++i0)
            {
                cdr.write_type_6(data.covariance[i0]);
            }
        }
Esempio n. 4
0
        public static void read(geometry_msgs.msg.PoseWithCovariance data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.pose = geometry_msgs.msg.PosePubSubType.Create();
            geometry_msgs.msg.PosePubSubType.read(data.pose, cdr);

            for (int i0 = 0; i0 < 36; ++i0)
            {
                data.covariance[i0] = cdr.read_type_6();
            }
        }
Esempio n. 5
0
        public static int getCdrSerializedSize(geometry_msgs.msg.PoseWithCovariance data, int current_alignment)
        {
            int initial_alignment = current_alignment;

            current_alignment += geometry_msgs.msg.PosePubSubType.getCdrSerializedSize(data.pose, current_alignment);

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

            return(current_alignment - initial_alignment);
        }
Esempio n. 6
0
 public static void Copy(geometry_msgs.msg.PoseWithCovariance src, geometry_msgs.msg.PoseWithCovariance target)
 {
     target.Set(src);
 }
Esempio n. 7
0
 public static int getCdrSerializedSize(geometry_msgs.msg.PoseWithCovariance data)
 {
     return(getCdrSerializedSize(data, 0));
 }