chore: Refactor gemini_330_series.launch.py for improved readability and maintainability

This commit is contained in:
Joe Dong
2024-07-10 14:53:06 +08:00
parent dfa8066cb6
commit fa520f95d0
@@ -38,9 +38,11 @@ def load_parameters(context, args):
if config_file_path:
yaml_params = load_yaml(config_file_path)
default_params = merge_params(default_params, yaml_params)
skip_convert = ['config_file_path', 'usb_port', 'serial_number']
return {key: convert_value(value) if key not in skip_convert else value for key, value in default_params.items()}
skip_convert = {'config_file_path', 'usb_port', 'serial_number'}
return {
key: (value if key in skip_convert else convert_value(value))
for key, value in default_params.items()
}
def generate_launch_description():
args = [