ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You'll have to manually mix in the desired plugins to achieve what you need.
Place the following In your local_costmap_params.yaml
local_costmap:
plugins:
- {name: static_map, type: "costmap_2d::StaticLayer"}
- {name: obstacles, type: "costmap_2d::ObstacleLayer"}
- {name: inflation, type: "costmap_2d::InflationLayer"}
global_frame: odom
robot_base_frame: base_link
transform_tolerance: 5.0
update_frequency: 5.0
publish_frequency: 2.0
obstacles:
observation_sources: laser_scan_sensor
laser_scan_sensor: {sensor_frame: base_link, data_type: LaserScan, topic: scan, marking: true, clearing: true}
The costmap_2d::StaticLayer
plugin allows you to specify a static layer in your local_costmap
The costmap_2d::ObstacleLayer
and costmap_2d::InflationLayer
does what the original local costmap does, marking and clearing and inflating obstacles, note the similarity for the parameters.
More details can be found here: https://github.com/ros-planning/navigation/blob/melodic-devel/costmap_2d/src/costmap_2d_ros.cpp#L279