Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 10, 2024
1 parent f538106 commit a9dd469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware_interface/src/mock_components/generic_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ return_type GenericSystem::prepare_command_mode_switch(
if (joint_it_found != info_.joints.end())
{
const size_t joint_index =
static_cast<size_t>(std::distance(info.joints.begin(), joint_it_found));
static_cast<size_t>(std::distance(info_.joints.begin(), joint_it_found));
if (joint_found_in_x_requests_[joint_index] == 0)
{
joint_found_in_x_requests_[joint_index] = FOUND_ONCE_FLAG;
Expand Down Expand Up @@ -485,7 +485,7 @@ return_type GenericSystem::perform_command_mode_switch(
if (joint_it_found != info_.joints.end())
{
const size_t joint_index =
static_cast<size_t>(std::distance(info.joints.begin(), joint_it_found));
static_cast<size_t>(std::distance(info_.joints.begin(), joint_it_found));

if (key == info_.joints[joint_index].name + "/" + hardware_interface::HW_IF_POSITION)
{
Expand Down

0 comments on commit a9dd469

Please sign in to comment.