Skip to content

Commit cfbb75c

Browse files
author
ChenDongfag
committed
modified: rosbridge_library/src/rosbridge_library/capabilities/subscribe.py
1 parent 04e133f commit cfbb75c

File tree

1 file changed

+4
-2
lines changed
  • rosbridge_library/src/rosbridge_library/capabilities

1 file changed

+4
-2
lines changed

rosbridge_library/src/rosbridge_library/capabilities/subscribe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def publish(self, topic, message, fragment_size=None, compression="none"):
317317
with payloads not greater than this value
318318
compression -- (optional) compress the message. valid values are
319319
'png' and 'none'
320-
320+
321321
"""
322322

323323
subscription = self._subscriptions.get(topic)
@@ -332,7 +332,9 @@ def publish(self, topic, message, fragment_size=None, compression="none"):
332332
outgoing_msg = message.get_cbor(outgoing_msg)
333333
outgoing_msg["id"] = sid
334334
elif compression == "cbor-raw":
335-
(secs, nsecs) = self.protocol.node_handle.get_clock().now().seconds_nanoseconds()
335+
(secs, nsecs) = (
336+
self.protocol.node_handle.get_clock().now().seconds_nanoseconds()
337+
)
336338
outgoing_msg["msg"] = {
337339
"secs": secs,
338340
"nsecs": nsecs,

0 commit comments

Comments
 (0)