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 30a5e69 commit b9e45c8
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 @@ -55,7 +55,7 @@ CallbackReturn Sciurus17Hardware::on_init(
return CallbackReturn::ERROR;
}

for (auto joint : info_.joints) {
for (const auto & joint : info_.joints) {
hw_position_commands_[joint.name] = std::numeric_limits<double>::quiet_NaN();
hw_position_states_[joint.name] = std::numeric_limits<double>::quiet_NaN();
hw_velocity_states_[joint.name] = std::numeric_limits<double>::quiet_NaN();
Expand Down

0 comments on commit b9e45c8

Please sign in to comment.