ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

get cells of costmap_2d::Costmap2D

asked 2021-11-08 03:17:25 -0500

dinesh gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-11-09 12:44:39 -0500

costmap_ getCost() will do these things

edit flag offensive delete link more


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.

dinesh gravatar image dinesh  ( 2021-11-10 00:22:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-11-08 03:17:25 -0500

Seen: 46 times

Last updated: Nov 09 '21