Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 28, 2022
1 parent 06d22d1 commit 5d258f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions planning/costmap_generator/test/test_points_to_costmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ grid_map::GridMap PointsToCostmapTest::construct_gridmap()
gm.setFrameId("map");
// set gridmap size,resolution
gm.setGeometry(grid_map::Length(grid_length_x_, grid_length_y_), grid_resolution_);
//center of grid to position p in map frame
// center of grid to position p in map frame
gm.setPosition(grid_map::Position(grid_position_x_, grid_position_y_));

// set initial value
Expand Down Expand Up @@ -187,7 +187,8 @@ TEST_F(PointsToCostmapTest, TestMakeCostmapFromPoints_invalidPoints_outOfGrid)
in_sensor_points.resize(in_sensor_points.width * in_sensor_points.height);

// when we construct gridmap,we set grid map center to (0,0) in map frame
// so it would be outside of grid map if absolute value of point.x bigger than half of grid_length_x_
// so it would be outside of grid map if absolute value of point.x bigger than half of
// grid_length_x_
in_sensor_points.points[0].x = 1 + grid_length_x_ / 2.0;
in_sensor_points.points[0].y = 1 + grid_length_y_ / 2.0;
in_sensor_points.points[0].z = 0.5;
Expand Down

0 comments on commit 5d258f5

Please sign in to comment.