Obstacle Layer Parameters
This costmap layer implements a plugin that uses 2D raycasting for 2D lidars, depth, or other sensors. It contains a 2D costmap model within it that manages the planning space by the parameters specified below.
<obstacle layer> is the corresponding plugin name selected for this type.
<data source> is the corresponding observation source name for that sources parameters.
<obstacle layer>.enabled
- Type:
boolDefault:true -
Whether it is enabled.
<obstacle layer>.footprint_clearing_enabled
- Type:
boolDefault:true -
Clear any occupied cells under robot footprint.
<obstacle layer>.min_obstacle_height
- Type:
doubleDefault:0.0 -
Minimum height to add return to occupancy grid.
<obstacle layer>.max_obstacle_height
- Type:
doubleDefault:2.0 -
Maximum height to add return to occupancy grid.
<obstacle layer>.combination_method
- Type:
intDefault:1 -
Enum for method to add data to master costmap. Must be
0,1or2, default to1(see below).-
0- Overwrite: Overwrite master costmap with every valid observation. -
1- Max: Sets the new value to the maximum of themaster_grid's value and this layer's value. This is the default. -
2- MaxWithoutUnknownOverwrite: Sets the new value to the maximum of themaster_grid's value and this layer's value. If the master value is NO_INFORMATION, it is NOT overwritten. It can be used to make sure that the static map is the dominant source of information, and prevent the robot to go through places that are not present in the static map.
-
<obstacle layer>.tf_filter_tolerance
- Type:
doubleDefault:0.05 -
Tolerance for the
tf2_ros::MessageFilter.
<obstacle layer>.observation_sources
- Type:
vector<string>Default:[""] -
Namespace of sources of data.
<obstacle layer>.<data source>.topic
- Type:
stringDefault:"" -
Topic of data.
Relative topics will be relative to the node's parent namespace. For example, if you specify
topic: scanin theobstacle_layerof alocal_costmapand you launch your bringup with atb4namespace:- User chosen namespace is
tb4. - User chosen topic is
scan. - Topic will be remapped to
/tb4/scanwithoutlocal_costmap. - Use global topic
/scanif you do not wish the node namespace to apply.
- User chosen namespace is
<obstacle layer>.<data source>.sensor_frame
- Type:
stringDefault:"" -
Frame of sensor, to use if not provided by message. If empty, uses message
frame_id.
<obstacle layer>.<data source>.observation_persistence
- Type:
doubleDefault:0.0 -
How long to store messages in a buffer to add to costmap before removing them (s).
<obstacle layer>.<data source>.expected_update_rate
- Type:
doubleDefault:0.0 -
Expected rate to get new data from sensor.
<obstacle layer>.<data source>.data_type
- Type:
stringDefault:"LaserScan" -
Data type of input,
"LaserScan"or"PointCloud2".
<obstacle layer>.<data source>.transport_type
- Type:
stringDefault:"raw" -
For
PointCloud2data, specify the transport plugin to use:"raw": No compression. Default; highest bandwidth usage."draco": Lossy compression via Google."zlib": Lossless compression via Zlib compression."zstd": Lossless compression via Zstd compression.
See the known transports for more details.
<obstacle layer>.<data source>.min_obstacle_height
- Type:
doubleDefault:0.0 -
Minimum height to add return to occupancy grid.
<obstacle layer>.<data source>.max_obstacle_height
- Type:
doubleDefault:0.0 -
Maximum height to add return to occupancy grid.
<obstacle layer>.<data source>.inf_is_valid
- Type:
boolDefault:false -
Are infinite returns from laser scanners valid measurements to raycast.
<obstacle layer>.<data source>.marking
- Type:
boolDefault:true -
Whether source should mark in costmap.
<obstacle layer>.<data source>.clearing
- Type:
boolDefault:false -
Whether source should raytrace clear in costmap.
<obstacle layer>.<data source>.obstacle_max_range
- Type:
doubleDefault:2.5 -
Maximum range to mark obstacles in costmap.
<obstacle layer>.<data source>.obstacle_min_range
- Type:
doubleDefault:0.0 -
Minimum range to mark obstacles in costmap.
<obstacle layer>.<data source>.raytrace_max_range
- Type:
doubleDefault:3.0 -
Maximum range to raytrace clear obstacles from costmap.
<obstacle layer>.<data source>.raytrace_min_range
- Type:
doubleDefault:0.0 -
Minimum range to raytrace clear obstacles from costmap.