Skip to content

Commit aa5cc56

Browse files
REQREPLY-221: Apply PR feedback
1 parent ab69223 commit aa5cc56

File tree

10 files changed

+10
-15
lines changed

10 files changed

+10
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/dynamic_data_nested_structs/java
2+
cd ${BaseExamplePath}/java
33
java -Djava.library.path=$NDDSHOME/lib/x64Linux4gcc7.3.0 -cp ".:$NDDSHOME/lib/java/nddsjava.jar" DynamicDataNestedStruct $@

tests/examples/connext_dds/remote_procedure_call/c++11/Inventory_client.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Change directory to the location of the example working directory
44
# to workaround DIT-193
55

6-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/remote_procedure_call/c++11
6+
cd ${BaseExamplePath}/c++11
77
./build/Inventory_client $@

tests/examples/connext_dds/remote_procedure_call/c++11/Inventory_service.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Change directory to the location of the example working directory
44
# to workaround DIT-193
55

6-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/remote_procedure_call/c++11
6+
cd ${BaseExamplePath}/c++11
77
./build/Inventory_service $@
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/remote_procedure_call/py
3+
cd ${BaseExamplePath}/py
44
/bin/python3 inventory_client.py $@
55
rm -rf __pycache__
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/remote_procedure_call/py
3+
cd ${BaseExamplePath}/py
44
/bin/python3 inventory_service.py $@
55
rm -rf __pycache__
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/request_reply/cs
3+
cd ${BaseExamplePath}/cs
44
/usr/bin/dotnet run -- --replier $@

tests/examples/connext_dds/request_reply/cs/PrimesRequester.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# to try to avoid the issue
66
sleep 10
77

8-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/request_reply/cs
8+
cd ${BaseExamplePath}/cs
99
/usr/bin/dotnet run -- --requester $@
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/request_reply/py
3+
cd ${BaseExamplePath}/py
44
/bin/python3 primes_replier.py $@
55
rm -rf __pycache__
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
cd /test/connextdds_examples_suite/rticonnextdds-examples/examples/connext_dds/request_reply/py
3+
cd ${BaseExamplePath}/py
44
/bin/python3 primes_requester.py $@
55
rm -rf __pycache__

tutorials/rpc/py/robot_client.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,12 @@ class RobotControlClient(RobotControl, rpc.ClientBase):
2020
pass
2121

2222

23-
async def wait_for_service(client: RobotControlClient):
24-
while client.matched_service_count == 0:
25-
await sleep(0.1)
26-
27-
2823
async def main():
2924
participant = dds.DomainParticipant(domain_id=0)
3025
client = RobotControlClient(participant, "MyRobotControl")
3126

3227
# For versions 7.4.0 and below:
33-
await wait_for_service(client)
28+
sleep(2)
3429
# For newer versions you can use the following:
3530
# await client.wait_for_service_async(dds.Duration(20))
3631

0 commit comments

Comments
 (0)