6#define _USE_MATH_DEFINES
23#define DEG2RAD M_PI/180.0
91 if (
i <= 10) { value = 1.0 +
i / 20.0; }
92 else if (
i >= 90 &&
i <= 100) { value = 2.0 + (
i - 90) / 20.0; }
101 test_count = 0; test++;
if (test > 2) { test = 0; }
164 yDebug() <<
"Robot is outside the map?!";
const yarp::os::LogComponent & FAKE_LASER_LASER()
double m_CONSTANT_MODE_const_distance
fakeLaserWithMotor : fake sensor device driver for testing purposes and reference for IRangefinder2D ...
bool setScanRate(double rate) override
set the scan rate (scans per seconds)
bool setHorizontalResolution(double step) override
get the angular step between two measurements (if available)
bool setScanLimits(double min, double max) override
set the scan angular range.
bool acquireDataFromHW() override final
This method should be implemented by the user, and contain the logic to grab data from the hardware.
yarp::dev::Nav2D::MapGrid2D m_map
yarp::dev::IRangefinder2D::Device_status m_device_status
yarp::sig::Vector m_laser_data
XYCell world2Cell(XYWorld world) const
MapGrid2DOrigin m_origin
pose of the map frame w.r.t. the bottom left corner of the map image
size_t height() const
Retrieves the map height, expressed in cells.
size_t width() const
Retrieves the map width, expressed in cells.
A mini-server for performing network communication in the background.
void step()
Call this to "step" the thread rather than starting it.
void push_back(const T &elem)
Push a new element in the vector: size is changed.
#define YARP_LOG_COMPONENT(name,...)
yarp::math::Vec2D< double > XYWorld
double now()
Return the current time in seconds, relative to an arbitrary starting point.
The main, catch-all namespace for YARP.