What is wrong with my DEFAULT_FASTRTPS_PROFILES.xml files?
I want to run the ROS 2 talker/listener demo using DEFAULT_FASTRTPS_PROFILES.xml files to change domains so i can use the eprosima integration service domain connector. The xml files seem to be loaded but the participants from different domains are still communicating. Tried running talker and listener on the same and different machines. My workspace tree is:
- ws
- src
- pub_profile (here i execute the talker)
- DEFAULT_FASTRTPS_PROFILES.xml
- sub_profile (here i execute the listener)
- DEFAULT_FASTRTPS_PROFILES.xml
- pub_profile (here i execute the talker)
- src
EDIT: I also tried using the same file for both participants with the same result.
talker xml file is :
<?xml version="1.0"encoding="UTF-8"?>
<profiles>
<participant profile_name="participant_profile_pub">
<rtps>
<name>talker</name>
<builtin>
<domainId>1</domainId>
<leaseDuration>
<durationbyname>INFINITE</durationbyname>
</leaseDuration>
</builtin>
</rtps>
</participant>
<publisher profile_name="publisher_profile">
<topic>
<kind>NO_KEY</kind>
<name>chatter</name> <!-- string -->
<dataType>string</dataType> <!-- string -->
<historyQos>
<kind>KEEP_LAST</kind> <!-- string -->
<depth>20</depth> <!-- uint32 -->
</historyQos>
</topic>
<qos>
<durability>
<kind>VOLATILE</kind> <!-- string -->
</durability>
<liveliness>
<kind>AUTOMATIC</kind> <!-- string -->
</liveliness>
<reliability>
<kind>BEST_EFFORT</kind>
</reliability>
</qos>
</publisher>
</profiles>
listener xml file is:
<?xml version="1.0"encoding="UTF-8"?>
<profiles>
<participant profile_name="participant_profile_sub">
<rtps>
<name>listener</name>
<builtin>
<domainId>2</domainId>
<leaseDuration>
<durationbyname>INFINITE</durationbyname>
</leaseDuration>
</builtin>
</rtps>
</participant>
<subscriber profile_name="subscriber_profile">
<topic>
<kind>NO_KEY</kind>
<name>chatter</name> <!-- string -->
<dataType>string</dataType> <!-- string -->
<historyQos>
<kind>KEEP_LAST</kind> <!-- string -->
<depth>20</depth> <!-- uint32 -->
</historyQos>
</topic>
<qos>
<durability>
<kind>VOLATILE</kind> <!-- string -->
</durability>
<liveliness>
<kind>AUTOMATIC</kind> <!-- string -->
</liveliness>
<reliability>
<kind>BEST_EFFORT</kind>
</reliability>
</qos>
</subscriber>
</profiles>