diff --git a/README.md b/README.md index 4269d1612..4913ee874 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,12 @@ You can however set it to `rmw_fastrtps_dynamic_cpp` using the environment varia * Publication mode: `ASYNCHRONOUS_PUBLISH_MODE` However, it is possible to fully configure Fast DDS (including the history memory policy and the publication mode) using an XML file as described in [Fast DDS documentation](https://fast-dds.docs.eprosima.com/en/latest/fastdds/xml_configuration/xml_configuration.html). -Then, you just need to set environment variable `RMW_FASTRTPS_USE_QOS_FROM_XML` to 1 (it is set to 0 by default). -This tells `rmw_fastrtps` that it should not override neither the history memory policy nor the publication mode. +If you want to modify the history memory policy or the publication mode you must set environment variable `RMW_FASTRTPS_USE_QOS_FROM_XML` to 1 (it is set to 0 by default). +This tells `rmw_fastrtps` that it should override both the history memory policy and the publication mode using the XML. +Bear in mind that if you set this environment variable but do not give a value to either of these policies, defaults will be used. +Current Fast-DDS defaults are: +* [History memory policy](https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/core/policy/eprosimaExtensions.html#rtpsendpointqos): `PREALLOCATED_MEMORY_MODE`. +* [Publication mode](https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/core/policy/eprosimaExtensions.html#publishmodeqospolicy): `SYNCHRONOUS_PUBLISH_MODE`. You have two ways of telling you ROS 2 application which XML to use: 1. Placing your XML file in the running directory under the name `DEFAULT_FASTRTPS_PROFILES.xml`. @@ -91,4 +95,4 @@ Quality Declarations for the external dependencies of these packages can be foun * [Fast DDS Quality Declaration](https://github.com/eProsima/Fast-DDS/blob/master/QUALITY.md) * [Fast CDR Quality Declaration](https://github.com/eProsima/Fast-CDR/blob/master/QUALITY.md) -* [`foonathan_memory` Quality Declaration](https://github.com/eProsima/Fast-DDS/blob/master/Quality_Declaration_foonathan_memory.md) \ No newline at end of file +* [`foonathan_memory` Quality Declaration](https://github.com/eProsima/Fast-DDS/blob/master/Quality_Declaration_foonathan_memory.md)