Performance: Costmap configuration (static, obstacle, inflation)
This affects the robot's navigation responsiveness and map update speed, impacting how quickly the robot reacts to obstacles and updates its path.
static_layer:
enabled: true
obstacle_layer:
enabled: true
observation_sources: laser_scan
laser_scan: {sensor_frame: laser, data_type: LaserScan, topic: /scan, marking: true, clearing: true}
inflation_layer:
enabled: true
inflation_radius: 0.3
cost_scaling_factor: 5.0
update_frequency: 2.0
publish_frequency: 1.0static_layer:
enabled: true
obstacle_layer:
enabled: true
observation_sources: laser_scan
laser_scan: {sensor_frame: laser, data_type: LaserScan, topic: /scan, marking: true, clearing: true}
inflation_layer:
enabled: true
inflation_radius: 0.7
cost_scaling_factor: 10.0
update_frequency: 10.0
publish_frequency: 5.0| Pattern | CPU Usage | Update Frequency | Inflation Radius | Verdict |
|---|---|---|---|---|
| High frequency, large inflation | High (80%+ CPU spikes) | 10 Hz | 0.7 meters | [X] Bad |
| Moderate frequency, smaller inflation | Moderate (30-40% CPU) | 2 Hz | 0.3 meters | [OK] Good |
obstacle_layer:
observation_sources: laser_scan_sensor
laser_scan_sensor:
data_type: LaserScan
topic: /scan
marking: true
clearing: true
inflation_layer:
inflation_radius: 0.7
cost_scaling_factor: 10.0marking: true and clearing: true have on the obstacle layer?inflation_layer: inflation_radius: 0.6 cost_scaling_factor: -5.0
Pass the test and this pattern moves unknown