Skip to content

Commit

Permalink
Update types.py
Browse files Browse the repository at this point in the history
removing duplicate definition of ImageType class
  • Loading branch information
zimmy87 committed Apr 14, 2021
1 parent 3edc059 commit bec3934
Showing 1 changed file with 8 additions and 12 deletions.
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

0 comments on commit bec3934

Please sign in to comment.