Issue with readMessages Vector 3

5 次查看(过去 30 天)
XPX Labs
XPX Labs 2020-8-30
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ROS 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