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

costmap static_map

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

pkohout gravatar image

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

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

static_map:true
rolling_window:false

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

static_map:false
rolling_window:true

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

Comments

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 -0600 )edit

yes

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

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Stats

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

Seen: 2,405 times

Last updated: Jul 26 '12