<?xml version="1.0" encoding="UTF-8"?>
<dds xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles">
    <profiles>
        <!-- TRANSPORT -->
        <transport_descriptors>
            <transport_descriptor>
                <transport_id>latency_publisher_tcp_transport</transport_id>
                <type>TCPv4</type>
                <keep_alive_frequency_ms>1000</keep_alive_frequency_ms>
                <keep_alive_timeout_ms>10000</keep_alive_timeout_ms>
                <calculate_crc>false</calculate_crc>
                <check_crc>false</check_crc>
                <enable_tcp_nodelay>true</enable_tcp_nodelay>
                <listening_ports>
                        <port>7400</port>
                </listening_ports>
            </transport_descriptor>

            <transport_descriptor>
                <transport_id>latency_subscriber_tcp_transport</transport_id>
                <type>TCPv4</type>
                <keep_alive_frequency_ms>1000</keep_alive_frequency_ms>
                <keep_alive_timeout_ms>10000</keep_alive_timeout_ms>
                <calculate_crc>false</calculate_crc>
                <check_crc>false</check_crc>
                <enable_tcp_nodelay>true</enable_tcp_nodelay>
            </transport_descriptor>
        </transport_descriptors>

        <!-- PUBLISHER -->
        <participant profile_name="pub_participant_profile">
            <domainId>231</domainId>
            <rtps>
                <userTransports>
                    <transport_id>latency_publisher_tcp_transport</transport_id>
                </userTransports>
                <useBuiltinTransports>false</useBuiltinTransports>
                <name>latency_test_publisher</name>
            </rtps>
        </participant>
        <publisher profile_name="pub_publisher_profile">
            <topic>
                <name>latency_interprocess_pub2sub</name>
                <dataType>LatencyType</dataType>
                <kind>NO_KEY</kind>
            </topic>
            <qos>
                <reliability>
                    <kind>BEST_EFFORT</kind>
                </reliability>
                <durability>
                    <kind>VOLATILE</kind>
                </durability>
            </qos>
        </publisher>
        <subscriber profile_name="pub_subscriber_profile">
            <topic>
                <name>latency_interprocess_sub2pub</name>
                <dataType>LatencyType</dataType>
                <kind>NO_KEY</kind>
            </topic>
            <qos>
                <reliability>
                    <kind>BEST_EFFORT</kind>
                </reliability>
                <durability>
                    <kind>VOLATILE</kind>
                </durability>
            </qos>
        </subscriber>

        <!-- SUBSCRIBER -->
        <participant profile_name="sub_participant_profile">
            <domainId>231</domainId>
            <rtps>
                <builtin>
                    <initialPeersList>
                        <locator>
                            <tcpv4>
                                <address>127.0.0.1</address>
                                <physical_port>7400</physical_port>
                            </tcpv4>
                        </locator>
                    </initialPeersList>
                </builtin>
                <userTransports>
                    <transport_id>latency_subscriber_tcp_transport</transport_id>
                </userTransports>
                <useBuiltinTransports>false</useBuiltinTransports>
                <name>latency_test_subscriber</name>
            </rtps>
        </participant>
        <publisher profile_name="sub_publisher_profile">
            <topic>
                <name>latency_interprocess_sub2pub</name>
                <dataType>LatencyType</dataType>
                <kind>NO_KEY</kind>
            </topic>
            <qos>
                <reliability>
                    <kind>BEST_EFFORT</kind>
                </reliability>
                <durability>
                    <kind>VOLATILE</kind>
                </durability>
            </qos>
        </publisher>
        <subscriber profile_name="sub_subscriber_profile">
            <topic>
                <name>latency_interprocess_pub2sub</name>
                <dataType>LatencyType</dataType>
                <kind>NO_KEY</kind>
            </topic>
            <qos>
                <reliability>
                    <kind>BEST_EFFORT</kind>
                </reliability>
                <durability>
                    <kind>VOLATILE</kind>
                </durability>
            </qos>
        </subscriber>
    </profiles>
</dds>
