ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

costmap static_map

asked 2012-07-25 23:39:19 -0500

pkohout gravatar image

updated 2012-07-25 23:50:27 -0500

hi, i have a little problem, if my localcostmap.yaml set's


my costmap works. but i wanna us it as a rolling window, so when i change the confoig to :


the map does not display anything in rviz, are there additional parameters which i need to set or change if i use the rolling_window ?

edit retag flag offensive close merge delete


What do you mean by "the map does not display anything"? The costmap isn't registering obstacles?

DimitriProsser gravatar image DimitriProsser  ( 2012-07-26 03:36:55 -0500 )edit


pkohout gravatar image pkohout  ( 2012-07-26 03:43:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-26 04:59:42 -0500

DimitriProsser gravatar image

You have to make sure that you also set the size of the rolling window appropriately:

rolling_window: true
width: 15.0
height: 15.0
resolution: 0.05
origin_x: 0.0
origin_y: 0.0

When using a static map, the width and height are determined using the loaded image. In a rolling window, you must manually specify these parameters for your robot. Just know that it places your robot in the center of the rolling window, so the robot can only see things that are height/2 meters away.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-07-25 23:39:19 -0500

Seen: 2,280 times

Last updated: Jul 26 '12