Skip to content

Commit 040d764

Browse files
committed
Add bag recorder parameter to generator
1 parent 6529957 commit 040d764

File tree

1 file changed

+13
-1
lines changed
  • clearpath_generator_common/clearpath_generator_common/param

1 file changed

+13
-1
lines changed

clearpath_generator_common/clearpath_generator_common/param/platform.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class PlatformParam():
5656
TELEOP_INTERACTIVE_MARKERS = 'teleop_interactive_markers'
5757
TELEOP_JOY = 'teleop_joy'
5858
TWIST_MUX = 'twist_mux'
59+
RECORDER = 'recorder'
5960

6061
NOT_APPLICABLE = 'not_applicable'
6162

@@ -67,7 +68,8 @@ class PlatformParam():
6768
LOCALIZATION,
6869
TELEOP_INTERACTIVE_MARKERS,
6970
TELEOP_JOY,
70-
TWIST_MUX
71+
TWIST_MUX,
72+
RECORDER
7173
]
7274

7375
class BaseParam():
@@ -461,13 +463,23 @@ def __init__(self,
461463
super().__init__(parameter, clearpath_config, param_path)
462464
self.default_parameter_file_path = 'config'
463465

466+
class RecorderParam(BaseParam):
467+
def __init__(self,
468+
parameter: str,
469+
clearpath_config: ClearpathConfig,
470+
param_path: str):
471+
super().__init__(parameter, clearpath_config, param_path)
472+
self.default_parameter_file_path = 'config'
473+
self.default_parameter_file_package = Package(self.CLEARPATH_DIAGNOSTICS)
474+
464475
PARAMETER = {
465476
IMU_FILTER: ImuFilterParam,
466477
DIAGNOSTIC_AGGREGATOR: DiagnosticsAggregatorParam,
467478
DIAGNOSTIC_UPDATER: DiagnosticsUpdaterParam,
468479
LOCALIZATION: LocalizationParam,
469480
TELEOP_JOY: TeleopJoyParam,
470481
TWIST_MUX: TwistMuxParam,
482+
RECORDER: RecorderParam,
471483
}
472484

473485
def __new__(cls,

0 commit comments

Comments
 (0)