Skip to content

Commit f29784e

Browse files
committed
Improve error message
Indicate source of error as CartesianPath.
1 parent d5e1376 commit f29784e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/solvers/cartesian_path.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PlannerInterface::Result CartesianPath::plan(const planning_scene::PlanningScene
8181
Eigen::Isometry3d ik_pose_world;
8282

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

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

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

129129
if (achieved_fraction < props.get<double>("min_fraction")) {
130-
return { false, "min_fraction not met. Achieved: " + std::to_string(achieved_fraction) };
130+
return { false, "CartesianPath: min_fraction not met. Achieved: " + std::to_string(achieved_fraction) };
131131
}
132132
return { true, "achieved fraction: " + std::to_string(achieved_fraction) };
133133
}

0 commit comments

Comments
 (0)