Skip to content

Force rclrs_tests to use the UDPv4 transport instead of the default shared memory. #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions rclrs_tests/src/DEFAULT_FASTRTPS_PROFILES.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- UDPv4 is more reliable for unit tests than shared memory, which is the default. Force the transport to be UDPv4. -->
<!-- For this file to be used, FastDDS needs to be the DDS provider. There is no rmw API to do this. -->
<!-- https://fast-dds.docs.eprosima.com/en/v2.13.2/fastdds/xml_configuration/xml_configuration.html -->
<!-- https://fast-dds.docs.eprosima.com/en/v2.13.2/fastdds/transport/udp/udp.html#enabling-udp-transport -->

<dds>
<profiles xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles">
<transport_descriptors>
<transport_descriptor>
<transport_id>udp_transport</transport_id>
<type>UDPv4</type>
<sendBufferSize>9216</sendBufferSize>
<receiveBufferSize>9216</receiveBufferSize>
<non_blocking_send>true</non_blocking_send>
</transport_descriptor>
</transport_descriptors>

<participant profile_name="UDPParticipant">
<rtps>
<userTransports>
<transport_id>udp_transport</transport_id>
</userTransports>
<useBuiltinTransports>false</useBuiltinTransports>
</rtps>
</participant>
</profiles>
<dds>