mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-10 22:49:51 +08:00
chore: Refactor gemini_330_series.launch.py for improved readability and maintainability
This commit is contained in:
@@ -38,9 +38,11 @@ def load_parameters(context, args):
|
|||||||
if config_file_path:
|
if config_file_path:
|
||||||
yaml_params = load_yaml(config_file_path)
|
yaml_params = load_yaml(config_file_path)
|
||||||
default_params = merge_params(default_params, yaml_params)
|
default_params = merge_params(default_params, yaml_params)
|
||||||
skip_convert = ['config_file_path', 'usb_port', 'serial_number']
|
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()}
|
return {
|
||||||
|
key: (value if key in skip_convert else convert_value(value))
|
||||||
|
for key, value in default_params.items()
|
||||||
|
}
|
||||||
|
|
||||||
def generate_launch_description():
|
def generate_launch_description():
|
||||||
args = [
|
args = [
|
||||||
|
|||||||
Reference in New Issue
Block a user