Skip to content

Commit

Permalink
Update costmap_2d_publisher.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Hrynchak <[email protected]>
  • Loading branch information
VladyslavHrynchak200204 committed Jul 29, 2024
1 parent 96e6537 commit 3bf69bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_costmap_2d/src/costmap_2d_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ void Costmap2DPublisher::prepareGrid()

double wx, wy;
costmap_->mapToWorld(0, 0, wx, wy);
grid_->info.origin.position.x = wx - grid_resolution / 2;
grid_->info.origin.position.y = wy - grid_resolution / 2;
grid_->info.origin.position.x = wx - grid_resolution_ / 2;
grid_->info.origin.position.y = wy - grid_resolution_ / 2;
grid_->info.origin.position.z = map_vis_z_;
grid_->info.origin.orientation.w = 1.0;

Expand Down

0 comments on commit 3bf69bf

Please sign in to comment.