Advertisement
Guest User

ConvertToAStarMap.h

a guest
Jul 29th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. #ifndef _CONVERT_TO_ASTAR_MAP_H__
  2. #define _CONVERT_TO_ASTAR_MAP_H__ 1
  3.  
  4. #include <Windows.h>
  5. #include <string>
  6. #include <utility>
  7. #include <vector>
  8.  
  9. /**
  10.  *
  11.  */
  12. struct max { int negative; int positive; };
  13.  
  14. class ConvertToAStarMap
  15. {
  16. private:
  17.     /**
  18.      *
  19.      */
  20.     std::vector<std::string> split(std::string strToSplit, char delimeter);
  21.     /**
  22.      *
  23.      */
  24.     std::pair<max, max> GetLimits(const std::string& cells);
  25.     /**
  26.      *
  27.      */
  28.     std::string GenerateAStarMap(const std::string& map, std::pair<max, max> pairs, const std::string& output_file);
  29.     /**
  30.     *
  31.     */
  32.     std::string TruncateMap(const std::string& robot_map);
  33. public:
  34.     /**
  35.      *
  36.      */
  37.     std::string Convert(const std::string& map, const std::string& output_file);
  38. };
  39.  
  40. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement