Skip to content

Commit

Permalink
add braces for readability (style guide)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Sanchez <[email protected]>
  • Loading branch information
danielsanchezaran committed Dec 26, 2023
1 parent 9aa79ab commit 1f8d535
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ void MapBasedPredictionNode::objectsCallback(const TrackedObjects::ConstSharedPt
std::max(static_cast<int>((curvature_calculation_distance) / points_interval), 1));
const auto curvature_v =
calcTrajectoryCurvatureFrom3Points(trajectory_with_const_velocity, idx_dist);
if (curvature_v.empty()) continue;
if (curvature_v.empty()) {

Check warning on line 1036 in perception/map_based_prediction/src/map_based_prediction_node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/map_based_prediction/src/map_based_prediction_node.cpp#L1035-L1036

Added lines #L1035 - L1036 were not covered by tests
continue;
}
const auto curvature_avg =
std::accumulate(curvature_v.begin(), curvature_v.end(), 0.0) / curvature_v.size();
if (curvature_avg < min_avg_curvature) {

Check warning on line 1041 in perception/map_based_prediction/src/map_based_prediction_node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/map_based_prediction/src/map_based_prediction_node.cpp#L1040-L1041

Added lines #L1040 - L1041 were not covered by tests
Expand Down

0 comments on commit 1f8d535

Please sign in to comment.