Skip to content

Commit

Permalink
Describe wildcard usage in parameter files (#303)
Browse files Browse the repository at this point in the history
* Describe wildcard usage in parameter files

Wildcards were introduced in ros2/rclcpp#762
And further usage proposed in ros2/rclcpp#1265.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Reformat examples

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored Dec 17, 2021
1 parent 12f61b1 commit e160af4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions articles/160_ros_command_line_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,37 @@ 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 e160af4

Please sign in to comment.