Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
psen_scan_v2_standalone::ScannerConfiguration Class Reference

Higher level data type storing the configuration details of the scanner like scanner IP, port, scan range, etc. More...

#include <scanner_configuration.h>

Public Member Functions

uint32_t clientIp () const
 
bool diagnosticsEnabled () const
 
bool fragmentedScansEnabled () const
 
boost::optional< uint32_t > hostIp () const
 
void hostIp (const uint32_t &host_ip)
 
uint16_t hostUDPPortControl () const
 
uint16_t hostUDPPortData () const
 
bool intensitiesEnabled () const
 
uint8_t nrSubscribers () const
 
uint16_t scannerControlPort () const
 
uint16_t scannerDataPort () const
 
const ScanRangescanRange () const
 
const util::TenthOfDegreescanResolution () const
 
void setHostIp (const uint32_t &host_ip)
 

Private Member Functions

bool isComplete () const
 
bool isValid () const
 
 ScannerConfiguration ()=default
 

Private Attributes

bool diagnostics_enabled_ { configuration::DIAGNOSTICS }
 
bool fragmented_scans_ { configuration::FRAGMENTED_SCANS }
 
uint16_t host_control_port_ { configuration::CONTROL_PORT_OF_HOST_DEVICE }
 
uint16_t host_data_port_ { configuration::DATA_PORT_OF_HOST_DEVICE }
 
boost::optional< uint32_t > host_ip_
 
bool intensities_enabled_ { configuration::INTENSITIES }
 
uint8_t nr_subscribers_ { configuration::NR_SUBSCRIBERS }
 
boost::optional< ScanRangescan_range_ {}
 
util::TenthOfDegree scan_resolution_
 
uint16_t scanner_control_port_ { configuration::CONTROL_PORT_OF_SCANNER_DEVICE }
 
uint16_t scanner_data_port_ { configuration::DATA_PORT_OF_SCANNER_DEVICE }
 
boost::optional< uint32_t > scanner_ip_
 

Friends

class ScannerConfigurationBuilder
 

Detailed Description

Higher level data type storing the configuration details of the scanner like scanner IP, port, scan range, etc.

If no host IP is set the driver will use the IP of the local machine.

See also
ScanRange

Definition at line 34 of file scanner_configuration.h.

Constructor & Destructor Documentation

◆ ScannerConfiguration()

psen_scan_v2_standalone::ScannerConfiguration::ScannerConfiguration ( )
privatedefault

Member Function Documentation

◆ clientIp()

uint32_t psen_scan_v2_standalone::ScannerConfiguration::clientIp ( ) const
inline

Definition at line 116 of file scanner_configuration.h.

◆ diagnosticsEnabled()

bool psen_scan_v2_standalone::ScannerConfiguration::diagnosticsEnabled ( ) const
inline

Definition at line 141 of file scanner_configuration.h.

◆ fragmentedScansEnabled()

bool psen_scan_v2_standalone::ScannerConfiguration::fragmentedScansEnabled ( ) const
inline

Definition at line 151 of file scanner_configuration.h.

◆ hostIp() [1/2]

boost::optional< uint32_t > psen_scan_v2_standalone::ScannerConfiguration::hostIp ( ) const
inline

Definition at line 101 of file scanner_configuration.h.

◆ hostIp() [2/2]

void psen_scan_v2_standalone::ScannerConfiguration::hostIp ( const uint32_t &  host_ip)
inline

Definition at line 161 of file scanner_configuration.h.

◆ hostUDPPortControl()

uint16_t psen_scan_v2_standalone::ScannerConfiguration::hostUDPPortControl ( ) const
inline

Definition at line 111 of file scanner_configuration.h.

◆ hostUDPPortData()

uint16_t psen_scan_v2_standalone::ScannerConfiguration::hostUDPPortData ( ) const
inline

Definition at line 106 of file scanner_configuration.h.

◆ intensitiesEnabled()

bool psen_scan_v2_standalone::ScannerConfiguration::intensitiesEnabled ( ) const
inline

Definition at line 146 of file scanner_configuration.h.

◆ isComplete()

bool psen_scan_v2_standalone::ScannerConfiguration::isComplete ( ) const
inlineprivate

Definition at line 86 of file scanner_configuration.h.

◆ isValid()

bool psen_scan_v2_standalone::ScannerConfiguration::isValid ( ) const
inlineprivate

Definition at line 91 of file scanner_configuration.h.

◆ nrSubscribers()

