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() == 2);
00014     assert (components[1] == "map");
00015     return components[0];
00016   }
00017 
00018 }


multi_level_map_utils
Author(s): Piyush Khandelwal, Jake Menashe
autogenerated on Fri Aug 28 2015 11:36:50