YARP
Yet Another Robot Platform
yarp::dev::Nav2D::IMap2D Class Referenceabstract

IMap2D Interface. More...

#include <yarp/dev/IMap2D.h>

+ Inheritance diagram for yarp::dev::Nav2D::IMap2D:

Public Member Functions

virtual ~IMap2D ()
 Destructor. More...
 
virtual bool clearAllMaps ()=0
 Removes all the registered maps from the server. More...
 
virtual bool store_map (const yarp::dev::Nav2D::MapGrid2D &map)=0
 Stores a map into the map server. More...
 
virtual bool get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map)=0
 Gets a map from the map server. More...
 
virtual bool get_map_names (std::vector< std::string > &map_names)=0
 Gets a list containing the names of all registered maps. More...
 
virtual bool remove_map (std::string map_name)=0
 Removes a map from the map server. More...
 
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. More...
 
virtual bool storeArea (std::string area_name, yarp::dev::Nav2D::Map2DArea area)=0
 Store an area. More...
 
virtual bool storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path)=0
 Store a path. More...
 
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. More...
 
virtual bool getArea (std::string area_name, yarp::dev::Nav2D::Map2DArea &area)=0
 Retrieves an area. More...
 
virtual bool getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path)=0
 Retrieves a path. More...
 
virtual bool getLocationsList (std::vector< std::string > &locations)=0
 Get a list of all stored locations. More...
 
virtual bool getAreasList (std::vector< std::string > &areas)=0
 Get a list of all stored areas. More...
 
virtual bool getPathsList (std::vector< std::string > &paths)=0
 Get a list of all stored paths. More...
 
virtual bool renameLocation (std::string original_name, std::string new_name)=0
 Searches for a location and renames it. More...
 
virtual bool deleteLocation (std::string location_name)=0
 Delete a location. More...
 
virtual bool deletePath (std::string path_name)=0
 Delete a path. More...
 
virtual bool renameArea (std::string original_name, std::string new_name)=0
 Searches for an area and renames it. More...
 
virtual bool renamePath (std::string original_name, std::string new_name)=0
 Searches for a path and renames it. More...
 
virtual bool deleteArea (std::string area_name)=0
 Delete an area. More...
 
virtual bool clearAllLocations ()=0
 Delete all stored locations. More...
 
virtual bool clearAllAreas ()=0
 Delete all stored areas. More...
 
virtual bool clearAllPaths ()=0
 Delete all stored paths. More...
 

Detailed Description

IMap2D Interface.

Provides methods to store/retrieve map grids and locations to/from a map server.

Definition at line 38 of file IMap2D.h.

Constructor & Destructor Documentation

◆ ~IMap2D()

yarp::dev::Nav2D::IMap2D::~IMap2D ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clearAllAreas()

virtual bool yarp::dev::Nav2D::IMap2D::clearAllAreas ( )
pure virtual

Delete all stored areas.

Returns
true/false

Implemented in Map2DClient.

◆ clearAllLocations()

virtual bool yarp::dev::Nav2D::IMap2D::clearAllLocations ( )
pure virtual

Delete all stored locations.

Returns
true/false

Implemented in Map2DClient.

◆ clearAllMaps()

virtual bool yarp::dev::Nav2D::IMap2D::clearAllMaps ( )
pure virtual

Removes all the registered maps from the server.

Returns
true/false

Implemented in Map2DClient.

◆ clearAllPaths()

virtual bool yarp::dev::Nav2D::IMap2D::clearAllPaths ( )
pure virtual

Delete all stored paths.

Returns
true/false

Implemented in Map2DClient.

◆ deleteArea()

virtual bool yarp::dev::Nav2D::IMap2D::deleteArea ( std::string  area_name)
pure virtual

Delete an area.

Parameters
area_namethe name of the area
Returns
true/false

Implemented in Map2DClient.

◆ deleteLocation()

virtual bool yarp::dev::Nav2D::IMap2D::deleteLocation ( std::string  location_name)
pure virtual

Delete a location.

Parameters
location_namethe name of the location
Returns
true/false

Implemented in Map2DClient.

◆ deletePath()

virtual bool yarp::dev::Nav2D::IMap2D::deletePath ( std::string  path_name)
pure virtual

Delete a path.

Parameters
path_namethe name of the path
Returns
true/false

Implemented in Map2DClient.

◆ get_map()

virtual bool yarp::dev::Nav2D::IMap2D::get_map ( std::string  map_name,
yarp::dev::Nav2D::MapGrid2D map 
)
pure virtual

Gets a map from the map server.

Returns
true/false

Implemented in Map2DClient.

◆ get_map_names()

virtual bool yarp::dev::Nav2D::IMap2D::get_map_names ( std::vector< std::string > &  map_names)
pure virtual

Gets a list containing the names of all registered maps.

Returns
true/false

Implemented in Map2DClient.

◆ getArea()

virtual bool yarp::dev::Nav2D::IMap2D::getArea ( std::string  area_name,
yarp::dev::Nav2D::Map2DArea area 
)
pure virtual

Retrieves an area.

Parameters
area_namethe name of the area
areathe area
Returns
true/false

Implemented in Map2DClient.

◆ getAreasList()

virtual bool yarp::dev::Nav2D::IMap2D::getAreasList ( std::vector< std::string > &  areas)
pure virtual

Get a list of all stored areas.

Parameters
thereturned list of areas
Returns
true/false

Implemented in Map2DClient.

◆ getLocation()

virtual bool yarp::dev::Nav2D::IMap2D::getLocation ( std::string  location_name,
yarp::dev::Nav2D::Map2DLocation loc 
)
pure virtual

Retrieves a location specified by the user in the world reference frame.

Parameters
location_namethe name of the location
locthe location
Returns
true/false

Implemented in Map2DClient.

◆ getLocationsList()

virtual bool yarp::dev::Nav2D::IMap2D::getLocationsList ( std::vector< std::string > &  locations)
pure virtual

Get a list of all stored locations.

Parameters
thereturned list of locations
Returns
true/false

Implemented in Map2DClient.

◆ getPath()

virtual bool yarp::dev::Nav2D::IMap2D::getPath ( std::string  path_name,
yarp::dev::Nav2D::Map2DPath path 
)
pure virtual

Retrieves a path.

Parameters
path_namethe name of the path
paththe path
Returns
true/false

Implemented in Map2DClient.

◆ getPathsList()

virtual bool yarp::dev::Nav2D::IMap2D::getPathsList ( std::vector< std::string > &  paths)
pure virtual

Get a list of all stored paths.

Parameters
thereturned list of paths
Returns
true/false

Implemented in Map2DClient.

◆ remove_map()

virtual bool yarp::dev::Nav2D::IMap2D::remove_map ( std::string  map_name)
pure virtual

Removes a map from the map server.

Returns
true/false

Implemented in Map2DClient.

◆ renameArea()

virtual bool yarp::dev::Nav2D::IMap2D::renameArea ( std::string  original_name,
std::string  new_name 
)
pure virtual

Searches for an area and renames it.

Parameters
original_namethe name of the area
new_namethe new name of the area
Returns
true/false

Implemented in Map2DClient.

◆ renameLocation()

virtual bool yarp::dev::Nav2D::IMap2D::renameLocation ( std::string  original_name,
std::string  new_name 
)
pure virtual

Searches for a location and renames it.

Parameters
original_namethe name of the area
new_namethe new name of the area
Returns
true/false

Implemented in Map2DClient.

◆ renamePath()

virtual bool yarp::dev::Nav2D::IMap2D::renamePath ( std::string  original_name,
std::string  new_name 
)
pure virtual

Searches for a path and renames it.

Parameters
original_namethe name of the path
new_namethe new name of the path
Returns
true/false

Implemented in Map2DClient.

◆ store_map()

virtual bool yarp::dev::Nav2D::IMap2D::store_map ( const yarp::dev::Nav2D::MapGrid2D map)
pure virtual

Stores a map into the map server.

Returns
true/false

Implemented in Map2DClient.

◆ storeArea()

virtual bool yarp::dev::Nav2D::IMap2D::storeArea ( std::string  area_name,
yarp::dev::Nav2D::Map2DArea  area 
)
pure virtual

Store an area.

Parameters
area_namethe name of the area
areathe area
Returns
true/false

Implemented in Map2DClient.

◆ storeLocation()

virtual bool yarp::dev::Nav2D::IMap2D::storeLocation ( std::string  location_name,
yarp::dev::Nav2D::Map2DLocation  loc 
)
pure virtual

Store a location specified by the user in the world reference frame.

Parameters
location_namethe name of the location
locthe location of the robot
Returns
true/false

Implemented in Map2DClient.

◆ storePath()

virtual bool yarp::dev::Nav2D::IMap2D::storePath ( std::string  path_name,
yarp::dev::Nav2D::Map2DPath  path 
)
pure virtual

Store a path.

Parameters
path_namethe name of the path
paththe path
Returns
true/false

Implemented in Map2DClient.


The documentation for this class was generated from the following files: