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
map_server Namespace Reference

Functions

void loadMapFromFile (nav_msgs::GetMap::Response *resp, const char *fname, double res, bool negate, double occ_th, double free_th, double *origin, bool trinary=true)
 

Function Documentation

void map_server::loadMapFromFile ( nav_msgs::GetMap::Response *  resp,
const char *  fname,
double  res,
bool  negate,
double  occ_th,
double  free_th,
double *  origin,
bool  trinary = true 
)

Read the image from file and fill out the resp object, for later use when our services are requested.

Parameters
respThe map wil be written into here
fnameThe image file to read from
resThe resolution of the map (gets stored in resp)
negateIf true, then whiter pixels are occupied, and blacker pixels are free
occ_thThreshold above which pixels are occupied
free_thThreshold below which pixels are free
originTriple specifying 2-D pose of lower-left corner of image
trinaryIf true, only outputs Occupied/Free/Unknown
Exceptions
std::runtime_errorIf the image file can't be loaded

Definition at line 55 of file image_loader.cpp.