ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Cannot parse rosbag in MATLab?

asked 2017-01-12 16:04:29 -0500

roonocerus gravatar image

I just cannot parse this bag file. So far the matlab code just looks like

filepath =fullfile(~/xxx.bag)

bagselect =rosbag(filepath)

the error on the second line is: "Expected a connection record header, but instead found Chunk. Cannot parse the file."

I know the file isn't corrupted, I can read the point values in terminal.

It's just LiDAR data off of a velodyne puck. it's not compressed, is 4GB just too big for it to read? There doesn't exist any documentation for errors this early on in the process, so I'm pretty much in the dark, any help would be appreciated. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-07-25 15:03:06 -0500

snehesh gravatar image

Can you post the full error message in matlab? My first guess is that Matlab does not know how to convert the data into Matlab data type. So you need a way to convert ros bag data into Matlab data type. Have you looked into custom ROS message support? https://www.mathworks.com/help/roboti...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-12 16:04:29 -0500

Seen: 853 times

Last updated: Jan 12 '17