Skip to content

Commit

Permalink
change param descriptor key name to ros__parameter_descriptors
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Wilcox <[email protected]>
  • Loading branch information
bpwilcox committed Mar 29, 2021
1 parent e12a2b3 commit bf425d8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rcl_yaml_param_parser/src/impl/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C"
#endif

#define PARAMS_KEY "ros__parameters"
#define PARAMS_DESCRIPTORS_KEY "parameter__descriptors"
#define PARAMS_DESCRIPTORS_KEY "ros__parameter_descriptors"
#define NODE_NS_SEPERATOR "/"
#define PARAMETER_NS_SEPERATOR "."

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node1:
parameter__descriptors:
ros__parameter_descriptors:
bar: 42
foo:
read_only: true
4 changes: 2 additions & 2 deletions rcl_yaml_param_parser/test/correct_param_descriptors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

node_ns:
node1:
parameter__descriptors:
ros__parameter_descriptors:
param1:
type: 2
min_value: 5
Expand All @@ -23,7 +23,7 @@ node_ns:
foo:
bar: 10
baz: "hello"
parameter__descriptors:
ros__parameter_descriptors:
foo:
bar:
description: "namespaced parameter"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node1:
parameter__descriptors:
ros__parameter_descriptors:
foo:
read_only: true
invalid_description: "This is an invalid descriptor key"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node1:
parameter__descriptors:
ros__parameter_descriptors:
foo:
min_value: "5"
2 changes: 1 addition & 1 deletion rcl_yaml_param_parser/test/no_value_descriptor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node1:
parameter__descriptors:
ros__parameter_descriptors:
foo:
description:
4 changes: 2 additions & 2 deletions rcl_yaml_param_parser/test/overlay_descriptors.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
node_ns:
node1:
parameter__descriptors:
ros__parameter_descriptors:
param1:
max_value: 200
param2:
min_value: -2.0
node2:
parameter__descriptors:
ros__parameter_descriptors:
foo:
bar:
read_only: true
Expand Down

0 comments on commit bf425d8

Please sign in to comment.