RAPP Platform  v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
 All Classes Namespaces Files Functions Variables Macros
MapServer Class Reference

Public Member Functions

 MapServer (std::string fname)
 

Private Member Functions

bool mapCallback (rapp_platform_ros_communications::MapServerGetMapRosSrv::Request &req, rapp_platform_ros_communications::MapServerGetMapRosSrv::Response &res)
 
bool mapUploadCallback (rapp_platform_ros_communications::MapServerUploadMapRosSrv::Request &req, rapp_platform_ros_communications::MapServerUploadMapRosSrv::Response &res)
 
bool updateMap (const std::string fname, double res)
 

Private Attributes

bool deprecated
 
std::string fname
 
ros::ServiceServer get_service
 
const char * homedir
 
ros::Publisher map_pub
 
nav_msgs::GetMap::Response map_resp_
 
nav_msgs::MapMetaData meta_data_message_
 
ros::Publisher metadata_pub
 
ros::NodeHandle n
 
ros::ServiceServer test_service
 
bool upload_map_trigger
 
std::string upload_map_trigger_name
 
ros::ServiceServer upload_service
 

Detailed Description

Definition at line 74 of file main.cpp.

Constructor & Destructor Documentation

MapServer::MapServer ( std::string  fname)
inline

Trivial constructor

Definition at line 78 of file main.cpp.

Member Function Documentation

bool MapServer::mapCallback ( rapp_platform_ros_communications::MapServerGetMapRosSrv::Request &  req,
rapp_platform_ros_communications::MapServerGetMapRosSrv::Response &  res 
)
inlineprivate

Callback invoked when someone requests our service

Definition at line 162 of file main.cpp.

bool MapServer::mapUploadCallback ( rapp_platform_ros_communications::MapServerUploadMapRosSrv::Request &  req,
rapp_platform_ros_communications::MapServerUploadMapRosSrv::Response &  res 
)
inlineprivate

Definition at line 121 of file main.cpp.

bool MapServer::updateMap ( const std::string  fname,
double  res 
)
inlineprivate

Definition at line 178 of file main.cpp.

Member Data Documentation

bool MapServer::deprecated
private

Definition at line 119 of file main.cpp.

std::string MapServer::fname
private

Definition at line 118 of file main.cpp.

ros::ServiceServer MapServer::get_service
private

Definition at line 117 of file main.cpp.

const char* MapServer::homedir
private

Definition at line 111 of file main.cpp.

ros::Publisher MapServer::map_pub
private

Definition at line 115 of file main.cpp.

nav_msgs::GetMap::Response MapServer::map_resp_
private

Definition at line 285 of file main.cpp.

nav_msgs::MapMetaData MapServer::meta_data_message_
private

The map data is cached here, to be sent out to service callers

Definition at line 284 of file main.cpp.

ros::Publisher MapServer::metadata_pub
private

Definition at line 116 of file main.cpp.

ros::NodeHandle MapServer::n
private

Definition at line 114 of file main.cpp.

ros::ServiceServer MapServer::test_service
private

Definition at line 117 of file main.cpp.

bool MapServer::upload_map_trigger
private

Definition at line 113 of file main.cpp.

std::string MapServer::upload_map_trigger_name
private

Definition at line 112 of file main.cpp.

ros::ServiceServer MapServer::upload_service
private

Definition at line 117 of file main.cpp.


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