Layered costmap problem
Hi.
I am currently using the layered costmap found on the branch "costmap-plugins-renamed-layers" of the navigation stack repository.
I would like to use the layered costmap and add a new layer to it. If I keep the default parameters I can see a costmap with the obstacles but as soon as I put a list of plugins in the yaml file I can't see the obstacles anymore and no error message appears.
Here is my yaml file :
local_costmap:
global_frame: /map
robot_base_frame: /base_link
update_frequency: 1.0
publish_frequency: 1.0
static_map: false
rolling_window: true
width: 10.0
height: 10.0
resolution: 0.05
plugins:
-
name: footprint_layer
type: "costmap_2d::FootprintLayer"
-
name: obstacle_layer
type: "costmap_2d::ObstacleLayer"
-
name: inflation_layer
type: "costmap_2d::InflationLayer"
-
name: social_layer
type: "social_navigation_layers::ProxemicLayer"
-
name: simple_layer
type: "simple_layers::SimpleLayer"
I tried the simple layer tutorial and this is working; when I add it to the list I can see the result in the costmap, so the problem seems to come from the Obstacle layer.
Did anyone have this problem before ?
EDIT 1 : Other yaml files
costmap_common_params.yaml
obstacle_range: 1.5
raytrace_range: 2.0
footprint: [[0.35, 0.35], [-0.35, 0.35], [-0.35, -0.35], [0.35, -0.35]]
inflation_radius: 0.55
observation_sources: laser
laser: {sensor_frame: base_laser_link, data_type: LaserScan, topic: scan, marking: true, clearing: true}
global_costmap_params.yaml
global_costmap:
global_frame: /map
robot_base_frame: /base_link
update_frequency: 1.0
static_map: true
plugins:
-
name: footprint_layer
type: "costmap_2d::FootprintLayer"
-
name: obstacle_layer
type: "costmap_2d::ObstacleLayer"
-
name: inflation_layer
type: "costmap_2d::InflationLayer"
Caroline
To me that sounds like a namespace problem. Can you post the other yaml files that configure your observation sources?
Ah and by the way, you have a typo in this config file (don't know if that's just a copy & paste flaw): the second line with global_frame has to be indented as well.