yaml.hpp
Go to the documentation of this file.
00001 /*
00002    AR marker 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 _YAML_PARSER_AR_ALVAR_HPP_
00011 #define _YAML_PARSER_AR_ALVAR_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 <ar_track_alvar_msgs/AlvarMarkers.h>
00028 
00029 namespace yocs {
00030   bool loadAlvarMarkersFromYaml(const std::string& filename,ar_track_alvar_msgs::AlvarMarkers& ams);
00031   void getYamlNode(const std::string& filename, YAML::Node& node); 
00032   void parseMarkers(const YAML::Node& node, ar_track_alvar_msgs::AlvarMarkers& ams); 
00033 }
00034 
00035 #endif


yocs_ar_marker_tracking
Author(s): Daniel Stonier, Jorge Santos
autogenerated on Thu Jun 6 2019 21:47:27