Skip to content

Commit aace053

Browse files
committed
fix python subscriber qos
1 parent 3b6f1b1 commit aace053

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

hydra_ros/hydra_ros/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,14 @@ def publish_with_header(self, G, header: Header):
4545
class DsgSubscriber:
4646
"""Class for receiving a scene graph in python."""
4747

48-
def __init__(self, node: Node, topic: str, callback):
48+
def __init__(self, node: Node, topic: str, callback, qos = None):
4949
"""Construct a DSG Receiver."""
5050
self._callback = callback
5151
self._graph_set = False
5252
self._graph = None
5353
self._logger = node.get_logger()
5454

55-
qos_profile = QoSProfile(
56-
history=QoSHistoryPolicy.KEEP_ALL,
57-
depth=10, # Still ignored
58-
durability=QoSDurabilityPolicy.TRANSIENT_LOCAL
59-
)
60-
55+
qos_profile = qos or QoSProfile(depth=1)
6156
self._sub = node.create_subscription(
6257
DsgUpdate,
6358
topic,

0 commit comments

Comments
 (0)