stdr_parser_tools.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #ifndef STDR_PARSER_TOOLS
23 #define STDR_PARSER_TOOLS
24 
25 #include <iostream>
26 #include <cstdlib>
27 #include <map>
28 #include <vector>
29 #include <string>
30 #include <sstream>
31 #include <fstream>
32 
33 #include <ros/package.h>
34 #include "ros/ros.h"
35 
36 #include <tinyxml.h>
37 #include "yaml-cpp/yaml.h"
38 
39 #ifdef HAVE_NEW_YAMLCPP
40 namespace YAML
41 {
42  // The >> operator disappeared in yaml-cpp 0.5, so this function is
43  // added to provide support for code written under the yaml-cpp 0.3 API.
44  template<typename T>
45  void operator >> (const YAML::Node& node, T& i)
46  {
47  i = node.as<T>();
48  }
49 }
50 #endif
51 
52 #include "stdr_msgs/RobotMsg.h"
53 #include "geometry_msgs/Pose2D.h"
54 #include "geometry_msgs/Point.h"
55 
57 
59 #define SSTR( x ) dynamic_cast< std::ostringstream & >( \
60  ( std::ostringstream() << std::dec << x ) ).str()
61 
66 namespace stdr_parser
67 {
74  std::set<std::string> explodeString(std::string s,char delimiter);
75 
81  std::string extractFilename(std::string s);
82 
89  std::string extractDirname(std::string s);
90 }
91 #endif
The main namespace for STDR GUI XML parser.
XmlRpcServer s
std::string extractFilename(std::string s)
Extracts the filename from an absolute path.
std::string extractDirname(std::string s)
Extracts the directory from an absolute path. It does the same functionality as libgen&#39;s dirname but ...
std::set< std::string > explodeString(std::string s, char delimiter)
Explodes a string based on a delimiter.


stdr_parser
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Mon Jun 10 2019 15:14:54