From 439123026b1163d1219c5f0864d6de40507f88ca Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Fri, 3 Feb 2023 01:13:06 -0300 Subject: [PATCH] Change std::placeholders usage. --- src/computed_torque_controller.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/computed_torque_controller.cpp b/src/computed_torque_controller.cpp index 0e5cfca..067d124 100644 --- a/src/computed_torque_controller.cpp +++ b/src/computed_torque_controller.cpp @@ -58,10 +58,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(&ComputedTorqueController::robotDescriptionCB,this,_1)); + auto robotDescriptionSubscriber=get_node()->create_subscription("robot_description",qos,std::bind(&ComputedTorqueController::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