From 27674f631a549db542e5616831cd0607c5636f38 Mon Sep 17 00:00:00 2001 From: Brian Wilcox Date: Tue, 29 Jun 2021 15:59:58 +0000 Subject: [PATCH] remove error msg for node name before key to allow for both keys param/descriptor keys under node name Signed-off-by: Brian Wilcox --- rcl_yaml_param_parser/src/parse.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/rcl_yaml_param_parser/src/parse.c b/rcl_yaml_param_parser/src/parse.c index 1d7c05089..f1814cda3 100644 --- a/rcl_yaml_param_parser/src/parse.c +++ b/rcl_yaml_param_parser/src/parse.c @@ -786,13 +786,6 @@ rcutils_ret_t parse_key( { /// Till we get PARAMS_KEY or PARAMS_DESCRIPTORS_KEY, keep adding to node namespace if (0 == strncmp(PARAMS_KEY, value, strlen(PARAMS_KEY))) { - if (0U == ns_tracker->num_node_ns) { - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING( - "There are no node names before %s at line %d", PARAMS_KEY, line_num); - ret = RCUTILS_RET_ERROR; - break; - } - if (*is_new_map) { /// The previous key(last name in namespace) was the node name. Remove it /// from the namespace @@ -824,13 +817,6 @@ rcutils_ret_t parse_key( /// Bump the map level to PARAMS (*map_level)++; } else if (0 == strncmp(PARAMS_DESCRIPTORS_KEY, value, strlen(PARAMS_DESCRIPTORS_KEY))) { - if (0U == ns_tracker->num_node_ns) { - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING( - "There are no node names before %s at line %d", PARAMS_DESCRIPTORS_KEY, line_num); - ret = RCUTILS_RET_ERROR; - break; - } - if (*is_new_map) { /// The previous key(last name in namespace) was the node name. Remove it /// from the namespace