Skip to content

Commit 37bd560

Browse files
authored
[trajoptlib] Reset differential cancellation flag (#1058)
1 parent cb528c7 commit 37bd560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trajoptlib/src/DifferentialTrajectoryGenerator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ DifferentialTrajectoryGenerator::DifferentialTrajectoryGenerator(
293293

294294
expected<DifferentialSolution, sleipnir::SolverExitCondition>
295295
DifferentialTrajectoryGenerator::Generate(bool diagnostics) {
296+
GetCancellationFlag() = 0;
296297
problem.Callback([this](const sleipnir::SolverIterationInfo&) -> bool {
297298
for (auto& callback : callbacks) {
298299
callback();

0 commit comments

Comments
 (0)