필터 지우기
필터 지우기

rosbag loading specific messages

조회 수: 2 (최근 30일)
Morten Nissov
Morten Nissov 2019년 3월 7일
I am curious if there's a better way to load information from ROS bag files.
My current work flow is:
bag = rosbag(FILE_LOCATION)
bagSel = select(bag,'Topic','/mavros/imu/data')
X_imu_raw = timeseries(bagSel)
t_imu_angvel = X_imu_raw.Time - bag.StartTime
X_imu_angvel = X_immu_raw.Data(:,8:10) % problem line
When having to load a lot of different message sets this becomes very cumbersome. I'm not sure how to pull sets of messages from the timerseries, for example I could write:
timeseries(bagSel,'AngularVelocity.X')
and it will return the angular velocity around the X axis. I would ideally like to write something like:
timeseries(bagSel,'AngularVelocity')
and pull all of the angular velocity messages from the topic (x,y, and z) but i'm not sure if it is possible nor how to do it?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Specialized Messages에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by