diff --git a/sciurus17_control/src/sciurus17_hardware.cpp b/sciurus17_control/src/sciurus17_hardware.cpp index f91c713..76dc579 100644 --- a/sciurus17_control/src/sciurus17_hardware.cpp +++ b/sciurus17_control/src/sciurus17_hardware.cpp @@ -161,7 +161,7 @@ std::vector Sciurus17Hardware::export_command_interfaces() { std::vector command_interfaces; - for (auto joint : info_.joints) { + for (const auto & joint : info_.joints) { command_interfaces.emplace_back( hardware_interface::CommandInterface( joint.name, hardware_interface::HW_IF_POSITION, &hw_position_commands_[joint.name]));