Skip to content

Commit

Permalink
added qos_profile to publisher and subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
rtjord committed Apr 7, 2024
1 parent 2ebc722 commit 7e1e035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rktl_control/rktl_control/topic_delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7e1e035

Please sign in to comment.