Class ScanPoint

Class Documentation

class ScanPoint

Class containing the data of a single scan point.

Public Functions

ScanPoint()
ScanPoint(float angle, uint16_t &distance, uint8_t &reflectivity, bool &valid_bit, bool &infinite_bit, bool &glare_bit, bool &reflector_bit, bool &contamination_bit, bool &contamination_warning_bit)

Constructor of a scan point, takes all needed parameters.

Parameters:
  • angle – Angle of the scanpoint in coordinates of the sensor.

  • distance – Distance of the measured scanpoint.

  • reflectivity – Value how strongly the scan point reflects.

  • valid_bit – If the scanpoint is valid.

  • infinite_bit – If the scanpoint is infinite.

  • glare_bit – If there is glare in the scanpoint.

  • reflector_bit – If the scanpoint detects a reflector.

  • contamination_bit – If the scanpoint is contaminated.

  • contamination_warning_bit – Warning if the scanpoint is contaminated.

float getAngle() const

Getter for the angle in sensor coordinates.

Returns:

The angle of the sensor scanpoint.

uint16_t getDistance() const

Getter for the distance of the scanpoint.

Returns:

The distance of the scanpoint.

uint8_t getReflectivity() const

Getter for the reflectivity value.

Returns:

The reflectivity value of the scanpoint.

bool getValidBit() const

Returns if the scanpoint is valid.

Returns:

If the scanpoint is valid.

bool getInfiniteBit() const

Returns if the scanpoint is infinite.

Returns:

If the scanpoint is infinite.

bool getGlareBit() const

Returns if the scanpoint has glare.

Returns:

If the scanpoint has glare.

bool getReflectorBit() const

Returns if the scanpoint detects a reflector.

Returns:

If the scanpoint is a reflector.

bool getContaminationBit() const

Returns if the scanpoint is contaminated.

Returns:

If the scanpoint is contaminated.

bool getContaminationWarningBit() const

Returns if there is a contamination warning.

Returns:

If there is a contamination warning.