Functions
worker.h File Reference
#include "check_window.h"
#include "rc_genicam_api/device.h"
#include <atomic>
Include dependency graph for worker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void discoverWorker (const std::vector< std::shared_ptr< rcg::Interface > > &ilist, DeviceList *list, Fl_Text_Buffer *buffer, std::atomic_bool &running)
 Discover suitable devices and add them to the given list. More...
 
void resetFromFileWorker (const std::vector< std::shared_ptr< rcg::Interface > > &ilist, const char *backup_file, std::atomic_bool &running)
 Resetting a device from backup file. More...
 
void resetNameWorker (rcg::Device *ldev, rcg::Device *rdev, std::atomic_bool &running)
 Reset name of left and right camera to default. More...
 
void setCalibrationWorker (rcg::Device *ldev, const gutil::Properties *calib, std::atomic_bool &running)
 Stroing calibration data on the left camera. More...
 
void storeBackupWorker (const char *backup_file, rcg::Device *ldev, rcg::Device *rdev, std::atomic_bool &running)
 Store backup file. More...
 

Function Documentation

◆ discoverWorker()

void discoverWorker ( const std::vector< std::shared_ptr< rcg::Interface > > &  ilist,
DeviceList list,
Fl_Text_Buffer *  buffer,
std::atomic_bool &  running 
)

Discover suitable devices and add them to the given list.

NOTE: The operation takes some time and should therefore be run as thread.

Parameters
ilistListe of available interfaces.
listOutput list of devices.
bufferBuffer for providing information for the user.
runningVariable that will be set to false at the end of this function.

Definition at line 46 of file worker.cc.

◆ resetFromFileWorker()

void resetFromFileWorker ( const std::vector< std::shared_ptr< rcg::Interface > > &  ilist,
const char *  backup_file,
std::atomic_bool &  running 
)

Resetting a device from backup file.

NOTE: The operation takes some time and should therefore be run as thread.

Parameters
ilistListe of available interfaces for discovering the devices.
backup_fileName of backup file to be loaded.
runningVariable that will be set to false at the end of this function.

Definition at line 520 of file worker.cc.

◆ resetNameWorker()

void resetNameWorker ( rcg::Device *  ldev,
rcg::Device *  rdev,
std::atomic_bool &  running 
)

Reset name of left and right camera to default.

NOTE: The operation takes some time and should therefore be run as thread.

Parameters
ldevLeft camera.
rdevRight camera.
runningVariable that will be set to false at the end of this function.

Definition at line 416 of file worker.cc.

◆ setCalibrationWorker()

void setCalibrationWorker ( rcg::Device *  ldev,
const gutil::Properties *  calib,
std::atomic_bool &  running 
)

Stroing calibration data on the left camera.

NOTE: The operation takes some time and should therefore be run as thread.

Parameters
ldevLeft camera.
calibCalibration to be stored on the camera.
runningVariable that will be set to false at the end of this function.

Definition at line 702 of file worker.cc.

◆ storeBackupWorker()

void storeBackupWorker ( const char *  backup_file,
rcg::Device *  ldev,
rcg::Device *  rdev,
std::atomic_bool &  running 
)

Store backup file.

NOTE: The operation takes some time and should therefore be run as thread.

Parameters
backup_fileName of backup file to be stored.
ldevLeft camera.
rdevRight camera.
runningVariable that will be set to false at the end of this function.

Definition at line 453 of file worker.cc.



rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56