map2DServer
: A device capable of read/save collections of maps from disk, and make them accessible to any Map2DClient device.
More...
#include <map2DServer/Map2DServer.h>
Public Member Functions | |
Map2DServer () | |
Map2DServer. More... | |
~Map2DServer () | |
bool | saveMaps (std::string filename) |
bool | loadMaps (std::string filename) |
bool | load_locations_and_areas (std::string locations_file) |
bool | save_locations_and_areas (std::string locations_file) |
bool | open (yarp::os::Searchable ¶ms) override |
Open the DeviceDriver. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
yarp::os::Bottle | getOptions () |
Public Member Functions inherited from yarp::dev::DeviceDriver | |
~DeviceDriver () override=default | |
Destructor. More... | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. More... | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. More... | |
Public Member Functions inherited from yarp::os::IConfig | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
Public Member Functions inherited from yarp::os::PortReader | |
virtual | ~PortReader () |
Destructor. More... | |
virtual Type | getReadType () const |
map2DServer
: A device capable of read/save collections of maps from disk, and make them accessible to any Map2DClient device.
Parameters required by this device are:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
name | - | string | - | /mapServer/rpc | No | Full name of the rpc port opened by the Map2DServer device. | |
mapCollection | - | string | - | - | No | The name of .ini file containing a map collection. |
Definition at line 74 of file Map2DServer.h.
Map2DServer::Map2DServer | ( | ) |
Definition at line 52 of file Map2DServer.cpp.
|
default |
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 1039 of file Map2DServer.cpp.
yarp::os::Bottle Map2DServer::getOptions | ( | ) |
bool Map2DServer::load_locations_and_areas | ( | std::string | locations_file | ) |
Definition at line 1199 of file Map2DServer.cpp.
bool Map2DServer::loadMaps | ( | std::string | filename | ) |
Definition at line 774 of file Map2DServer.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 833 of file Map2DServer.cpp.
bool Map2DServer::save_locations_and_areas | ( | std::string | locations_file | ) |
Definition at line 1253 of file Map2DServer.cpp.
bool Map2DServer::saveMaps | ( | std::string | filename | ) |
Definition at line 747 of file Map2DServer.cpp.