フィルターのクリア

Read rosbag file - change between R2018b to R2020b

3 ビュー (過去 30 日間)
Avishay Assayag
Avishay Assayag 2021 年 5 月 31 日
移動済み: Jagadeesh Konakalla 2024 年 4 月 23 日
Hi,
In MATLAB R2018b I was using the command
Bag = rosbag(RosbagFileName)
and it was working fine.
When trying to use the same command with the same file on MATLAB R2020, I get the follwoing error:
The class ros.Bag has no Constant property or Static method named 'parse'.
Any idea what could be the problem?
  3 件のコメント
Avishay Assayag
Avishay Assayag 2021 年 6 月 1 日
Hi Jagadeesh,
The script I'm using is quite simple:
Bag = rosbag('2021_06_01_12_54_26_MATLAB_Error.bag')
And the error I get is:
The class ros.Bag has no Constant property or Static method named 'parse'.
I will send you a link to the file in a private message.
Thanks!
Avishay Assayag
Avishay Assayag 2021 年 6 月 2 日
Thank you Cam!
The commands you provided helped me find the problem.
I found that I had a an old MATLAB code in my path, outside of the ROS toolbox folder, that is also dealing with rosbag files, apparently there was a conflict.

サインインしてコメントする。

採用された回答

Cam Salzberger
Cam Salzberger 2021 年 6 月 1 日
移動済み: Jagadeesh Konakalla 2024 年 4 月 23 日
Hey Avishay,
I haven't seen the file, but these kinds of errors can come up if you have something shadowing functions or objects. Can you run these commands in your MATLAB?:
which -all ros.Bag
which -all ros.BagSelection
which -all rosbag
-Cam

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeROS Log Files and Transformations についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by