Skip to content

Commit

Permalink
Fix python ROS1 example
Browse files Browse the repository at this point in the history
  • Loading branch information
achim-k committed Aug 23, 2023
1 parent 2a1f9c6 commit 0061de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/examples/ros1/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit 0061de9

Please sign in to comment.