Skip to content

Commit 544887c

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

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

+5-1
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)