Updated error msg when graph cannot be computed from id

This commit is contained in:
matlabbe
2016-08-31 12:45:55 -04:00
parent 9b603e57d2
commit 62ef687abd
+8 -1
View File
@@ -1554,7 +1554,14 @@ void CoreWrapper::goalCommonCallback(
}
else if(pose.isNull())
{
ROS_ERROR("Planning: Node id should be > 0 !");
if(id > 0)
{
ROS_ERROR("Planning: Could not plan to node %d! The node is not in map's graph (look for warnings before this message for more details).", id);
}
else
{
ROS_ERROR("Planning: Node id should be > 0 !");
}
}
else
{