コード例 #1
0
 /// <summary>
 /// basic constructor
 /// </summary>
 public Hokuyo()
 {
     this._hokuyo              = new UrgCtrl.UrgCtrl();
     this.cartesian_data       = new List <CartesianXY>();
     this.org_list_data        = new List <int>();
     this.read_index_to_radian = new List <double>();
 }
コード例 #2
0
        /// <summary>
        /// constructor
        /// </summary>
        public Hokuyo(int _com_port_number, int _baudrate)
        {
            this._hokuyo              = new UrgCtrl.UrgCtrl();
            this.is_connected_sensor  = this._hokuyo.Connect(_com_port_number, _baudrate);
            this.org_data             = new int[this._hokuyo.MaxBufferSize];
            this.cartesian_data       = new List <CartesianXY>();
            this.org_list_data        = new List <int>();
            this.read_index_to_radian = new List <double>();

            //// for debug
            //this.save_data_to_txt = new StreamWriter("hokuyo_info.txt");
        }