Skip to content

Commit

Permalink
refining output
Browse files Browse the repository at this point in the history
  • Loading branch information
marinagmoreira committed Apr 27, 2024
1 parent 0d8b237 commit 640685c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions behaviors/dock/src/dock_nodelet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ class DockNodelet : public ff_util::FreeFlyerNodelet {
case ff_util::FreeFlyerActionState::SUCCESS:
return fsm_.Update(SWITCH_SUCCESS);
default:
err_msg_ = "Result code " + result->fsm_result;
err_msg_ = "Switch Code " + std::to_string(result->response) + ": (" + result->fsm_result + ")";
return fsm_.Update(SWITCH_FAILED);
}
}
Expand Down Expand Up @@ -855,7 +855,7 @@ class DockNodelet : public ff_util::FreeFlyerNodelet {
case ff_util::FreeFlyerActionState::SUCCESS:
return fsm_.Update(MOTION_SUCCESS);
default:
err_msg_ = "Result code " + result->fsm_result;
err_msg_ = "Move Code " + std::to_string(result->response) + ": (" + result->fsm_result + ")";
return fsm_.Update(MOTION_FAILED);
}
}
Expand Down
4 changes: 2 additions & 2 deletions behaviors/perch/src/perch_nodelet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ class PerchNodelet : public ff_util::FreeFlyerNodelet {
case ff_util::FreeFlyerActionState::SUCCESS:
return fsm_.Update(ARM_SUCCESS);
default:
err_msg_ = "Result code " + result->fsm_result;
err_msg_ = "Arm Code " + std::to_string(result->response) + ": (" + result->fsm_result + ")";
return fsm_.Update(ARM_FAILED);
}
}
Expand Down Expand Up @@ -915,7 +915,7 @@ class PerchNodelet : public ff_util::FreeFlyerNodelet {
case ff_util::FreeFlyerActionState::SUCCESS:
return fsm_.Update(MOTION_SUCCESS);
default:
err_msg_ = "Result code " + result->fsm_result;
err_msg_ = "Move Code " + std::to_string(result->response) + ": (" + result->fsm_result + ")";
return fsm_.Update(MOTION_FAILED);
}
}
Expand Down

0 comments on commit 640685c

Please sign in to comment.