Skip to content

Commit

Permalink
fix(autoware_costmap_generator): fix bugprone-branch-clone (autowaref…
Browse files Browse the repository at this point in the history
…oundation#9669)

fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Dec 17, 2024
1 parent 9de2af3 commit fc2b93e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ grid_map::Matrix ObjectsToCostmap::makeCostmapFromObjects(
grid_map::Polygon polygon;
if (object.shape.type == autoware_perception_msgs::msg::Shape::POLYGON) {
polygon = makePolygonFromObjectConvexHull(in_objects->header, object, expand_polygon_size);
} else if (object.shape.type == autoware_perception_msgs::msg::Shape::BOUNDING_BOX) {
} else if (object.shape.type == autoware_perception_msgs::msg::Shape::BOUNDING_BOX) { // NOLINT
polygon = makePolygonFromObjectBox(in_objects->header, object, expand_polygon_size);
} else if (object.shape.type == autoware_perception_msgs::msg::Shape::CYLINDER) {
// TODO(Kenji Miyake): Add makePolygonFromObjectCylinder
// TODO(Kenji Miyake): Add makePolygonFromObjectCylinder and remove NOLINT
polygon = makePolygonFromObjectBox(in_objects->header, object, expand_polygon_size);
}
const auto highest_probability_label = *std::max_element(
Expand Down

0 comments on commit fc2b93e

Please sign in to comment.