Improved formatting of train protobuf file

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-06-04 10:35:44 +02:00
parent 2d5e3ff2e6
commit 9851cef758

View File

@ -2,28 +2,63 @@
# source: scenenet.proto # source: scenenet.proto
import sys import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message from google.protobuf import message as _message
from google.protobuf import reflection as _reflection from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports) # @@protoc_insertion_point(imports)
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
_sym_db = _symbol_database.Default() _sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor( DESCRIPTOR = _descriptor.FileDescriptor(
name='scenenet.proto', name='scenenet.proto',
package='scenenet', package='scenenet',
serialized_pb=_b('\n\x0escenenet.proto\x12\x08scenenet\"\xa6\x01\n\x0bSceneLayout\x12\x35\n\x0blayout_type\x18\x01 \x01(\x0e\x32 .scenenet.SceneLayout.LayoutType\x12\r\n\x05model\x18\x02 \x01(\t\"Q\n\nLayoutType\x12\x0c\n\x08\x42\x41THROOM\x10\x01\x12\x0b\n\x07\x42\x45\x44ROOM\x10\x02\x12\x0b\n\x07KITCHEN\x10\x03\x12\x0f\n\x0bLIVING_ROOM\x10\x04\x12\n\n\x06OFFICE\x10\x05\"\x87\x02\n\tLightInfo\x12\x31\n\nlight_type\x18\x01 \x01(\x0e\x32\x1d.scenenet.LightInfo.LightType\x12%\n\x0clight_output\x18\x02 \x01(\x0b\x32\x0f.scenenet.Power\x12$\n\x08position\x18\x03 \x01(\x0b\x32\x12.scenenet.Position\x12\x0e\n\x06radius\x18\x04 \x01(\x02\x12\x1e\n\x02v1\x18\x05 \x01(\x0b\x32\x12.scenenet.Position\x12\x1e\n\x02v2\x18\x06 \x01(\x0b\x32\x12.scenenet.Position\"*\n\tLightType\x12\n\n\x06SPHERE\x10\x01\x12\x11\n\rPARALLELOGRAM\x10\x02\"\xb0\x03\n\x10RandomObjectInfo\x12\x15\n\rshapenet_hash\x18\x01 \x01(\t\x12\x15\n\rheight_meters\x18\x02 \x01(\x02\x12>\n\x0bobject_pose\x18\x03 \x01(\x0b\x32).scenenet.RandomObjectInfo.Transformation\x1a\xad\x02\n\x0eTransformation\x12\x15\n\rtranslation_x\x18\x01 \x01(\x02\x12\x15\n\rtranslation_y\x18\x02 \x01(\x02\x12\x15\n\rtranslation_z\x18\x03 \x01(\x02\x12\x16\n\x0erotation_mat11\x18\x04 \x01(\x02\x12\x16\n\x0erotation_mat12\x18\x05 \x01(\x02\x12\x16\n\x0erotation_mat13\x18\x06 \x01(\x02\x12\x16\n\x0erotation_mat21\x18\x07 \x01(\x02\x12\x16\n\x0erotation_mat22\x18\x08 \x01(\x02\x12\x16\n\x0erotation_mat23\x18\t \x01(\x02\x12\x16\n\x0erotation_mat31\x18\n \x01(\x02\x12\x16\n\x0erotation_mat32\x18\x0b \x01(\x02\x12\x16\n\x0erotation_mat33\x18\x0c \x01(\x02\"\xc0\x02\n\x08Instance\x12\x13\n\x0binstance_id\x18\x01 \x01(\x05\x12\x1b\n\x13semantic_wordnet_id\x18\x02 \x01(\t\x12\x18\n\x10semantic_english\x18\x03 \x01(\t\x12\x36\n\rinstance_type\x18\x04 \x01(\x0e\x32\x1f.scenenet.Instance.InstanceType\x12\'\n\nlight_info\x18\x05 \x01(\x0b\x32\x13.scenenet.LightInfo\x12/\n\x0bobject_info\x18\x06 \x01(\x0b\x32\x1a.scenenet.RandomObjectInfo\"V\n\x0cInstanceType\x12\x0e\n\nBACKGROUND\x10\x01\x12\x11\n\rLAYOUT_OBJECT\x10\x02\x12\x10\n\x0cLIGHT_OBJECT\x10\x03\x12\x11\n\rRANDOM_OBJECT\x10\x04\"(\n\x05Power\x12\t\n\x01r\x18\x01 \x01(\x02\x12\t\n\x01g\x18\x02 \x01(\x02\x12\t\n\x01\x62\x18\x03 \x01(\x02\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"a\n\x04Pose\x12\"\n\x06\x63\x61mera\x18\x01 \x01(\x0b\x32\x12.scenenet.Position\x12\"\n\x06lookat\x18\x02 \x01(\x0b\x32\x12.scenenet.Position\x12\x11\n\ttimestamp\x18\x03 \x01(\x02\"f\n\x04View\x12\x11\n\tframe_num\x18\x01 \x01(\x05\x12$\n\x0cshutter_open\x18\x02 \x01(\x0b\x32\x0e.scenenet.Pose\x12%\n\rshutter_close\x18\x03 \x01(\x0b\x32\x0e.scenenet.Pose\"\x8e\x01\n\nTrajectory\x12%\n\x06layout\x18\x01 \x01(\x0b\x32\x15.scenenet.SceneLayout\x12%\n\tinstances\x18\x02 \x03(\x0b\x32\x12.scenenet.Instance\x12\x1d\n\x05views\x18\x03 \x03(\x0b\x32\x0e.scenenet.View\x12\x13\n\x0brender_path\x18\x04 \x01(\t\":\n\x0cTrajectories\x12*\n\x0ctrajectories\x18\x01 \x03(\x0b\x32\x14.scenenet.Trajectory') serialized_pb=_b(
'\n\x0escenenet.proto\x12\x08scenenet\"\xa6\x01\n\x0bSceneLayout\x12\x35\n\x0blayout_type\x18\x01 '
'\x01(\x0e\x32 .scenenet.SceneLayout.LayoutType\x12\r\n\x05model\x18\x02 \x01('
'\t\"Q\n\nLayoutType\x12\x0c\n\x08\x42\x41THROOM\x10\x01\x12\x0b\n\x07\x42\x45\x44ROOM\x10\x02\x12'
'\x0b\n\x07KITCHEN\x10\x03\x12\x0f\n\x0bLIVING_ROOM\x10\x04\x12\n\n\x06OFFICE\x10\x05\"\x87\x02\n'
'\tLightInfo\x12\x31\n\nlight_type\x18\x01 \x01('
'\x0e\x32\x1d.scenenet.LightInfo.LightType\x12%\n\x0clight_output\x18\x02 \x01('
'\x0b\x32\x0f.scenenet.Power\x12$\n\x08position\x18\x03 \x01('
'\x0b\x32\x12.scenenet.Position\x12\x0e\n\x06radius\x18\x04 \x01(\x02\x12\x1e\n\x02v1\x18\x05 '
'\x01(\x0b\x32\x12.scenenet.Position\x12\x1e\n\x02v2\x18\x06 \x01('
'\x0b\x32\x12.scenenet.Position\"*\n\tLightType\x12\n\n\x06SPHERE\x10\x01\x12\x11\n\rPARALLELOGRAM'
'\x10\x02\"\xb0\x03\n\x10RandomObjectInfo\x12\x15\n\rshapenet_hash\x18\x01 \x01('
'\t\x12\x15\n\rheight_meters\x18\x02 \x01(\x02\x12>\n\x0bobject_pose\x18\x03 \x01('
'\x0b\x32).scenenet.RandomObjectInfo.Transformation\x1a\xad\x02\n\x0eTransformation\x12\x15\n'
'\rtranslation_x\x18\x01 \x01(\x02\x12\x15\n\rtranslation_y\x18\x02 \x01('
'\x02\x12\x15\n\rtranslation_z\x18\x03 \x01(\x02\x12\x16\n\x0erotation_mat11\x18\x04 \x01('
'\x02\x12\x16\n\x0erotation_mat12\x18\x05 \x01(\x02\x12\x16\n\x0erotation_mat13\x18\x06 \x01('
'\x02\x12\x16\n\x0erotation_mat21\x18\x07 \x01(\x02\x12\x16\n\x0erotation_mat22\x18\x08 \x01('
'\x02\x12\x16\n\x0erotation_mat23\x18\t \x01(\x02\x12\x16\n\x0erotation_mat31\x18\n \x01('
'\x02\x12\x16\n\x0erotation_mat32\x18\x0b \x01(\x02\x12\x16\n\x0erotation_mat33\x18\x0c \x01('
'\x02\"\xc0\x02\n\x08Instance\x12\x13\n\x0binstance_id\x18\x01 \x01('
'\x05\x12\x1b\n\x13semantic_wordnet_id\x18\x02 \x01(\t\x12\x18\n\x10semantic_english\x18\x03 \x01('
'\t\x12\x36\n\rinstance_type\x18\x04 \x01('
'\x0e\x32\x1f.scenenet.Instance.InstanceType\x12\'\n\nlight_info\x18\x05 \x01('
'\x0b\x32\x13.scenenet.LightInfo\x12/\n\x0bobject_info\x18\x06 \x01('
'\x0b\x32\x1a.scenenet.RandomObjectInfo\"V\n\x0cInstanceType\x12\x0e\n\nBACKGROUND\x10\x01\x12\x11'
'\n\rLAYOUT_OBJECT\x10\x02\x12\x10\n\x0cLIGHT_OBJECT\x10\x03\x12\x11\n\rRANDOM_OBJECT\x10\x04\"('
'\n\x05Power\x12\t\n\x01r\x18\x01 \x01(\x02\x12\t\n\x01g\x18\x02 \x01(\x02\x12\t\n\x01\x62\x18\x03 '
'\x01(\x02\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01('
'\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"a\n\x04Pose\x12\"\n\x06\x63\x61mera\x18\x01 \x01('
'\x0b\x32\x12.scenenet.Position\x12\"\n\x06lookat\x18\x02 \x01('
'\x0b\x32\x12.scenenet.Position\x12\x11\n\ttimestamp\x18\x03 \x01('
'\x02\"f\n\x04View\x12\x11\n\tframe_num\x18\x01 \x01(\x05\x12$\n\x0cshutter_open\x18\x02 \x01('
'\x0b\x32\x0e.scenenet.Pose\x12%\n\rshutter_close\x18\x03 \x01('
'\x0b\x32\x0e.scenenet.Pose\"\x8e\x01\n\nTrajectory\x12%\n\x06layout\x18\x01 \x01('
'\x0b\x32\x15.scenenet.SceneLayout\x12%\n\tinstances\x18\x02 \x03('
'\x0b\x32\x12.scenenet.Instance\x12\x1d\n\x05views\x18\x03 \x03('
'\x0b\x32\x0e.scenenet.View\x12\x13\n\x0brender_path\x18\x04 \x01('
'\t\":\n\x0cTrajectories\x12*\n\x0ctrajectories\x18\x01 \x03(\x0b\x32\x14.scenenet.Trajectory')
) )
_sym_db.RegisterFileDescriptor(DESCRIPTOR) _sym_db.RegisterFileDescriptor(DESCRIPTOR)
_SCENELAYOUT_LAYOUTTYPE = _descriptor.EnumDescriptor( _SCENELAYOUT_LAYOUTTYPE = _descriptor.EnumDescriptor(
name='LayoutType', name='LayoutType',
full_name='scenenet.SceneLayout.LayoutType', full_name='scenenet.SceneLayout.LayoutType',
@ -110,7 +145,6 @@ _INSTANCE_INSTANCETYPE = _descriptor.EnumDescriptor(
) )
_sym_db.RegisterEnumDescriptor(_INSTANCE_INSTANCETYPE) _sym_db.RegisterEnumDescriptor(_INSTANCE_INSTANCETYPE)
_SCENELAYOUT = _descriptor.Descriptor( _SCENELAYOUT = _descriptor.Descriptor(
name='SceneLayout', name='SceneLayout',
full_name='scenenet.SceneLayout', full_name='scenenet.SceneLayout',
@ -148,7 +182,6 @@ _SCENELAYOUT = _descriptor.Descriptor(
serialized_end=195, serialized_end=195,
) )
_LIGHTINFO = _descriptor.Descriptor( _LIGHTINFO = _descriptor.Descriptor(
name='LightInfo', name='LightInfo',
full_name='scenenet.LightInfo', full_name='scenenet.LightInfo',
@ -214,7 +247,6 @@ _LIGHTINFO = _descriptor.Descriptor(
serialized_end=461, serialized_end=461,
) )
_RANDOMOBJECTINFO_TRANSFORMATION = _descriptor.Descriptor( _RANDOMOBJECTINFO_TRANSFORMATION = _descriptor.Descriptor(
name='Transformation', name='Transformation',
full_name='scenenet.RandomObjectInfo.Transformation', full_name='scenenet.RandomObjectInfo.Transformation',
@ -364,7 +396,6 @@ _RANDOMOBJECTINFO = _descriptor.Descriptor(
serialized_end=896, serialized_end=896,
) )
_INSTANCE = _descriptor.Descriptor( _INSTANCE = _descriptor.Descriptor(
name='Instance', name='Instance',
full_name='scenenet.Instance', full_name='scenenet.Instance',
@ -430,7 +461,6 @@ _INSTANCE = _descriptor.Descriptor(
serialized_end=1219, serialized_end=1219,
) )
_POWER = _descriptor.Descriptor( _POWER = _descriptor.Descriptor(
name='Power', name='Power',
full_name='scenenet.Power', full_name='scenenet.Power',
@ -474,7 +504,6 @@ _POWER = _descriptor.Descriptor(
serialized_end=1261, serialized_end=1261,
) )
_POSITION = _descriptor.Descriptor( _POSITION = _descriptor.Descriptor(
name='Position', name='Position',
full_name='scenenet.Position', full_name='scenenet.Position',
@ -518,7 +547,6 @@ _POSITION = _descriptor.Descriptor(
serialized_end=1306, serialized_end=1306,
) )
_POSE = _descriptor.Descriptor( _POSE = _descriptor.Descriptor(
name='Pose', name='Pose',
full_name='scenenet.Pose', full_name='scenenet.Pose',
@ -562,7 +590,6 @@ _POSE = _descriptor.Descriptor(
serialized_end=1405, serialized_end=1405,
) )
_VIEW = _descriptor.Descriptor( _VIEW = _descriptor.Descriptor(
name='View', name='View',
full_name='scenenet.View', full_name='scenenet.View',
@ -606,7 +633,6 @@ _VIEW = _descriptor.Descriptor(
serialized_end=1509, serialized_end=1509,
) )
_TRAJECTORY = _descriptor.Descriptor( _TRAJECTORY = _descriptor.Descriptor(
name='Trajectory', name='Trajectory',
full_name='scenenet.Trajectory', full_name='scenenet.Trajectory',
@ -657,7 +683,6 @@ _TRAJECTORY = _descriptor.Descriptor(
serialized_end=1654, serialized_end=1654,
) )
_TRAJECTORIES = _descriptor.Descriptor( _TRAJECTORIES = _descriptor.Descriptor(
name='Trajectories', name='Trajectories',
full_name='scenenet.Trajectories', full_name='scenenet.Trajectories',
@ -721,82 +746,81 @@ DESCRIPTOR.message_types_by_name['Trajectory'] = _TRAJECTORY
DESCRIPTOR.message_types_by_name['Trajectories'] = _TRAJECTORIES DESCRIPTOR.message_types_by_name['Trajectories'] = _TRAJECTORIES
SceneLayout = _reflection.GeneratedProtocolMessageType('SceneLayout', (_message.Message,), dict( SceneLayout = _reflection.GeneratedProtocolMessageType('SceneLayout', (_message.Message,), dict(
DESCRIPTOR = _SCENELAYOUT, DESCRIPTOR=_SCENELAYOUT,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.SceneLayout) # @@protoc_insertion_point(class_scope:scenenet.SceneLayout)
)) ))
_sym_db.RegisterMessage(SceneLayout) _sym_db.RegisterMessage(SceneLayout)
LightInfo = _reflection.GeneratedProtocolMessageType('LightInfo', (_message.Message,), dict( LightInfo = _reflection.GeneratedProtocolMessageType('LightInfo', (_message.Message,), dict(
DESCRIPTOR = _LIGHTINFO, DESCRIPTOR=_LIGHTINFO,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.LightInfo) # @@protoc_insertion_point(class_scope:scenenet.LightInfo)
)) ))
_sym_db.RegisterMessage(LightInfo) _sym_db.RegisterMessage(LightInfo)
RandomObjectInfo = _reflection.GeneratedProtocolMessageType('RandomObjectInfo', (_message.Message,), dict( RandomObjectInfo = _reflection.GeneratedProtocolMessageType('RandomObjectInfo', (_message.Message,), dict(
Transformation = _reflection.GeneratedProtocolMessageType('Transformation', (_message.Message,), dict( Transformation=_reflection.GeneratedProtocolMessageType('Transformation', (_message.Message,), dict(
DESCRIPTOR = _RANDOMOBJECTINFO_TRANSFORMATION, DESCRIPTOR=_RANDOMOBJECTINFO_TRANSFORMATION,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.RandomObjectInfo.Transformation) # @@protoc_insertion_point(class_scope:scenenet.RandomObjectInfo.Transformation)
)) ))
, ,
DESCRIPTOR = _RANDOMOBJECTINFO, DESCRIPTOR=_RANDOMOBJECTINFO,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.RandomObjectInfo) # @@protoc_insertion_point(class_scope:scenenet.RandomObjectInfo)
)) ))
_sym_db.RegisterMessage(RandomObjectInfo) _sym_db.RegisterMessage(RandomObjectInfo)
_sym_db.RegisterMessage(RandomObjectInfo.Transformation) _sym_db.RegisterMessage(RandomObjectInfo.Transformation)
Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict( Instance = _reflection.GeneratedProtocolMessageType('Instance', (_message.Message,), dict(
DESCRIPTOR = _INSTANCE, DESCRIPTOR=_INSTANCE,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Instance) # @@protoc_insertion_point(class_scope:scenenet.Instance)
)) ))
_sym_db.RegisterMessage(Instance) _sym_db.RegisterMessage(Instance)
Power = _reflection.GeneratedProtocolMessageType('Power', (_message.Message,), dict( Power = _reflection.GeneratedProtocolMessageType('Power', (_message.Message,), dict(
DESCRIPTOR = _POWER, DESCRIPTOR=_POWER,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Power) # @@protoc_insertion_point(class_scope:scenenet.Power)
)) ))
_sym_db.RegisterMessage(Power) _sym_db.RegisterMessage(Power)
Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), dict( Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), dict(
DESCRIPTOR = _POSITION, DESCRIPTOR=_POSITION,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Position) # @@protoc_insertion_point(class_scope:scenenet.Position)
)) ))
_sym_db.RegisterMessage(Position) _sym_db.RegisterMessage(Position)
Pose = _reflection.GeneratedProtocolMessageType('Pose', (_message.Message,), dict( Pose = _reflection.GeneratedProtocolMessageType('Pose', (_message.Message,), dict(
DESCRIPTOR = _POSE, DESCRIPTOR=_POSE,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Pose) # @@protoc_insertion_point(class_scope:scenenet.Pose)
)) ))
_sym_db.RegisterMessage(Pose) _sym_db.RegisterMessage(Pose)
View = _reflection.GeneratedProtocolMessageType('View', (_message.Message,), dict( View = _reflection.GeneratedProtocolMessageType('View', (_message.Message,), dict(
DESCRIPTOR = _VIEW, DESCRIPTOR=_VIEW,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.View) # @@protoc_insertion_point(class_scope:scenenet.View)
)) ))
_sym_db.RegisterMessage(View) _sym_db.RegisterMessage(View)
Trajectory = _reflection.GeneratedProtocolMessageType('Trajectory', (_message.Message,), dict( Trajectory = _reflection.GeneratedProtocolMessageType('Trajectory', (_message.Message,), dict(
DESCRIPTOR = _TRAJECTORY, DESCRIPTOR=_TRAJECTORY,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Trajectory) # @@protoc_insertion_point(class_scope:scenenet.Trajectory)
)) ))
_sym_db.RegisterMessage(Trajectory) _sym_db.RegisterMessage(Trajectory)
Trajectories = _reflection.GeneratedProtocolMessageType('Trajectories', (_message.Message,), dict( Trajectories = _reflection.GeneratedProtocolMessageType('Trajectories', (_message.Message,), dict(
DESCRIPTOR = _TRAJECTORIES, DESCRIPTOR=_TRAJECTORIES,
__module__ = 'scenenet_pb2' __module__='scenenet_pb2'
# @@protoc_insertion_point(class_scope:scenenet.Trajectories) # @@protoc_insertion_point(class_scope:scenenet.Trajectories)
)) ))
_sym_db.RegisterMessage(Trajectories) _sym_db.RegisterMessage(Trajectories)
# @@protoc_insertion_point(module_scope) # @@protoc_insertion_point(module_scope)