Skip to content

Commit d1d3d6b

Browse files
committed
Add bag recorder parameter to generator
1 parent 9cb7b7b commit d1d3d6b

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():
@@ -508,13 +510,23 @@ def __init__(self,
508510
super().__init__(parameter, clearpath_config, param_path)
509511
self.default_parameter_file_path = 'config'
510512

513+
class RecorderParam(BaseParam):
514+
def __init__(self,
515+
parameter: str,
516+
clearpath_config: ClearpathConfig,
517+
param_path: str):
518+
super().__init__(parameter, clearpath_config, param_path)
519+
self.default_parameter_file_path = 'config'
520+
self.default_parameter_file_package = Package(self.CLEARPATH_DIAGNOSTICS)
521+
511522
PARAMETER = {
512523
IMU_FILTER: ImuFilterParam,
513524
DIAGNOSTIC_AGGREGATOR: DiagnosticsAggregatorParam,
514525
DIAGNOSTIC_UPDATER: DiagnosticsUpdaterParam,
515526
LOCALIZATION: LocalizationParam,
516527
TELEOP_JOY: TeleopJoyParam,
517528
TWIST_MUX: TwistMuxParam,
529+
RECORDER: RecorderParam,
518530
}
519531

520532
def __new__(cls,

0 commit comments

Comments
 (0)