Grpc Reader¶
A class for reading GRPC data from a DataFile.
-
class
bosdyn.bddf.grpc_reader.
GrpcReader
(data_reader, protobuf_classes)[source]¶ Bases:
object
A class for reading GRPC data from a DataFile.
Methods raise ParseError if there is a problem with the format of the file.
-
property
data_reader
¶ Return underlying DataReader this object is using.
-
get_proto_reader
(proto_name)[source]¶ Return the GrpcProtoReader for protobuf messages with the specified type name.
-
get_message
(series_index, index_in_series)[source]¶ Return a deserialized protobuf from bytes stored in the file.
- Parameters
series_index – index (int) from the series_index() call
index_in_series – the index of the message within the series
Returns: timestamp_nsec (int), deserialized protobuf object
-
property