Issue with readMessages Vector 3

5 views (last 30 days)
XPX Labs
XPX Labs on 30 Aug 2020
Edited: Cristian Navarro on 26 Sep 2020
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 Comment
Cristian Navarro
Cristian Navarro on 26 Sep 2020
Edited: Cristian Navarro on 26 Sep 2020
Did you get through this ? I have the same issue

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!