84 std::uniform_real_distribution<>*
m_dis;
106 m_rd =
new std::random_device;
108 m_dis =
new std::uniform_real_distribution<>(0, 0.01);
132 bool close()
override;
define control board standard interfaces
contains the definition of a map type
contains the definition of a Vector type
fakeLaser : fake sensor device driver for testing purposes and reference for IRangefinder2D devices.
FakeLaser(double period=0.02)
yarp::dev::PolyDriver * m_pLoc
void run() override
Loop function.
yarp::dev::Nav2D::MapGrid2D m_map
bool setDistanceRange(double min, double max) override
set the device detection range.
yarp::dev::Nav2D::ILocalization2D * m_iLoc
localization_mode_t m_loc_mode
bool threadInit() override
Initialization method.
yarp::os::BufferedPort< yarp::os::Bottle > * m_loc_port
yarp::dev::PolyDriver driver
std::random_device * m_rd
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool setScanRate(double rate) override
set the scan rate (scans per seconds)
bool setScanLimits(double min, double max) override
set the scan angular range.
std::uniform_real_distribution * m_dis
bool close() override
Close the DeviceDriver.
void threadRelease() override
Release method.
bool setHorizontalResolution(double step) override
get the angular step between two measurments (if available)
Interface implemented by all device drivers.
The DLidarDeviceTemplate class.
ILocalization2D interface.
A container for a device driver.
An abstraction for a periodic thread.
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No)
Constructor.
void step()
Call this to "step" the thread rather than starting it.
A base class for nested structures that can be searched.