16 #ifndef PSEN_SCAN_V2_STANDALONE_LASERSCAN_H 17 #define PSEN_SCAN_V2_STANDALONE_LASERSCAN_H 57 const uint32_t scan_counter,
58 const uint8_t active_zoneset,
63 [[deprecated(
"use const util::TenthOfDegree& scanResolution() const instead")]]
const util::TenthOfDegree&
68 [[deprecated(
"use const util::TenthOfDegree& minScanAngle() const instead")]]
const util::TenthOfDegree&
73 [[deprecated(
"use const util::TenthOfDegree& maxScanAngle() const instead")]]
const util::TenthOfDegree&
78 [[deprecated(
"use uint32_t scanCounter() const instead")]] uint32_t
getScanCounter()
const;
82 [[deprecated(
"use uint8_t activeZoneset() const instead")]] uint8_t
getActiveZoneset()
const;
86 [[deprecated(
"use int64_t timestamp() const instead")]] int64_t
getTimestamp()
const;
90 [[deprecated(
"use const MeasurementData& measurements() const instead")]]
const MeasurementData&
99 [[deprecated(
"use void measurements(const MeasurementData& measurements) instead")]]
void 108 [[deprecated(
"use void intensities(const IntensityData& intensities)) instead")]]
void 113 [[deprecated(
"use const IOData& ioStates() const instead")]]
const IOData&
getIOStates()
const;
117 [[deprecated(
"use void ioStates(const IOData& io_states) instead")]]
void setIOStates(
const IOData& io_states);
145 #endif // PSEN_SCAN_V2_STANDALONE_LASERSCAN_H const IOData & getIOStates() const
int64_t getTimestamp() const
const util::TenthOfDegree & getMinScanAngle() const
const util::TenthOfDegree & maxScanAngle() const
void setIOStates(const IOData &io_states)
std::vector< double > IntensityData
uint8_t getActiveZoneset() const
std::vector< double > MeasurementData
const uint32_t scan_counter_
Number of the scan round this data belongs to.
IOData io_states_
States of the I/O pins.
const MeasurementData & measurements() const
const util::TenthOfDegree resolution_
Distance of angle between the measurements.
const IntensityData & intensities() const
void setMeasurements(const MeasurementData &measurements)
void setIntensities(const IntensityData &intensities)
const util::TenthOfDegree & minScanAngle() const
std::ostream & operator<<(std::ostream &os, const PinState &pin_state)
const uint8_t active_zoneset_
The currently active zoneset of the scanner.
const MeasurementData & getMeasurements() const
IntensityData intensities_
Stores the received normalized signal intensities.
MeasurementData measurements_
Measurement data of the laserscan (in Millimeters).
int64_t timestamp() const
const util::TenthOfDegree & getScanResolution() const
const util::TenthOfDegree max_scan_angle_
Highest angle the scanner is scanning.
Root namespace in which the software components to communicate with the scanner (firmware-version: 2)...
uint32_t scanCounter() const
const int64_t timestamp_
Time of the first ray in this scan round (or fragment if fragmented_scans is enabled).
const IOData & ioStates() const
const util::TenthOfDegree & getMaxScanAngle() const
uint8_t activeZoneset() const
const IntensityData & getIntensities() const
const util::TenthOfDegree min_scan_angle_
Lowest angle the scanner is scanning.
std::vector< IOState > IOData
const util::TenthOfDegree & scanResolution() const
LaserScan(const util::TenthOfDegree &resolution, const util::TenthOfDegree &min_scan_angle, const util::TenthOfDegree &max_scan_angle, const uint32_t scan_counter, const uint8_t active_zoneset, const int64_t timestamp)
This class represents a single laser scan in the <tf_prefix> target frame.
uint32_t getScanCounter() const
Helper class representing angles in tenth of degree.