diff --git a/python/examples/ros1/reader.py b/python/examples/ros1/reader.py index 88342e9a98..921face5d8 100644 --- a/python/examples/ros1/reader.py +++ b/python/examples/ros1/reader.py @@ -9,7 +9,7 @@ def main(): with open(sys.argv[1], "rb") as f: reader = make_reader(f, decoder_factories=[DecoderFactory()]) for schema, channel, message, ros_msg in reader.iter_decoded_messages(): - print(f"{channel.topic} {schema.name} [{message.log_time}]: {ros_msg.data}") + print(f"{channel.topic} {schema.name} [{message.log_time}]: {ros_msg}") if __name__ == "__main__":