Go to the documentation of this file.
33 typedef unsigned char uint8_t;
34 typedef unsigned int uint32_t;
35 #if defined(HOKUYOAIST_STATIC)
36 #define HOKUYOAIST_EXPORT
37 #elif defined(hokuyoaist_EXPORTS)
38 #define HOKUYOAIST_EXPORT __declspec(dllexport)
40 #define HOKUYOAIST_EXPORT __declspec(dllimport)
44 #define HOKUYOAIST_EXPORT
85 ScanData(uint32_t*
const ranges_buffer,
86 unsigned int ranges_length,
87 uint32_t*
const intensities_buffer=0,
88 unsigned int intensities_length=0);
102 {
return intensities_; }
114 std::string error_code_to_string(uint32_t error_code);
140 uint32_t operator[](
unsigned int index);
143 std::string as_string();
159 void allocate_data(
unsigned int length,
160 bool include_intensities =
false);
161 void write_range(
unsigned int index, uint32_t value);
162 void write_intensity(
unsigned int index, uint32_t value);
169 #endif // SCAN_DATA_H__
const uint32_t * intensities() const
Return a pointer to an array of intensity readings.
unsigned long long system_time_
unsigned int laser_time_stamp() const
Get the raw time stamp of the data in milliseconds.
unsigned int intensities_length() const
Get the number of intensity samples in the data.
#define HOKUYOAIST_EXPORT
Hokuyo laser scanner class.
bool get_error_status() const
Indicates if one or more steps had an error.
const uint32_t * ranges() const
Return a pointer to array of range readings in millimetres.
bool buffers_provided() const
Check if the buffers are being provided instead of automatic.
unsigned int ranges_length_
unsigned long long system_time_stamp() const
Get the system time stamp of the data in milliseconds.
unsigned int ranges_length() const
Get the number of range samples in the data.
unsigned int intensities_length_
LaserModel model() const
Get the model of the laser that produced this scan.
Structure to store data returned from the laser scanner.