Protobuf Channel Reader

A class for reading a single channel of Protobuf data from a DataFile.

class bosdyn.bddf.protobuf_channel_reader.ProtobufChannelReader(protobuf_reader, protobuf_type, channel_name=None)[source]

Bases: object

A class for reading a single channel of Protobuf data from a DataFile.

property series_descriptor

SeriesDescriptor for this series

property num_messages

Number of messages in this series.

get_message(index_in_series)[source]

Get the specified message in the series, as a deserialized protobuf.

Parameters:

index_in_series – the index of the message within the series

Returns: timestamp_nsec (int), deserialized protobuf object

class Iterator(channel_reader)[source]

Bases: object

Iterator over messages from a ProtobufChannelReader