This is the API definition for external interaction with the scanner driver. More...
#include <scanner_interface.h>
Public Types | |
using | LaserScanCallback = std::function< void(const LaserScan &)> |
Represents the user-provided callback for processing incoming scan data. More... | |
Public Member Functions | |
IScanner (const ScannerConfiguration &scanner_config, const LaserScanCallback &laser_scan_callback) | |
virtual std::future< void > | start ()=0 |
Starts the scanner. More... | |
virtual std::future< void > | stop ()=0 |
Stops the scanner. More... | |
virtual | ~IScanner ()=default |
Protected Member Functions | |
const ScannerConfiguration & | config () const |
const ScannerConfiguration & | getConfig () const |
const LaserScanCallback & | getLaserScanCallback () const |
const LaserScanCallback & | laserScanCallback () const |
Private Attributes | |
const ScannerConfiguration | config_ |
const LaserScanCallback | laser_scan_callback_ |
This is the API definition for external interaction with the scanner driver.
This interface allows to:
Definition at line 40 of file scanner_interface.h.
using psen_scan_v2_standalone::IScanner::LaserScanCallback = std::function<void(const LaserScan&)> |
Represents the user-provided callback for processing incoming scan data.
Definition at line 44 of file scanner_interface.h.
|
inline |
Definition at line 72 of file scanner_interface.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 81 of file scanner_interface.h.
|
inlineprotected |
deprecated: use const ScannerConfiguration& config() const instead
Definition at line 91 of file scanner_interface.h.
|
inlineprotected |
deprecated: use const LaserScanCallback& laserScanCallback() const instead
Definition at line 96 of file scanner_interface.h.
|
inlineprotected |
Definition at line 86 of file scanner_interface.h.
|
pure virtual |
Starts the scanner.
Implemented in psen_scan_v2_standalone::ScannerV2.
|
pure virtual |
Stops the scanner.
Implemented in psen_scan_v2_standalone::ScannerV2.
|
private |
Definition at line 68 of file scanner_interface.h.
|
private |
Definition at line 69 of file scanner_interface.h.