How to read Binary data from a bagfile ?
I have received a bag file which i need to analyze.
I opened the file in rqt_bag
and played a topic /pnc/carstatus
which has the messages of type string
. Now to read the messages, I used rostopic echo /pnc/carstatus
. But this shows data: !!Binary |
and some unreadable characters below it. Is there a way to read the contents of these bag files ?
ps : I cannot covert the file to a .csv
or a .txt
format as it contains a topic of custom message type and it fives a unicode
error.
ps : I am not sure if i can attach an image or not but I guess looking at the image makes it a lot more clearer. Sorry if i am offending the rules.
To me it seems you are actually doing everything correct. The problem with the custom message is that we cannot say what this is about without further Information. How is the message defined? What is the purpose? What should it be about? Is it a string where somebody wrote
"!!Binary | ChQJBK..."
?Hi @mig I guess you got a bit confused.
/pnc/carstatus
has a message of typestring
. It is another topic in the file which has a custom message type (Ill edit the question for better understanding). It is definitely a string but how do i know if someone wrote!!Binary | ChQJBK...
or not ?Pleasen provide more info: What is the Output of
rosbag info
of your bagfile? Where did you get it from?@mig, this is a continuation of #q288319.
@mighere @ gvdhoorn thanks
@gvdhoorn thanks.
I would ask the person you got this from. This seems to be very specific. As long as you cannot say where this rosbag is from or what how it has been created, I guess you cannot receive more help.
Neither
sim_l3_msg
norkouliang
can be found, so this seems not open sourced.