Skip to content

Commit

Permalink
fix(pointcloud_preprocessor): throw error if crop box input frame is …
Browse files Browse the repository at this point in the history
…missing (#2980)

Signed-off-by: Vincent Richard <[email protected]>
  • Loading branch information
VRichardJP authored Mar 6, 2023
1 parent a4c6899 commit 3a6f487
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ CropBoxFilterComponent::CropBoxFilterComponent(const rclcpp::NodeOptions & optio
p.max_y = static_cast<float>(declare_parameter("max_y", 1.0));
p.max_z = static_cast<float>(declare_parameter("max_z", 1.0));
p.negative = static_cast<float>(declare_parameter("negative", false));
if (tf_input_frame_.empty()) {
throw std::invalid_argument("Crop box requires non-empty input_frame");
}
}

// set additional publishers
Expand Down

0 comments on commit 3a6f487

Please sign in to comment.