Map2DStorage: A device capable of read/save collections of maps from disk, and make them accessible to any Map2DClient device.
More...
#include <map2DStorage/map2DStorage.h>
Inheritance diagram for Map2DStorage:Public Member Functions | |
| Map2DStorage () | |
| Map2DStorage. More... | |
| ~Map2DStorage () | |
| bool | open (yarp::os::Searchable ¶ms) override |
| Open the DeviceDriver. More... | |
| bool | close () override |
| Close the DeviceDriver. More... | |
| bool | clearAllMaps () override |
| Removes all the registered maps from the server. More... | |
| bool | store_map (const yarp::dev::Nav2D::MapGrid2D &map) override |
| Stores a map into the map server. More... | |
| bool | get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map) override |
| Gets a map from the map server. More... | |
| bool | get_map_names (std::vector< std::string > &map_names) override |
| Gets a list containing the names of all registered maps. More... | |
| bool | remove_map (std::string map_name) override |
| Removes a map from the map server. More... | |
| bool | storeLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation loc) override |
| Store a location specified by the user in the world reference frame. More... | |
| bool | storeArea (std::string area_name, yarp::dev::Nav2D::Map2DArea area) override |
| Store an area. More... | |
| bool | storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path) override |
| Store a path. More... | |
| bool | getLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc) override |
| Retrieves a location specified by the user in the world reference frame. More... | |
| bool | getArea (std::string area_name, yarp::dev::Nav2D::Map2DArea &area) override |
| Retrieves an area. More... | |
| bool | getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path) override |
| Retrieves a path. More... | |
| bool | getLocationsList (std::vector< std::string > &locations) override |
| Get a list of all stored locations. More... | |
| bool | getAreasList (std::vector< std::string > &areas) override |
| Get a list of all stored areas. More... | |
| bool | getPathsList (std::vector< std::string > &paths) override |
| Get a list of all stored paths. More... | |
| bool | renameLocation (std::string original_name, std::string new_name) override |
| Searches for a location and renames it. More... | |
| bool | deleteLocation (std::string location_name) override |
| Delete a location. More... | |
| bool | deletePath (std::string path_name) override |
| Delete a path. More... | |
| bool | renameArea (std::string original_name, std::string new_name) override |
| Searches for an area and renames it. More... | |
| bool | renamePath (std::string original_name, std::string new_name) override |
| Searches for a path and renames it. More... | |
| bool | deleteArea (std::string area_name) override |
| Delete an area. More... | |
| bool | clearAllLocations () override |
| Delete all stored locations. More... | |
| bool | clearAllAreas () override |
| Delete all stored areas. More... | |
| bool | clearAllPaths () override |
| Delete all stored paths. More... | |
| bool | clearAllMapsTemporaryFlags () override |
| Clear all temporary flags from all stored maps. More... | |
| bool | clearMapTemporaryFlags (std::string map_name) override |
| Clear all temporary flags from a specific map. More... | |
| bool | saveMapsCollection (std::string maps_collection_file) override |
| Save a collection of maps. More... | |
| bool | loadMapsCollection (std::string maps_collection_file) override |
| Load a collection of maps. More... | |
| bool | loadLocationsAndExtras (std::string locations_file) override |
| Load a collection of locations/areas/paths etc. More... | |
| bool | saveLocationsAndExtras (std::string locations_file) override |
| Save a collection of locations/area/paths etc. More... | |
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 |
Public Member Functions inherited from yarp::dev::Nav2D::IMap2D | |
| virtual | ~IMap2D () |
| Destructor. More... | |
Map2DStorage: 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 55 of file map2DStorage.h.
| Map2DStorage::Map2DStorage | ( | ) |
Definition at line 33 of file map2DStorage.cpp.
|
default |
|
overridevirtual |
Delete all stored areas.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 810 of file map2DStorage.cpp.
|
overridevirtual |
Delete all stored locations.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 804 of file map2DStorage.cpp.
|
overridevirtual |
Removes all the registered maps from the server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 572 of file map2DStorage.cpp.
|
overridevirtual |
Clear all temporary flags from all stored maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 822 of file map2DStorage.cpp.
|
overridevirtual |
Delete all stored paths.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 816 of file map2DStorage.cpp.
|
overridevirtual |
Clear all temporary flags from a specific map.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 831 of file map2DStorage.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 242 of file map2DStorage.cpp.
|
overridevirtual |
Delete an area.
| area_name | the name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 740 of file map2DStorage.cpp.
|
overridevirtual |
Delete a location.
| location_name | the name of the location |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 728 of file map2DStorage.cpp.
|
overridevirtual |
Delete a path.
| path_name | the name of the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 752 of file map2DStorage.cpp.
|
overridevirtual |
Gets a map from the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 595 of file map2DStorage.cpp.
|
overridevirtual |
Gets a list containing the names of all registered maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 606 of file map2DStorage.cpp.
|
overridevirtual |
Retrieves an area.
| area_name | the name of the area |
| area | the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 658 of file map2DStorage.cpp.
|
overridevirtual |
Get a list of all stored areas.
| the | returned list of areas |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 690 of file map2DStorage.cpp.
|
overridevirtual |
Retrieves a location specified by the user in the world reference frame.
| location_name | the name of the location |
| loc | the location |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 647 of file map2DStorage.cpp.
|
overridevirtual |
Get a list of all stored locations.
| the | returned list of locations |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 680 of file map2DStorage.cpp.
|
overridevirtual |
Retrieves a path.
| path_name | the name of the path |
| path | the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 669 of file map2DStorage.cpp.
|
overridevirtual |
Get a list of all stored paths.
| the | returned list of paths |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 700 of file map2DStorage.cpp.
|
overridevirtual |
Load a collection of locations/areas/paths etc.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 449 of file map2DStorage.cpp.
|
overridevirtual |
Load a collection of maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 75 of file map2DStorage.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 139 of file map2DStorage.cpp.
|
overridevirtual |
Removes a map from the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 616 of file map2DStorage.cpp.
|
overridevirtual |
Searches for an area and renames it.
| original_name | the name of the area |
| new_name | the new name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 764 of file map2DStorage.cpp.
|
overridevirtual |
Searches for a location and renames it.
| original_name | the name of the area |
| new_name | the new name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 710 of file map2DStorage.cpp.
|
overridevirtual |
Searches for a path and renames it.
| original_name | the name of the path |
| new_name | the new name of the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 783 of file map2DStorage.cpp.
|
overridevirtual |
Save a collection of locations/area/paths etc.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 506 of file map2DStorage.cpp.
|
overridevirtual |
Save a collection of maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 39 of file map2DStorage.cpp.
|
overridevirtual |
Stores a map into the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 578 of file map2DStorage.cpp.
|
overridevirtual |
Store an area.
| area_name | the name of the area |
| area | the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 635 of file map2DStorage.cpp.
|
overridevirtual |
Store a location specified by the user in the world reference frame.
| location_name | the name of the location |
| loc | the location of the robot |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 629 of file map2DStorage.cpp.
|
overridevirtual |
Store a path.
| path_name | the name of the path |
| path | the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 641 of file map2DStorage.cpp.