Skip to content

Commit 2f1e852

Browse files
style(pre-commit): autofix
1 parent e92415c commit 2f1e852

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

perception/autoware_multi_object_tracker/lib/tracker/model/vehicle_tracker.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,8 @@ std::optional<types::DynamicObject> VehicleTracker::alignClusterToTrackerOrienta
311311
const types::DynamicObject & cluster, const double tracker_yaw) const
312312
{
313313
// Only re-project polygon (cluster) measurements; bounding boxes are already axis-aligned.
314-
const bool is_cluster =
315-
cluster.shape.type == autoware_perception_msgs::msg::Shape::POLYGON &&
316-
!cluster.shape.footprint.points.empty();
314+
const bool is_cluster = cluster.shape.type == autoware_perception_msgs::msg::Shape::POLYGON &&
315+
!cluster.shape.footprint.points.empty();
317316
if (!is_cluster) return std::nullopt;
318317

319318
const auto & pts = cluster.shape.footprint.points;
@@ -368,8 +367,7 @@ bool VehicleTracker::conditionedUpdate(
368367
{
369368
// For cluster measurements, re-project the footprint onto the tracker heading before strategy
370369
// selection. nullopt is returned when there are no footprint points.
371-
const auto aligned =
372-
alignClusterToTrackerOrientation(measurement, motion_model_.getYawState());
370+
const auto aligned = alignClusterToTrackerOrientation(measurement, motion_model_.getYawState());
373371
const types::DynamicObject & meas = aligned ? *aligned : measurement;
374372

375373
// Determine update strategy

0 commit comments

Comments
 (0)