Issue with readMessages Vector 3

5 ビュー (過去 30 日間)
XPX Labs
XPX Labs 2020 年 8 月 30 日
編集済み: Cristian Navarro 2020 年 9 月 26 日
Having an issue using readMessages for a rosbag file:
>> bag = rosbag('tb1.bag')
bag =
BagSelection with properties:
FilePath: 'C:\Users\xpxla\Documents\MATLAB\TurtleBot\tb1.bag'
StartTime: 1.5988e+09
EndTime: 1.5988e+09
NumMessages: 23454
AvailableTopics: [12×3 table]
AvailableFrames: {2×1 cell}
MessageList: [23454×4 table]
>> velSel = select(bag, 'Topic','/cmd_vel')
velSel =
BagSelection with properties:
FilePath: 'C:\Users\xpxla\Documents\MATLAB\TurtleBot\tb1.bag'
StartTime: 1.5988e+09
EndTime: 1.5988e+09
NumMessages: 43
AvailableTopics: [1×3 table]
AvailableFrames: {2×1 cell}
MessageList: [43×4 table]
>> msgStructs = readMessages(velSel,'DataFormat','struct')
No definition for Vector3
Message def:
# This expresses velocity in free space broken into its linear and angular parts.
Vector3 linear
Vector3 angular
Is it because the rosbag is broken?
  1 件のコメント
Cristian Navarro
Cristian Navarro 2020 年 9 月 26 日
編集済み: Cristian Navarro 2020 年 9 月 26 日
Did you get through this ? I have the same issue

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeROS Bag File Logging and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by