Regilo
A simple C++ library for controlling the Neato XV robot and the Hokuyo scanner.
regilo::ScanRecord Class Reference

The ScanRecord class represents one record from laser data. More...

#include <scanrecord.hpp>

Public Member Functions

 ScanRecord ()=default
 Default constructor.
 
 ScanRecord (int id, double angle, double distance, int intensity, int errorCode, bool error=false)
 Construct a ScanRecord from all attributes. More...
 

Public Attributes

int id
 The id of the record (starting from zero).
 
double angle
 The angle of the record (in radians).
 
double distance
 The distance that was measured in the angle (in millimeters).
 
int intensity
 The normalized spot intensity that was measured in the angle.
 
int errorCode
 The error code.
 
bool error
 True if this record has an error.
 

Friends

std::ostream & operator<< (std::ostream &out, const ScanRecord &record)
 Output the record as a string.
 

Detailed Description

The ScanRecord class represents one record from laser data.

Constructor & Destructor Documentation

regilo::ScanRecord::ScanRecord ( int  id,
double  angle,
double  distance,
int  intensity,
int  errorCode,
bool  error = false 
)

Construct a ScanRecord from all attributes.

Parameters
idThe id of the record (starting from zero).
angleThe angle of the record (in radians).
distanceThe distance that was measured in the angle (in millimeters).
intensityThe normalized spot intensity that was measured in the angle.
errorCodeThe error code.
errorTrue if this record has an error.

The documentation for this class was generated from the following file: