Skip to content

Commit 4b6de34

Browse files
style(pre-commit): autofix
1 parent 594acdc commit 4b6de34

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

perception/autoware_multi_object_tracker/include/autoware/multi_object_tracker/association/azimuth_bin_index.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct AzimuthBinEntry
3737
class AzimuthBinIndex
3838
{
3939
public:
40-
static constexpr int kNumBins = 24; // 15° per bin, full 360°
40+
static constexpr int kNumBins = 24; // 15° per bin, full 360°
4141
static constexpr double kBinWidth = 2.0 * M_PI / kNumBins; // [rad]
4242

4343
void clear()
@@ -47,11 +47,10 @@ class AzimuthBinIndex
4747

4848
/// Register @p tracker_idx to every bin its @p interval covers.
4949
/// The +1 guard ensures boundary trackers are always findable by find().
50-
void add(
51-
const polar_scoring::AzimuthInterval & interval, size_t tracker_idx, double r_min)
50+
void add(const polar_scoring::AzimuthInterval & interval, size_t tracker_idx, double r_min)
5251
{
53-
const int n = std::min(
54-
static_cast<int>(std::ceil(2.0 * interval.half_span / kBinWidth)) + 1, kNumBins);
52+
const int n =
53+
std::min(static_cast<int>(std::ceil(2.0 * interval.half_span / kBinWidth)) + 1, kNumBins);
5554
const int start = angleToBin(interval.center - interval.half_span);
5655
const AzimuthBinEntry entry{tracker_idx, static_cast<float>(r_min)};
5756
for (int i = 0; i < n; ++i) {
@@ -65,8 +64,7 @@ class AzimuthBinIndex
6564
const polar_scoring::AzimuthInterval & interval, double r_min_query) const
6665
{
6766
// Exact bin count — no +1, relying on add()'s guard for boundary coverage.
68-
const int n =
69-
std::max(1, static_cast<int>(std::ceil(2.0 * interval.half_span / kBinWidth)));
67+
const int n = std::max(1, static_cast<int>(std::ceil(2.0 * interval.half_span / kBinWidth)));
7068
const int start = angleToBin(interval.center - interval.half_span);
7169

7270
std::vector<size_t> candidates;

perception/autoware_multi_object_tracker/include/autoware/multi_object_tracker/association/polar_association.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ namespace autoware::multi_object_tracker
4545
class PolarAssociation : public AssociationBase
4646
{
4747
public:
48-
4948
explicit PolarAssociation(const AssociatorConfig & config);
5049
~PolarAssociation() override = default;
5150

0 commit comments

Comments
 (0)