yaml_parser.hpp
Go to the documentation of this file.
00001 /*
00002    Waypoint yaml parser
00003 
00004    LICENSE : BSD - https://raw.github.com/yujinrobot/yujin_ocs/license/LICENSE
00005 
00006    Author : Jihoon Lee
00007    Date   : Dec 2013
00008  */
00009 
00010 #ifndef _YOCS_WAYPOINT_MANAGER_YAML_PARSER_HPP_
00011 #define _YOCS_WAYPOINT_MANAGER_YAML_PARSER_HPP_
00012 
00013 #include <fstream>
00014 #include <ros/ros.h>
00015 #include <yaml-cpp/yaml.h>
00016 
00017 #ifdef HAVE_NEW_YAMLCPP
00018 // The >> operator disappeared in yaml-cpp 0.5, so this function is
00019 // added to provide support for code written under the yaml-cpp 0.3 API.
00020 template<typename T>
00021 void operator >> (const YAML::Node& node, T& i)
00022 {
00023   i = node.as<T>();
00024 }
00025 #endif
00026 
00027 #include <yocs_msgs/WaypointList.h>
00028 
00029 namespace yocs {
00030   bool loadWaypointListFromYaml(const std::string& filename,yocs_msgs::WaypointList& wps);
00031   void getYamlNode(const std::string& filename, YAML::Node& node); 
00032   void parseWaypoints(const YAML::Node& node, yocs_msgs::WaypointList& wps); 
00033 }
00034 
00035 #endif


yocs_waypoint_manager
Author(s): Jihoon Lee
autogenerated on Sun Nov 23 2014 12:41:12