Skip to content

Commit

Permalink
Fix misleading error message in RobotState::setFromIKSubgroups()
Browse files Browse the repository at this point in the history
backport from moveit/moveit2#3263
  • Loading branch information
rhaschke committed Jan 24, 2025
1 parent b9ed835 commit e773340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moveit_core/robot_state/src/robot_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,8 +1940,8 @@ bool RobotState::setFromIKSubgroups(const JointModelGroup* jmg, const EigenSTL::
{
if (consistency_limits[i].size() != sub_groups[i]->getVariableCount())
{
ROS_ERROR_NAMED(LOGNAME, "Number of joints in consistency_limits is %zu but it should be should be %u", i,
sub_groups[i]->getVariableCount());
ROS_ERROR_NAMED(LOGNAME, "Number of joints in consistency_limits[%zu] is %zu but it should be should be %zu", i,
consistency_limits[i].size(), sub_groups[i]->getVariableCount());
return false;
}
}
Expand Down

0 comments on commit e773340

Please sign in to comment.