#include "worker.h"
#include "branding/branding.h"
#include "rc_genicam_api/system.h"
#include "rc_genicam_api/interface.h"
#include "check_calib.h"
#include "check_license.h"
#include "util.h"
#include <rclic/verify.h>
#include <Fl/fl_ask.H>
#include <fstream>
Go to the source code of this file.
|
| 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...
|
| |
◆ 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
-
| ilist | Liste of available interfaces. |
| list | Output list of devices. |
| buffer | Buffer for providing information for the user. |
| running | Variable 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
-
| ilist | Liste of available interfaces for discovering the devices. |
| backup_file | Name of backup file to be loaded. |
| running | Variable 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
-
| ldev | Left camera. |
| rdev | Right camera. |
| running | Variable 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
-
| ldev | Left camera. |
| calib | Calibration to be stored on the camera. |
| running | Variable 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_file | Name of backup file to be stored. |
| ldev | Left camera. |
| rdev | Right camera. |
| running | Variable that will be set to false at the end of this function. |
Definition at line 453 of file worker.cc.