#include <CanonDriver.h>
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 |
| Socket * | ctrlsock |
| double | czoom |
| char * | host |
| std::vector< Datagram > | init_reply |
| std::vector< Datagram > | init_seq |
| std::vector< Datagram > | keepalive_reply |
| std::vector< Datagram > | keepalive_seq |
| unsigned int | verbose |
| Socket * | videosock |
| VideoManager | vm |
Definition at line 11 of file CanonDriver.h.
TODO : find the meaning of these modes
Definition at line 79 of file CanonDriver.h.
| 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.
| 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.
Definition at line 73 of file CanonDriver.h.
Definition at line 74 of file CanonDriver.h.
| 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 | ||
| ) |
| bool CanonDriver::center | ( | ) |
| bool CanonDriver::center | ( | ) |
Definition at line 165 of file CanonDriver.cpp.
| bool CanonDriver::connect | ( | ) |
| bool CanonDriver::connect | ( | ) |
Definition at line 26 of file CanonDriver.cpp.
| bool CanonDriver::disconnect | ( | ) |
| bool CanonDriver::disconnect | ( | ) |
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.
| bool CanonDriver::getFocusMode | ( | FocusMode * | fm, |
| ManualFocusMode * | mfm | ||
| ) |
Definition at line 324 of file CanonDriver.cpp.
| bool CanonDriver::getframe | ( | ) |
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.
| bool CanonDriver::getInfraRed | ( | ) |
Definition at line 446 of file CanonDriver.cpp.
| bool CanonDriver::getNightMode | ( | ) |
Definition at line 438 of file CanonDriver.cpp.
| double CanonDriver::getObservedFrameRate | ( | ) |
Definition at line 631 of file CanonDriver.cpp.
| double CanonDriver::getRequiredFrameRate | ( | ) |
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.
| bool CanonDriver::getVideoRecordingStatus | ( | ) | const |
Definition at line 651 of file CanonDriver.cpp.
| bool CanonDriver::interpreteDatagram33 | ( | const Datagram & | dgm | ) | [protected] |
Definition at line 573 of file CanonDriver.cpp.
| bool CanonDriver::keepalive | ( | ) |
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.
| bool CanonDriver::movetoward | ( | Direction | dir | ) |
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.
| bool CanonDriver::pauseVideoReception | ( | ) |
Definition at line 81 of file CanonDriver.cpp.
| bool CanonDriver::requestCurrentPos | ( | ) |
| bool CanonDriver::requestCurrentPos | ( | ) |
Definition at line 183 of file CanonDriver.cpp.
| bool CanonDriver::resumeVideoReception | ( | ) |
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.
| bool CanonDriver::setAutoExposure | ( | AutoExposureMode | aem = AXPundef | ) |
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.
| bool CanonDriver::setFocusMode | ( | FocusMode | fm, |
| ManualFocusMode | mfm = FMUndef |
||
| ) |
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.
| bool CanonDriver::setManualExposure | ( | ) |
Definition at line 371 of file CanonDriver.cpp.
| void CanonDriver::setMaxFrameRate | ( | ) |
Definition at line 616 of file CanonDriver.cpp.
| bool CanonDriver::setMaxSpeed | ( | ) |
Definition at line 271 of file CanonDriver.cpp.
| bool CanonDriver::setMinSpeed | ( | ) |
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.
| void CanonDriver::setVideoOutputColorSpace | ( | JpegReader::ColorSpace | cspace | ) |
Definition at line 636 of file CanonDriver.cpp.
| bool CanonDriver::setVideoReceptionPauseStatus | ( | bool | pause | ) |
Definition at line 66 of file CanonDriver.cpp.
| void CanonDriver::setVideoRecordingMode | ( | bool | mode | ) |
Definition at line 656 of file CanonDriver.cpp.
| bool CanonDriver::setZoomSpeed | ( | unsigned short | speed | ) |
Definition at line 260 of file CanonDriver.cpp.
| bool CanonDriver::startDeZooming | ( | ) |
Definition at line 231 of file CanonDriver.cpp.
| bool CanonDriver::startMoving | ( | Direction | dir | ) |
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.
| void CanonDriver::startVideoRecording | ( | ) |
Definition at line 641 of file CanonDriver.cpp.
| bool CanonDriver::startZooming | ( | ) |
Definition at line 220 of file CanonDriver.cpp.
| bool CanonDriver::stop | ( | ) |
| bool CanonDriver::stop | ( | ) |
Definition at line 178 of file CanonDriver.cpp.
| bool CanonDriver::stopVideoReception | ( | ) |
Definition at line 61 of file CanonDriver.cpp.
| void CanonDriver::stopVideoRecording | ( | ) |
Definition at line 646 of file CanonDriver.cpp.
| bool CanonDriver::stopZooming | ( | ) |
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.
| bool CanonDriver::waitcompletion | ( | ) |
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.
CommManager CanonDriver::cm [protected] |
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.
Socket* CanonDriver::ctrlsock [protected] |
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.
Socket* CanonDriver::videosock [protected] |
Definition at line 15 of file CanonDriver.old.h.
VideoManager CanonDriver::vm [protected] |
Definition at line 21 of file CanonDriver.h.