Skip to content

Commit 9b9a6ce

Browse files
committed
Fix onActionCompletion params
Signed-off-by: RBT22 <rozgonyibalint@gmail.com>
1 parent bb11ff9 commit 9b9a6ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎nav2_behaviors/include/nav2_behaviors/plugins/drive_on_heading.hpp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ 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<typename ActionT::Result>/*result*/)
188+
override
189+
{
190+
last_vel_ = std::numeric_limits<double>::max();
191+
}
188192

189193
protected:
190194
/**

0 commit comments

Comments
 (0)