Skip to content

Commit

Permalink
Fix implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 4, 2024
1 parent 6ef14ac commit 7fb9c51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardware_interface/test/test_component_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class DummySystem : public hardware_interface::SystemInterface
return hardware_interface::return_type::ERROR;
}

for (auto i = 0; i < 3; ++i)
for (size_t i = 0; i < 3; ++i)
{
position_state_[i] += velocity_command_[0];
velocity_state_[i] = velocity_command_[0];
Expand All @@ -476,7 +476,7 @@ class DummySystem : public hardware_interface::SystemInterface

CallbackReturn on_shutdown(const rclcpp_lifecycle::State & /*previous_state*/) override
{
for (auto i = 0ul; i < 3; ++i)
for (size_t i = 0; i < 3; ++i)
{
velocity_state_[i] = 0.0;
}
Expand Down Expand Up @@ -572,7 +572,7 @@ class DummySystemDefault : public hardware_interface::SystemInterface
return hardware_interface::return_type::ERROR;
}

for (auto i = 0; i < 3; ++i)
for (size_t i = 0; i < 3; ++i)
{
auto current_pos = get_state(position_states_[i]);
set_state(position_states_[i], current_pos + get_command(velocity_commands_[i]));
Expand Down

0 comments on commit 7fb9c51

Please sign in to comment.