publish_frequency: 2.0
static_map: false
rolling_window: true
- width: 4.0
- height: 4.0
- resolution: 0.01
+ width: 2.0
+ height: 2.0
+ resolution: 0.05
plugins:
- {name: sonar, type: "range_sensor_layer::RangeSensorLayer"}
- {name: inflation_layer, type: 'costmap_2d::InflationLayer'}
scan.header.stamp = current_time
scan.header.frame_id = "forward_sensor"
scan.radiation_type = 0
- scan.field_of_view = 60*pi/180
- scan.min_range = 0.0
+ scan.field_of_view = 30*pi/180
+ scan.min_range = 0.04
scan.max_range = 4.0
scan.range = msg.d1/100.0
self.pub_sonar.publish(scan)