6 #ifndef LASERHOKUYO_THREAD_H
7 #define LASERHOKUYO_THREAD_H
51 HOKUYO_STATUS_ACQUISITION_COMPLETE =1,
53 HOKUYO_STATUS_ERROR_BUSY = -1,
54 HOKUYO_STATUS_ERROR_INVALID_COMMAND = -2,
55 HOKUYO_STATUS_ERROR_INVALID_CHECKSUM = -3,
56 HOKUYO_STATUS_ERROR_NOTHING_RECEIVED = -4,
57 HOKUYO_STATUS_NOT_READY = -5
100 bool close()
override;
101 bool threadInit()
override;
102 void threadRelease()
override;
108 bool getLaserMeasurement(std::vector<LaserMeasurementData> &data)
override;
109 bool getDeviceStatus (Device_status &status)
override;
110 bool getDeviceInfo (std::string &device_info)
override;
111 bool getDistanceRange (
double& min,
double& max)
override;
112 bool setDistanceRange (
double min,
double max)
override;
113 bool getScanLimits (
double& min,
double& max)
override;
114 bool setScanLimits (
double min,
double max)
override;
115 bool getHorizontalResolution (
double& step)
override;
116 bool setHorizontalResolution (
double step)
override;
117 bool getScanRate (
double& rate)
override;
118 bool setScanRate (
double rate)
override;
122 int calculateCheckSum(
const char*
buffer,
int size,
char actual_sum);
123 long decodeDataValue(
const char* data,
int data_byte);
124 int readData(
const Laser_mode_type laser_mode,
const char* text_data,
const int lext_data_len,
int current_line,
yarp::sig::Vector& values);
define control board standard interfaces
contains the definition of a Vector type
laserHokuyo: Documentation to be added
Device_status device_status
laserHokuyo(double period=0.02)
yarp::sig::Vector laser_data
Laser_mode_type laser_mode
Interface implemented by all device drivers.
A generic interface for planar laser range finders.
A generic interface to serial port devices.
A container for a device driver.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An interface for the device drivers.
An interface to the operating system, including Port based communication.