Skip to content

Commit

Permalink
Use boost shared_ptr for consistency (would have needed #include <mem…
Browse files Browse the repository at this point in the history
…ory> to make build system build it anyhow), also use typedef for callback #358
  • Loading branch information
lucasw committed Oct 21, 2018
1 parent 83f2cf2 commit 1e67767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_publisher/src/nodelet/image_publisher_nodelet.cpp
Expand Up @@ -49,7 +49,7 @@ namespace image_publisher {
class ImagePublisherNodelet : public nodelet::Nodelet
{
typedef dynamic_reconfigure::Server<image_publisher::ImagePublisherConfig> ReconfigureServer;
std::shared_ptr<ReconfigureServer> srv;
boost::shared_ptr<ReconfigureServer> srv;

image_transport::CameraPublisher pub_;

Expand Down Expand Up @@ -186,7 +186,7 @@ class ImagePublisherNodelet : public nodelet::Nodelet
timer_ = nh_.createTimer(ros::Duration(1), &ImagePublisherNodelet::do_work, this);

srv.reset(new ReconfigureServer(getPrivateNodeHandle()));
dynamic_reconfigure::Server<image_publisher::ImagePublisherConfig>::CallbackType f =
ReconfigureServer::CallbackType f =
boost::bind(&ImagePublisherNodelet::reconfigureCallback, this, _1, _2);
srv->setCallback(f);
}
Expand Down

0 comments on commit 1e67767

Please sign in to comment.