... | @@ -1460,7 +1460,7 @@ To configure DDS, the following 3 things are necessary: |
... | @@ -1460,7 +1460,7 @@ To configure DDS, the following 3 things are necessary: |
|
|
|
|
|
i\) put the desired config into an external XML file
|
|
i\) put the desired config into an external XML file
|
|
|
|
|
|
ii\) define the NDDS_QOS_PROFILES environment variable, so DDS finds the XML file
|
|
ii\) define the FASTRTPS_DEFAULT_PROFILES_FILE (Connext: NDDS_QOS_PROFILES) environment variable, so DDS finds the XML file
|
|
|
|
|
|
iii\) pass 2 keys to the MAL factory, so DDS finds the right profile in the XML file
|
|
iii\) pass 2 keys to the MAL factory, so DDS finds the right profile in the XML file
|
|
|
|
|
... | @@ -1470,7 +1470,7 @@ iii\) pass 2 keys to the MAL factory, so DDS finds the right profile in the XML |
... | @@ -1470,7 +1470,7 @@ iii\) pass 2 keys to the MAL factory, so DDS finds the right profile in the XML |
|
|
|
|
|
1. Create the XML file.
|
|
1. Create the XML file.
|
|
|
|
|
|
Examples are often easily found in the Connext documentation and user forums.
|
|
Examples are easily found in the "Fast DDS" documentation and user forums.
|
|
|
|
|
|
2. In your code, let MAL load the DDS-specific properties.
|
|
2. In your code, let MAL load the DDS-specific properties.
|
|
|
|
|
... | @@ -1482,12 +1482,14 @@ Example (C++): |
... | @@ -1482,12 +1482,14 @@ Example (C++): |
|
std::make_shared<mal::ps::qos::Deadline>(std::chrono::seconds(1)) }, {
|
|
std::make_shared<mal::ps::qos::Deadline>(std::chrono::seconds(1)) }, {
|
|
{"dds.domain", "100"}, { "dds.qos.profile.library", “test"}, { "dds.qos.profile.name", “UDPv4_properties"}} });
|
|
{"dds.domain", "100"}, { "dds.qos.profile.library", “test"}, { "dds.qos.profile.name", “UDPv4_properties"}} });
|
|
|
|
|
|
|
|
In the case of Fast DDS, the "profile.library" value can be set to a dummy value, since it will not be used.
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
3. Before running your code:
|
|
3. Before running your code:
|
|
|
|
|
|
```
|
|
```
|
|
export NDDS_QOS_PROFILES=\<path of XML file>
|
|
FASTRTPS_DEFAULT_PROFILES_FILE=\<path of XML file>
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
... | | ... | |