MATLAB Answers

matlab2020b update1/rosbag error

60 views (last 30 days)
Xing Zhang
Xing Zhang on 3 Dec 2020
Answered: Tan Shuwen is pig on 21 Mar 2021
When i use 'rosbag' command, shows error, but the same command can run in matlab 2019a

Answers (4)

Abhisek Pradhan
Abhisek Pradhan on 8 Dec 2020
Tried using rosbag in R2020b and its working fine. There may be some issue in the file or arguments you are passing into it. Check here for documentation.
Or if you can share some more details we can have a deeper look at it.
  1 Comment
Vincenzo Lippiello
Vincenzo Lippiello on 15 Dec 2020
I have the same problem, see the following file...
I just call ' bag = rosbag(filename); ' and an error occurrs: "An error occurred when reading from the file."
I also tested bag files downloaded from internet and the problem is the same.

Sign in to comment.


Vincenzo Lippiello
Vincenzo Lippiello on 15 Dec 2020
I have the same problem after Matlbab update.
I attached the file that works for me with R2020a but not with R2020b.
Thanks in advance for your time

Tan Shuwen is pig
Tan Shuwen is pig on 28 Jan 2021
I have the same problem after Matlbab update.

Tan Shuwen is pig
Tan Shuwen is pig on 21 Mar 2021
I found a solution to the problem, it's very simple, file path of your bag cannot have Chinese character.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!