BagSelection
Object for storing rosbag selection
Description
The BagSelection
object is an index of the messages
within a rosbag. You can use it to extract message data from a rosbag, select
messages based on specific criteria, or create a timeseries
of the
message properties.
Use rosbag
to load a rosbag and create the
BagSelection
object.
Use select
to filter the rosbag by criteria
such as time and topic.
Creation
Description
creates an indexable bag
= rosbag(filename
)BagSelection
object,
bag
, that contains all the message indexes
from the rosbag at the input path, filename
. To
access the data, you can call readMessages
or timeseries
to extract
relevant data.
See rosbag
for other
syntaxes.
returns an object, bagsel
= select(bag
)bagsel
, that contains all the
messages in the BagSelection
object,
bag
.
This function does not change the contents of the original
BagSelection
object. The return object,
bagsel
, is a new object that contains the
specified message selection.
See select
for other syntaxes
and to filter by criteria such as time and topic.
Properties
Object Functions
canTransform | Verify if transformation is available |
getTransform | Retrieve transformation between two coordinate frames |
readMessages | Read messages from rosbag |
select | Select subset of messages in rosbag |
timeseries | Create time series object for selected message properties |
timetable | Create timetable for selected message properties in ROS bag file |
Examples
Version History
Introduced in R2019b
See Also
rosbag
| readMessages
| select
| canTransform
| getTransform
| timeseries