-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Fast DDS ROS2_EASY_MODE tests (#112)
* Refs #22106: Update test with new CLI params Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22106: Add test for AUTO mode Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22518: Adapt tests to new daemon Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22518: Fix supbrocesses termination and replace shutdown Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22518: Increase test_85 margins Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22623: Regression test for TCP reconnection Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22627: Refactor to EASY_MODE Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22627: Use UDP for discovery purposes Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> * Refs #22627: ROS2_EASY_MODE Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> --------- Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
- Loading branch information
1 parent
50938b2
commit e092959
Showing
22 changed files
with
2,150 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- S1 is created with Fast DDS CLI tool in ROS2_EASY_MODE. | ||
Default domain is used (0). | ||
Clients must know their matching participants: | ||
S1: C1 & C2 | ||
C1: C2 & S1 | ||
C2: C1 & S1 | ||
Note that in ROS2_EASY_MODE all clients are Superclients--> | ||
|
||
<simples> | ||
<simple name="client1"> | ||
<publisher topic="topic1"/> | ||
</simple> | ||
<simple name="client2"> | ||
<subscriber topic="topic1"/> | ||
</simple> | ||
</simples> | ||
|
||
<snapshots file="./test_80_auto.snapshot~"> | ||
<snapshot time="5">test_80_auto_snapshot</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
|
||
</profiles> | ||
</DS> |
31 changes: 31 additions & 0 deletions
31
test/configuration/test_cases/test_81_auto_ros_domain_id_env_var.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- S1 is created with Fast DDS CLI tool in ROS2_EASY_MODE. | ||
Domain ID is given to the tool using the environment variable. | ||
Clients must know their matching participants: | ||
S1: C1 & C2 | ||
C1: C2 & S1 | ||
C2: C1 & S1 | ||
Note that in ROS2_EASY_MODE all clients are Superclients--> | ||
|
||
<simples> | ||
<simple name="client1"> | ||
<publisher topic="topic1"/> | ||
</simple> | ||
<simple name="client2"> | ||
<subscriber topic="topic1"/> | ||
</simple> | ||
</simples> | ||
|
||
<snapshots file="./test_81_auto_ros_domain_id_env_var.snapshot~"> | ||
<snapshot time="5">test_81_auto_ros_domain_id_env_var</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
</profiles> | ||
</DS> |
80 changes: 80 additions & 0 deletions
80
test/configuration/test_cases/test_82_auto_ros_static_peers_env_var.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- Servers are created with Fast DDS CLI tool in ROS2_EASY_MODE. | ||
S2 uses the ROS_STATIC_PEERS environment variable to point to S1. | ||
Clients must know their matching participants: | ||
S1: C1 & S2 | ||
S2: C2 & S1 | ||
C1: C2 & S1 | ||
C2: C1 & S2 | ||
Note that in ROS2_EASY_MODE all clients are Superclients--> | ||
|
||
<clients> | ||
<client name="client1_S1" profile_name="client1_S1" listening_port="0"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
<client name="client1_S2" profile_name="client1_S2" listening_port="0"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_82_auto_ros_static_peers_env_var.snapshot~"> | ||
<snapshot time="5">test_82_auto_ros_static_peers_env_var</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<participant profile_name="client1_S1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>7402</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="client1_S2" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>8152</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
</profiles> | ||
</DS> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- S1 is created with Fast DDS CLI tool in ROS2_EASY_MODE. | ||
S2 is created using the START keyword to point to S1. | ||
Clients must know their matching participants: | ||
S1: C1 & S2 | ||
S2: C2 & S1 | ||
C1: C2 & S1 | ||
C2: C1 & S2 | ||
Note that in ROS2_EASY_MODE all clients are Superclients--> | ||
|
||
<clients> | ||
<client name="client1_S1" profile_name="client1_S1" listening_port="0"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
<client name="client1_S2" profile_name="client1_S2" listening_port="0"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_83_start.snapshot~"> | ||
<snapshot time="5">test_83_start</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<participant profile_name="client1_S1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>7402</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="client1_S2" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>8152</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
</profiles> | ||
</DS> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- Servers are created with Fast DDS CLI tool in ROS2_EASY_MODE. | ||
Then, the Fast DDS CLI tool is called with the ADD keyword to make S2 point to S1. | ||
Clients must know their matching participants: | ||
S1: C1 & S2 | ||
S2: C2 & S1 | ||
C1: C2 & S1 | ||
C2: C1 & S2 | ||
Note that in ROS2_EASY_MODE all clients are Superclients--> | ||
|
||
<clients> | ||
<client name="client1_S1" profile_name="client1_S1" listening_port="0"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
<client name="client1_S2" profile_name="client1_S2" listening_port="0"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_84_add.snapshot~"> | ||
<snapshot time="5">test_84_add</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<participant profile_name="client1_S1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>7402</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="client1_S2" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>8152</port> | ||
</udpv4> | ||
</locator> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
</profiles> | ||
</DS> |
Oops, something went wrong.