uint8_t psen_scan_v2_standalone::ScannerConfiguration::nrSubscribers ( ) const
inline

Definition at line 156 of file scanner_configuration.h.

◆ scannerControlPort()

uint16_t psen_scan_v2_standalone::ScannerConfiguration::scannerControlPort ( ) const
inline

Definition at line 126 of file scanner_configuration.h.

◆ scannerDataPort()

uint16_t psen_scan_v2_standalone::ScannerConfiguration::scannerDataPort ( ) const
inline

Definition at line 121 of file scanner_configuration.h.

◆ scanRange()

const ScanRange & psen_scan_v2_standalone::ScannerConfiguration::scanRange ( ) const
inline

Definition at line 131 of file scanner_configuration.h.

◆ scanResolution()

const util::TenthOfDegree & psen_scan_v2_standalone::ScannerConfiguration::scanResolution ( ) const
inline

Definition at line 136 of file scanner_configuration.h.

◆ setHostIp()

void psen_scan_v2_standalone::ScannerConfiguration::setHostIp ( const uint32_t &  host_ip)
inline

deprecated: use void hostIp(const uint32_t& host_ip) instead

Definition at line 166 of file scanner_configuration.h.

Friends And Related Function Documentation

◆ ScannerConfigurationBuilder

friend class ScannerConfigurationBuilder
friend

Definition at line 62 of file scanner_configuration.h.

Member Data Documentation

◆ diagnostics_enabled_

bool psen_scan_v2_standalone::ScannerConfiguration::diagnostics_enabled_ { configuration::DIAGNOSTICS }
private

Definition at line 80 of file scanner_configuration.h.

◆ fragmented_scans_

bool psen_scan_v2_standalone::ScannerConfiguration::fragmented_scans_ { configuration::FRAGMENTED_SCANS }
private

Definition at line 82 of file scanner_configuration.h.

◆ host_control_port_

uint16_t psen_scan_v2_standalone::ScannerConfiguration::host_control_port_ { configuration::CONTROL_PORT_OF_HOST_DEVICE }
private

Definition at line 71 of file scanner_configuration.h.

◆ host_data_port_

uint16_t psen_scan_v2_standalone::ScannerConfiguration::host_data_port_ { configuration::DATA_PORT_OF_HOST_DEVICE }
private

Definition at line 70 of file scanner_configuration.h.

◆ host_ip_

boost::optional<uint32_t> psen_scan_v2_standalone::ScannerConfiguration::host_ip_
private

Definition at line 69 of file scanner_configuration.h.

◆ intensities_enabled_

bool psen_scan_v2_standalone::ScannerConfiguration::intensities_enabled_ { configuration::INTENSITIES }
private

Definition at line 81 of file scanner_configuration.h.

◆ nr_subscribers_

uint8_t psen_scan_v2_standalone::ScannerConfiguration::nr_subscribers_ { configuration::NR_SUBSCRIBERS }
private

Definition at line 83 of file scanner_configuration.h.

◆ scan_range_

boost::optional<ScanRange> psen_scan_v2_standalone::ScannerConfiguration::scan_range_ {}
private

Definition at line 77 of file scanner_configuration.h.

◆ scan_resolution_

util::TenthOfDegree psen_scan_v2_standalone::ScannerConfiguration::scan_resolution_
private

◆ scanner_control_port_

uint16_t psen_scan_v2_standalone::ScannerConfiguration::scanner_control_port_ { configuration::CONTROL_PORT_OF_SCANNER_DEVICE }
private

Definition at line 75 of file scanner_configuration.h.

◆ scanner_data_port_

uint16_t psen_scan_v2_standalone::ScannerConfiguration::scanner_data_port_ { configuration::DATA_PORT_OF_SCANNER_DEVICE }
private

Definition at line 74 of file scanner_configuration.h.

◆ scanner_ip_

boost::optional<uint32_t> psen_scan_v2_standalone::ScannerConfiguration::scanner_ip_
private

Definition at line 73 of file scanner_configuration.h.


The documentation for this class was generated from the following file:
psen_scan_v2_standalone::data_conversion_layer::radToTenthDegree
static int16_t radToTenthDegree(const double &angle_in_rad)
Definition: angle_conversions.h:51
psen_scan_v2_standalone::configuration::DEFAULT_SCAN_ANGLE_RESOLUTION
static constexpr double DEFAULT_SCAN_ANGLE_RESOLUTION(data_conversion_layer::degreeToRadian(0.1))


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12