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:
345
345
namespace = self .namespace ,
346
346
)
347
347
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
+
348
365
# Components required for each platform
349
366
common_platform_components = [
350
367
self .wireless_watcher_node ,
351
368
self .diag_updater_params ,
352
369
self .diag_aggregator_params ,
353
370
self .diagnostics_launch ,
354
371
self .battery_state_control ,
372
+ self .recorder_params ,
373
+ self .recorder_launch ,
355
374
]
356
375
357
376
# Only add estimator when no BMS is present
You can’t perform that action at this time.
0 commit comments