Skip to content

Commit 79dbabc

Browse files
committed
Fix onActionCompletion params
Signed-off-by: RBT22 <[email protected]>
1 parent 83b4ff4 commit 79dbabc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nav2_behaviors/include/nav2_behaviors/plugins/drive_on_heading.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ class DriveOnHeading : public TimedBehavior<ActionT>
184184

185185
void onCleanup() override {last_vel_ = std::numeric_limits<double>::max();}
186186

187-
void onActionCompletion() override {last_vel_ = std::numeric_limits<double>::max();}
187+
void onActionCompletion(std::shared_ptr<DriveOnHeadingAction::Result>/*result*/) override
188+
{
189+
last_vel_ = std::numeric_limits<double>::max();
190+
}
188191

189192
protected:
190193
/**

0 commit comments

Comments
 (0)