Skip to content

Commit

Permalink
Fix: misleading error logs in RobotState::setFromIKSubgroups() (#3263)
Browse files Browse the repository at this point in the history
* Fix: misleading error logs

misleading log message for  RobotState::setFromIKSubgroups() when checking consistency_limits size

* fix clang-format
  • Loading branch information
zhongjin616 authored Jan 24, 2025
1 parent b91e529 commit 524ca4f
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 @@ -2039,8 +2039,8 @@ bool RobotState::setFromIKSubgroups(const JointModelGroup* jmg, const EigenSTL::
{
if (consistency_limits[i].size() != sub_groups[i]->getVariableCount())
{
RCLCPP_ERROR(getLogger(), "Number of joints in consistency_limits is %zu but it should be should be %u", i,
sub_groups[i]->getVariableCount());
RCLCPP_ERROR(getLogger(), "Number of joints in consistency_limits[%zu] is %lu but it should be should be %u", i,
consistency_limits[i].size(), sub_groups[i]->getVariableCount());
return false;
}
}
Expand Down

0 comments on commit 524ca4f

Please sign in to comment.