utils.cpp
Go to the documentation of this file.
00001 #include <multi_level_map_utils/utils.h>
00002 
00003 namespace multi_level_map {
00004 
00005   std::string frameIdFromLevelId(std::string level_id) {
00006     assert (level_id.find('/') == std::string::npos);
00007     return "/" + level_id + "/map";
00008   }
00009 
00010   std::string levelIdFromFrameId(std::string frame_id) {
00011     std::vector<std::string> components;
00012     boost::split(components, frame_id, boost::is_any_of("/"));
00013     assert (components.size() == 3);
00014     assert (components[0] == "");
00015     assert (components[2] == "map");
00016     return components[1];
00017   }
00018 
00019 }


multi_level_map_utils
Author(s): Piyush Khandelwal, Jake Menashe
autogenerated on Mon Oct 6 2014 02:31:47