Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
CanonDriver Class Reference

#include <CanonDriver.h>

List of all members.

Public Types

enum  AutoExposureMode {
  AXPundef = 0, AXPmode1 = 0x120, AXPmode2 = 0x1b0, AXPmode3 = 0x240,
  AXPmode4 = 0x2d0
}
enum  Direction {
  None = 0, Right = 1, Left = 2, Up = 4,
  UpRight = 5, UpLeft = 6, Down = 8, DownRight = 9,
  DownLeft = 10, Right = 1, Left = 2, Up = 4,
  UpRight = 5, UpLeft = 6, Down = 8, DownRight = 9,
  DownLeft = 10
}
enum  Direction {
  None = 0, Right = 1, Left = 2, Up = 4,
  UpRight = 5, UpLeft = 6, Down = 8, DownRight = 9,
  DownLeft = 10, Right = 1, Left = 2, Up = 4,
  UpRight = 5, UpLeft = 6, Down = 8, DownRight = 9,
  DownLeft = 10
}
enum  FocusMode { FMAuto = 0, FMAutoDomes = 3, FMInfinity = 2, FMManual = 1 }
enum  ManualFocusMode { FMUndef = 0, FMManualFar = 1, FMManualNear = 2 }

Public Member Functions

 CanonDriver (const char *initseq_filename, const char *hostname)
 CanonDriver (const char *initseq_filename, const char *hostname)
bool center ()
bool center ()
bool connect ()
bool connect ()
bool disconnect ()
bool disconnect ()
bool getAutoExposure (bool *autoexp, AutoExposureMode *aem)
void getCurrentPos (double *pan, double *tilt, double *zoom)
void getCurrentPos (double *pan, double *tilt, double *zoom)
unsigned char getDigitalZoom ()
bool getExposureParameters (unsigned int *aperture, unsigned int *inv_shutter, unsigned int *gain)
bool getFocusMode (FocusMode *fm, ManualFocusMode *mfm)
bool getframe ()
bool getImageSize (unsigned int *width, unsigned int *height)
bool getInfraRed ()
bool getNightMode ()
double getObservedFrameRate ()
double getRequiredFrameRate ()
bool getSpeeds (unsigned short *pan, unsigned short *tilt, unsigned short *zoom)
bool getVideoReceptionPauseStatus ()
bool getVideoRecordingStatus () const
bool keepalive ()
bool moveto (double pan, double tilt, double zoom)
bool moveTo (double pan, double tilt, double zoom)
bool movetoward (Direction dir)
bool panto (double pan)
bool panTo (double pan)
bool pauseVideoReception ()
bool requestCurrentPos ()
bool requestCurrentPos ()
bool resumeVideoReception ()
bool sendDatagram (const std::vector< unsigned char > &dgm)
bool setAutoExposure (AutoExposureMode aem=AXPundef)
bool setDigitalZoom (unsigned char zoom)
bool setExposureParameters (unsigned int aperture, unsigned int inv_shutter, unsigned int gain)
bool setFocusMode (FocusMode fm, ManualFocusMode mfm=FMUndef)
void setFrameRate (double fps)
bool setImageSize (unsigned int width, unsigned int height)
bool setInfraRed (bool activated=true)
bool setManualExposure ()
void setMaxFrameRate ()
bool setMaxSpeed ()
bool setMinSpeed ()
bool setNightMode (bool activated=true)
bool setPanSpeed (unsigned short speed)
void setRecordingDestination (const char *dirname)
bool setTiltSpeed (unsigned short speed)
void setVerboseLevel (unsigned int v)
void setVideoOutputColorSpace (JpegReader::ColorSpace cspace)
bool setVideoReceptionPauseStatus (bool pause)
void setVideoRecordingMode (bool mode)
bool setZoomSpeed (unsigned short speed)
bool startDeZooming ()
bool startMoving (Direction dir)
bool startVideoReception (unsigned char *dst, VideoManager::SignalF f, void *farg=NULL)
bool startVideoReception (VideoManager::SignalF f, void *farg=NULL)
void startVideoRecording ()
bool startZooming ()
bool stop ()
bool stop ()
bool stopVideoReception ()
void stopVideoRecording ()
bool stopZooming ()
bool tiltto (double to)
bool tiltTo (double to)
bool waitcompletion ()
bool zoomto (double zoom)
bool zoomTo (double zoom)
 ~CanonDriver ()
 ~CanonDriver ()

Static Public Attributes

static const unsigned int CONTROL_PORT = 65311
static const unsigned int VIDEO_PORT = 65310

Protected Member Functions

bool interpreteDatagram33 (const Datagram &dgm)
bool sendAndWait (unsigned char id, unsigned short status, unsigned char *data=NULL, unsigned int datasize=0)
bool sendAndWait33 (unsigned char id, unsigned short status, unsigned char *data=NULL, unsigned int datasize=0)
bool sendRequestAndWait (unsigned char id, unsigned short status, Datagram &dgm, unsigned char *data=NULL, unsigned int datasize=0)

Protected Attributes

CommManager cm
bool connected
double cpan
double ctilt
Socketctrlsock
double czoom
char * host
std::vector< Datagraminit_reply
std::vector< Datagraminit_seq
std::vector< Datagramkeepalive_reply
std::vector< Datagramkeepalive_seq
unsigned int verbose
Socketvideosock
VideoManager vm

Detailed Description

Definition at line 11 of file CanonDriver.h.


Member Enumeration Documentation

TODO : find the meaning of these modes

Enumerator:
AXPundef 
AXPmode1 
AXPmode2 
AXPmode3 
AXPmode4 

Definition at line 79 of file CanonDriver.h.

Enumerator:
None 
Right 
Left 
Up 
UpRight 
UpLeft 
Down 
DownRight 
DownLeft 
Right 
Left 
Up 
UpRight 
UpLeft 
Down 
DownRight 
DownLeft 

Definition at line 43 of file CanonDriver.old.h.

Enumerator:
None 
Right 
Left 
Up 
UpRight 
UpLeft 
Down 
DownRight 
DownLeft 
Right 
Left 
Up 
UpRight 
UpLeft 
Down 
DownRight 
DownLeft 

Definition at line 50 of file CanonDriver.h.

Enumerator:
FMAuto 
FMAutoDomes 
FMInfinity 
FMManual 

Definition at line 73 of file CanonDriver.h.

Enumerator:
FMUndef 
FMManualFar 
FMManualNear 

Definition at line 74 of file CanonDriver.h.


Constructor & Destructor Documentation

CanonDriver::CanonDriver ( const char *  initseq_filename,
const char *  hostname 
)

Definition at line 9 of file CanonDriver.cpp.

Definition at line 17 of file CanonDriver.cpp.

CanonDriver::CanonDriver ( const char *  initseq_filename,
const char *  hostname 
)

Member Function Documentation

Definition at line 165 of file CanonDriver.cpp.

Definition at line 26 of file CanonDriver.cpp.

Definition at line 91 of file CanonDriver.cpp.

bool CanonDriver::getAutoExposure ( bool *  autoexp,
AutoExposureMode aem 
)

Definition at line 338 of file CanonDriver.cpp.

void CanonDriver::getCurrentPos ( double *  pan,
double *  tilt,
double *  zoom 
)
void CanonDriver::getCurrentPos ( double *  pan,
double *  tilt,
double *  zoom 
)

Definition at line 211 of file CanonDriver.cpp.

unsigned char CanonDriver::getDigitalZoom ( )

Definition at line 430 of file CanonDriver.cpp.

bool CanonDriver::getExposureParameters ( unsigned int *  aperture,
unsigned int *  inv_shutter,
unsigned int *  gain 
)

Definition at line 396 of file CanonDriver.cpp.

Definition at line 324 of file CanonDriver.cpp.

Definition at line 114 of file CanonDriver.old.cpp.

bool CanonDriver::getImageSize ( unsigned int *  width,
unsigned int *  height 
)

Definition at line 458 of file CanonDriver.cpp.

Definition at line 446 of file CanonDriver.cpp.

Definition at line 438 of file CanonDriver.cpp.

Definition at line 631 of file CanonDriver.cpp.

Definition at line 626 of file CanonDriver.cpp.

bool CanonDriver::getSpeeds ( unsigned short *  pan,
unsigned short *  tilt,
unsigned short *  zoom 
)

Definition at line 289 of file CanonDriver.cpp.

Definition at line 76 of file CanonDriver.cpp.

Definition at line 651 of file CanonDriver.cpp.

bool CanonDriver::interpreteDatagram33 ( const Datagram dgm) [protected]

Definition at line 573 of file CanonDriver.cpp.

Definition at line 131 of file CanonDriver.old.cpp.

bool CanonDriver::moveto ( double  pan,
double  tilt,
double  zoom 
)

Definition at line 179 of file CanonDriver.old.cpp.

bool CanonDriver::moveTo ( double  pan,
double  tilt,
double  zoom 
)

Definition at line 112 of file CanonDriver.cpp.

Definition at line 254 of file CanonDriver.old.cpp.

bool CanonDriver::panto ( double  pan)

Definition at line 230 of file CanonDriver.old.cpp.

bool CanonDriver::panTo ( double  pan)

Definition at line 147 of file CanonDriver.cpp.

Definition at line 81 of file CanonDriver.cpp.

Definition at line 183 of file CanonDriver.cpp.

Definition at line 86 of file CanonDriver.cpp.

bool CanonDriver::sendAndWait ( unsigned char  id,
unsigned short  status,
unsigned char *  data = NULL,
unsigned int  datasize = 0 
) [protected]

Definition at line 497 of file CanonDriver.cpp.

bool CanonDriver::sendAndWait33 ( unsigned char  id,
unsigned short  status,
unsigned char *  data = NULL,
unsigned int  datasize = 0 
) [protected]

Definition at line 531 of file CanonDriver.cpp.

bool CanonDriver::sendDatagram ( const std::vector< unsigned char > &  dgm)

Definition at line 586 of file CanonDriver.cpp.

