From 7e1e0350341d6fa7a3366b481077405d47723583 Mon Sep 17 00:00:00 2001 From: Ryan Jordan Date: Sun, 7 Apr 2024 18:16:23 +0000 Subject: [PATCH] added qos_profile to publisher and subscriber --- src/rktl_control/rktl_control/topic_delay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rktl_control/rktl_control/topic_delay.py b/src/rktl_control/rktl_control/topic_delay.py index ea7ba42c..3ea9cda3 100644 --- a/src/rktl_control/rktl_control/topic_delay.py +++ b/src/rktl_control/rktl_control/topic_delay.py @@ -38,8 +38,8 @@ def __init__(self): # msg_type = type # assert msg_type is not None - pub = self.node.create_publisher(topic_type, output_name, queue_size=1) - self.node.create_subscription(topic_type, input_name, self.msg_cb) + pub = self.node.create_publisher(topic_type, output_name, qos_profile=1) + self.node.create_subscription(topic_type, input_name, self.msg_cb, qos_profile=1) self.buffer = deque() while rclpy.ok():