Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions PythonClient/airsim/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ def from_msgpack(cls, encoded):
#return cls(**msgpack.unpack(encoded))
return obj


class ImageType:
Scene = 0
DepthPlanar = 1
DepthPerspective = 2
DepthVis = 3
DisparityNormalized = 4
Segmentation = 5
SurfaceNormals = 6
Infrared = 7

class _ImageType(type):
@property
def Scene(cls):
Expand All @@ -55,7 +44,14 @@ def __getattr__(self, key):
raise AttributeError

class ImageType(metaclass=_ImageType):
pass
Scene = 0
DepthPlanar = 1
DepthPerspective = 2
DepthVis = 3
DisparityNormalized = 4
Segmentation = 5
SurfaceNormals = 6
Infrared = 7

class DrivetrainType:
MaxDegreeOfFreedom = 0
Expand Down