Skip to content

Commit bfc5245

Browse files
authored
Conditional deserialization of message for ros2 topic hz (#1005)
Signed-off-by: Kostubh Khandelwal <[email protected]>
1 parent c6f9184 commit bfc5245

File tree

1 file changed

+2
-1
lines changed
  • ros2topic/ros2topic/verb

1 file changed

+2
-1
lines changed

ros2topic/ros2topic/verb/hz.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ def _rostopic_hz(node, topics, qos_args, window_size=DEFAULT_WINDOW_SIZE, filter
316316
msg_class,
317317
topic,
318318
functools.partial(rt.callback_hz, topic=topic),
319-
qos_profile)
319+
qos_profile,
320+
raw=filter_expr is None)
320321
if topics_len > 1:
321322
print('Subscribed to [%s]' % topic)
322323

0 commit comments

Comments
 (0)