Loading autocnet/fileio/notebooks/Protocol Buffers.ipynbdeleted 100644 → 0 +0 −44 Original line number Diff line number Diff line %% Cell type:code id: tags: ``` python import autocnet.fileio.ControlNetFileV0002_pb2 as spec ``` %% Cell type:code id: tags: ``` python print dir(spec) ``` %% Output ['ControlNetFileHeaderV0002', 'ControlPointFileEntryV0002', 'DESCRIPTOR', '_CONTROLNETFILEHEADERV0002', '_CONTROLPOINTFILEENTRYV0002', '_CONTROLPOINTFILEENTRYV0002_APRIORISOURCE', '_CONTROLPOINTFILEENTRYV0002_MEASURE', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURELOGDATA', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURETYPE', '_CONTROLPOINTFILEENTRYV0002_POINTLOGDATA', '_CONTROLPOINTFILEENTRYV0002_POINTTYPE', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'descriptor', 'descriptor_pb2', 'message', 'reflection'] %% Cell type:code id: tags: ``` python header = spec.ControlNetFileHeaderV0002() header.created = "12/4/15" header.description = "Just a date" header.lastModified = "12/4/15" header.networkId = "This is the ID" #header.pointMessageSizes = 1.0 header.targetName = "Moon" header.userName = "my name" header_buffer = header.SerializeToString() ``` %% Cell type:code id: tags: ``` python header_buffer ``` %% Output '\n\x0eThis is the ID\x12\x04Moon\x1a\x0712/4/15"\x0712/4/15*\x0bJust a date2\x07my name' %% Cell type:code id: tags: ``` python ``` Loading
autocnet/fileio/notebooks/Protocol Buffers.ipynbdeleted 100644 → 0 +0 −44 Original line number Diff line number Diff line %% Cell type:code id: tags: ``` python import autocnet.fileio.ControlNetFileV0002_pb2 as spec ``` %% Cell type:code id: tags: ``` python print dir(spec) ``` %% Output ['ControlNetFileHeaderV0002', 'ControlPointFileEntryV0002', 'DESCRIPTOR', '_CONTROLNETFILEHEADERV0002', '_CONTROLPOINTFILEENTRYV0002', '_CONTROLPOINTFILEENTRYV0002_APRIORISOURCE', '_CONTROLPOINTFILEENTRYV0002_MEASURE', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURELOGDATA', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURETYPE', '_CONTROLPOINTFILEENTRYV0002_POINTLOGDATA', '_CONTROLPOINTFILEENTRYV0002_POINTTYPE', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'descriptor', 'descriptor_pb2', 'message', 'reflection'] %% Cell type:code id: tags: ``` python header = spec.ControlNetFileHeaderV0002() header.created = "12/4/15" header.description = "Just a date" header.lastModified = "12/4/15" header.networkId = "This is the ID" #header.pointMessageSizes = 1.0 header.targetName = "Moon" header.userName = "my name" header_buffer = header.SerializeToString() ``` %% Cell type:code id: tags: ``` python header_buffer ``` %% Output '\n\x0eThis is the ID\x12\x04Moon\x1a\x0712/4/15"\x0712/4/15*\x0bJust a date2\x07my name' %% Cell type:code id: tags: ``` python ```