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