-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support passing parameters as a dictionary (#138)
* Pass shallow dicts of parameters * Support nested dicts * Support passing parameter lists * Support non-substitution types in param lists * Error on nested lists * Tests for invalid dicts * Invalid param dicts show on execution of nodes Factor out test utility code * Add test checking resulting parameters file * Test more complex dictionary * Depend on pyyaml * Don't allow random types to be passed in dict * Docs * Error if node name isn't specified by params dict is given * set() -> {} * Linter fix * Add todo for deleting generated files * Linter fix
- Loading branch information
Showing
7 changed files
with
294 additions
and
82 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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
'setuptools', | ||
'demo_nodes_py', | ||
'launch_ros', | ||
'pyyaml', | ||
], | ||
zip_safe=True, | ||
author='William Woodall', | ||
|
17 changes: 9 additions & 8 deletions
17
test_launch_ros/test/test_launch_ros/actions/example_parameters.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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
talker: | ||
ros__parameters: | ||
some_int: 42 | ||
a_string: "Hello world" | ||
some_list: | ||
sub_list: | ||
some_integers: [1, 2, 3, 4] | ||
some_doubles : [3.14, 2.718] | ||
/my_ns: | ||
my_node: | ||
ros__parameters: | ||
some_int: 42 | ||
a_string: "Hello world" | ||
some_list: | ||
sub_list: | ||
some_integers: [1, 2, 3, 4] | ||
some_doubles : [3.14, 2.718] |
Oops, something went wrong.