Fatal error R2020b rosbag . when i call bag = rosbag(filename), it shows "An error occurred when reading from the file." However, it works fine in R2020a.
6 ビュー (過去 30 日間)
古いコメントを表示
when i call
bag = rosbag(filename)
it shows "An error occurred when reading from the file."
However, it works fine in R2020a.
this error also affects the normal usage of "SLAM Map Builder" and "Lidar Labeler".
I have test the rosbag file in the help center,
e.g. \Examples\R2020b\ros\RetrieveInformationFromRosbagROSExample\ex_multiple_topics.bag
OK, it works fine.
BUT, why my file raised this error? and it works fine in R2020a.
the test file is attached. Please check it.
4 件のコメント
Cris LaPierre
2021 年 1 月 27 日
I have the ability to run the code here using R2020b. See the results below. No error.
unzip('bags.zip')
bag = rosbag("Rosbag Fatal Error.bag")
bag2 = rosbag("2018-06-07-03-58-52.bag")
Tan Shuwen is pig
2021 年 3 月 21 日
I found a solution to the problem, it's very simple, file path of your bag cannot have Chinese character.
回答 (3 件)
Tan Shuwen is pig
2021 年 1 月 28 日
I have the same problem after Matlab update.
It works ok in matlab 2020a, but not work in matlab2020b update4.
0 件のコメント
Tan Shuwen is pig
2021 年 3 月 21 日
I found a solution to the problem, it's very simple, file path of your bag cannot have Chinese character.
0 件のコメント
fang jie
2021 年 12 月 8 日
Hi! I have a question, when I use your bag file there no error, but when I open my bag file with matlab 2019b, the same question come. I don`t know how to solve.
clc,clear all
camera='Camera1';
type=0; %depth=0 / rgb=1;
filepath=fullfile('F:\ele_ladder\code\librealsense-master\librealsense-master\wrappers\python\examples',[camera,'.bag']);
bag=rosbag(filepath);
Command Window
An error occurred when reading from the file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で ROS Log Files and Transformations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!