Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
Signed-off-by: mohammad alqudah <[email protected]>
  • Loading branch information
mkquda committed Dec 5, 2024
1 parent ba5f40f commit 09761ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planning/autoware_costmap_generator/src/costmap_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ void CostmapGenerator::set_grid_center(const geometry_msgs::msg::TransformStampe
const auto cur_pos = costmap_.getPosition();

Check warning on line 316 in planning/autoware_costmap_generator/src/costmap_generator.cpp

View check run for this annotation

Codecov / codecov/patch

planning/autoware_costmap_generator/src/costmap_generator.cpp#L316

Added line #L316 was not covered by tests
const grid_map::Position ref_pos(tf.transform.translation.x, tf.transform.translation.y);
const auto disp = ref_pos - cur_pos;
const auto resol = costmap_.getResolution();
const auto resolution = costmap_.getResolution();

Check warning on line 319 in planning/autoware_costmap_generator/src/costmap_generator.cpp

View check run for this annotation

Codecov / codecov/patch

planning/autoware_costmap_generator/src/costmap_generator.cpp#L319

Added line #L319 was not covered by tests
const grid_map::Position offset(
std::round(disp.x() / resol) * resol, std::round(disp.y() / resol) * resol);
std::round(disp.x() / resolution) * resolution, std::round(disp.y() / resolution) * resolution);
costmap_.setPosition(cur_pos + offset);

Check warning on line 322 in planning/autoware_costmap_generator/src/costmap_generator.cpp

View check run for this annotation

Codecov / codecov/patch

planning/autoware_costmap_generator/src/costmap_generator.cpp#L321-L322

Added lines #L321 - L322 were not covered by tests
}

Expand Down

0 comments on commit 09761ec

Please sign in to comment.