diff --git a/src/io/sensor_gateway.cpp b/src/io/sensor_gateway.cpp index aa45e06..5784edb 100644 --- a/src/io/sensor_gateway.cpp +++ b/src/io/sensor_gateway.cpp @@ -275,7 +275,12 @@ void SensorGateway::pushStaticMap(const std::string& name, const robot_nav_msgs: ScopedSection timer(telemetry_, section_static_map_); dispatchTo(global_costmap_, map, robot_costmap_2d::LayerType::STATIC_LAYER, name, stats_); + dispatchTo(global_costmap_, map, robot_costmap_2d::LayerType::PREFERRED_LAYER, name, stats_); + dispatchTo(global_costmap_, map, robot_costmap_2d::LayerType::UNPREFERRED_LAYER, name, stats_); + dispatchTo(local_costmap_, map, robot_costmap_2d::LayerType::STATIC_LAYER, name, stats_); + dispatchTo(local_costmap_, map, robot_costmap_2d::LayerType::PREFERRED_LAYER, name, stats_); + dispatchTo(local_costmap_, map, robot_costmap_2d::LayerType::UNPREFERRED_LAYER, name, stats_); } void SensorGateway::pushLaserScan(const std::string& name, const robot_sensor_msgs::LaserScan& scan)