How to import bag file with std_msgs/String
5 views (last 30 days)
I have a bag file that contains a topic defined as:
/pavioliner/enc 342 msgs : std_msgs/String
I try to load it with:
bag = rosbag(filename);
topic1 = select(bag,'Topic',"/pavioliner/enc");
topic_data1 = readMessages(topic1);
and topic_data1 is:
342×1 cell array
I need to load into two different arrays only coloumns 5 and 6, but I can't understand how to parse the topic_data1 output.
Can you help me, please?