navigation_metrics.flexible_bag module

Bases: tuple

Alias for field number 1

Alias for field number 0

Bases: object

A flexible bag container that allows for a variety of data access modes

bag[topic_string] - Results in a list of BagMessage objects for the topic bag[topic1, topic2] - Results in a list of BagMessage tuples, where timestamps are as close as possible

You can also add new data with bag[topic] = list of BagMessages Added data will be stored to disk on exit if write_mods=True

Returns a list of BagMessage objects with the given topic

Returns a list of topics whose type matches the string passed in

Uses a greedy algorithm to match up messages from multiple topics to their closest neighbors

Does NOT necessarily return all data from the topics.

Save results to file

Bases: RuntimeError

This is a hacky way to get ‘std_msgs/msg/String’ from a String object that is only a little surprising isn’t built into the API