Go to the documentation of this file.
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&
73 : config_(scanner_config), laser_scan_callback_(laser_scan_callback)
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 LaserScanCallback & getLaserScanCallback() const
const ScannerConfiguration & getConfig() const
const LaserScanCallback laser_scan_callback_
const ScannerConfiguration & config() const
virtual ~IScanner()=default
const ScannerConfiguration config_
This class represents a single laser scan in the <tf_prefix> target frame.
Root namespace in which the software components to communicate with the scanner (firmware-version: 2)...
std::function< void(const LaserScan &)> LaserScanCallback
Represents the user-provided callback for processing incoming scan data.
const LaserScanCallback & laserScanCallback() const
virtual std::future< void > start()=0
Starts the scanner.
IScanner(const ScannerConfiguration &scanner_config, const LaserScanCallback &laser_scan_callback)
virtual std::future< void > stop()=0
Stops the scanner.
This is the API definition for external interaction with the scanner driver.
Higher level data type storing the configuration details of the scanner like scanner IP,...
psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12