-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup, added test cases for descriptors, fixed namespaced descriptors
remove MAX_STRING_SIZE comparisons for rebase add new lines Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu> change to/from to min/max Signed-off-by: bpwilcox <bpwilcox@eng.ucsd.edu>
- Loading branch information
bpwilcox
committed
Oct 28, 2019
1 parent
fd939c4
commit f28d0cc
Showing
14 changed files
with
446 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
bar: 42 | ||
foo: | ||
read_only: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# config/test_yaml | ||
--- | ||
|
||
node_ns: | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
param1: | ||
type: 2 | ||
min_value: 5 | ||
max_value: 100 | ||
step: 5 | ||
read_only: false | ||
description: "int parameter" | ||
additional_constraints: "only multiples of 5" | ||
param2: | ||
min_value: 1.0 | ||
max_value: 10.0 | ||
description: "double parameter" | ||
node2: | ||
ros__parameters: | ||
foo: | ||
bar: 10 | ||
baz: "hello" | ||
parameter__descriptors: | ||
foo: | ||
bar: | ||
description: "namespaced parameter" | ||
read_only: false | ||
baz: | ||
description: "another namespaced parameter" | ||
foobar: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
foo: | ||
read_only: true | ||
invalid_description: "This is an invalid descriptor key" |
5 changes: 5 additions & 0 deletions
5
rcl_yaml_param_parser/test/invalid_param_descriptor_type.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
foo: | ||
min_value: "5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
foo: | ||
description: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
node_ns: | ||
node1: | ||
ros__parameters: | ||
parameter__descriptors: | ||
param1: | ||
max_value: 200 | ||
param2: | ||
min_value: -2.0 | ||
node2: | ||
ros__parameters: | ||
parameter__descriptors: | ||
foo: | ||
bar: | ||
read_only: true | ||
baz: | ||
description: "other namespaced parameter" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.