Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Indicate source of error as CartesianPath.
  • Loading branch information
rhaschke committed Dec 6, 2024
1 parent d5e1376 commit f29784e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/solvers/cartesian_path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PlannerInterface::Result CartesianPath::plan(const planning_scene::PlanningScene
Eigen::Isometry3d ik_pose_world;

if (!utils::getRobotTipForFrame(props.property("ik_frame"), *from, jmg, error_msg, link, ik_pose_world))
return { false, error_msg };
return { false, "CartesianPath: " + error_msg };

Eigen::Isometry3d offset = from->getCurrentState().getGlobalLinkTransform(link).inverse() * ik_pose_world;

Expand Down Expand Up @@ -127,7 +127,7 @@ PlannerInterface::Result CartesianPath::plan(const planning_scene::PlanningScene
props.get<double>("max_acceleration_scaling_factor"));

if (achieved_fraction < props.get<double>("min_fraction")) {
return { false, "min_fraction not met. Achieved: " + std::to_string(achieved_fraction) };
return { false, "CartesianPath: min_fraction not met. Achieved: " + std::to_string(achieved_fraction) };
}
return { true, "achieved fraction: " + std::to_string(achieved_fraction) };
}
Expand Down

0 comments on commit f29784e

Please sign in to comment.