Skip to content

Commit

Permalink
add example without using default policies
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Dec 11, 2024
1 parent 9f7d3d8 commit 349605e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/qos.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ node_name:

The same workflow works for subscribers, you just use ``rclcpp::SubscriptionOptions`` instance and change ``publisher`` to ``subscription`` in the YAML file.

When using `with_default_policies`, the `history`, `depth` and `reliability` can be changed. It is also possible
to select other overriding options by passing an initializer list of `QosPolicyKind` to the regular constructor:

```cpp
pub_options.qos_overriding_options = rclcpp::QosOverridingOptions({rclcpp::QosPolicyKind::Reliability});
```

## Magic Numbers

> [!NOTE]
Expand Down

0 comments on commit 349605e

Please sign in to comment.