From 0eff5661a7aa3124b2248a5afe925592044fc56d Mon Sep 17 00:00:00 2001 From: Julian Cerruti Date: Fri, 21 Feb 2014 15:59:29 -0800 Subject: [PATCH] Declare SubscriberBase before MessageFilterBase so that the former gets unregistered from the message filter before the message filter gets destructued on costmap destruction --- costmap_2d/include/costmap_2d/obstacle_layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/costmap_2d/include/costmap_2d/obstacle_layer.h b/costmap_2d/include/costmap_2d/obstacle_layer.h index 372c364542..4aead83c19 100644 --- a/costmap_2d/include/costmap_2d/obstacle_layer.h +++ b/costmap_2d/include/costmap_2d/obstacle_layer.h @@ -158,8 +158,8 @@ class ObstacleLayer : public CostmapLayer laser_geometry::LaserProjection projector_; ///< @brief Used to project laser scans into point clouds - std::vector > observation_notifiers_; ///< @brief Used to make sure that transforms are available for each sensor std::vector > observation_subscribers_; ///< @brief Used for the observation message filters + std::vector > observation_notifiers_; ///< @brief Used to make sure that transforms are available for each sensor std::vector > observation_buffers_; ///< @brief Used to store observations from various sensors std::vector > marking_buffers_; ///< @brief Used to store observation buffers used for marking obstacles std::vector > clearing_buffers_; ///< @brief Used to store observation buffers used for clearing obstacles