From aeb24383648e4a8eb27aa11b5de53cb289267a2c Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Fri, 3 Feb 2023 01:58:06 -0300 Subject: [PATCH] Change std::placeholders usage. --- src/pid_plus_gravity_controller.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pid_plus_gravity_controller.cpp b/src/pid_plus_gravity_controller.cpp index 8c1aaec..d1fadc4 100644 --- a/src/pid_plus_gravity_controller.cpp +++ b/src/pid_plus_gravity_controller.cpp @@ -55,10 +55,9 @@ namespace effort_controllers return controller_interface::CallbackReturn::ERROR; } - using std::placeholders::_1; rclcpp::QoS qos(rclcpp::KeepLast(1)); qos.transient_local(); - auto robotDescriptionSubscriber=get_node()->create_subscription("robot_description",qos,std::bind(&PidPlusGravityController::robotDescriptionCB,this,_1)); + auto robotDescriptionSubscriber=get_node()->create_subscription("robot_description",qos,std::bind(&PidPlusGravityController::robotDescriptionCB,this,std::placeholders::_1)); while(robotDescription_.empty()) { RCLCPP_WARN_SKIPFIRST_THROTTLE(get_node()->get_logger(),*get_node()->get_clock(),1000,"Waiting for robot model on /robot_description."); -- 2.12.0