From d00dc6cbc79380cc1bc2c613609b248214773af4 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 10 Dec 2024 16:53:27 +0000 Subject: [PATCH] Add one more cast --- hardware_interface/src/mock_components/generic_system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware_interface/src/mock_components/generic_system.cpp b/hardware_interface/src/mock_components/generic_system.cpp index bb600e8779..3fb9999b24 100644 --- a/hardware_interface/src/mock_components/generic_system.cpp +++ b/hardware_interface/src/mock_components/generic_system.cpp @@ -179,7 +179,8 @@ CallbackReturn GenericSystem::on_init(const hardware_interface::HardwareInfo & i } MimicJoint mimic_joint; mimic_joint.joint_index = i; - mimic_joint.mimicked_joint_index = std::distance(info_.joints.begin(), mimicked_joint_it); + mimic_joint.mimicked_joint_index = + static_cast(std::distance(info_.joints.begin(), mimicked_joint_it)); auto param_it = joint.parameters.find("multiplier"); if (param_it != joint.parameters.end()) {