public override List <byte[]> SerializationStatements()
        {
            var listOfSerializations = new List <byte[]>();

            listOfSerializations.AddRange(header.SerializationStatements());
            listOfSerializations.Add(SerializeString(this.ns));
            listOfSerializations.Add(BitConverter.GetBytes(this.id));
            listOfSerializations.Add(BitConverter.GetBytes(this.type));
            listOfSerializations.Add(BitConverter.GetBytes(this.action));
            listOfSerializations.AddRange(pose.SerializationStatements());
            listOfSerializations.AddRange(scale.SerializationStatements());
            listOfSerializations.AddRange(color.SerializationStatements());
            listOfSerializations.AddRange(lifetime.SerializationStatements());
            listOfSerializations.Add(BitConverter.GetBytes(this.frame_locked));

            listOfSerializations.Add(BitConverter.GetBytes(points.Length));
            foreach (var entry in points)
            {
                listOfSerializations.Add(entry.Serialize());
            }

            listOfSerializations.Add(BitConverter.GetBytes(colors.Length));
            foreach (var entry in colors)
            {
                listOfSerializations.Add(entry.Serialize());
            }
            listOfSerializations.Add(SerializeString(this.text));
            listOfSerializations.Add(SerializeString(this.mesh_resource));
            listOfSerializations.Add(BitConverter.GetBytes(this.mesh_use_embedded_materials));

            return(listOfSerializations);
        }
Exemple #2
0
        public override List <byte[]> SerializationStatements()
        {
            var listOfSerializations = new List <byte[]>();

            listOfSerializations.AddRange(header.SerializationStatements());
            listOfSerializations.AddRange(orientation.SerializationStatements());

            Array.Resize(ref orientation_covariance, 9);
            foreach (var entry in orientation_covariance)
            {
                listOfSerializations.Add(BitConverter.GetBytes(entry));
            }
            listOfSerializations.AddRange(angular_velocity.SerializationStatements());

            Array.Resize(ref angular_velocity_covariance, 9);
            foreach (var entry in angular_velocity_covariance)
            {
                listOfSerializations.Add(BitConverter.GetBytes(entry));
            }
            listOfSerializations.AddRange(linear_acceleration.SerializationStatements());

            Array.Resize(ref linear_acceleration_covariance, 9);
            foreach (var entry in linear_acceleration_covariance)
            {
                listOfSerializations.Add(BitConverter.GetBytes(entry));
            }

            return(listOfSerializations);
        }
        public override List <byte[]> SerializationStatements()
        {
            var listOfSerializations = new List <byte[]>();

            listOfSerializations.Add(BitConverter.GetBytes(this.robot_id));
            listOfSerializations.AddRange(position.SerializationStatements());
            listOfSerializations.Add(BitConverter.GetBytes(this.rotation));

            return(listOfSerializations);
        }
Exemple #4
0
        public override List <byte[]> SerializationStatements()
        {
            var listOfSerializations = new List <byte[]>();

            listOfSerializations.AddRange(header.SerializationStatements());
            listOfSerializations.AddRange(magnetic_field.SerializationStatements());

            Array.Resize(ref magnetic_field_covariance, 9);
            foreach (var entry in magnetic_field_covariance)
            {
                listOfSerializations.Add(BitConverter.GetBytes(entry));
            }

            return(listOfSerializations);
        }