Issue with readMessages Vector 3
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Cristian Navarro
am 26 Sep. 2020
Bearbeitet: Cristian Navarro
am 26 Sep. 2020
Did you get through this ? I have the same issue
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!