Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            host   = new CRobotHost(this);
            camera = new CWebcam(livePanel, null);
            camera.Initialize();
            camera.SetReady();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="ui">The user interface for this Host</param>
        public Host(UI ui)
        {
            m_UI = ui;                                  // The user interface

            m_RobotHost = new CRobotHost(this);         // The CRobotHost that will handle communication

            m_pixelsperfoot = 2.0;                      // This is the floorplan scale, and we may not need it

            loadSettings();
        }
Ejemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();

            host   = new CRobotHost(this);
            camera = new CWebcam(livePanel, null, false);
            camera.Initialize();
            camera.SetReady();

            driveBackground = new Bitmap("driveBackground2.png");
            g = Graphics.FromHwnd(drivePanel.Handle);
        }
Ejemplo n.º 4
0
        public MainForm()
        {
            InitializeComponent();

            m_host = new CRobotHost(this);

            m_destImage = Image.FromFile("Images\\destImage.png");

            m_camera = new CWebcam(livePanel, null, false);
            m_camera.Initialize();
            m_camera.SetReady();

            m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2);

            m_fg = Graphics.FromHwnd(floorPlanPanel.Handle);

            m_pixelsperfoot = 2.0;

            m_callback = new TimerCallback(DrawScale);
            m_fpState  = fpState.NONE;

            t_DrawFloorDelegate = new DDrawFloor(DrawFloor);
        }
Ejemplo n.º 5
0
 public Host()
 {
     host = new CRobotHost(this);
 }