Drake
yamlUtil.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 #include <fstream>
5 #include "yaml-cpp/yaml.h"
8 
9 YAML::Node applyDefaults(const YAML::Node& node,
10  const YAML::Node& default_node);
11 YAML::Node expandDefaults(const YAML::Node& node);
12 
13 // yaml-cpp does not understand the DEFAULT: syntax for a default value or the
14 // <<:
15 // syntax to merge the contents of a node. This function wraps the map lookup
16 // to provide the correct behavior.
17 YAML::Node get(const YAML::Node& parent, const std::string& key);
18 
19 QPControllerParams loadSingleParamSet(const YAML::Node& config,
20  const RigidBodyTree& robot);
21 std::map<std::string, QPControllerParams> loadAllParamSets(
22  YAML::Node config, const RigidBodyTree& robot);
23 std::map<std::string, QPControllerParams> loadAllParamSets(
24  YAML::Node config, const RigidBodyTree& robot,
25  std::ofstream& debug_output_file);
26 RobotPropertyCache parseKinematicTreeMetadata(const YAML::Node& metadata,
27  const RigidBodyTree& robot);
YAML::Node applyDefaults(const YAML::Node &node, const YAML::Node &default_node)
Definition: yamlUtil.cpp:6
std::map< std::string, QPControllerParams > loadAllParamSets(YAML::Node config, const RigidBodyTree &robot)
Definition: yamlUtil.cpp:350
YAML::Node expandDefaults(const YAML::Node &node)
Definition: yamlUtil.cpp:25
Definition: QPCommon.h:221
KinematicModifications parseKinematicModifications(const YAML::Node &mods)
Definition: yamlUtil.cpp:506
Definition: QPCommon.h:354
RobotPropertyCache parseKinematicTreeMetadata(const YAML::Node &metadata, const RigidBodyTree &robot)
Definition: yamlUtil.cpp:377
Definition: RigidBodyTree.h:72
QPControllerParams loadSingleParamSet(const YAML::Node &config, const RigidBodyTree &robot)
Definition: yamlUtil.cpp:303
Definition: QPCommon.h:42