We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22b39b commit b032efeCopy full SHA for b032efe
ros2topic/test/test_bw_delay_hz.py
@@ -145,6 +145,15 @@ def publish_message():
145
146
publish_timer = self.node.create_timer(0.5, publish_message)
147
148
+ # Wait for the publisher to be discovered
149
+ publisher_count = 0
150
+ timeout_count = 0
151
+ while publisher_count == 0 and timeout_count < 10:
152
+ self.executor.spin_once(timeout_sec=0.1)
153
+ publisher_count = self.node.count_publishers(topic)
154
+ timeout_count += 1
155
+ assert publisher_count > 0, 'Publisher was not discovered'
156
+
157
try:
158
command_action = ExecuteProcess(
159
cmd=(['ros2', 'topic', verb] +
0 commit comments