From afb42410c28b39eb652c4af7e270fa588af991cc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:15:09 +0100 Subject: [PATCH] Satisfy clang 18 (#467) (#469) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ff8dd8bce5d086fa307a495047d68ac85f4e7523) Co-authored-by: Christoph Fröhlich --- ...rbot_transmissions_system_position_only.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/example_8/hardware/rrbot_transmissions_system_position_only.cpp b/example_8/hardware/rrbot_transmissions_system_position_only.cpp index 7ce352854..6cf3b2428 100644 --- a/example_8/hardware/rrbot_transmissions_system_position_only.cpp +++ b/example_8/hardware/rrbot_transmissions_system_position_only.cpp @@ -231,8 +231,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::re { // actuator: state -> transmission std::for_each( - actuator_interfaces_.begin(), actuator_interfaces_.end(), - [](auto & actuator_interface) + actuator_interfaces_.begin(), actuator_interfaces_.end(), [](auto & actuator_interface) { actuator_interface.transmission_passthrough_ = actuator_interface.state_; }); // transmission: actuator -> joint @@ -242,8 +241,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::re // joint: transmission -> state std::for_each( - joint_interfaces_.begin(), joint_interfaces_.end(), - [](auto & joint_interface) + joint_interfaces_.begin(), joint_interfaces_.end(), [](auto & joint_interface) { joint_interface.state_ = joint_interface.transmission_passthrough_; }); // log state data @@ -253,8 +251,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::re { // again, this only for simple transmissions, we know there is only one joint const auto joint_interface = std::find_if( - joint_interfaces_.cbegin(), joint_interfaces_.cend(), - [&](const auto & joint_interface) + joint_interfaces_.cbegin(), joint_interfaces_.cend(), [&](const auto & joint_interface) { return joint_interface.name_ == transmission_info.joints[0].name; }); const auto actuator_interface = std::find_if( @@ -279,8 +276,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::wr { // joint: command -> transmission std::for_each( - joint_interfaces_.begin(), joint_interfaces_.end(), - [](auto & joint_interface) + joint_interfaces_.begin(), joint_interfaces_.end(), [](auto & joint_interface) { joint_interface.transmission_passthrough_ = joint_interface.command_; }); // transmission: joint -> actuator @@ -290,8 +286,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::wr // actuator: transmission -> command std::for_each( - actuator_interfaces_.begin(), actuator_interfaces_.end(), - [](auto & actuator_interface) + actuator_interfaces_.begin(), actuator_interfaces_.end(), [](auto & actuator_interface) { actuator_interface.command_ = actuator_interface.transmission_passthrough_; }); // simulate motor motion @@ -311,8 +306,7 @@ hardware_interface::return_type RRBotTransmissionsSystemPositionOnlyHardware::wr { // again, this only for simple transmissions, we know there is only one joint const auto joint_interface = std::find_if( - joint_interfaces_.cbegin(), joint_interfaces_.cend(), - [&](const auto & joint_interface) + joint_interfaces_.cbegin(), joint_interfaces_.cend(), [&](const auto & joint_interface) { return joint_interface.name_ == transmission_info.joints[0].name; }); const auto actuator_interface = std::find_if(