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

feat: change car size param in shape estimation #1709

Merged
Show file tree
Hide file tree
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 @@ -28,10 +28,10 @@ class CarCorrector : public ShapeEstimationCorrectorInterface
explicit CarCorrector(bool use_reference_yaw = false) : use_reference_yaw_(use_reference_yaw)
{
params_.min_width = 1.2;
params_.max_width = 2.2;
params_.max_width = 2.5;
params_.avg_width = (params_.min_width + params_.max_width) * 0.5;
params_.min_length = 3.0;
params_.max_length = 5.0;
params_.max_length = 5.8;
params_.avg_length = (params_.min_length + params_.max_length) * 0.5;
}

Expand Down
4 changes: 2 additions & 2 deletions perception/shape_estimation/lib/filter/car_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bool CarFilter::filter(
[[maybe_unused]] const geometry_msgs::msg::Pose & pose)
{
constexpr float min_width = 1.2;
constexpr float max_width = 2.2;
constexpr float max_length = 5.0;
constexpr float max_width = 2.5;
constexpr float max_length = 5.8;
return utils::filterVehicleBoundingBox(shape, min_width, max_width, max_length);
}