Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ground_segmentation_launch): change max_z of cropbox filter to vehicle_height #6549

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ def get_vehicle_mirror_info(self):
return p

def create_additional_pipeline(self, lidar_name):
max_z = (
self.vehicle_info["max_height_offset"]
+ self.ground_segmentation_param[f"{lidar_name}_crop_box_filter"]["parameters"][
"margin_max_z"
]
)
min_z = (
self.vehicle_info["min_height_offset"]
+ self.ground_segmentation_param[f"{lidar_name}_crop_box_filter"]["parameters"][
"margin_min_z"
]
)
components = []
components.append(
ComposableNode(
Expand All @@ -84,6 +96,8 @@ def create_additional_pipeline(self, lidar_name):
{
"input_frame": LaunchConfiguration("base_frame"),
"output_frame": LaunchConfiguration("base_frame"),
"max_z": max_z,
"min_z": min_z,
},
self.ground_segmentation_param[f"{lidar_name}_crop_box_filter"]["parameters"],
],
Expand Down Expand Up @@ -206,6 +220,14 @@ def create_ransac_pipeline(self):
return components

def create_common_pipeline(self, input_topic, output_topic):
max_z = (
self.vehicle_info["max_height_offset"]
+ self.ground_segmentation_param["common_crop_box_filter"]["parameters"]["margin_max_z"]
)
min_z = (
self.vehicle_info["min_height_offset"]
+ self.ground_segmentation_param["common_crop_box_filter"]["parameters"]["margin_min_z"]
)
components = []
components.append(
ComposableNode(
Expand All @@ -220,6 +242,8 @@ def create_common_pipeline(self, input_topic, output_topic):
{
"input_frame": LaunchConfiguration("base_frame"),
"output_frame": LaunchConfiguration("base_frame"),
"max_z": max_z,
"min_z": min_z,
},
self.ground_segmentation_param["common_crop_box_filter"]["parameters"],
],
Expand Down
Loading