bool CanonDriver::sendRequestAndWait ( unsigned char  id,
unsigned short  status,
Datagram dgm,
unsigned char *  data = NULL,
unsigned int  datasize = 0 
) [protected]

Definition at line 463 of file CanonDriver.cpp.

Definition at line 359 of file CanonDriver.cpp.

bool CanonDriver::setDigitalZoom ( unsigned char  zoom)

Definition at line 412 of file CanonDriver.cpp.

bool CanonDriver::setExposureParameters ( unsigned int  aperture,
unsigned int  inv_shutter,
unsigned int  gain 
)

Definition at line 376 of file CanonDriver.cpp.

Definition at line 305 of file CanonDriver.cpp.

void CanonDriver::setFrameRate ( double  fps)

Definition at line 621 of file CanonDriver.cpp.

bool CanonDriver::setImageSize ( unsigned int  width,
unsigned int  height 
)

768x576, 384x288, 192x144, 96x72

Definition at line 453 of file CanonDriver.cpp.

bool CanonDriver::setInfraRed ( bool  activated = true)

Definition at line 423 of file CanonDriver.cpp.

Definition at line 371 of file CanonDriver.cpp.

Definition at line 616 of file CanonDriver.cpp.

Definition at line 271 of file CanonDriver.cpp.

Definition at line 280 of file CanonDriver.cpp.

bool CanonDriver::setNightMode ( bool  activated = true)

Definition at line 417 of file CanonDriver.cpp.

bool CanonDriver::setPanSpeed ( unsigned short  speed)

Definition at line 238 of file CanonDriver.cpp.

void CanonDriver::setRecordingDestination ( const char *  dirname)

Definition at line 664 of file CanonDriver.cpp.

bool CanonDriver::setTiltSpeed ( unsigned short  speed)

Definition at line 249 of file CanonDriver.cpp.

void CanonDriver::setVerboseLevel ( unsigned int  v) [inline]

Definition at line 126 of file CanonDriver.h.

Definition at line 636 of file CanonDriver.cpp.

Definition at line 66 of file CanonDriver.cpp.

Definition at line 656 of file CanonDriver.cpp.

bool CanonDriver::setZoomSpeed ( unsigned short  speed)

Definition at line 260 of file CanonDriver.cpp.

Definition at line 231 of file CanonDriver.cpp.

Definition at line 171 of file CanonDriver.cpp.

bool CanonDriver::startVideoReception ( unsigned char *  dst,
VideoManager::SignalF  f,
void *  farg = NULL 
)

Definition at line 44 of file CanonDriver.cpp.

bool CanonDriver::startVideoReception ( VideoManager::SignalF  f,
void *  farg = NULL 
)

Definition at line 38 of file CanonDriver.cpp.

Definition at line 641 of file CanonDriver.cpp.

Definition at line 220 of file CanonDriver.cpp.

Definition at line 178 of file CanonDriver.cpp.

Definition at line 61 of file CanonDriver.cpp.

Definition at line 646 of file CanonDriver.cpp.

Definition at line 226 of file CanonDriver.cpp.

bool CanonDriver::tiltto ( double  to)

Definition at line 236 of file CanonDriver.old.cpp.

bool CanonDriver::tiltTo ( double  to)

Definition at line 153 of file CanonDriver.cpp.

Definition at line 151 of file CanonDriver.old.cpp.

bool CanonDriver::zoomto ( double  zoom)

Definition at line 242 of file CanonDriver.old.cpp.

bool CanonDriver::zoomTo ( double  zoom)

Definition at line 159 of file CanonDriver.cpp.


Member Data Documentation

Definition at line 20 of file CanonDriver.h.

bool CanonDriver::connected [protected]

Definition at line 18 of file CanonDriver.h.

static const unsigned int CanonDriver::CONTROL_PORT = 65311 [static]

Definition at line 14 of file CanonDriver.h.

double CanonDriver::cpan [protected]

Definition at line 32 of file CanonDriver.h.

double CanonDriver::ctilt [protected]

Definition at line 32 of file CanonDriver.h.

Definition at line 14 of file CanonDriver.old.h.

double CanonDriver::czoom [protected]

Definition at line 32 of file CanonDriver.h.

char * CanonDriver::host [protected]

Definition at line 22 of file CanonDriver.h.

std::vector<Datagram> CanonDriver::init_reply [protected]

Definition at line 19 of file CanonDriver.old.h.

std::vector<Datagram> CanonDriver::init_seq [protected]

Definition at line 18 of file CanonDriver.old.h.

std::vector<Datagram> CanonDriver::keepalive_reply [protected]

Definition at line 21 of file CanonDriver.old.h.

std::vector<Datagram> CanonDriver::keepalive_seq [protected]

Definition at line 20 of file CanonDriver.old.h.

unsigned int CanonDriver::verbose [protected]

Definition at line 19 of file CanonDriver.h.

static const unsigned int CanonDriver::VIDEO_PORT = 65310 [static]

Definition at line 15 of file CanonDriver.h.

Definition at line 15 of file CanonDriver.old.h.

Definition at line 21 of file CanonDriver.h.


The documentation for this class was generated from the following files:


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Sun Oct 5 2014 23:47:45