diff --git a/common_sensor_launch/launch/nebula_node_container.launch.py b/common_sensor_launch/launch/nebula_node_container.launch.py index 49093a36..cf3f3d63 100644 --- a/common_sensor_launch/launch/nebula_node_container.launch.py +++ b/common_sensor_launch/launch/nebula_node_container.launch.py @@ -26,8 +26,8 @@ from launch_ros.actions import ComposableNodeContainer from launch_ros.actions import LoadComposableNodes from launch_ros.descriptions import ComposableNode -from launch_ros.substitutions import FindPackageShare from launch_ros.parameter_descriptions import ParameterFile +from launch_ros.substitutions import FindPackageShare import yaml @@ -76,9 +76,9 @@ def create_parameter_dict(*args): sensor_make = get_lidar_make(sensor_model) # Configuration file containing sensor model's default parameters - + sensor_config = LaunchConfiguration("config_file").perform(context) - if (sensor_config == ""): + if sensor_config == "": sensor_config = ( Path(get_package_share_directory("nebula_ros")) / "config" @@ -144,9 +144,7 @@ def create_parameter_dict(*args): # TODO(knzo25): fix the remapping once nebula gets updated ("pandar_points", "pointcloud_raw_ex"), ], - extra_arguments=[ - {"use_intra_process_comms": LaunchConfiguration("use_intra_process")} - ], + extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ) ) cropbox_parameters = create_parameter_dict("input_frame", "output_frame") @@ -260,7 +258,11 @@ def add_launch_arg(name: str, default_value=None, description=None): add_launch_arg("sensor_model", description="sensor model name") add_launch_arg("config_file", "", description="sensor configuration file") - add_launch_arg("launch_driver", "true", "whether to connect to a sensor or to listen to packet replays instead") + add_launch_arg( + "launch_driver", + "true", + "whether to connect to a sensor or to listen to packet replays instead", + ) add_launch_arg("setup_sensor", "true", "configure sensor") add_launch_arg("retry_hw", "false", "retry hw") add_launch_arg("sensor_ip", "192.168.1.201", "device ip address")