Skip to content

Commit

Permalink
fix: adjust minimum sizes to 0.3m
Browse files Browse the repository at this point in the history
  • Loading branch information
technolojin committed Mar 12, 2024
1 parent 09201ea commit 223443b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ BicycleTracker::BicycleTracker(
bounding_box_ = {1.0, 0.5, 1.7};
}
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 0.5);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.8);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// Set motion model parameters
{
Expand Down Expand Up @@ -236,9 +236,9 @@ bool BicycleTracker::measureWithShape(
bounding_box_.width = gain_inv * bounding_box_.width + gain * object.shape.dimensions.y;
bounding_box_.height = gain_inv * bounding_box_.height + gain * object.shape.dimensions.z;
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 0.5);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.8);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// update motion model
motion_model_.updateExtendedState(bounding_box_.length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ BigVehicleTracker::BigVehicleTracker(
last_input_bounding_box_ = bounding_box_;
}
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 2.5);
bounding_box_.width = std::max(bounding_box_.width, 1.0);
bounding_box_.height = std::max(bounding_box_.height, 1.0);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// Set motion model parameters
{
Expand Down Expand Up @@ -313,9 +313,9 @@ bool BigVehicleTracker::measureWithShape(
last_input_bounding_box_ = {
object.shape.dimensions.x, object.shape.dimensions.y, object.shape.dimensions.z};
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 2.5);
bounding_box_.width = std::max(bounding_box_.width, 1.0);
bounding_box_.height = std::max(bounding_box_.height, 1.0);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// update motion model
motion_model_.updateExtendedState(bounding_box_.length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ NormalVehicleTracker::NormalVehicleTracker(
last_input_bounding_box_ = bounding_box_;
}
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 1.5);
bounding_box_.width = std::max(bounding_box_.width, 0.5);
bounding_box_.height = std::max(bounding_box_.height, 1.0);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// Set motion model parameters
{
Expand Down Expand Up @@ -313,9 +313,9 @@ bool NormalVehicleTracker::measureWithShape(
last_input_bounding_box_ = {
object.shape.dimensions.x, object.shape.dimensions.y, object.shape.dimensions.z};
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 1.5);
bounding_box_.width = std::max(bounding_box_.width, 0.5);
bounding_box_.height = std::max(bounding_box_.height, 1.0);
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.3);

// update motion model
motion_model_.updateExtendedState(bounding_box_.length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ PedestrianTracker::PedestrianTracker(
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.8);
bounding_box_.height = std::max(bounding_box_.height, 0.3);
cylinder_.width = std::max(cylinder_.width, 0.3);
cylinder_.height = std::max(cylinder_.height, 0.8);
cylinder_.height = std::max(cylinder_.height, 0.3);

// Set motion model parameters
{
Expand Down Expand Up @@ -219,9 +219,9 @@ bool PedestrianTracker::measureWithShape(
// set minimum size
bounding_box_.length = std::max(bounding_box_.length, 0.3);
bounding_box_.width = std::max(bounding_box_.width, 0.3);
bounding_box_.height = std::max(bounding_box_.height, 0.8);
bounding_box_.height = std::max(bounding_box_.height, 0.3);
cylinder_.width = std::max(cylinder_.width, 0.3);
cylinder_.height = std::max(cylinder_.height, 0.8);
cylinder_.height = std::max(cylinder_.height, 0.3);

return true;
}
Expand Down

0 comments on commit 223443b

Please sign in to comment.