|
Regilo
A simple C++ library for controlling the Neato XV robot and the Hokuyo scanner.
|
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. | |
The ScanRecord class represents one record from laser data.
| regilo::ScanRecord::ScanRecord | ( | int | id, |
| double | angle, | ||
| double | distance, | ||
| int | intensity, | ||
| int | errorCode, | ||
| bool | error = false |
||
| ) |
Construct a ScanRecord from all attributes.
| id | The id of the record (starting from zero). |
| angle | The angle of the record (in radians). |
| distance | The distance that was measured in the angle (in millimeters). |
| intensity | The normalized spot intensity that was measured in the angle. |
| errorCode | The error code. |
| error | True if this record has an error. |