コード例 #1
0
        public lcmtypes.camera_info_t Copy()
        {
            lcmtypes.camera_info_t outobj = new lcmtypes.camera_info_t();
            outobj.utime = this.utime;

            outobj.change_lane = this.change_lane;

            outobj.lane_width = this.lane_width;

            outobj.center_line = this.center_line.Copy();

            outobj.lines = new lcmtypes.camera_line_info_t[(int)4];
            for (int a = 0; a < 4; a++)
            {
                outobj.lines[a] = this.lines[a].Copy();
            }

            outobj.object_count = this.object_count;

            outobj.objects = new lcmtypes.camera_object_t[(int)object_count];
            for (int a = 0; a < this.object_count; a++)
            {
                outobj.objects[a] = this.objects[a].Copy();
            }

            return(outobj);
        }
コード例 #2
0
 public static lcmtypes.camera_info_t _decodeRecursiveFactory(LCMDataInputStream ins)
 {
     lcmtypes.camera_info_t o = new lcmtypes.camera_info_t();
     o._decodeRecursive(ins);
     return(o);
 }