INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
ogmaploadutil.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 #ifndef HYDRO_OGMAP_LOAD_UTIL_H 00011 #define HYDRO_OGMAP_LOAD_UTIL_H 00012 00013 #include <vector> 00014 #include <string> 00015 #include <hydroogmap/hydroogmap.h> 00016 00017 class QImage; 00018 00019 namespace hydromapload { 00020 00021 // 00022 // @author Alex Brooks 00023 // @brief Loads an occupancy grid from an image file. 00024 // 00025 // Allowed formats: anything qt can load 00026 // 00027 // Throws std::strings if there are problems. 00028 // 00029 void loadMap( const std::string &filename, 00030 bool negate, 00031 int &numCellsX, 00032 int &numCellsY, 00033 std::vector<unsigned char> &cells ); 00034 00035 00036 // 00037 // @author Alex Brooks 00038 // @brief Loads an occupancy grid from an image file, into hydroogmap::OgMap format. 00039 // 00040 // Allowed formats: anything qt can load 00041 // 00042 // Throws std::strings if there are problems. 00043 // 00044 void loadMap( const std::string &filename, 00045 hydroogmap::OgMap &ogMap, 00046 bool negate, 00047 float offsetX, 00048 float offsetY, 00049 float offsetTheta, 00050 float metresPerCell ); 00051 00052 // 00053 // @author Alex Brooks 00054 // @brief Saves an occupancy grid to an image file. 00055 // 00056 void writeToQImage( const hydroogmap::OgMap &ogMap, 00057 QImage &qImage, 00058 bool negate = false ); 00059 00060 // 00061 // @author Alex Brooks 00062 // @brief Saves an occupancy grid to an image file. 00063 // 00064 void saveMap( const std::string &filename, 00065 const hydroogmap::OgMap &ogMap, 00066 bool negate = false ); 00067 } 00068 00069 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)