Commit e30f1cc 1 parent 8ea0d48 commit e30f1cc Copy full SHA for e30f1cc
File tree 3 files changed +10
-11
lines changed
perception/multi_object_tracker/src/tracker/model
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -316,10 +316,10 @@ bool BigVehicleTracker::measureWithShape(
316
316
// check object size abnormality
317
317
constexpr double size_max = 40.0 ; // [m]
318
318
constexpr double size_min = 1.0 ; // [m]
319
- bool isSizeValid =
319
+ bool is_size_valid =
320
320
(object.shape .dimensions .x <= size_max && object.shape .dimensions .y <= size_max &&
321
321
object.shape .dimensions .x >= size_min && object.shape .dimensions .y >= size_min);
322
- if (!isSizeValid ) {
322
+ if (!is_size_valid ) {
323
323
return false ;
324
324
}
325
325
Original file line number Diff line number Diff line change @@ -318,10 +318,10 @@ bool NormalVehicleTracker::measureWithShape(
318
318
// check object size abnormality
319
319
constexpr double size_max = 30.0 ; // [m]
320
320
constexpr double size_min = 1.0 ; // [m]
321
- bool isSizeValid =
321
+ bool is_size_valid =
322
322
(object.shape .dimensions .x <= size_max && object.shape .dimensions .y <= size_max &&
323
323
object.shape .dimensions .x >= size_min && object.shape .dimensions .y >= size_min);
324
- if (!isSizeValid ) {
324
+ if (!is_size_valid ) {
325
325
return false ;
326
326
}
327
327
Original file line number Diff line number Diff line change @@ -218,15 +218,14 @@ bool PedestrianTracker::measureWithShape(
218
218
// check bound box size abnormality
219
219
constexpr double size_max = 30.0 ; // [m]
220
220
constexpr double size_min = 0.1 ; // [m]
221
- if (
222
- object.shape .dimensions .x > size_max || object.shape .dimensions .y > size_max ||
223
- object.shape .dimensions .z > size_max) {
224
- return false ;
225
- } else if (
226
- object.shape .dimensions .x < size_min || object.shape .dimensions .y < size_min ||
227
- object.shape .dimensions .z < size_min) {
221
+ bool is_size_valid =
222
+ (object.shape .dimensions .x <= size_max && object.shape .dimensions .y <= size_max &&
223
+ object.shape .dimensions .z <= size_max && object.shape .dimensions .x >= size_min &&
224
+ object.shape .dimensions .y >= size_min && object.shape .dimensions .z >= size_min);
225
+ if (!is_size_valid) {
228
226
return false ;
229
227
}
228
+
230
229
// update bounding box size
231
230
bounding_box_.length = gain_inv * bounding_box_.length + gain * object.shape .dimensions .x ;
232
231
bounding_box_.width = gain_inv * bounding_box_.width + gain * object.shape .dimensions .y ;
You can’t perform that action at this time.
0 commit comments