You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to use yaml_and_typeinfo_to_rosmsg for a robot application, I found myself having converting a YAML::Node to a string, just so yaml_and_typeinfo_to_rosmsg could re-parse it into a YAML::Node.
In my experience, robot configs that complete even simple tasks require complex YAML trees for their config file. You will be parsing many subtrees into ROS msgs, such as geometry_msgs/Pose and geometry_msgs/TransformStamped.
Specifically, my code would:
Parse the tree using yamlcpp.
Dive down the YAML tree to the selected key (e.g. yaml_tree["arm"]["waypoints"]["grasp_approach"])
When I tried to use
yaml_and_typeinfo_to_rosmsg
for a robot application, I found myself having converting aYAML::Node
to a string, just soyaml_and_typeinfo_to_rosmsg
could re-parse it into aYAML::Node
.In my experience, robot configs that complete even simple tasks require complex YAML trees for their config file. You will be parsing many subtrees into ROS msgs, such as
geometry_msgs/Pose
andgeometry_msgs/TransformStamped
.Specifically, my code would:
yamlcpp
.yaml_tree["arm"]["waypoints"]["grasp_approach"]
)YAML::Node
to a stringyaml_and_typeinfo_to_rosmsg
yaml_and_typeinfo_to_rosmsg
re-parses the YAML.Suggested Change
A new interface:
Leave the interface for
yaml_and_typeinfo_to_rosmsg
the same, but move most of the code inside toyaml_node_and_typeinfo_to_rosmsg
.Likewise for the other functions that take as input a yaml_str.
The text was updated successfully, but these errors were encountered: