Protobuf Series Writer¶
Class for registering a series which stores protobuf messages in a message series.
-
class
bosdyn.bddf.protobuf_series_writer.
ProtobufSeriesWriter
(data_writer, protobuf_type, channel_name=None, is_metadata=False, annotations=None, additional_index_names=None)[source]¶ Bases:
object
A class for registering a series which stores protobuf messages in a message series.
- The series is named by a ‘channel_name’ which defaults to the full type name of the
protobuf type.
-
write
(timestamp_nsec, protobuf, additional_indexs=None)[source]¶ Store protobuf in the file.
- Args
timestamp_nsec: nsec since unix epoch to timestamp the data protobuf: a protobuf message, not serialized. additional_indexes: additional timestamps if needed for this channel
Raises DataFormatError if the data or additional_indexes are not valid for this series.
-
property
series_type
¶ Return the series type string.
-
property
series_spec
¶ Return the series_spec for the series.