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 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