Main Content
select
Description
returns a bagsel
= select(bag
)ros2bagreader
object, bagsel
, that contains all of the messages in the
ros2bagreader
object, bag
.
This function creates a copy of the ros2bagreader
object or returns a
new ros2bagreader
object that contains the specified message
selection.
provides additional options specified by one or more name-value pair arguments. For example,
bagsel
= select(bag
,Name,Value
)"Topic","/scan"
selects a subset of the messages, filtered by the topic
/scan
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a