Skip to content

Commit

Permalink
hotfix(nebula_container_launch): ring outlier filter segfaults, disab…
Browse files Browse the repository at this point in the history
…le it for now
  • Loading branch information
TomohitoAndo committed Sep 9, 2024
1 parent bf12c56 commit c1a3318
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions aip_x2_gen2_launch/launch/nebula_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def str2vector(string):
{
"calibration_file": sensor_calib_fp,
"sensor_model": sensor_model,
"point_filters": "{}",
**create_parameter_dict(
"host_ip",
"sensor_ip",
Expand All @@ -118,7 +119,6 @@ def str2vector(string):
"frame_id",
"sync_angle",
"cut_angle",
"point_filters",
"dual_return_distance_threshold",
"rotation_speed",
"cloud_min_angle",
Expand All @@ -133,6 +133,7 @@ def str2vector(string):
"diag_span"
),
"launch_hw": True,
"retry_hw": True,
},
],
remappings=[
Expand Down Expand Up @@ -219,21 +220,21 @@ def str2vector(string):
("~/input/imu", "/sensing/imu/imu_data"),
("~/input/velocity_report", "/vehicle/status/velocity_status"),
("~/input/pointcloud", "mirror_cropped/pointcloud_ex"),
("~/output/pointcloud", "rectified/pointcloud_ex"),
("~/output/pointcloud", "pointcloud"),
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

ring_outlier_filter_component = ComposableNode(
package="pointcloud_preprocessor",
plugin="pointcloud_preprocessor::RingOutlierFilterComponent",
name="ring_outlier_filter",
remappings=[
("input", "rectified/pointcloud_ex"),
("output", "pointcloud"),
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)
# ring_outlier_filter_component = ComposableNode(
# package="pointcloud_preprocessor",
# plugin="pointcloud_preprocessor::RingOutlierFilterComponent",
# name="ring_outlier_filter",
# remappings=[
# ("input", "rectified/pointcloud_ex"),
# ("output", "pointcloud"),
# ],
# extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
# )

dual_return_filter_component = ComposableNode(
package="pointcloud_preprocessor",
Expand Down Expand Up @@ -292,11 +293,11 @@ def str2vector(string):
],
)

ring_outlier_filter_loader = LoadComposableNodes(
composable_node_descriptions=[ring_outlier_filter_component],
target_container=container,
condition=LaunchConfigurationNotEquals("return_mode", "Dual"),
)
# ring_outlier_filter_loader = LoadComposableNodes(
# composable_node_descriptions=[ring_outlier_filter_component],
# target_container=container,
# condition=LaunchConfigurationNotEquals("return_mode", "Dual"),
# )

dual_return_filter_loader = LoadComposableNodes(
composable_node_descriptions=[dual_return_filter_component],
Expand All @@ -312,7 +313,7 @@ def str2vector(string):

return [
container,
ring_outlier_filter_loader,
# ring_outlier_filter_loader,
dual_return_filter_loader,
blockage_diag_loader,
]
Expand All @@ -336,7 +337,7 @@ def add_launch_arg(name: str, default_value=None, description=None):
add_launch_arg("host_ip", "255.255.255.255", "host ip address")
add_launch_arg("sync_angle", "0")
add_launch_arg("cut_angle", "0.0")
add_launch_arg("point_filters", "{}", "point filter definitions in JSON format")
# add_launch_arg("point_filters", "{}", "point filter definitions in JSON format")
add_launch_arg("base_frame", "base_link", "base frame id")
add_launch_arg("min_range", "0.3", "minimum view range for Velodyne sensors")
add_launch_arg("max_range", "300.0", "maximum view range for Velodyne sensors")
Expand Down

0 comments on commit c1a3318

Please sign in to comment.