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