Questions tagged [yaml-cpp]

yaml-cpp is an open source C++ library, for parsing and emitting YAML.

yaml-cpp is an open source C++ library, hosted on GitHub, for parsing and emitting YAML.

314 questions
0
votes
1 answer

meshcat_visualizer_test fails fetching repository 'yaml_cpp'

I'm trying to run drake/bindings/pydrake/systems/test/meshcat_visualizer_test.py as per the commented instructions at the top of said file, but I am unfamiliar as to how I would add yaml-ccp, which I believe is causing errors. I have the drake repo…
Phil
  • 47
  • 4
0
votes
1 answer

how can I print a 2d list with the 2 minus symbols on the same line with yaml cpp?

I would like to create the following Yaml using yaml-cpp: steps: - - name: flip-coin template: flip-coin - - name: heads template: heads when: "{{steps.flip-coin.outputs.result}} == heads" - name: tails …
Blascone
  • 11
  • 2
0
votes
1 answer

Getting an error at line 0, column 0: bad conversion

I don't know why I am getting this error : terminate called after throwing an instance of 'YAML::TypedBadConversion' what(): yaml-cpp: error at line 0, column 0: bad conversion Aborted (core dumped) I reduced my constant.yaml file to…
sduminy
  • 1
  • 1
0
votes
0 answers

Jaeger Tracing not working with yaml-cpp version 0.6.x

I am trying to instrument my program with jaeger-tracing (c++). I was able to view my traces when I compliled the program with yaml-cpp version 0.5.3, but when I changed my yaml-cpp version to 0.6.x, I am unable to view my traces. Dont know why its…
Abhinav Singh
  • 302
  • 3
  • 15
0
votes
0 answers

yaml_cpp: Converting NULL to std::vector

I got some .yaml files which have some NULL values in the lists, e.g.: Src_1: A_Coeff: ~ B_Coeff: - -0.0007726139317399502 Source_Direction: - -0.3588391810596386 - -0.8148504694940865 - 0.4552506504092068 …
pixelpress
  • 109
  • 1
  • 14
0
votes
2 answers

Jaegerw with yaml-cpp Linking Errror

I have a c++ program which using Jaeger for tracing #include #include #include // #include #include namespace std { void init(const char *FilePath) { auto yaml…
Abhinav Singh
  • 302
  • 3
  • 15
0
votes
1 answer

How to emit or write a map of maps in yaml file? c++

So I have couple of virtual goggle .. each one of them has different calibration parameters. I decided to save these parameters into a yaml file (as a configuration file) .. each goggle has its own serial/identification number ... and based on this…
Hesham.K
  • 29
  • 7
0
votes
1 answer

Unexpected results for yaml-cpp comparisons

Consider the following code (yamltest.cpp): #include #include #include int main() { std::string val = "[1, 2, 3]"; YAML::Node yn0 = YAML::Load(val); YAML::Node yn1 = YAML::Load(val); std::cout <<…
andand
  • 17,134
  • 11
  • 53
  • 79
0
votes
1 answer

How to get full path of the file having file name in c++ (linux)

I'm trying to parse yaml file using yaml-cpp but it needs full path of file.yaml . How should I get this path if it can be different depending on user setup. I'm assuming that this filename wont change This is for ROS kinetic framework so it's…
Adam Krawczyk
  • 71
  • 1
  • 5
0
votes
1 answer

Yaml-cpp configuration parser testing with CppUTest issue "expected type-specifier before ‘(’ token"

I am using yaml-cpp library (v 0.6.0) to parse yaml configuration file. Yaml-cpp is installed as system library. I have made a class Parser which checks for key-value pairs in yaml node. The Parser class is built as ConfigParserLibrary static…
vg34
  • 91
  • 2
  • 10
0
votes
1 answer

Yaml-Cpp find out if value was quoted

I'm reading in a yaml file with a big map which looks like this: test_value: '123' test_value2: 123 test_value3: 1.0 test_value4: true test_value5: 'some information' I can parse it to get the values but I want to know the type of the value. I have…
Lycea
  • 13
  • 2
  • 5
0
votes
0 answers

Parsing simple yaml map file with yaml-cpp

I'm trying my best to read a yaml file with yaml-cpp it is in a simple format: test_key: 1 test_key2: 2 test_key3: 3 test_key4: ['value','another value'] test_key5: true test_key6: [1,2,3,4,5] test_key7: [0.0,0.1,0.2] The problem is that when I…
Lycea
  • 13
  • 2
  • 5
0
votes
2 answers

How to dump a digit string with leading zeros, as a valid yaml string in yaml-cpp?

Creating a yaml string with leading zeros is not escaped with quotes in yaml-cpp. So writing the string to a texfile is not a valid yaml-string.leading_zeros: 00005 is 5 according to the specification yaml 1.2 (Try yourself:…
john s.
  • 476
  • 9
  • 21
0
votes
1 answer

YAML::LoadFile(std::string const&) does not find file [yaml-cpp in ROS]

I'm trying to use data from a yaml file in a ROS(kinetic)/ c++ code so yaml-cpp seems like a good option for me. My code yields no errors but does not work properly: It seems like the YAML::LoadFile function is not able to find my file since the…
R.H.
  • 98
  • 1
  • 8
0
votes
0 answers

'LoadFile' is not a member of YAML

I'm trying to parse a YAML config file using yaml-cpp for a small raspberry pi3 project that I'm working on, but strangely, the member function LoadFile from YAML appears not to be member of YAML. I'm using the following instruction, just as the…
Charlie
  • 252
  • 5
  • 16