KavrakiLab / robowflex

Making MoveIt Easy!
https://kavrakilab.github.io/robowflex/
Other
114 stars 24 forks source link

[BUG] robowflex::IO::isNode() returns true for non-existing entry #277

Closed tonypan1995 closed 2 years ago

tonypan1995 commented 2 years ago

The API robowflex::IO::isNode() (link) is supposed to return false if the entry of a file does not exist, but it returns true.

In the following test.yaml, we have null for key1, something for key2, and key3 does not exist:

key1: null
key2: "test"

isNode() correctly returns false for node["key1"], and true for node["key2"], but it still returns true for node["key3"].

This bug is seen with using yaml-cpp version 0.5.2 on ubuntu 18.04.