lherman-cs / go-rosbag

Rosbag parser written in pure Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reading `std_msgs::String` type message fails

xiedotscene opened this issue · comments

Firstly, I'd like to thank for your contribution. This is really a nice package. I have encountered a minor issue while using your example to parse a rosbag, specifically with a message of type std_msgs::String. This message cannot be read as a RecordMessageData type with its topic name in my test, and the stored string cannot be parsed. I can extract the message topic by using the record as RecordConnection type, but I have no idea how to extract the string message from that. I was wondering if you could kindly suggest a solution or provide any guidance on how to extract this string message successfully?

It seems the metadata of the string message and the message data itself are stored in two successive records.