Skip to content

Commit

Permalink
Add one more cast
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 10, 2024
1 parent a9dd469 commit d00dc6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hardware_interface/src/mock_components/generic_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(std::distance(info_.joints.begin(), mimicked_joint_it));
auto param_it = joint.parameters.find("multiplier");
if (param_it != joint.parameters.end())
{
Expand Down

0 comments on commit d00dc6c

Please sign in to comment.