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

The ScanData class is used to store laser data. More...

#include <scandata.hpp>

Inheritance diagram for regilo::ScanData:

Public Member Functions

 ScanData ()=default
 Default constructor.
 
 ScanData (std::size_t scanId, double rotationSpeed)
 Construct ScanData. More...
 

Public Attributes

std::size_t scanId = std::size_t(-1)
 The scan id (starting from zero).
 
double rotationSpeed = -1
 The rotation speed (in Hz).
 
long time
 The scan time (milliseconds since epoch).
 

Friends

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

Detailed Description

The ScanData class is used to store laser data.

Constructor & Destructor Documentation

regilo::ScanData::ScanData ( std::size_t  scanId,
double  rotationSpeed 
)

Construct ScanData.

Parameters
scanIdThe scan id (starting from zero).
rotationSpeedThe rotation speed (in Hz).

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