コード例 #1
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.ip_address = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.preset_number = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #2
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.header = mwt.header_t._decodeRecursiveFactory(ins);

            this.left_utime = ins.ReadInt64();

            this.right_utime = ins.ReadInt64();

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.left_class_name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.right_class_name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.left_x = ins.ReadDouble();

            this.left_y = ins.ReadDouble();

            this.right_x = ins.ReadDouble();

            this.right_y = ins.ReadDouble();

            this.left_box_width = ins.ReadDouble();

            this.left_box_height = ins.ReadDouble();

            this.right_box_width = ins.ReadDouble();

            this.right_box_height = ins.ReadDouble();

            this.conf_left = ins.ReadDouble();

            this.conf_right = ins.ReadDouble();

            this.source = ins.ReadDouble();
        }
コード例 #3
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.ip_address = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.status_code = ins.ReadInt16();

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.response_message = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #4
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.mode = ins.ReadByte();

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.ip_address = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.pan_value = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.tilt_value = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.zoom_value = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #5
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.total_cams = ins.ReadInt32();

            this.ip_addresses = new String[(int)total_cams];
            for (int a = 0; a < this.total_cams; a++)
            {
                __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.ip_addresses[a] = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
            }

            this.status_code = ins.ReadInt16();

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.response_message = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #6
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.header = mwt.header_t._decodeRecursiveFactory(ins);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.val = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #7
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.publisher = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.cam1_timestamp = ins.ReadDouble();

            this.cam2_timestamp = ins.ReadDouble();

            this.left_utime = ins.ReadInt64();

            this.right_utime = ins.ReadInt64();

            this.sequence = ins.ReadInt64();

            this.camera_orientation = ins.ReadInt32();

            this.width = ins.ReadInt32();

            this.height = ins.ReadInt32();

            this.row_stride = ins.ReadInt32();

            this.pixelformat = ins.ReadInt32();

            this.size = ins.ReadInt32();

            this.data = new byte[(int)size];
            for (int a = 0; a < this.size; a++)
            {
                this.data[a] = ins.ReadByte();
            }
        }
コード例 #8
0
ファイル: example_t.cs プロジェクト: RX-00/monopod
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.timestamp = ins.ReadInt64();

            this.position = new double[(int)3];
            for (int a = 0; a < 3; a++)
            {
                this.position[a] = ins.ReadDouble();
            }

            this.orientation = new double[(int)4];
            for (int a = 0; a < 4; a++)
            {
                this.orientation[a] = ins.ReadDouble();
            }

            this.num_ranges = ins.ReadInt32();

            this.ranges = new short[(int)num_ranges];
            for (int a = 0; a < this.num_ranges; a++)
            {
                this.ranges[a] = ins.ReadInt16();
            }

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.enabled = ins.ReadBoolean();
        }
コード例 #9
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.publisher = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.left_boxes = mwt.bounding_box_list_t._decodeRecursiveFactory(ins);

            this.right_boxes = mwt.bounding_box_list_t._decodeRecursiveFactory(ins);
        }
コード例 #10
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.publisher = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.timestamp = ins.ReadDouble();

            this.sequence = ins.ReadInt64();
        }
コード例 #11
0
ファイル: ml_cfg_t.cs プロジェクト: AmyPhung/UnityLCMDebugger
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.score_threshold = ins.ReadInt32();

            this.box_deviation = ins.ReadInt32();

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.model_name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.framerate = ins.ReadInt32();

            this.exit_app = ins.ReadInt32();
        }
コード例 #12
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.header = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            this.decoderoutput = new double[(int)4];
            for (int a = 0; a < 4; a++)
            {
                this.decoderoutput[a] = ins.ReadDouble();
            }

            this.timestamp = ins.ReadInt64();
        }
コード例 #13
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.utime = ins.ReadInt64();

            this.num_boxes = ins.ReadSByte();

            this.boxes = new mwt.bounding_box_t[(int)num_boxes];
            for (int a = 0; a < this.num_boxes; a++)
            {
                this.boxes[a] = mwt.bounding_box_t._decodeRecursiveFactory(ins);
            }

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.model_name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #14
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.ip_address = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.profile = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.codec_type = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.resolution = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.frame_rate = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.compression_level = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.channel = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }
コード例 #15
0
        public void _decodeRecursive(LCMDataInputStream ins)
        {
            byte[] __strbuf = null;
            this.left = ins.ReadDouble();

            this.top = ins.ReadDouble();

            this.width = ins.ReadDouble();

            this.height = ins.ReadDouble();

            this.num_classes = ins.ReadSByte();

            this.scores = new double[(int)num_classes];
            for (int a = 0; a < this.num_classes; a++)
            {
                this.scores[a] = ins.ReadDouble();
            }

            __strbuf = new byte[ins.ReadInt32() - 1]; ins.ReadFully(__strbuf); ins.ReadByte(); this.class_name = System.Text.Encoding.GetEncoding("US-ASCII").GetString(__strbuf);
        }