# Configuring QoS profiles from an external file \[Proposal\]

**URL:** <https://discourse.openrobotics.org/t/configuring-qos-profiles-from-an-external-file-proposal/15991>\
**Category:** ROS General\
**Tags:** ros2\
**Created:** [August 19, 2020, 5:46pm UTC](https://discourse.openrobotics.org/t/configuring-qos-profiles-from-an-external-file-proposal/15991 "2020-08-19T17:46:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ivanpauno](https://avatars.discourse-cdn.com/v4/letter/i/ad7895/32.png) [@ivanpauno](https://discourse.openrobotics.org/u/ivanpauno)\
**Post date:** [August 19, 2020, 5:46pm UTC](https://discourse.openrobotics.org/t/configuring-qos-profiles-from-an-external-file-proposal/15991/1 "2020-08-19T17:46:35Z")

</div>

Hi everybody,

Currently ROS 2 doesn’t provide a standard method for externally configuring QoS profiles, which are typically hardcoded by the node’s author.

ROS 2 is a framework where reusing nodes other people have written is important.  
For some use cases, it is quite useful to use a different QoS profile than the one original specified.

There have been different ad-hoc solutions to the problem in different packages:

- [ros-perception/image\_pipeline#521](https://github.com/ros-perception/image_pipeline/pull/521)
- [SteveMacenski/ros2\_ouster\_drivers#26](https://github.com/SteveMacenski/ros2_ouster_drivers/pull/26)
- [ros-simulation/gazebo\_ros\_pkgs#1079](https://github.com/ros-simulation/gazebo_ros_pkgs/issues/1079)

[https://github.com/ros2/design/pull/296](https://github.com/ros2/design/pull/296) proposes to define a QoS profile file format and to add support to it in `rcl`.

Here is a basic example:

```yaml
/**:
    ros__qos_profiles:
        profiles:
            reliable_depth_100:
                base: ros_default
                reliability: reliable
                history_depth: 100
                history: keep_last
/my_ns/nested_ns/my_node:
    ros__qos_profiles:
        publisher:
            topic_name: asd
            qos:
                base: reliable_depth_100
        publisher:
            topic_name: bsd
            qos:
                base: reliable_depth_100

```

Check out the [design document](https://github.com/ros2/design/pull/296) for more details.

Feedback is really welcomed!  
(prefer giving feedback in the design doc PR, and not here).

Best,  
Ivan

---

_[View the full topic](https://discourse.openrobotics.org/t/configuring-qos-profiles-from-an-external-file-proposal/15991)._
