|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
39 typedef unsigned char byte;
55 return (end + 1) % maxsize == start;
71 end = (end + 1) % maxsize;
75 start = (start + 1) % maxsize;
83 for (
int i = 0; i < size; i++)
85 if (write_elem(elems[i]) ==
false)
return false;
95 else if (end == start)
98 i = maxsize - start + end;
109 *elem = elems[start];
110 start = (start + 1) % maxsize;
116 start = (start + 1) % maxsize;
121 start = (start + size) % maxsize;
126 return elems[(start+offset) % maxsize];
131 for (
int i = 0; i < size; i++)
133 elems[i] = select_elem(i);
139 for (
int i = 0; i < size; i++)
141 if (read_elem(&elems[i]) ==
false)
return false;
219 clip_max_enable(false),
220 clip_min_enable(false),
221 do_not_clip_infinity_enable(false),
222 device_status(Device_status::DEVICE_OK_STANBY)
238 bool close()
override;
239 bool threadInit()
override;
240 void threadRelease()
override;
246 bool getLaserMeasurement(std::vector<LaserMeasurementData> &data)
override;
247 bool getDeviceStatus (Device_status &status)
override;
248 bool getDeviceInfo (std::string &device_info)
override;
249 bool getDistanceRange (
double& min,
double& max)
override;
250 bool setDistanceRange (
double min,
double max)
override;
251 bool getScanLimits (
double& min,
double& max)
override;
252 bool setScanLimits (
double min,
double max)
override;
253 bool getHorizontalResolution (
double& step)
override;
254 bool setHorizontalResolution (
double step)
override;
255 bool getScanRate (
double& rate)
override;
256 bool setScanRate (
double rate)
override;
263 bool HW_getInfo(std::string& s_info);
bool read_elems(byte *elems, int size)
const yarp::os::LogComponent & RPLIDAR()
#define YARP_DECLARE_LOG_COMPONENT(name)
A base class for nested structures that can be searched.
contains the definition of a Vector type
rpLidar: Documentation to be added
byte select_elem(int offset)
Interface implemented by all device drivers.
A generic interface for planar laser range finders.
A generic interface to serial port devices.
define control board standard interfaces
void throw_away_elems(int size)
An interface for the device drivers.
std::vector< Range_t > range_skip_vector
yarp::sig::Vector laser_data
bool write_elem(byte elem)
const byte * getRawData()
bool do_not_clip_infinity_enable
rpLidarCircularBuffer * buffer
void select_elems(byte *elems, int size)
Device_status device_status
A container for a device driver.
unsigned int getMaxSize()
An abstraction for a periodic thread.
bool read_elem(byte *elem)
bool write_elems(byte *elems, int size)
#define yCError(component,...)
An interface to the operating system, including Port based communication.
RpLidar(double period=0.01)