yaml.hpp
Go to the documentation of this file.
1 /*
2  AR marker yaml parser
3 
4  LICENSE : BSD - https://raw.github.com/yujinrobot/yujin_ocs/license/LICENSE
5 
6  Author : Jihoon Lee
7  Date : Dec 2013
8  */
9 
10 #ifndef _YAML_PARSER_AR_ALVAR_HPP_
11 #define _YAML_PARSER_AR_ALVAR_HPP__
12 
13 #include <fstream>
14 #include <ros/ros.h>
15 #include <yaml-cpp/yaml.h>
16 
17 #ifdef HAVE_NEW_YAMLCPP
18 // The >> operator disappeared in yaml-cpp 0.5, so this function is
19 // added to provide support for code written under the yaml-cpp 0.3 API.
20 template<typename T>
21 void operator >> (const YAML::Node& node, T& i)
22 {
23  i = node.as<T>();
24 }
25 #endif
26 
27 #include <ar_track_alvar_msgs/AlvarMarkers.h>
28 
29 namespace yocs {
30  bool loadAlvarMarkersFromYaml(const std::string& filename,ar_track_alvar_msgs::AlvarMarkers& ams);
31  void getYamlNode(const std::string& filename, YAML::Node& node);
32  void parseMarkers(const YAML::Node& node, ar_track_alvar_msgs::AlvarMarkers& ams);
33 }
34 
35 #endif
filename
void getYamlNode(const std::string &filename, YAML::Node &node)
Definition: yaml.cpp:44
void parseMarkers(const YAML::Node &node, ar_track_alvar_msgs::AlvarMarkers &ams)
Definition: yaml.cpp:60
bool loadAlvarMarkersFromYaml(const std::string &filename, ar_track_alvar_msgs::AlvarMarkers &ams)
Definition: yaml.cpp:14


yocs_ar_marker_tracking
Author(s): Daniel Stonier, Jorge Santos
autogenerated on Mon Jun 10 2019 15:53:43