29 #ifndef INCLUDE_HOKUYOAIST_SENSOR_INFO_H__    30 #define INCLUDE_HOKUYOAIST_SENSOR_INFO_H__    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    74       return "UBG-04LX-F01";
    82       return "Unknown model";
    89   if (strncmp(model, 
"URG-05LX", 8) == 0) {
    91   } 
else if (strncmp(model, 
"UBG-04LX-F01", 8) == 0) {
    93   } 
else if (strncmp(model, 
"UHG-08LX", 8) == 0) {
    95   } 
else if (strncmp(model, 
"UTM-30LX", 8) == 0) {
    97   } 
else if (strncmp(model, 
"UXM-30LX-E", 8) == 0) {
   119       return "Counter-clockwise";
   147     std::string as_string();
   218     void calculate_values();
   225 #endif // INCLUDE_HOKUYOAIST_SENSOR_INFO_H__ unsigned int scanable_steps
Total number of steps in a full scan (lastStep - firstStep). 
HOKUYOAIST_EXPORT char const * rot_dir_to_string(RotationDirection dir)
double max_angle
Maximum possible scan angle (radians). 
std::string model
Sensor model number. 
std::string serial
Serial number of this device. 
HOKUYOAIST_EXPORT LaserModel string_to_model(char const *model)
HOKUYOAIST_EXPORT char const * model_to_string(LaserModel model)
std::string measure_state
Measurement state. 
unsigned int time
Current sensor time (s). 
LaserModel detected_model
Detected model of the laser. 
unsigned int front_step
Step number that points forward (typically the centre of a full scan). 
unsigned int speed
Current motor speed (rpm). 
Hokuyo laser scanner class. 
unsigned int last_step
Last scanable step of a full scan. 
double time_resolution
Time between two scan points (milliseconds). 
unsigned int first_step
First scanable step of a full scan. 
std::string product
Product name. 
unsigned int standard_speed
Standard motor speed (rpm). 
std::string firmware
Firmware version. 
unsigned int max_step
Absolute maximum commandable step. 
double resolution
Angle between two scan points (radians). 
std::string vendor
Vendor name. 
unsigned short speed_level
Speed level (0 for default) 
unsigned int min_range
Minimum detectable range (mm). 
std::string sensor_diagnostic
Diagnostic status string. 
std::string protocol
Protocol version in use. 
#define HOKUYOAIST_EXPORT
double min_angle
Minimum possible scan angle (radians). 
bool power
Operational status - illuminated or not. 
RotationDirection rot_dir
Rotation direction. 
unsigned int max_range
Maximum detectable range (mm). 
RotationDirection
Sensor direction of rotation. 
unsigned int steps
Number of steps in a 360-degree scan. 
unsigned int baud
Baud rate.