TarzaNN
TarzaNN neural network simulator
C:/Users/albertlr/projects/TarzaNN/TarzaNN/ptuController.h
Go to the documentation of this file.
00001 #ifndef PTUCONTROLLER_H_INCLUDED
00002 #define PTUCONTROLLER_H_INCLUDED
00003 
00004 #include "stdafx.h"
00005 #include "ptu.h"
00006 #include "Network.h"
00007 
00008 #include <common.h>
00009 
00010 #define CAMRES 0.0421 // define the camera resolution in degrees per pixel
00011 
00012 class ptuController {
00013         friend class SaliencyOutputFeaturePlane;        // necessary so that the output plane can access the ptuController methods
00014 
00015 protected:
00016         // constructor. hostPort is the serial port where the pan-tilt unit is located, and baudRate is the default baud rate for the controller
00017         // w and h are the width and height of the image in pixels
00018         ptuController(  char* hostPort = "COM4",
00019                                         int baudRate = 9600);
00020 
00021         portstream_fd ptUnit;   // portstream object
00022         float pRes;     // current pan resolution
00023         float tRes;     // current tilt resolution
00024         int pPos;       // current horizontal (pan) position
00025         int tPos;       // current vertical (tilt) position
00026 
00027         // move the camera to fixate on a given set of target coordinates
00028         void fixate(int targX, int targY);
00029 
00030         //destructor
00031         ~ptuController();
00032 
00033         
00034 //public:
00035 
00036 //private:
00037 
00038 };
00039 #endif //PTUCONTROLLER_H_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines