Skip to content

Commit

Permalink
drop obsolete use of boost::bind and _1
Browse files Browse the repository at this point in the history
Lambdas are preferred since c++11.
The transitively included use of _1 starts failing with a recently
proposed change to adapt the boost-bind include API in ros_comm.
ros-o/ros_comm#3
  • Loading branch information
v4hn committed Aug 20, 2024
1 parent d22b98f commit 6e8ad87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch_depth_layer/src/depth_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void FetchDepthLayer::onInitialize()
depth_image_sub_.reset(new message_filters::Subscriber<sensor_msgs::Image>(private_nh, camera_depth_topic, 10));
depth_image_filter_ = boost::shared_ptr< tf2_ros::MessageFilter<sensor_msgs::Image> >(
new tf2_ros::MessageFilter<sensor_msgs::Image>(*depth_image_sub_, *tf_, global_frame_, 10, private_nh));
depth_image_filter_->registerCallback(boost::bind(&FetchDepthLayer::depthImageCallback, this, _1));
depth_image_filter_->registerCallback([this](auto msg){ depthImageCallback(msg); });
observation_subscribers_.push_back(depth_image_sub_);
observation_notifiers_.push_back(depth_image_filter_);
observation_notifiers_.back()->setTolerance(ros::Duration(0.05));
Expand Down

0 comments on commit 6e8ad87

Please sign in to comment.