From 9e9156d815667eab7d528e7295a23370d84c33a7 Mon Sep 17 00:00:00 2001 From: Roboto Bot-o Date: Fri, 30 Aug 2024 10:13:41 -0700 Subject: [PATCH] Update SDK to version 0.7.4 --- src/roboto/domain/topics/mcap_reader.py | 7 +++---- src/roboto/version.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/roboto/domain/topics/mcap_reader.py b/src/roboto/domain/topics/mcap_reader.py index f36dffb..4bbb8c5 100644 --- a/src/roboto/domain/topics/mcap_reader.py +++ b/src/roboto/domain/topics/mcap_reader.py @@ -18,10 +18,6 @@ ) from .record import MessagePathRecord -json_decoder = JsonDecoderFactory() -ros1_decoder = mcap_ros1.decoder.DecoderFactory() -ros2_decoder = mcap_ros2.decoder.DecoderFactory() - class McapReader: __message_iterator: typing.Iterator[mcap.reader.DecodedMessageTuple] @@ -35,6 +31,9 @@ def __init__( start_time: typing.Optional[int] = None, end_time: typing.Optional[int] = None, ): + json_decoder = JsonDecoderFactory() + ros1_decoder = mcap_ros1.decoder.DecoderFactory() + ros2_decoder = mcap_ros2.decoder.DecoderFactory() reader = mcap.reader.make_reader( stream, decoder_factories=[json_decoder, ros1_decoder, ros2_decoder] ) diff --git a/src/roboto/version.py b/src/roboto/version.py index bbf20d2..e7e74b6 100644 --- a/src/roboto/version.py +++ b/src/roboto/version.py @@ -1,4 +1,4 @@ -__version__ = "0.7.3" +__version__ = "0.7.4" __all__= ("__version__",) \ No newline at end of file