MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / ParseVectorFromYAML

Method ParseVectorFromYAML

src/FactorGraphConfig.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 Vector FactorGraphConfig::ParseVectorFromYAML(YAML::Node VectorNode)
43 {
44 int Length = VectorNode.size();
45 Vector Vec(Length);
46
47 if(Length == 0)
48 {
49 PRINT_ERROR("Empty element in YAML config: ", VectorNode);
50 }
51
52 for(int n = 0; n < Length; n++)
53 {
54 Vec(n) = VectorNode[n].as<double>();
55 }
56
57 return Vec;
58 }
59
60 FactorGraphConfig::FactorGraphConfig()
61 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected