test_map_loader.cpp
Go to the documentation of this file.
00001 
00039 #include <iostream>
00040 #include <string>
00041 
00042 #include <opencv2/core/core.hpp>
00043 #include <opencv2/highgui/highgui.hpp>
00044 
00045 #include <bwi_mapper/map_loader.h>
00046 
00047 int main(int argc, char** argv) {
00048 
00049   if (argc != 2) {
00050     std::cerr << "USAGE: " << argv[0] << " <yaml-map-file>" << std::endl;
00051     return -1;
00052   }
00053 
00054   bwi_mapper::MapLoader ml(argv[1]);
00055   cv::Mat image;
00056   ml.drawMap(image, 10, 10);
00057 
00058   cv::namedWindow("Display window", CV_WINDOW_AUTOSIZE);
00059   cv::imshow("Display window", image);                
00060 
00061   cv::waitKey(0); // Wait for a keystroke in the window
00062   return 0;
00063 }
00064 
00065 


bwi_mapper
Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:21