File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
clearpath_generator_robot/clearpath_generator_robot/launch Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -345,13 +345,32 @@ def __init__(self, setup_path: str = '/etc/clearpath/') -> None:
345345 namespace = self .namespace ,
346346 )
347347
348+ # ROS Bag Recorder
349+ self .recorder_params = LaunchFile .LaunchArg (
350+ 'recorder_params' ,
351+ default_value = os .path .join (self .platform_params_path , 'recorder.yaml' ),
352+ )
353+
354+ self .recorder_args = [
355+ ('parameters' , LaunchFile .Variable ('recorder_params' )),
356+ ('namespace' , self .namespace ),
357+ ('enable_recorder' , str (self .clearpath_config .platform .enable_recorder ).lower ())
358+ ]
359+
360+ self .recorder_launch = LaunchFile (
361+ 'recorder' ,
362+ package = clearpath_diagnostics_package ,
363+ args = self .recorder_args )
364+
348365 # Components required for each platform
349366 common_platform_components = [
350367 self .wireless_watcher_node ,
351368 self .diag_updater_params ,
352369 self .diag_aggregator_params ,
353370 self .diagnostics_launch ,
354371 self .battery_state_control ,
372+ self .recorder_params ,
373+ self .recorder_launch ,
355374 ]
356375
357376 # Only add estimator when no BMS is present
You can’t perform that action at this time.
0 commit comments