From: Walter Fetter Lages Date: Fri, 3 Feb 2023 04:13:06 +0000 (-0300) Subject: Change std::placeholders usage. X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=439123026b1163d1219c5f0864d6de40507f88ca;p=computed_torque_controller.git Change std::placeholders usage. --- 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.");