#include <yarp/dev/IMap2D.h>
Public Member Functions | |
virtual | ~IMap2D () |
Destructor. | |
virtual bool | clearAllMaps ()=0 |
Removes all the registered maps from the server. | |
virtual bool | store_map (const yarp::dev::Nav2D::MapGrid2D &map)=0 |
Stores a map into the map server. | |
virtual bool | get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map)=0 |
Gets a map from the map server. | |
virtual bool | get_map_names (std::vector< std::string > &map_names)=0 |
Gets a list containing the names of all registered maps. | |
virtual bool | remove_map (std::string map_name)=0 |
Removes a map from the map server. | |
virtual bool | storeLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation loc)=0 |
Store a location specified by the user in the world reference frame. | |
virtual bool | storeArea (std::string area_name, yarp::dev::Nav2D::Map2DArea area)=0 |
Store an area. | |
virtual bool | storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path)=0 |
Store a path. | |
virtual bool | getLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc)=0 |
Retrieves a location specified by the user in the world reference frame. | |
virtual bool | getArea (std::string area_name, yarp::dev::Nav2D::Map2DArea &area)=0 |
Retrieves an area. | |
virtual bool | getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path)=0 |
Retrieves a path. | |
virtual bool | getLocationsList (std::vector< std::string > &locations)=0 |
Get a list of the names of all stored locations. | |
virtual bool | getAreasList (std::vector< std::string > &areas)=0 |
Get a list of the names of all stored areas. | |
virtual bool | getPathsList (std::vector< std::string > &paths)=0 |
Get a list of the names of all stored paths. | |
virtual bool | getAllLocations (std::vector< yarp::dev::Nav2D::Map2DLocation > &locations)=0 |
Get a list of all stored locations. | |
virtual bool | getAllAreas (std::vector< yarp::dev::Nav2D::Map2DArea > &areas)=0 |
Get a list of all stored areas. | |
virtual bool | getAllPaths (std::vector< yarp::dev::Nav2D::Map2DPath > &paths)=0 |
Get a list of all stored paths. | |
virtual bool | renameLocation (std::string original_name, std::string new_name)=0 |
Searches for a location and renames it. | |
virtual bool | deleteLocation (std::string location_name)=0 |
Delete a location. | |
virtual bool | deletePath (std::string path_name)=0 |
Delete a path. | |
virtual bool | renameArea (std::string original_name, std::string new_name)=0 |
Searches for an area and renames it. | |
virtual bool | renamePath (std::string original_name, std::string new_name)=0 |
Searches for a path and renames it. | |
virtual bool | deleteArea (std::string area_name)=0 |
Delete an area. | |
virtual bool | clearAllLocations ()=0 |
Delete all stored locations. | |
virtual bool | clearAllAreas ()=0 |
Delete all stored areas. | |
virtual bool | clearAllPaths ()=0 |
Delete all stored paths. | |
virtual bool | clearAllMapsTemporaryFlags ()=0 |
Clear all temporary flags from all stored maps. | |
virtual bool | clearMapTemporaryFlags (std::string map_name)=0 |
Clear all temporary flags from a specific map. | |
virtual bool | saveMapToDisk (std::string map_name, std::string file_name)=0 |
Save a map to disk. | |
virtual bool | loadMapFromDisk (std::string file_name)=0 |
Load a map from disk. | |
virtual bool | saveMapsCollection (std::string file_name)=0 |
Save a collection of maps to disk. | |
virtual bool | loadMapsCollection (std::string file_name)=0 |
Load a collection of maps from disk. | |
virtual bool | saveLocationsAndExtras (std::string file_name)=0 |
Save a collection of locations/area/paths etc to disk. | |
virtual bool | loadLocationsAndExtras (std::string file_name)=0 |
Load a collection of locations/areas/paths etc from disk. | |
virtual bool | enableMapsCompression (bool enable)=0 |
99999999999 | |
IMap2D Interface.
Provides methods to store/retrieve map grids and locations to/from a map server.
|
virtualdefault |
Destructor.
|
pure virtual |
Delete all stored areas.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Delete all stored locations.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Removes all the registered maps from the server.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Clear all temporary flags from all stored maps.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Delete all stored paths.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Clear all temporary flags from a specific map.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Delete an area.
area_name | the name of the area |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Delete a location.
location_name | the name of the location |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Delete a path.
path_name | the name of the path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
99999999999
enable |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Gets a map from the map server.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Gets a list containing the names of all registered maps.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of all stored areas.
the | returned list of areas |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of all stored locations.
the | returned list of locations |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of all stored paths.
the | returned list of paths |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Retrieves an area.
area_name | the name of the area |
area | the area |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of the names of all stored areas.
the | returned list of areas names |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Retrieves a location specified by the user in the world reference frame.
location_name | the name of the location |
loc | the location |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of the names of all stored locations.
the | returned list of locations names |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Retrieves a path.
path_name | the name of the path |
path | the path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Get a list of the names of all stored paths.
the | returned list of paths names |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Load a collection of locations/areas/paths etc from disk.
file_name | file name with full path |
Implemented in Map2D_nwc_yarp, Navigation2D_nwc_yarp, and Map2DStorage.
|
pure virtual |
Load a map from disk.
file_name | file name with full path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Load a collection of maps from disk.
file_name | file name with full path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Removes a map from the map server.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Searches for an area and renames it.
original_name | the name of the area |
new_name | the new name of the area |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Searches for a location and renames it.
original_name | the name of the area |
new_name | the new name of the area |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Searches for a path and renames it.
original_name | the name of the path |
new_name | the new name of the path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Save a collection of locations/area/paths etc to disk.
file_name | file name with full path |
Implemented in Map2D_nwc_yarp, Navigation2D_nwc_yarp, and Map2DStorage.
|
pure virtual |
Save a collection of maps to disk.
file_name | file name with full path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Save a map to disk.
map_name | the name of the area |
file_name | file name with full path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Stores a map into the map server.
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Store an area.
area_name | the name of the area |
area | the area |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
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 |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.
|
pure virtual |
Store a path.
path_name | the name of the path |
path | the path |
Implemented in Map2DStorage, Map2D_nwc_yarp, and Navigation2D_nwc_yarp.