DUNE: Uniform Navigational Environment
2019.02.1
|
Implementation of the GigE Vision Control Protocol (GVCP).
Other cameras might have registers in different addresses. The right way to handle this would be to parse the Zipped XML that the camera provides.
Public Types |
Public Member Functions | |
GVCP (const Address &cam_addr) | |
~GVCP (void) | |
void | setPrivilege (unsigned bits) |
void | setStreamPort (uint16_t port) |
void | setStreamAddress (const Address &address) |
void | setPixelFormat (PixelFormats format) |
void | setFPS (FramesPerSecond fps) |
void | setFPS (unsigned fps) |
void | setExposureTime (double exposure) |
void | setGain (unsigned gain) |
void | setGamma (unsigned gamma) |
void | setStrobeMode (StrobeModes mode, bool polarity=true) |
void | setStrobeDelay (int32_t delay) |
void | setStrobeDuration (uint32_t duration) |
void | startStreaming (void) |
void | stopStreaming (void) |
void | keepAlive (void) |
Register addresses.
Enumerator | |
---|---|
ADR_STREAM_PRT |
Primary stream destination port. |
ADR_STREAM_ADR |
Primary stream destination address. |
ADR_PRIV |
Control privilege. |
ADR_WIDTH |
Picture width (fixed). |
ADR_HEIGHT |
Picture height (fixed). |
ADR_OFFS_X |
Picture offset (X). |
ADR_OFFS_Y |
Picture offset (Y). |
ADR_PIX_FMT |
Pixel format. |
ADR_ACQ_CTL |
Acquisition control: start/stop. |
ADR_FPS |
Frames per second. |
ADR_EXPO_RAW |
Exposure time (raw). |
ADR_GAMMA_RAW |
Gamma (raw). |
ADR_GAIN_RAW |
Gain (raw). |
ADR_STROBE_MOD |
Strobe mode. |
ADR_STROBE_DUR |
Strobe duration. |
ADR_STROBE_DEL |
Strobe delay. |
|
inline |
|
inline |
References setPrivilege(), and stopStreaming().
|
inline |
Send keep-alive signal.
References ADR_PRIV, OP_REG_READ, OP_REG_WRITE, TYPE_CAM_COM, and TYPE_COM_CAM.
Referenced by Vision::DFK51BG02H::Task::onMain().
|
inline |
References ADR_EXPO_RAW.
Referenced by Vision::DFK51BG02H::Task::onMain(), and Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Configure number of frames per second.
[in] | fps | frames per second. |
References ADR_FPS.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization(), and setFPS().
|
inline |
|
inline |
Configure gain.
[in] | gain | raw gain. |
References ADR_GAIN_RAW.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Configure gamma.
[in] | gamma | raw gamma. |
References ADR_GAMMA_RAW.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Set pixel format.
[in] | format | pixel format. |
References ADR_PIX_FMT.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Set access privileges. It's mandatory (or so I think)
References ADR_PRIV.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization(), and ~GVCP().
|
inline |
Configure destination stream address (GVSP).
[in] | address | destination IP address. |
References ADR_STREAM_ADR.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Configure destination stream port (GVSP).
[in] | port | UDP port. |
References ADR_STREAM_PRT.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Set strobe delay.
[in] | delay | strobe delay. |
References ADR_STROBE_DEL.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Set strobe duration.
[in] | duration | strobe duration. |
References ADR_STROBE_DUR.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Configure strobe mode.
[in] | mode | strobe mode. |
[in] | polarity | strobe polarity, false means inverted polarity. |
References ADR_STROBE_DEL, ADR_STROBE_DUR, ADR_STROBE_MOD, STROBE_BV_EXPOSURE, STROBE_BV_ON_OFF, STROBE_BV_POLARITY, STROBE_MODE_ALWAYS_ON, STROBE_MODE_EXPOSURE, STROBE_MODE_FIXED, and STROBE_MODE_OFF.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization(), and stopStreaming().
|
inline |
Start streaming.
References ADR_ACQ_CTL.
Referenced by Vision::DFK51BG02H::Task::onResourceInitialization().
|
inline |
Stop streaming.
References ADR_ACQ_CTL, setStrobeMode(), and STROBE_MODE_OFF.
Referenced by ~GVCP().