-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msa: cleanup yaml parsing #795
Conversation
@@ -129,8 +127,7 @@ void operator>>(const YAML::Node& node, T& i) | |||
typedef const YAML::Node* yaml_node_t; | |||
|
|||
// Helper function to find a value (yaml-cpp 0.3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just remove support for yaml-cpp 0.3 at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yaml-cpp 0.3 is default for Ubuntu 14.04 / ROS Indigo. In the Kinetic branch, indeed we could get rid of 0.3 support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@davetcoleman I removed yaml 0.3 support and further simplified the yaml parsing code. |
- limit findValue to std::string key using templates for char[N] is ineffient, as every literal of new length N requires a new template instance - use boost::optional constructor to return value
049e9d6
to
42691db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm except clang-format is now failing
@@ -129,8 +127,7 @@ void operator>>(const YAML::Node& node, T& i) | |||
typedef const YAML::Node* yaml_node_t; | |||
|
|||
// Helper function to find a value (yaml-cpp 0.3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
- using utility function parse() - removing yaml-cpp 0.3 support
42691db
to
3caf297
Compare
Signed-off-by: Gaël Écorchard <gael.ecorchard@cvut.cz>
While tracking down a bug in yaml parsing, which finally turned out to be a bug in yamp-cpp itself (jbeder/yaml-cpp#568), I cleaned the code a little bit.