Skip to content

Commit 0cfcd4d

Browse files
committed
Add base and cap to Ouster description generator
1 parent cc1fc80 commit 0cfcd4d

File tree

1 file changed

+6
-2
lines changed
  • clearpath_generator_common/clearpath_generator_common/description

1 file changed

+6
-2
lines changed

clearpath_generator_common/clearpath_generator_common/description/sensors.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,19 @@ def __init__(self, sensor: BaseLidar3D) -> None:
133133
class OusterOS1Description(Lidar3dDescription):
134134
SAMPLES_HORIZONTAL = 'samples_h'
135135
SAMPLES_VERTICAL = 'samples_v'
136+
BASE_TYPE = 'base'
137+
CAP_TYPE = 'cap'
136138

137-
def __init__(self, sensor: BaseLidar3D) -> None:
139+
def __init__(self, sensor: OusterOS1) -> None:
138140
super().__init__(sensor)
139141

140142
del self.parameters[self.ANGULAR_RESOLUTION_H]
141143
del self.parameters[self.ANGULAR_RESOLUTION_V]
142144
self.parameters.update({
143145
self.SAMPLES_HORIZONTAL: 1024,
144-
self.SAMPLES_VERTICAL: 64
146+
self.SAMPLES_VERTICAL: 64,
147+
self.BASE_TYPE: sensor.base_type,
148+
self.CAP_TYPE: sensor.cap_type,
145149
})
146150

147151
class ImuDescription(BaseDescription):

0 commit comments

Comments
 (0)