Skip to content

Commit

Permalink
Improved RobotState feedback for setFromIK() (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcoleman authored and v4hn committed Nov 11, 2016
1 parent 756e2e0 commit 6347d34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions moveit_core/robot_state/src/robot_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1614,13 +1614,13 @@ bool moveit::core::RobotState::setFromIKSubgroups(const JointModelGroup *jmg, co
// Error check
if (poses_in.size() != sub_groups.size())
{
logError("Number of poses must be the same as number of sub-groups");
logError("Number of poses (%u) must be the same as number of sub-groups (%u)", poses_in.size(), sub_groups.size());
return false;
}

if (tips_in.size() != sub_groups.size())
{
logError("Number of tip names must be the same as number of sub-groups");
logError("Number of tip names (%u) must be same as number of sub-groups (%u)", tips_in.size(), sub_groups.size());
return false;
}

Expand Down Expand Up @@ -1707,7 +1707,8 @@ bool moveit::core::RobotState::setFromIKSubgroups(const JointModelGroup *jmg, co

if (pose_frame != solver_tip_frame)
{
logError("Cannot compute IK for query pose reference frame '%s'", pose_frame.c_str());
logError("Cannot compute IK for query pose reference frame '%s', desired: '%s'", pose_frame.c_str(),
solver_tip_frame.c_str());
return false;
}
}
Expand Down

0 comments on commit 6347d34

Please sign in to comment.