Robotics StackExchange | Archived questions

How to add/chage costmap values manually ?

hi

is it possible to change the specific cost value of a cell(x,y) of the costMap manually?

for example cell(1,1): cost is -1

manually updated and

new cell(1,1) cost is 100

thanks

Asked by Developer on 2018-03-06 08:05:59 UTC

Comments

Answers

http://docs.ros.org/indigo/api/costmap_2d/html/classcostmap__2d_1_1Costmap2D.html#ae1703900adbbf1e0d929cec0735a8b0e

e.g

costmap_->setCost(mx, my, costmap_2d::FREE_SPACE);

Asked by bob-ROS on 2019-11-11 03:06:20 UTC

Comments