42 virtual void run()
override;
72 virtual bool close()
override;
define control board standard interfaces
contains the definition of a Vector type
This class is the parameters parser for class FakeLocalizer.
fakeLocalizer Documentation to be added
virtual bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
fakeLocalizerThread * locThread
virtual bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue getLocalizationStatus(yarp::dev::Nav2D::LocalizationStatusEnum &status) override
Gets the current status of the localization task.
yarp::dev::ReturnValue startLocalizationService() override
Starts the localization service.
yarp::dev::ReturnValue stopLocalizationService() override
Stops the localization service.
yarp::dev::ReturnValue setInitialPose(const yarp::dev::Nav2D::Map2DLocation &loc) override
Sets the initial pose for the localization algorithm which estimates the current position of the robo...
yarp::dev::ReturnValue getEstimatedPoses(std::vector< yarp::dev::Nav2D::Map2DLocation > &poses) override
Gets a set of pose estimates computed by the localization algorithm.
yarp::dev::ReturnValue getEstimatedOdometry(yarp::dev::OdometryData &odom) override
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local...
yarp::dev::ReturnValue getCurrentPosition(yarp::dev::Nav2D::Map2DLocation &loc) override
Gets the current position of the robot w.r.t world reference frame.
virtual void run() override
Loop function.
yarp::dev::Nav2D::Map2DLocation m_current_loc
virtual bool threadInit() override
Initialization method.
yarp::dev::Nav2D::Map2DLocation m_current_odom
bool getCurrentLoc(yarp::dev::Nav2D::Map2DLocation &loc)
yarp::dev::Nav2D::Map2DLocation m_initial_loc
virtual void threadRelease() override
Release method.
double m_last_statistics_printed
bool initializeLocalization(const yarp::dev::Nav2D::Map2DLocation &loc)
yarp::dev::Nav2D::Map2DLocation m_initial_odom
std::mutex m_mutex_thread
double m_last_locdata_received
Interface implemented by all device drivers.
ILocalization2D interface.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An interface to the operating system, including Port based communication.