stdr_parser_tools.h
Go to the documentation of this file.
00001 /******************************************************************************
00002    STDR Simulator - Simple Two DImensional Robot Simulator
00003    Copyright (C) 2013 STDR Simulator
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software Foundation,
00014    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
00015    
00016    Authors : 
00017    * Manos Tsardoulias, etsardou@gmail.com
00018    * Aris Thallas, aris.thallas@gmail.com
00019    * Chris Zalidis, zalidis@gmail.com 
00020 ******************************************************************************/
00021 
00022 #ifndef STDR_PARSER_TOOLS
00023 #define STDR_PARSER_TOOLS
00024 
00025 #include <iostream>
00026 #include <cstdlib>
00027 #include <map>
00028 #include <vector>
00029 #include <string>
00030 #include <sstream>
00031 #include <fstream>
00032 
00033 #include <ros/package.h>
00034 #include "ros/ros.h"
00035 
00036 #include <tinyxml.h>
00037 #include "yaml-cpp/yaml.h"
00038 
00039 #ifdef HAVE_NEW_YAMLCPP
00040 namespace YAML
00041 {
00042   // The >> operator disappeared in yaml-cpp 0.5, so this function is
00043   // added to provide support for code written under the yaml-cpp 0.3 API.
00044   template<typename T>
00045   void operator >> (const YAML::Node& node, T& i)
00046   {
00047     i = node.as<T>();
00048   }
00049 }
00050 #endif
00051 
00052 #include "stdr_msgs/RobotMsg.h"
00053 #include "geometry_msgs/Pose2D.h"
00054 #include "geometry_msgs/Point.h"
00055 
00056 #include "stdr_parser/stdr_parser_exceptions.h"
00057 
00059 #define SSTR( x ) dynamic_cast< std::ostringstream & >( \
00060         ( std::ostringstream() << std::dec << x ) ).str()
00061 
00066 namespace stdr_parser
00067 {
00074   std::set<std::string> explodeString(std::string s,char delimiter);
00075   
00081   std::string extractFilename(std::string s);
00082 }
00083 #endif


stdr_parser
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Wed Sep 2 2015 03:36:18