48 typedef rp::standalone::rplidar::RPlidarDriver rplidardrv;
50 void handleError(u_result error);
51 std::string deviceinfo();
73 bool close()
override;
define control board standard interfaces
contains the definition of a Vector type
rpLidar2: The device driver for the RP2 lidar
bool setScanRate(double rate) override
set the scan rate (scans per seconds)
RpLidar2(double period=0)
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool setScanLimits(double min, double max) override
set the scan angular range.
bool close() override
Close the DeviceDriver.
bool threadInit() override
Initialization method.
bool acquireDataFromHW() override final
This method should be implemented by the user, and contain the logic to grab data from the hardware.
bool setDistanceRange(double min, double max) override
set the device detection range.
bool setHorizontalResolution(double step) override
get the angular step between two measurements (if available)
void threadRelease() override
Release method.
void run() override
Loop function.
Interface implemented by all device drivers.
The Lidar2DDeviceBase class.
An abstraction for a periodic thread.
void step()
Call this to "step" the thread rather than starting it.
A base class for nested structures that can be searched.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.