From cd07852a6f4ce7eeebe625f5f9eb82f98c3d1aa5 Mon Sep 17 00:00:00 2001 From: Sho Iwasawa <41606073+zusizusi@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:07:16 +0900 Subject: [PATCH] fix(common_sensor_launch): remove duplicate code (#336) * remove duplicate code Signed-off-by: Sho Iwasawa * ci(pre-commit): autofix --------- Signed-off-by: Sho Iwasawa Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .../launch/nebula_node_container.launch.py | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/common_sensor_launch/launch/nebula_node_container.launch.py b/common_sensor_launch/launch/nebula_node_container.launch.py index b7ed0e0e..68736b64 100644 --- a/common_sensor_launch/launch/nebula_node_container.launch.py +++ b/common_sensor_launch/launch/nebula_node_container.launch.py @@ -129,37 +129,6 @@ def create_parameter_dict(*args): ) ) - nodes.append( - ComposableNode( - package="nebula_ros", - plugin=sensor_make + "HwMonitorRosWrapper", - name=sensor_make.lower() + "_hw_monitor_ros_wrapper_node", - parameters=[ - { - "sensor_model": sensor_model, - **create_parameter_dict( - "return_mode", - "frame_id", - "scan_phase", - "sensor_ip", - "host_ip", - "data_port", - "gnss_port", - "packet_mtu_size", - "rotation_speed", - "cloud_min_angle", - "cloud_max_angle", - "diag_span", - "dual_return_distance_threshold", - "delay_monitor_ms", - ), - }, - ], - condition=IfCondition(LaunchConfiguration("launch_driver")), - extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], - ) - ) - # There is an issue where hw_monitor crashes due to data race, # so the monitor will now only be launched when explicitly specified with a launch command. launch_hw_monitor: bool = IfCondition(LaunchConfiguration("launch_hw_monitor")).evaluate(