camcom 1.0.3
 
Loading...
Searching...
No Matches
camcom::genicam::GenICamAdapter::Impl Struct Reference

Public Member Functions

void checkError (GErrorGuard &err, const std::string &context)
 Check a GError and throw if set (logs at ERROR level)
 
void checkErrorSoft (GErrorGuard &err, const std::string &context)
 Check a GError and throw if set (no logging - caller handles)
 
void loadNodeMapFromDevice ()
 Read the GenICam XML from the device, parse into NodeMap.
 
void scanParameters ()
 Scan all readable nodes and update their values from the device.
 
bool refreshPayloadSize ()
 Refresh cached payload size from the device after geometry changes.
 
common::Parameter readFromDevice (const std::string &camera_name)
 Read a single parameter from the device (live, not cached)
 
void writeToDevice (const std::string &camera_name, const common::Parameter &param)
 Write a value to the device.
 
void createStream ()
 Create the Aravis stream for acquisition.
 
void pushBuffers ()
 Push empty buffers into the stream for acquisition.
 
void clearDevice ()
 Clean up device.
 
void clearStream ()
 Clean up stream.
 

Public Attributes

bool connected {false}
 
std::atomic< bool > control_lost {false}
 
ArvDevicedevice {nullptr}
 
ArvStreamstream {nullptr}
 
NodeMap nodes
 
bool acquiring {false}
 
common::AcqMode acq_mode {common::AcqMode::Inactive}
 
std::optional< int64_t > target_frame_count
 
std::atomic< int64_t > frames_received {0}
 
std::chrono::steady_clock::time_point acq_start_time
 
std::atomic< double > current_fps {0.0}
 
uint64_t payload_size {0}
 
int32_t num_buffers {10}
 
std::string host_address
 
std::string cam_address
 
int64_t packet_size {1500}
 
gulong signal_handler_id {0}
 

Member Function Documentation

◆ checkError()

void camcom::genicam::GenICamAdapter::Impl::checkError ( GErrorGuard & err,
const std::string & context )
inline

Check a GError and throw if set (logs at ERROR level)

◆ checkErrorSoft()

void camcom::genicam::GenICamAdapter::Impl::checkErrorSoft ( GErrorGuard & err,
const std::string & context )
inline

Check a GError and throw if set (no logging - caller handles)

◆ clearDevice()

void camcom::genicam::GenICamAdapter::Impl::clearDevice ( )
inline

Clean up device.

◆ clearStream()

void camcom::genicam::GenICamAdapter::Impl::clearStream ( )
inline

Clean up stream.

◆ createStream()

void camcom::genicam::GenICamAdapter::Impl::createStream ( )
inline

Create the Aravis stream for acquisition.

◆ loadNodeMapFromDevice()

void camcom::genicam::GenICamAdapter::Impl::loadNodeMapFromDevice ( )
inline

Read the GenICam XML from the device, parse into NodeMap.

◆ pushBuffers()

void camcom::genicam::GenICamAdapter::Impl::pushBuffers ( )
inline

Push empty buffers into the stream for acquisition.

◆ readFromDevice()

common::Parameter camcom::genicam::GenICamAdapter::Impl::readFromDevice ( const std::string & camera_name)
inline

Read a single parameter from the device (live, not cached)

◆ refreshPayloadSize()

bool camcom::genicam::GenICamAdapter::Impl::refreshPayloadSize ( )
inline

Refresh cached payload size from the device after geometry changes.

◆ scanParameters()

void camcom::genicam::GenICamAdapter::Impl::scanParameters ( )
inline

Scan all readable nodes and update their values from the device.

◆ writeToDevice()

void camcom::genicam::GenICamAdapter::Impl::writeToDevice ( const std::string & camera_name,
const common::Parameter & param )
inline

Write a value to the device.

Member Data Documentation

◆ acq_mode

common::AcqMode camcom::genicam::GenICamAdapter::Impl::acq_mode {common::AcqMode::Inactive}

◆ acq_start_time

std::chrono::steady_clock::time_point camcom::genicam::GenICamAdapter::Impl::acq_start_time

◆ acquiring

bool camcom::genicam::GenICamAdapter::Impl::acquiring {false}

◆ cam_address

std::string camcom::genicam::GenICamAdapter::Impl::cam_address

◆ connected

bool camcom::genicam::GenICamAdapter::Impl::connected {false}

◆ control_lost

std::atomic<bool> camcom::genicam::GenICamAdapter::Impl::control_lost {false}

◆ current_fps

std::atomic<double> camcom::genicam::GenICamAdapter::Impl::current_fps {0.0}

◆ device

ArvDevice* camcom::genicam::GenICamAdapter::Impl::device {nullptr}

◆ frames_received

std::atomic<int64_t> camcom::genicam::GenICamAdapter::Impl::frames_received {0}

◆ host_address

std::string camcom::genicam::GenICamAdapter::Impl::host_address

◆ nodes

NodeMap camcom::genicam::GenICamAdapter::Impl::nodes

◆ num_buffers

int32_t camcom::genicam::GenICamAdapter::Impl::num_buffers {10}

◆ packet_size

int64_t camcom::genicam::GenICamAdapter::Impl::packet_size {1500}

◆ payload_size

uint64_t camcom::genicam::GenICamAdapter::Impl::payload_size {0}

◆ signal_handler_id

gulong camcom::genicam::GenICamAdapter::Impl::signal_handler_id {0}

◆ stream

ArvStream* camcom::genicam::GenICamAdapter::Impl::stream {nullptr}

◆ target_frame_count

std::optional<int64_t> camcom::genicam::GenICamAdapter::Impl::target_frame_count

The documentation for this struct was generated from the following file: