Skip to content

Commit

Permalink
Describe wildcard usage in parameter files
Browse files Browse the repository at this point in the history
Wildcards were introduced in ros2/rclcpp#762
And further usage proposed in ros2/rclcpp#1265.

Signed-off-by: Jacob Perron <[email protected]>
  • Loading branch information
jacobperron committed Oct 12, 2020
1 parent 69c94ca commit e76ade4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions articles/160_ros_command_line_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,39 @@ another_node:
string_param: bar
```

Wildcards can be used for node names and namespaces as described in [Remapping Names](static_remapping.html#match-part-of-a-rule).
`*` matches a single token delimeted by slashes (`/`).
`**` matches zero or more tokens delimeted by slashes.
Partial matches are not allowed (e.g. `foo*`).

For example,

```yaml
/**:
ros__parameters:
string_param: foo
```

will set the parameter `string_param` on all nodes,

```yaml
/**:
some_node:
ros__parameters:
string_param: foo
```

will set the parameter `string_param` on nodes named `some_node` in any namespace,

```yaml
/foo:
"*":
ros__parameters:
string_param: foo
```

will set the parameter `string_param` on any node in the namespace `/foo`.

#### Logging level assignments

Minimum logging level can be externally set either globally or per logger using the `--log-level` option.
Expand Down

0 comments on commit e76ade4

Please sign in to comment.