select
R2026bSelect subset of messages in ros2bagreader
Description
returns a bagsel = select(bag)ros2bagreader
object, bagsel, that contains all 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 arguments. For example,
bagsel = select(bag,Name=Value)Topic="/scan" selects a subset of the messages filtered by the topic
/scan.
The select function does not wait for the full message list when
filtering by Topic or TopicType. When filtering by
Time, the function waits until message indexing completes for the
queried time range before returning results.