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():