diff --git a/common_awsim_labs_sensor_launch/config/filter.param.yaml b/common_awsim_labs_sensor_launch/config/filter.param.yaml new file mode 100644 index 0000000..abd3968 --- /dev/null +++ b/common_awsim_labs_sensor_launch/config/filter.param.yaml @@ -0,0 +1,8 @@ +/**: + ros__parameters: + input_frame: "" + output_frame: "" + max_queue_size: 5 + use_indices: false + latched_indices: false + approximate_sync: false diff --git a/common_awsim_labs_sensor_launch/launch/velodyne_node_container.launch.py b/common_awsim_labs_sensor_launch/launch/velodyne_node_container.launch.py index 0f5993c..67abbba 100644 --- a/common_awsim_labs_sensor_launch/launch/velodyne_node_container.launch.py +++ b/common_awsim_labs_sensor_launch/launch/velodyne_node_container.launch.py @@ -59,7 +59,12 @@ def create_parameter_dict(*args): result[x] = LaunchConfiguration(x) return result + # Pointcloud preprocessor parameters + filter_param = ParameterFile( + param_file=LaunchConfiguration("filter_param_path").perform(context), + allow_substs=True, + ) distortion_corrector_node_param = ParameterFile( param_file=LaunchConfiguration("distortion_correction_node_param_path").perform(context), allow_substs=True, @@ -98,7 +103,7 @@ def create_parameter_dict(*args): ("input", "pointcloud_raw_ex"), ("output", "self_cropped/pointcloud_ex"), ], - parameters=[cropbox_parameters], + parameters=[filter_param, cropbox_parameters], extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ) ) @@ -120,7 +125,7 @@ def create_parameter_dict(*args): ("input", "self_cropped/pointcloud_ex"), ("output", "mirror_cropped/pointcloud_ex"), ], - parameters=[cropbox_parameters], + parameters=[filter_param, cropbox_parameters], extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ) ) @@ -154,7 +159,7 @@ def create_parameter_dict(*args): ("input", "rectified/pointcloud_ex"), ("output", "pointcloud_before_sync"), ], - parameters=[ring_outlier_filter_node_param], + parameters=[filter_param, ring_outlier_filter_node_param], extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ) ) @@ -195,6 +200,15 @@ def add_launch_arg(name: str, default_value=None, description=None): add_launch_arg("frame_id", "lidar", "frame id") add_launch_arg("use_multithread", "False", "use multithread") add_launch_arg("use_intra_process", "False", "use ROS2 component container communication") + add_launch_arg( + "filter_param_path", + os.path.join( + common_sensor_share_dir, + "config", + "filter.param.yaml", + ), + description="path to parameter file of filter", + ) add_launch_arg( "distortion_correction_node_param_path", os.path.join(