|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
88 std::uniform_real_distribution<>*
m_dis;
112 m_rd =
new std::random_device;
114 m_dis =
new std::uniform_real_distribution<>(0, 0.01);
138 bool close()
override;
145 void wall_the_robot(
double siz = 1.0,
double dist = 1.0);
146 void obst_the_robot(
double siz = 1.0,
double dist = 1.0);
147 void trap_the_robot(
double siz = 1.0);
148 void free_the_robot();
151 bool LiangBarsky_clip(
int edgeLeft,
int edgeRight,
int edgeTop,
int edgeBottom,
contains the definition of a map type
void run() override
Loop function.
A base class for nested structures that can be searched.
bool close() override
Close the DeviceDriver.
contains the definition of a Vector type
Interface implemented by all device drivers.
localization_mode_t m_loc_mode
ILocalization2D interface.
bool threadInit() override
Initialization method.
bool setHorizontalResolution(double step) override
get the angular step between two measurments (if available)
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No)
Constructor.
FakeLaser(double period=0.02)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
define control board standard interfaces
bool setDistanceRange(double min, double max) override
set the device detection range.
The DLidarDeviceTemplate class.
A mini-server for network communication.
yarp::dev::Nav2D::ILocalization2D * m_iLoc
void threadRelease() override
Release method.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
yarp::dev::PolyDriver driver
A container for a device driver.
bool setScanRate(double rate) override
set the scan rate (scans per seconds)
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::Nav2D::MapGrid2D m_map
An abstraction for a periodic thread.
bool setScanLimits(double min, double max) override
set the scan angular range.
yarp::dev::Nav2D::MapGrid2D m_originally_loaded_map
std::uniform_real_distribution * m_dis
std::random_device * m_rd
An interface for reading from a network connection.
fakeLaser : fake sensor device driver for testing purposes and reference for IRangefinder2D devices.
void step()
Call this to "step" the thread rather than starting it.
yarp::os::BufferedPort< yarp::os::Bottle > * m_loc_port
yarp::dev::PolyDriver * m_pLoc