Skip to content

Commit

Permalink
Declare SubscriberBase before MessageFilterBase so that the former ge…
Browse files Browse the repository at this point in the history
…ts unregistered from the message filter before the message filter gets destructued on costmap destruction
  • Loading branch information
adamantivm committed Feb 22, 2014
1 parent 0af902d commit 0eff566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion costmap_2d/include/costmap_2d/obstacle_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ class ObstacleLayer : public CostmapLayer

laser_geometry::LaserProjection projector_; ///< @brief Used to project laser scans into point clouds

std::vector<boost::shared_ptr<tf::MessageFilterBase> > observation_notifiers_; ///< @brief Used to make sure that transforms are available for each sensor
std::vector<boost::shared_ptr<message_filters::SubscriberBase> > observation_subscribers_; ///< @brief Used for the observation message filters
std::vector<boost::shared_ptr<tf::MessageFilterBase> > observation_notifiers_; ///< @brief Used to make sure that transforms are available for each sensor
std::vector<boost::shared_ptr<costmap_2d::ObservationBuffer> > observation_buffers_; ///< @brief Used to store observations from various sensors
std::vector<boost::shared_ptr<costmap_2d::ObservationBuffer> > marking_buffers_; ///< @brief Used to store observation buffers used for marking obstacles
std::vector<boost::shared_ptr<costmap_2d::ObservationBuffer> > clearing_buffers_; ///< @brief Used to store observation buffers used for clearing obstacles
Expand Down

0 comments on commit 0eff566

Please sign in to comment.