This class represents a single laser scan in the <tf_prefix> target frame. More...
#include <laserscan.h>
Public Types | |
using | IntensityData = std::vector< double > |
using | IOData = std::vector< IOState > |
using | MeasurementData = std::vector< double > |
Private Attributes | |
const uint8_t | active_zoneset_ |
The currently active zoneset of the scanner. More... | |
IntensityData | intensities_ |
Stores the received normalized signal intensities. More... | |
IOData | io_states_ |
States of the I/O pins. More... | |
const util::TenthOfDegree | max_scan_angle_ |
Highest angle the scanner is scanning. More... | |
MeasurementData | measurements_ |
Measurement data of the laserscan (in Millimeters). More... | |
const util::TenthOfDegree | min_scan_angle_ |
Lowest angle the scanner is scanning. More... | |
const util::TenthOfDegree | resolution_ |
Distance of angle between the measurements. More... | |
const uint32_t | scan_counter_ |
Number of the scan round this data belongs to. More... | |
const int64_t | timestamp_ |
Time of the first ray in this scan round (or fragment if fragmented_scans is enabled). More... | |
This class represents a single laser scan in the <tf_prefix> target frame.
All relevant information about a single scan of a psen_scan scanner are stored in this class. This includes the following information:
The measures use the target frame defined as <tf_prefix>.
Definition at line 46 of file laserscan.h.
using psen_scan_v2_standalone::LaserScan::IntensityData = std::vector<double> |
Definition at line 50 of file laserscan.h.
using psen_scan_v2_standalone::LaserScan::IOData = std::vector<IOState> |
Definition at line 51 of file laserscan.h.
using psen_scan_v2_standalone::LaserScan::MeasurementData = std::vector<double> |
Definition at line 49 of file laserscan.h.
psen_scan_v2_standalone::LaserScan::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 | ||
) |
Definition at line 32 of file laserscan.cpp.
uint8_t psen_scan_v2_standalone::LaserScan::activeZoneset | ( | ) | const |
Definition at line 143 of file laserscan.cpp.
uint8_t psen_scan_v2_standalone::LaserScan::getActiveZoneset | ( | ) | const |
deprecated: use uint8_t activeZoneset() const instead
Definition at line 97 of file laserscan.cpp.
const LaserScan::IntensityData & psen_scan_v2_standalone::LaserScan::getIntensities | ( | ) | const |
deprecated: use const IntensityData& intensities() instead
Definition at line 112 of file laserscan.cpp.
const LaserScan::IOData & psen_scan_v2_standalone::LaserScan::getIOStates | ( | ) | const |
deprecated: use const IOData& ioStates() const instead
Definition at line 179 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::getMaxScanAngle | ( | ) | const |
deprecated: use const util::TenthOfDegree& maxScanAngle() const instead
Definition at line 77 of file laserscan.cpp.
const LaserScan::MeasurementData & psen_scan_v2_standalone::LaserScan::getMeasurements | ( | ) | const |
deprecated: use const MeasurementData& measurements() instead
Definition at line 82 of file laserscan.cpp.
LaserScan::MeasurementData & psen_scan_v2_standalone::LaserScan::getMeasurements | ( | ) |
deprecated: use MeasurementData& measurements() instead
Definition at line 107 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::getMinScanAngle | ( | ) | const |
deprecated: use const util::TenthOfDegree& minScanAngle() const instead
Definition at line 72 of file laserscan.cpp.
uint32_t psen_scan_v2_standalone::LaserScan::getScanCounter | ( | ) | const |
deprecated: use uint32_t scanCounter() const instead
Definition at line 87 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::getScanResolution | ( | ) | const |
deprecated: use const util::TenthOfDegree& scanResolution() const instead
Definition at line 67 of file laserscan.cpp.
int64_t psen_scan_v2_standalone::LaserScan::getTimestamp | ( | ) | const |
deprecated: use int64_t timestamp() const instead
Definition at line 92 of file laserscan.cpp.
const LaserScan::IntensityData & psen_scan_v2_standalone::LaserScan::intensities | ( | ) | const |
Definition at line 163 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::intensities | ( | const IntensityData & | intensities | ) |
Definition at line 168 of file laserscan.cpp.
const LaserScan::IOData & psen_scan_v2_standalone::LaserScan::ioStates | ( | ) | const |
Definition at line 190 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::ioStates | ( | const IOData & | io_states | ) |
Definition at line 185 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::maxScanAngle | ( | ) | const |
Definition at line 128 of file laserscan.cpp.
const LaserScan::MeasurementData & psen_scan_v2_standalone::LaserScan::measurements | ( | ) | const |
Definition at line 133 of file laserscan.cpp.
LaserScan::MeasurementData & psen_scan_v2_standalone::LaserScan::measurements | ( | ) |
Definition at line 158 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::measurements | ( | const MeasurementData & | measurements | ) |
Definition at line 153 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::minScanAngle | ( | ) | const |
Definition at line 123 of file laserscan.cpp.
uint32_t psen_scan_v2_standalone::LaserScan::scanCounter | ( | ) | const |
Definition at line 138 of file laserscan.cpp.
const util::TenthOfDegree & psen_scan_v2_standalone::LaserScan::scanResolution | ( | ) | const |
Definition at line 61 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::setIntensities | ( | const IntensityData & | intensities | ) |
deprecated: use void intensities(const IntensityData& intensities) instead
Definition at line 117 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::setIOStates | ( | const IOData & | io_states | ) |
deprecated: use void ioStates(const IOData& io_states) instead
Definition at line 174 of file laserscan.cpp.
void psen_scan_v2_standalone::LaserScan::setMeasurements | ( | const MeasurementData & | measurements | ) |
deprecated: use void measurements(const MeasurementData& measurements) instead
Definition at line 102 of file laserscan.cpp.
int64_t psen_scan_v2_standalone::LaserScan::timestamp | ( | ) | const |
Definition at line 148 of file laserscan.cpp.
|
private |
The currently active zoneset of the scanner.
Definition at line 136 of file laserscan.h.
|
private |
Stores the received normalized signal intensities.
Definition at line 124 of file laserscan.h.
|
private |
States of the I/O pins.
Definition at line 126 of file laserscan.h.
|
private |
Highest angle the scanner is scanning.
Definition at line 132 of file laserscan.h.
|
private |
Measurement data of the laserscan (in Millimeters).
Definition at line 122 of file laserscan.h.
|
private |
Lowest angle the scanner is scanning.
Definition at line 130 of file laserscan.h.
|
private |
Distance of angle between the measurements.
Definition at line 128 of file laserscan.h.
|
private |
Number of the scan round this data belongs to.
Definition at line 134 of file laserscan.h.
|
private |
Time of the first ray in this scan round (or fragment if fragmented_scans is enabled).
Definition at line 138 of file laserscan.h.