CameraControl Class Reference

This class is an interface to pan, tilt, and otherwise move the camera. More...

#include <Devices/CameraControl.H>

Inheritance diagram for CameraControl:
Inheritance graph
[legend]
Collaboration diagram for CameraControl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CameraControl (OptionManager &mgr, const std::string &descrName="Camera Controller", const std::string &tagName="CameraControl", int setPort=0, bool setCam=true, int pPort=0, int tPort=1, int Port=1)
 Initialize a camera control object.
 ~CameraControl ()
 Destructor.
float moveCamXYFrame (int X, int Y, int camNumber=0, bool simluate=false)
 move the camera to a point X,Y in an image
float moveCamTPFrame (float theta, float phi, int camNumber=0)
 center the camera
void centerCamera (int camNumber=0)
 center the camera
void panRelative (float doPan)
 pan the camera a certain amount relative to the current pos in deg.
void tiltRelative (float doTilt)
 tilt the camera a certain amount relative to the current pos in deg.
void panAbsolute (float doPan)
 pan the camora to an absolute position in deg.
void tiltAbsolute (float doTilt)
 tilt the camera to an absolute position in deg.
void setImageSize (int X, int Y)
 set the size of the image for moveCamXYFrame if not 640x480
void useCalibration (bool useIt)
 tells if calibration is to be used to different cameras
float getCurrentPan ()
 get the current position pan of the camera in deg.
float getCurrentTilt ()
 get the current postion tilt of the camera in deg.
float getSimPan ()
 get the current position pan of the camera in deg.
float getSimTilt ()
 get the current postion tilt of the camera in deg.

Detailed Description

This class is an interface to pan, tilt, and otherwise move the camera.

Definition at line 14 of file CameraControl.H.


Constructor & Destructor Documentation

CameraControl::CameraControl ( OptionManager mgr,
const std::string descrName = "Camera Controller",
const std::string tagName = "CameraControl",
int  setPort = 0,
bool  setCam = true,
int  pPort = 0,
int  tPort = 1,
int  Port = 1 
)

Initialize a camera control object.

Definition at line 14 of file CameraControl.C.

References ModelComponent::addSubComponent(), centerCamera(), cameraConf::Xcenter, and cameraConf::Ycenter.

CameraControl::~CameraControl (  ) 

Destructor.

Definition at line 36 of file CameraControl.C.


Member Function Documentation

void CameraControl::centerCamera ( int  camNumber = 0  ) 

center the camera

Definition at line 189 of file CameraControl.C.

References cameraConf::servoPixels, cameraConf::Xcenter, and cameraConf::Ycenter.

Referenced by CameraControl().

float CameraControl::getCurrentPan (  ) 

get the current position pan of the camera in deg.

Definition at line 263 of file CameraControl.C.

Referenced by panRelative().

float CameraControl::getCurrentTilt (  ) 

get the current postion tilt of the camera in deg.

Definition at line 271 of file CameraControl.C.

Referenced by tiltRelative().

float CameraControl::getSimPan (  ) 

get the current position pan of the camera in deg.

Definition at line 279 of file CameraControl.C.

float CameraControl::getSimTilt (  ) 

get the current postion tilt of the camera in deg.

Definition at line 286 of file CameraControl.C.

float CameraControl::moveCamTPFrame ( float  theta,
float  phi,
int  camNumber = 0 
)
float CameraControl::moveCamXYFrame ( int  X,
int  Y,
int  camNumber = 0,
bool  simluate = false 
)
void CameraControl::panAbsolute ( float  doPan  ) 

pan the camora to an absolute position in deg.

Definition at line 230 of file CameraControl.C.

References ASSERT, cameraConf::SSCXconnector, cameraConf::XlimitEnd, and cameraConf::XlimitStart.

void CameraControl::panRelative ( float  doPan  ) 

pan the camera a certain amount relative to the current pos in deg.

Definition at line 213 of file CameraControl.C.

References ASSERT, getCurrentPan(), cameraConf::SSCXconnector, cameraConf::XlimitEnd, and cameraConf::XlimitStart.

void CameraControl::setImageSize ( int  X,
int  Y 
)

set the size of the image for moveCamXYFrame if not 640x480

Definition at line 248 of file CameraControl.C.

References cameraConf::Xpixel, and cameraConf::Ypixel.

void CameraControl::tiltAbsolute ( float  doTilt  ) 

tilt the camera to an absolute position in deg.

Definition at line 239 of file CameraControl.C.

References ASSERT, cameraConf::SSCYconnector, cameraConf::YlimitEnd, and cameraConf::YlimitStart.

void CameraControl::tiltRelative ( float  doTilt  ) 

tilt the camera a certain amount relative to the current pos in deg.

Definition at line 222 of file CameraControl.C.

References ASSERT, getCurrentTilt(), cameraConf::SSCYconnector, cameraConf::YlimitEnd, and cameraConf::YlimitStart.

void CameraControl::useCalibration ( bool  useIt  ) 

tells if calibration is to be used to different cameras

Definition at line 256 of file CameraControl.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:10 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3