Read the image from file and fill out the resp object, for later use when our services are requested.
- Parameters
-
resp | The map wil be written into here |
fname | The image file to read from |
res | The resolution of the map (gets stored in resp) |
negate | If true, then whiter pixels are occupied, and blacker pixels are free |
occ_th | Threshold above which pixels are occupied |
free_th | Threshold below which pixels are free |
origin | Triple specifying 2-D pose of lower-left corner of image |
mode | Map mode |
- Exceptions
-
std::runtime_error | If the image file can't be loaded |
Definition at line 57 of file image_loader.cpp.