10 #ifndef _YOCS_WAYPOINT_MANAGER_YAML_PARSER_HPP_ 11 #define _YOCS_WAYPOINT_MANAGER_YAML_PARSER_HPP_ 15 #include <yaml-cpp/yaml.h> 16 #include <yocs_msgs/TrajectoryList.h> 17 #include <yocs_msgs/WaypointList.h> 19 #ifdef HAVE_NEW_YAMLCPP 23 void operator >> (
const YAML::Node& node, T& i)
32 yocs_msgs::WaypointList& wps,
33 yocs_msgs::TrajectoryList& trajs);
34 void getYamlNode(
const std::string& filename, YAML::Node& node);
35 void parseWaypoints(
const YAML::Node& node, yocs_msgs::WaypointList& wps);
36 void parseTrajectories(
const YAML::Node& node,
const yocs_msgs::WaypointList& wps, yocs_msgs::TrajectoryList& trajs);
bool loadWaypointsAndTrajectoriesFromYaml(const std::string &filename, yocs_msgs::WaypointList &wps, yocs_msgs::TrajectoryList &trajs)
void getYamlNode(const std::string &filename, YAML::Node &node)
void parseTrajectories(const YAML::Node &node, const yocs_msgs::WaypointList &wps, yocs_msgs::TrajectoryList &trajs)
void parseWaypoints(const YAML::Node &node, yocs_msgs::WaypointList &wps)