Skip to content
Snippets Groups Projects
Commit 4c6b7cd9 authored by armar-user's avatar armar-user
Browse files

NavigateToLocation: fixing returned success/failure

parent 29a43cce
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,10 @@ namespace armarx::navigation::skills
if (se)
{
ARMARX_INFO << "Goal `" << location << "`reached.";
}
return ::armarx::skills::Skill::MainResult{
.status = ::armarx::skills::TerminatedSkillStatus::Succeeded};
}
else
{
if (se.isSafetyStopTriggeredEvent())
......@@ -109,7 +112,7 @@ namespace armarx::navigation::skills
return ::armarx::skills::Skill::MainResult{
.status = ::armarx::skills::TerminatedSkillStatus::Succeeded};
.status = ::armarx::skills::TerminatedSkillStatus::Failed};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment