fakeLocalizer
Documentation to be added
More...
#include <fake/fakeLocalizerDevice/FakeLocalizer.h>
Public Member Functions | |
virtual bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
FakeLocalizer () | |
virtual | ~FakeLocalizer () |
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 | getEstimatedPoses (std::vector< yarp::dev::Nav2D::Map2DLocation > &poses) override |
Gets a set of pose estimates computed by the localization algorithm. | |
yarp::dev::ReturnValue | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc) override |
Gets the current position of the robot w.r.t world reference frame. | |
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 robot w.r.t world reference frame. | |
yarp::dev::ReturnValue | setInitialPose (const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov) override |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame. | |
yarp::dev::ReturnValue | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc, yarp::sig::Matrix &cov) override |
Gets the current position of the robot w.r.t world reference frame, plus the covariance. | |
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 reference frame. | |
yarp::dev::ReturnValue | startLocalizationService () override |
Starts the localization service. | |
yarp::dev::ReturnValue | stopLocalizationService () override |
Stops the localization service. | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~ILocalization2D () |
Destructor. | |
![]() | |
FakeLocalizer_ParamsParser () | |
~FakeLocalizer_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Public Attributes | |
fakeLocalizerThread * | locThread = nullptr |
std::mutex | m_mutex |
![]() | |
const std::string | m_device_classname = {"FakeLocalizer"} |
const std::string | m_device_name = {"fakeLocalizer"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_period_defaultValue = {"0.010"} |
double | m_period = {0.010} |
fakeLocalizer
Documentation to be added
Parameters required by this device are shown in class: FakeLocalizer_ParamsParser
Definition at line 58 of file FakeLocalizer.h.
FakeLocalizer::FakeLocalizer | ( | ) |
Definition at line 146 of file FakeLocalizer.cpp.
|
virtual |
Definition at line 150 of file FakeLocalizer.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 170 of file FakeLocalizer.cpp.
|
overridevirtual |
Gets the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 80 of file FakeLocalizer.cpp.
|
overridevirtual |
Gets the current position of the robot w.r.t world reference frame, plus the covariance.
loc | the location of the robot |
cov | the 3x3 covariance matrix |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 98 of file FakeLocalizer.cpp.
|
overridevirtual |
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local reference frame.
loc | the estimated odometry. |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 116 of file FakeLocalizer.cpp.
|
overridevirtual |
Gets a set of pose estimates computed by the localization algorithm.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 49 of file FakeLocalizer.cpp.
|
overridevirtual |
Gets the current status of the localization task.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 40 of file FakeLocalizer.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 129 of file FakeLocalizer.cpp.
|
overridevirtual |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 89 of file FakeLocalizer.cpp.
|
overridevirtual |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
cov | the 3x3 covariance matrix |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 107 of file FakeLocalizer.cpp.
|
overridevirtual |
Starts the localization service.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 154 of file FakeLocalizer.cpp.
|
overridevirtual |
Stops the localization service.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 162 of file FakeLocalizer.cpp.
fakeLocalizerThread* FakeLocalizer::locThread = nullptr |
Definition at line 64 of file FakeLocalizer.h.
std::mutex FakeLocalizer::m_mutex |
Definition at line 65 of file FakeLocalizer.h.