Skip to content

Commit

Permalink
左辺値参照に変更
Browse files Browse the repository at this point in the history
Co-authored-by: Shota Aoki <[email protected]>
  • Loading branch information
Kuwamai and Shota Aoki authored Nov 2, 2023
1 parent 1050b80 commit ebd8ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciurus17_control/src/sciurus17_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ std::vector<hardware_interface::CommandInterface>
Sciurus17Hardware::export_command_interfaces()
{
std::vector<hardware_interface::CommandInterface> 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]));
Expand Down

0 comments on commit ebd8ca6

Please sign in to comment.