Robotics StackExchange | Archived questions

get cells of costmap_2d::Costmap2D

How can i get the pixels/cells of a local costsmap? I was checking this documentation of costmap2dROS, but i didn't found any function which can provide the list or vector of cells that are present in given costmap.

Asked by dinesh on 2021-11-08 04:17:25 UTC

Comments

Answers

costmap_ getCost() will do these things

Asked by stevemacenski on 2021-11-09 13:44:39 UTC

Comments

This function gives the cost value of given pixe/pose. I was searching for method to get every pixel/pose inside given local costmap of given height and width.

Asked by dinesh on 2021-11-10 01:22:01 UTC