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

Revision history [back]

click to hide/show revision 1
initial version

I tested your files by starting my system with current working YAML files and converting to your setup until it broke. All of this bit worked fine on my system.

plugins:
  - {name: obstacle_layer, type: "costmap_2d::ObstacleLayer"}
  - {name: inflater_layer, type: "costmap_2d::InflationLayer"}
  - {name: static_layer, type: "costmap_2d::StaticLayer"}

  inflater_layer:
    inflation_radius: 0.35
    cost_scaling_factor: 0.5


  obstacle_layer:
    observation_sources: laser_scan_sensor
    laser_scan_sensor: {sensor_frame: laser_frame, 
data_type: LaserScan, 
topic: scan, marking: true, 
clearing: true, 
max_obstacle_height: 3, 
min_obstacle_height: -3, 
inf_is_valid: true, 
obstacle_range: 2.5, 
combination_method: 0,
raytrace_range: 3}

But it needs to be in under common cost maps, not local. When I moved it all to Local the way you have it, my system broke.