Skip to content

Commit

Permalink
User result.SUCCEEDED instead of actionlib::SimpleClientGoalState::SU…
Browse files Browse the repository at this point in the history
…CCEEDED
  • Loading branch information
jeremysalwen committed Sep 22, 2024
1 parent 71ec75a commit 36ec060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mower_logic/src/mower_logic/behaviors/DockingBehavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool DockingBehavior::approach_docking_point() {
moveBaseGoal.controller = "FTCPlanner";

auto result = sendGoalAndWaitUnlessAborted(mbfClient, moveBaseGoal);
if (aborted || result.state_ != actionlib::SimpleClientGoalState::SUCCEEDED) {
if (aborted || result.state_ != result.SUCCEEDED) {
return false;
}
}
Expand All @@ -87,7 +87,7 @@ bool DockingBehavior::approach_docking_point() {
ROS_INFO_STREAM("Executing Docking Approach");

auto approachResult = sendGoalAndWaitUnlessAborted(mbfClientExePath, exePathGoal);
if (aborted || approachResult.state_ != actionlib::SimpleClientGoalState::SUCCEEDED) {
if (aborted || approachResult.state_ != approachResult.SUCCEEDED) {
return false;
}
}
Expand Down

0 comments on commit 36ec060

Please sign in to comment.