19 #ifndef YARP_DEV_MAP2DSERVER_H
20 #define YARP_DEV_MAP2DSERVER_H
55 #define DEFAULT_THREAD_PERIOD 20
78 std::map<std::string, yarp::dev::Nav2D::MapGrid2D> m_maps_storage;
79 std::map<std::string, yarp::dev::Nav2D::Map2DLocation> m_locations_storage;
80 std::map<std::string, yarp::dev::Nav2D::Map2DPath> m_paths_storage;
81 std::map<std::string, yarp::dev::Nav2D::Map2DArea> m_areas_storage;
92 bool close()
override;
96 bool priv_load_locations_and_areas_v1(std::ifstream& file);
97 bool priv_load_locations_and_areas_v2(std::ifstream& file);
102 std::string m_rpcPortName;
104 bool m_enable_publish_ros_map;
105 bool m_enable_subscribe_ros_map;
107 #define ROSNODENAME "/map2DServerNode"
108 #define ROSTOPICNAME_MAP "/map"
109 #define ROSTOPICNAME_MAPMETADATA "/map_metadata"
123 bool updateVizMarkers();
contains the definition of a Map2DArea type
contains the definition of a Map2DLocation type
contains the definition of a Map2DPath type
contains the definition of a map type
contains the definition of a Vector type
yarp::os::Bottle getOptions()
bool close() override
Close the DeviceDriver.
Map2DServer()
Map2DServer.
bool loadMaps(std::string filename)
bool saveMaps(std::string filename)
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
bool load_locations_and_areas(std::string locations_file)
bool save_locations_and_areas(std::string locations_file)
Interface implemented by all device drivers.
A simple collection of objects that can be described and transmitted in a portable way.
An interface for reading from a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Helper class for finding config files and other external resources.
A port that is specialized as an RPC server.
A base class for nested structures that can be searched.