From a9dd469de52678f87dbca8489e2513e388b28f73 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 10 Dec 2024 09:16:19 +0000 Subject: [PATCH] Fix variable name --- hardware_interface/src/mock_components/generic_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware_interface/src/mock_components/generic_system.cpp b/hardware_interface/src/mock_components/generic_system.cpp index 5df702278c..bb600e8779 100644 --- a/hardware_interface/src/mock_components/generic_system.cpp +++ b/hardware_interface/src/mock_components/generic_system.cpp @@ -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(std::distance(info.joints.begin(), joint_it_found)); + static_cast(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; @@ -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(std::distance(info.joints.begin(), joint_it_found)); + static_cast(std::distance(info_.joints.begin(), joint_it_found)); if (key == info_.joints[joint_index].name + "/" + hardware_interface::HW_IF_POSITION) {