public void Set(DrivingTrajectory other)
        {
            look_ahead_distance = other.look_ahead_distance;

            K = other.K;


            if (other.trajectory_points == null)
            {
                trajectory_points = null;
            }
            else
            {
                trajectory_points = new System.Collections.Generic.List <halodi_msgs.msg.DrivingTrajectoryPoint>(other.trajectory_points.Count);
                for (int i1 = 0; i1 < other.trajectory_points.Count; i1++)
                {
                    if (other.trajectory_points[i1] == null)
                    {
                        trajectory_points.Add(null);
                    }
                    else
                    {
                        halodi_msgs.msg.DrivingTrajectoryPoint newElement = halodi_msgs.msg.DrivingTrajectoryPointPubSubType.Create();
                        halodi_msgs.msg.DrivingTrajectoryPointPubSubType.Copy(other.trajectory_points[i1], newElement);
                        trajectory_points.Add(newElement);
                    }
                }
            }
        }
Example #2
0
 public override void deserialize(MemoryStream stream, halodi_msgs.msg.DrivingTrajectoryPoint data)
 {
     using (BinaryReader reader = new BinaryReader(stream))
     {
         Halodi.CDR.CDRDeserializer cdr = new Halodi.CDR.CDRDeserializer(reader);
         read(data, cdr);
     }
 }
Example #3
0
 public override void serialize(halodi_msgs.msg.DrivingTrajectoryPoint data, MemoryStream stream)
 {
     using (BinaryWriter writer = new BinaryWriter(stream))
     {
         Halodi.CDR.CDRSerializer cdr = new Halodi.CDR.CDRSerializer(writer);
         write(data, cdr);
     }
 }
Example #4
0
        public static void read(halodi_msgs.msg.DrivingTrajectoryPoint data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.x = cdr.read_type_6();

            data.y = cdr.read_type_6();

            data.yaw = cdr.read_type_6();

            data.desired_linear_velocity = cdr.read_type_6();

            data.desired_angular_velocity = cdr.read_type_6();
        }
Example #5
0
        public static void write(halodi_msgs.msg.DrivingTrajectoryPoint data, Halodi.CDR.CDRSerializer cdr)
        {
            cdr.write_type_6(data.x);

            cdr.write_type_6(data.y);

            cdr.write_type_6(data.yaw);

            cdr.write_type_6(data.desired_linear_velocity);

            cdr.write_type_6(data.desired_angular_velocity);
        }
Example #6
0
        public static void read(halodi_msgs.msg.DrivingTrajectory data, Halodi.CDR.CDRDeserializer cdr)
        {
            data.look_ahead_distance = cdr.read_type_6();

            data.K = cdr.read_type_6();


            int trajectory_points_length = cdr.read_type_2();

            data.trajectory_points = new System.Collections.Generic.List <halodi_msgs.msg.DrivingTrajectoryPoint>(trajectory_points_length);
            for (int i = 0; i < trajectory_points_length; i++)
            {
                halodi_msgs.msg.DrivingTrajectoryPoint new_trajectory_points = halodi_msgs.msg.DrivingTrajectoryPointPubSubType.Create();
                halodi_msgs.msg.DrivingTrajectoryPointPubSubType.read(new_trajectory_points, cdr);
                data.trajectory_points.Add(new_trajectory_points);
            }
        }
Example #7
0
        public static int getCdrSerializedSize(halodi_msgs.msg.DrivingTrajectoryPoint data, int current_alignment)
        {
            int initial_alignment = current_alignment;

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


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


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


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


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



            return(current_alignment - initial_alignment);
        }
Example #8
0
 public static void Copy(halodi_msgs.msg.DrivingTrajectoryPoint src, halodi_msgs.msg.DrivingTrajectoryPoint target)
 {
     target.Set(src);
 }
Example #9
0
 public static int getCdrSerializedSize(halodi_msgs.msg.DrivingTrajectoryPoint data)
 {
     return(getCdrSerializedSize(data, 0));
 }