16 #ifndef PSEN_SCAN_V2_STANDALONE_SCANNER_H 17 #define PSEN_SCAN_V2_STANDALONE_SCANNER_H 52 virtual std::future<void>
start() = 0;
54 virtual std::future<void>
stop() = 0;
58 [[deprecated(
"use const ScannerConfiguration& config() const instead")]]
const ScannerConfiguration&
63 [[deprecated(
"use const LaserScanCallback& laserScanCallback() const instead")]]
const LaserScanCallback&
75 if (!laser_scan_callback)
77 throw std::invalid_argument(
"Laserscan-callback must not be null");
103 #endif // PSEN_SCAN_V2_STANDALONE_SCANNER_H const ScannerConfiguration & config() const
virtual ~IScanner()=default
const ScannerConfiguration config_
const LaserScanCallback & laserScanCallback() const
virtual std::future< void > stop()=0
Stops the scanner.
IScanner(const ScannerConfiguration &scanner_config, const LaserScanCallback &laser_scan_callback)
Higher level data type storing the configuration details of the scanner like scanner IP...
virtual std::future< void > start()=0
Starts the scanner.
Root namespace in which the software components to communicate with the scanner (firmware-version: 2)...
const LaserScanCallback & getLaserScanCallback() const
std::function< void(const LaserScan &)> LaserScanCallback
Represents the user-provided callback for processing incoming scan data.
const LaserScanCallback laser_scan_callback_
const ScannerConfiguration & getConfig() const
This is the API definition for external interaction with the scanner driver.